Fix invariant phi node removal.
[gcc.git] / gcc / ChangeLog
1 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
2
3 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
4 phi_arg_in_outermost_loop.
5 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6 (remove_invariant_phi): Same.
7
8 2010-08-11 Anatoly Sokolov <aesok@post.ru>
9
10 * target.def (output_addr_const_extra): New hook.
11 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
12 * doc/tm.texi: Regenerate.
13 * targhooks.c (default_asm_output_addr_const_extra): New function.
14 * targhooks.h (default_asm_output_addr_const_extra): Declare.
15 * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
16 target hook.
17
18 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
20 * config/i386/i386.h (output_addr_const_extra): Rename to...
21 (i386_asm_output_addr_const_extra): ...this. Make static.
22 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23
24 2010-08-11 Richard Henderson <rth@redhat.com>
25
26 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
27
28 2010-08-11 Nick Clifton <nickc@redhat.com>
29
30 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
31 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
32 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
33 stormy16-lib2-cmpsi.c.
34
35 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
36 -O2.
37
38 2010-08-11 Joseph Myers <joseph@codesourcery.com>
39
40 * opts.h (struct cl_option_handler_func): Make handler take
41 cl_decoded_option structure as parameter, not individual elements.
42 (struct cl_option_handlers): Make callbacks take cl_decoded_option
43 structure as parameter, not individual elements.
44 (handle_option): Take cl_decoded_option structure as parameter,
45 not individual elements.
46 (handle_generated_option): Declare.
47 * opts-common.c (handle_option): Take cl_decoded_option structure
48 as parameter, not individual elements. Update calls to callback
49 and handler functions.
50 (handle_generated_option): New.
51 (read_cmdline_option): Update calls to callback functions and
52 handle_option.
53 * opts.c (common_handle_option, complain_wrong_lang,
54 unknown_option_callback, post_handling_callback,
55 lang_handle_option, target_handle_option): Take cl_decoded_option
56 structure as parameter, not individual elements.
57 (lang_handle_option, target_handle_option, common_handle_option):
58 Assert option has at most one argument.
59 (enable_warning_as_error): Call handle_generated_option instead of
60 handle_option. Do not pass -Werror argument as argument of
61 generated option.
62
63 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
64
65 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
66 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
67 (SUBWORD_BOOL_CAS): Likewise.
68 (SUBWORD_SYNC_OP): Likewise.
69 (SUBWORD_TEST_AND_SET): Likewise.
70 (FETCH_AND_OP_WORD): Parenthesise INF_OP
71 (SUBWORD_SYNC_OP): Likewise.
72 (OP_AND_FETCH_WORD): Likewise.
73
74 2010-08-10 Xinliang David Li <davidxl@google.com>
75
76 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
77 compute max/min offset in address.
78
79 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
80
81 * ira-live.c: Include sbitmap.h.
82 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
83 Compress live ranges even more.
84
85 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
86
87 * coverage.c (ctr_labels): Delete.
88
89 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
90
91 PR bootstrap/45177
92 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
93 test here from arm_gen_load_multiple_1.
94 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
95 multiple_operation_profitable_p.
96
97 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
98
99 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
100 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
101
102 2010-08-10 Richard Henderson <rth@redhat.com>
103
104 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
105 after saving registers. Assert that SSE registers are only saved
106 with a sufficiently aligned frame.
107 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
108 remove stack_realign_fp handling.
109 (ix86_expand_prologue): Save int registers before stack_realign_fp,
110 and do not mark the stack alignment as frame related.
111 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
112
113 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
114 saves when re-aligning the stack.
115
116 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
117
118 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
119 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
120 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
121
122 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
123
124 * dwarf2out.c (struct die_struct): Move die_tag to the end.
125
126 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
127
128 * config/arm/iterators.md: New file.
129 * config/arm/arm.md: Include iterators.md.
130 (QHSI): Move to new file.
131 (LTUGEU, cnb, optab, ior_xor): Likewise.
132 * config/arm/iwmmxt.md (VMMX): Move to new file.
133 (VSHFT, MMX_char): Likewise.
134 * config/arm/neon.md (VD): Move to new file.
135 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
136 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
137 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
138 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
139 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
140 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
141 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
142 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
143 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
144 (Is_d_reg, V_mode_nunits): Likewise.
145 * config/arm/vec-common.md (VALL): Move to new file.
146 (VALLW, VINT, VINTW): Likewise.
147
148 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
149
150 PR middle-end/45182
151 * combine.c (make_compound_operation): Don't try to convert
152 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
153
154 2010-08-10 Richard Guenther <rguenther@suse.de>
155
156 * tree.h (get_object_alignment): Adjust prototype.
157 * builtins.c (get_object_alignment): Return unsigned int,
158 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
159 and TARGET_MEM_REF properly.
160 (get_pointer_alignment): Adjust.
161 * emit-rtl.c (get_mem_align_offset): Adjust comment.
162 (set_mem_attributes_minus_bitpos): Adjust.
163 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
164
165 2010-08-10 Richard Guenther <rguenther@suse.de>
166
167 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
168 (copy_prop_visit_assignment): Simplify.
169 (copy_prop_visit_stmt): Also visit assignments from
170 constants.
171 (copy_prop_visit_phi_node): Use operand_equal_p.
172
173 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
174
175 * ipa-split.c (find_split_points): Free stack.
176
177 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
178
179 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
180 * tree.c (tree_node_kind): Delete corresponding entries.
181
182 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
183
184 * alias.c (may_alias_p): Remove unused ret.
185
186 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
187
188 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
189 alias_sets_conflict_p.
190 (walk_mems_1): Moved from alias.c.
191 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
192 in alias.c.
193 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
194 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
195 * alias.c (walk_mems_2): Moved to ddg.c.
196 (walk_mems_1): Ditto.
197 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
198 to ddg.c.
199 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
200 disambiguation.
201 *(may_alias_p): New function to check whether two memory expression
202 may alias or not. Currently used in buidling inter-iteration memory
203 dependence.
204 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
205 (insn_alias_sets_conflict_p): Removed
206 *rtl.h (may_alias_p): New function prototype.
207
208 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
209
210 * tree.c (nreverse): Assert that we don't have a BLOCK.
211
212 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
213
214 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
215 * config/arm/arm.c (arm_get_pcs_model): Likewise.
216 * config/avr/avr.c (init_cumulative_args): Likewise.
217 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
218 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
219 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
220 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
221 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
222 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
223 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
224 * dwarf2out.c (gen_subprogram_die): Likewise.
225 * function.c (allocate_struct_function): Likewise.
226 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
227 (deserves_ellipsis): Delete.
228
229 2010-08-09 Richard Guenther <rguenther@suse.de>
230
231 * tree-ssa-copy.c (cached_last_copy_of): Remove.
232 (valueize_val): New function.
233 (get_last_copy_of): Remove.
234 (set_copy_of_val): Simplify.
235 (dump_copy_of): Likewise.
236 (copy_prop_visit_cond_stmt): Use valueize_val.
237 (copy_prop_visit_phi_node): Properly handle unvisited names.
238 Drop code managing copy-of chains.
239 (init_copy_prop): Adjust.
240 (fini_copy_prop): Likewise.
241 (execute_copy_prop): Remove obsolete comment.
242
243 2010-08-09 Richard Guenther <rguenther@suse.de>
244
245 PR middle-end/44632
246 * function.c (gimplify_parameters): Do not clear addressable
247 bit of the original parameter.
248
249 2010-08-09 Richard Guenther <rguenther@suse.de>
250
251 PR middle-end/45212
252 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
253 alignment from MEM_REF offset only if we took it from the
254 base object.
255
256 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
257
258 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
259
260 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
261
262 * c-tree.h (build_arg_info): Declare.
263 * c-decl.c (build_arg_info): Define.
264 (get_parm_info): Call it. Delete initialization code.
265 * c-parser.c (c_parser_parms_declarator): Likewise.
266 (c_parser_parms_list_declaractor): Likewise.
267
268 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
269
270 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
271 (struct c_arg_info): Change type of tags field.
272 * c-decl.c (grokdeclarator): Update for changed type of tags field.
273 (get_parm_info): Likewise.
274 (store_parm_decls_newstyle): Likewise.
275
276 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
277
278 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
279 (branch_island_list): Delete.
280 (branch_islands): Declare.
281 (add_compiler_branch_island): Adjust for branch_islands instead of
282 branch_island_list.
283 (macho_branch_islands): Likewise.
284 (no_previous_def): Likewise.
285 (get_prev_label): Likewise.
286
287 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
288
289 PR boehm-gc/34544
290 * gthr-posix.h (__gthread_start): Delete.
291 (__gthread_active_init): Use pthread_default_stacksize_np instead of
292 pthread_create to determine if hpux pthreads are active.
293 * gthr-posix95.h (__gthread_start): Delete.
294 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
295
296 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
297
298 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
299 _WIN64 not expanded.
300
301 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
302 H.J. Lu <hongjiu.lu@intel.com>
303
304 PR target/45213
305 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
306 to output 32bit SFmode immediate as 8 byte sign extended value.
307
308 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
309
310 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
311 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
312 (SUBWORD_BOOL_CAS): Likewise.
313 (SUBWORD_SYNC_OP): Likewise.
314 (SUBWORD_TEST_AND_SET): Likewise.
315 (FETCH_AND_OP_WORD): Parenthesise INF_OP
316 (SUBWORD_SYNC_OP): Likewise.
317 (OP_AND_FETCH_WORD): Likewise.
318
319 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
320
321 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
322 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
323 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
324 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
325 generic part.
326 (cortex_a9_sched_adjust_cost): New function.
327 (xscale_sched_adjust_cost): New function.
328 * config/arm/arm-protos.h (struct tune_params): New field
329 sched_adjust_cost.
330 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
331
332 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
333
334 PR target/44942
335 * config/sparc/sparc.c (function_arg_advance): Always take into account
336 the padding, if any.
337
338 2010-08-06 Richard Guenther <rguenther@suse.de>
339
340 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
341 (dump_lattice_value): Dump it.
342 (get_default_value): Adjust.
343 (get_constant_value): Likewise.
344 (set_value_varying): Likewise.
345 (set_lattice_value): Make sure to not go up the lattice
346 with bitwise constant values.
347 (get_value_for_expr): Handle ADDR_EXPRs.
348 (value_to_double_int): New function.
349 (get_value_from_alignment): Likewise.
350 (do_dbg_cnt): Adjust.
351 (ccp_lattice_meet): Handle partially constant values.
352 (bit_value_unop_1): New function.
353 (bit_value_binop_1): Likewise.
354 (bit_value_unop): Likewise.
355 (bit_value_binop): Likewise.
356 (evaluate_stmt): Track partially constant values if
357 flag_tree_bit_ccp is set.
358 (ccp_fold_stmt): Dump if we folded a predicate.
359 (ccp_visit_stmt): Adjust.
360 * common.opt (ftree-bit-ccp): New flag.
361 * doc/invoke.texi (ftree-bit-ccp): Document.
362 * opts.c (decode_options): Enable bit-CCP at -O1.
363
364 2010-08-06 Alan Modra <amodra@gmail.com>
365
366 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
367 and -mrelocatable-lib description.
368
369 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
370
371 From Martin Thuresson <martint@google.com>
372 * postreload.c (reload_cse_simplify_operands): Use
373 SET_REGNO_RAW instead of SET_REGNO.
374 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
375 SET_REGNO.
376 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
377 instead of SET_REGNO.
378 * rtl.h (SET_REGNO_RAW): New macro.
379
380 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
381
382 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
383 computations. Fix formatting issues.
384 (num_sign_bit_copies1): Likewise.
385 (canonicalize_condition): Likewise.
386
387 2010-08-05 Richard Henderson <rth@redhat.com>
388
389 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
390 (floor_log2): Use clz_hwi.
391 (exact_log2): Use ctz_hwi.
392 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
393 * builtins.c (fold_builtin_bitop): Use them.
394 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
395 * combine.c (get_pos_from_mask): Use ctz_hwi.
396 * double-int.c (double_int_ctz): Likewise.
397 * explow.c (force_reg): Likewise.
398 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
399
400 2010-08-05 Richard Henderson <rth@redhat.com>
401
402 PR target/45189
403 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
404 the alignment constant is properly sign-extended.
405
406 2010-08-05 Richard Guenther <rguenther@suse.de>
407
408 * expr.c (store_expr): Use emit_block_move only if both
409 source and target are MEMs. Use store_bit_field if only
410 the target is a MEM.
411
412 2010-08-05 Richard Henderson <rth@redhat.com>
413
414 PR debug/45188
415 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
416 (INCOMING_RETURN_ADDR_RTX): Likewise.
417 (dwarf2out_do_frame): Remove conditional compilation.
418 (dwarf2out_frame_init): Likewise.
419
420 2010-08-05 Nicolas Setton <setton@adacore.com>
421
422 * gcov.c (flag_display_progress): New static variable.
423 (main): Display progress info on standard output if requested.
424 (options): Add -d/--display-progress.
425 (print_usage): Print them.
426 (process_args): Handle them.
427 * doc/gcov.texi: Document them.
428
429 2010-08-05 Martin Jambor <mjambor@suse.cz>
430
431 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
432 (ipcp_insert_stage): Redirect only edges not flagged with
433 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
434 discovered constants.
435
436 2010-08-05 Martin Jambor <mjambor@suse.cz>
437
438 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
439 (struct ipa_param_descriptor): New fields types and
440 cannot_devirtualize.
441 (ipa_param_cannot_devirtualize_p): New function.
442 (ipa_param_types_vec_empty): Likewise.
443 (ipa_make_edge_direct_to_target): Declare.
444 * ipa-cp.c: Fixed first stage driver name in initial comment,
445 described devirtualization there too.
446 (ipcp_analyze_node): Call ipa_analyze_params_uses.
447 (ipcp_print_all_lattices): Print devirtualization info.
448 (ipa_set_param_cannot_devirtualize): New function.
449 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
450 lattice to BOTTOM.
451 (ipcp_init_stage): Merged into...
452 (ipcp_generate_summary): ...its caller.
453 (ipcp_change_tops_to_bottom): Also process type lists.
454 (ipcp_add_param_type): New function.
455 (ipcp_copy_types): Likewise.
456 (ipcp_propagate_types): Likewise.
457 (ipcp_propagate_stage): Also propagate types.
458 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
459 Also return true if propagated types require it.
460 (ipcp_update_callgraph): Dump redirection info.
461 (ipcp_process_devirtualization_opportunities): New function.
462 (ipcp_const_param_count): Include known type information.
463 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
464 on new node. Fixed formatting.
465 * ipa-prop.c (make_edge_direct_to_target): Renamed to
466 ipa_make_edge_direct_to_target and changed all callers. Made
467 externally visible.
468 (ipa_node_duplication_hook): Duplicate types vector.
469 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
470 redirect outgoing calls for which we can't get a decl from the
471 statement. Check that we can get a decl from the call statement.
472 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
473 ipa_analyze_params_uses only when ipa-cp is disabled.
474 * tree-inline.c (get_indirect_callee_fndecl): Removed.
475 (expand_call_inline): Do not call get_indirect_callee_fndecl.
476 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
477 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
478
479 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
480
481 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
482 temporary. Emit move from temporary to accum, so REG_EQUAL note will
483 be attached to this insn in correct mode.
484
485 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
486
487 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
488 using REGNO of base_reg directly.
489
490 2010-08-05 Jie Zhang <jie@codesourcery.com>
491
492 PR tree-optimization/45144
493 * tree-sra.c (type_consists_of_records_p): Return false
494 if the record contains bit-field.
495
496 2010-08-04 Richard Henderson <rth@redhat.com>
497
498 * config/i386/i386.c (struct ix86_frame): Remove padding and
499 to_allocate members.
500 (ix86_compute_frame_layout): Don't store them.
501 (ix86_can_use_return_insn_p): Use a more direct and more obviously
502 correct condition for the position of the stack pointer.
503 (ix86_expand_prologue): Compute remaining stack allocation based
504 on the ultimate stack pointer offset.
505 (ix86_expand_epilogue): Use more obvious expressions testing for
506 the stack pointer already pointing to the saved registers.
507
508 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
509 duplication deconstructing the frame pointer. Simplify
510 deallocation of the local stack frame.
511
512 * reg-notes.def (CFA_EXPRESSION): New.
513 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
514 (dwarf2out_frame_debug_cfa_expression): New.
515 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
516
517 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
518 * config/i386/i386.c (ix86_expand_prologue): Set it.
519 (ix86_expand_epilogue): Clear it.
520 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
521 context, add REG_CFA_EXPRESSION notes.
522
523 * config/i386/i386.h (struct machine_frame_state): Rename from
524 machine_cfa_state. Add members tracking SP and FP regardless
525 of the current CFA register.
526 (ix86_cfa_state): Remove.
527 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
528 and sse_reg_save_offset members.
529 (ix86_compute_frame_layout): Set them.
530 (gen_push): Increment sp_offset too.
531 (choose_baseaddr_len, choose_baseaddr): New.
532 (ix86_emit_save_reg_using_mov): New.
533 (ix86_emit_save_regs_using_mov): Use it.
534 (ix86_emit_save_sse_regs_using_mov): Likewise.
535 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
536 compare vs the saved red_zone_offset.
537 (pro_epilogue_adjust_stack): Adjust sp_offset.
538 (ix86_adjust_stack_and_probe): Likewise.
539 (ix86_expand_prologue): Set up, use, and validate the new
540 frame_state_info members. Use gen_frame_mem.
541 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
542 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
543 new frame_state_info members.
544 (ix86_emit_leave): Likewise.
545 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
546 out-of-range stack pointer offsets here.
547 (ix86_emit_restore_sse_regs_using_mov): Likewise.
548 (ix86_expand_epilogue): Use and validate the new frame_state_info
549 members. Break up and simplify the logic selecting the
550 restore_regs_via_mov code path. Ensure that there will be no
551 out-of-range stack pointer offsets.
552
553 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
554
555 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
556 argument name to reflect the expected tree; fix indentation.
557 (ix86_asm_output_function_label): Output the entire 32-bit
558 ms_hook here as bytes ...
559 (ix86_expand_prologue): ... not here as insns. Attach the
560 unwind info for the ms_hook to a blockage insn.
561 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
562 (ix86_ms_bitfield_layout_p): Fix indentation.
563 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
564
565 * config/i386/i386.c (ix86_using_red_zone): New.
566 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
567 ix86_expand_prologue, ix86_force_to_memory): Use it.
568
569 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
570 saving the int registers.
571
572 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
573 and DWARF2_UNWIND_INFO conditional compilation.
574
575 2010-08-04 Richard Henderson <rth@redhat.com>
576
577 PR debug/45171
578 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
579 an is_naming_typedef_decl.
580
581 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
582
583 PR rtl-optimization/45162
584 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
585 * dce.c (word_dce_process_block): Likewise.
586
587 2010-08-04 Steve Ellcey <sje@cup.hp.com>
588
589 PR target/44583
590 * config/ia64/constraints.md (Z): New.
591 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
592 (xfreg_or_signed_fp01_operand): New.
593 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
594 with fr_reg_or_signed_fp01_operand and constraint G with Z.
595 (subsf3): Ditto.
596 (*maddsf4): Ditto.
597 (*msubsf4): Ditto.
598 (adddf3): Ditto.
599 (adddf3_trunc): Ditto.
600 (subdf3): Ditto.
601 (*subdf3_trunc): Ditto.
602 (*madddf4): Ditto.
603 (*madddf4_trunc): Ditto.
604 (*msubdf4): Ditto.
605 (*msubdf4_trunc): Ditto.
606 (addxf3): Replace xfreg_or_fp01_operand with
607 xfreg_or_signed_fp01_operand and constraint G with Z.
608 (*addxf3_truncsf): Ditto.
609 (*addxf3_truncdf): Ditto.
610 (subxf3): Ditto.
611 (*subxf3_truncsf): Ditto.
612 (*subxf3_truncdf): Ditto.
613 (*maddxf4): Ditto.
614 (*maddxf4_truncsf): Ditto.
615 (*maddxf4_truncdf): Ditto.
616 (*msubxf4): Ditto.
617 (*msubxf4_truncsf): Ditto.
618 (*msubxf4_truncdf): Ditto.
619
620 2010-08-04 Richard Guenther <rguenther@suse.de>
621
622 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
623 if either alias-set is zero.
624
625 2010-08-04 Richard Guenther <rguenther@suse.de>
626
627 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
628 * tree-ssa-ccp.c: ... here.
629 * tree-ssa-copy.c: ... and here.
630 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
631 value_range_t): Move ...
632 * tree-vrp.c: ... here.
633 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
634 (substitute_and_fold): Adjust prototype.
635 * tree-ssa-propagate.c (replace_uses_in): Adjust.
636 (replace_phi_args_in): Likewise.
637 (substitute_and_fold): Take callback to query lattice instead
638 of pointer to lattice. Replace SSA name defs with lattice
639 values first.
640 * tree-ssa-ccp.c (ccp_finalize): Adjust.
641 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
642 (get_value): New function.
643 (fini_copy_prop): Adjust.
644 * tree-vrp.c (vrp_finalize): Adjust.
645
646 2010-08-04 Richard Guenther <rguenther@suse.de>
647
648 PR middle-end/45176
649 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
650 points-to set for original MEM_REF.
651
652 2010-08-04 Richard Guenther <rguenther@suse.de>
653
654 * tree-ssa-ccp.c (get_constant_value): New function.
655 (get_rhs_assign_op_for_ccp): Remove.
656 (valueize_op): New function.
657 (ccp_fold): Use get_constant_value and valueize_op.
658 (fold_const_aggregate_ref): Likewise.
659 (ccp_fold_stmt): Likewise.
660 (visit_assignment): Simplify.
661
662 2010-08-04 Richard Guenther <rguenther@suse.de>
663
664 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
665 * double-int.h (double_int_ctz): Declare.
666 * double-int.c (double_int_ctz): New function.
667
668 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
669
670 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
671 Define.
672 picochip_expand_movmemhi : Expand movmem pattern.
673 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
674 Declare.
675 * config/picochip/picochip.md (movmemhi) : New pattern.
676
677 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
678
679 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
680
681 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
682
683 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
684 NEG as operand of a MULT by merging it with the other operand.
685 * combine.c (make_compound_operation): Use trunc_int_for_mode when
686 generating a MULT with constant. Canonicalize PLUS and MINUS involving
687 MULT.
688 * config/arm/constraints.md (M): Examine only 32 bits of a
689 HOST_WIDE_INT.
690 * config/arm/predicates.md (power_of_two_operand): Likewise.
691
692 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
693
694 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
695 non-NOTE insns.
696
697 2010-08-03 Jan Hubicka <jh@suse.cz>
698
699 * ipa-split.c (struct split_point): Add split_part_set_retval.
700 (find_retval): Forward declare.
701 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
702 (consider_split): Compute current->split_part_set_retval.
703 (visit_bb): Do not look into return value.
704 (split_function): Handle !split_part_set_retval
705
706 2010-08-03 Martin Jambor <mjambor@suse.cz>
707
708 * tree-sra.c (completely_scalarize_record): New parameter REF, create
709 its own access->expr intead of using build_ref_for_offset.
710
711 2010-08-03 Joseph Myers <joseph@codesourcery.com>
712
713 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
714 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
715 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
716 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
717 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
718 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
719 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
720 DEFAULT_SWITCH_TAKES_ARG.
721 * config/rx/rx.opt (-patch=): Remove option.
722 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
723 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
724 * doc/invoke.texi (RX Options): Remove -patch=.
725 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
726 (option_map): Remove --profile-blocks, --quiet and --silent.
727
728 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
729
730 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
731 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
732 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
733 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
734 Update calls to ix86_expand_compare and ix86_expand_branch.
735 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
736 ix86_expand_compare.
737 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
738 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
739 Make static.
740 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
741 and ix86_compare_op1. Update calls to ix86_expand_compare.
742 (ix86_expand_int_movcc): Ditto.
743 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
744 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
745 (ix86_expand_setcc): Ditto.
746 (ix86_expand_compare): Remove prototype.
747 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
748 ix86_compare_op0 and ix86_compare_op1. Update calls
749 to ix86_expand_branch to directly pass operands[1] and operands[2].
750 (cbranchxf4): Ditto.
751 (cbranch<MODEF:mode>4): Ditto.
752 (cbranchcc4): Ditto.
753 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
754 Update calls to ix86_expand_setcc to directly pass operands[2] and
755 operands[3].
756 (cstorexf4): Ditto.
757 (cstore<MODEF:mode>4): Ditto.
758 (cstorecc4): Ditto.
759
760 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
761
762 PR target/45063
763 * caller-save.c (save_call_clobbered_regs): Remove regs from
764 hard_regs_saved when they are set.
765
766 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
767
768 PR target/41089
769 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
770 as volatile.
771
772 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
773
774 * common.opt (ftree-loop-distribute-patterns): New.
775 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
776 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
777 at -O3.
778 * tree-data-ref.c (stores_zero_from_loop): New.
779 * tree-data-ref.h (stores_zero_from_loop): Declared.
780 * tree-loop-distribution.c (tree_loop_distribution): Call
781 stores_zero_from_loop.
782 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
783
784 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
785
786 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
787 into account.
788
789 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
790 * config/arm/arm.c (thumb1_code): New variable.
791 (arm_override_options): Set it.
792 (thumb1_final_prescan_insn): Keep track of condition code status.
793 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
794 jumps that depend on them.
795 * config/arm/arm.h (thumb1_code): Declare variable.
796 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
797 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
798 thumb1_cc_mode.
799 (CC_STATUS_INIT): New macro.
800 * config/arm/constraints.md (Pd): New constraint.
801 * config/arm/predicates.md (noov_comparison_operator): New predicate.
802 * config/arm/arm.md (is_thumb1): New define_attr.
803 (conds): Set default to "clob" when generating Thumb1 code.
804 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
805 code are set. Use two-operand assembly syntax.
806 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
807 pattern.
808 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
809 codes are set. Use two-operand assembly syntax.
810 (zero_extendhisi splitter): Remove constraints.
811 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
812 thumb1_movsf_insn): Set conds attribute as appropriate.
813 (cbranchsi4_insn): Use condition code status from struct
814 machine_function to determine whether the comparison can be eliminated.
815 Discourage the alternative using high registers.
816 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
817 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
818 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
819 subsi3_cbranch): Delete.
820 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
821 one subtract and one cbranch insn.
822
823 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
824 thumb2_movdf_soft_insn): Delete patterns.
825 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
826 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
827 (pool_range, neg_pool_range): Use them to define defaults.
828 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
829 and allow for TARGET_32BIT.
830
831 PR target/40457
832 * config/arm/arm.h (arm_regs_in_sequence): Declare.
833 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
834 load_multiple_sequence, store_multiple_sequence): Delete
835 declarations.
836 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
837 declarations.
838 * config/arm/ldmstm.md: New file.
839 * config/arm/arm.c (arm_regs_in_sequence): New array.
840 (load_multiple_sequence): Now static. New args SAVED_ORDER,
841 CHECK_REGS. All callers changed.
842 If SAVED_ORDER is nonnull, copy the computed order into it.
843 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
844 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
845 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
846 If SAVED_ORDER is nonnull, copy the computed order into it.
847 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
848 like REGS. Handle Thumb mode.
849 (arm_gen_load_multiple_1): New function, broken out of
850 arm_gen_load_multiple.
851 (arm_gen_store_multiple_1): New function, broken out of
852 arm_gen_store_multiple.
853 (arm_gen_multiple_op): New function, with code from
854 arm_gen_load_multiple and arm_gen_store_multiple moved here.
855 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
856 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
857 changed.
858 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
859 * config/arm/predicates.md (commutative_binary_operator): New.
860 (load_multiple_operation, store_multiple_operation): Handle more
861 variants of these patterns with different starting offsets. Handle
862 Thumb-1.
863 * config/arm/arm.md: Include "ldmstm.md".
864 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
865 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
866 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
867 peepholes): Delete.
868 * config/arm/ldmstm.md: New file.
869 * config/arm/arm-ldmstm.ml: New file.
870
871 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
872 if statement which adds extra costs to frame-related expressions.
873
874 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
875
876 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
877
878 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
879
880 PR target/45142
881 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
882 alternative 2.
883 (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
884 split V4SI operands.
885
886 2010-08-01 Anatoly Sokolov <aesok@post.ru>
887
888 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
889 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
890 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
891 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
892
893 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
894
895 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
896 LOCAL_INCLUDE_DIR.
897
898 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
899
900 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
901 used in the call to optab_for_tree_code. Fix the second
902 is_widening_mult_p call. Check that both unwidened operands
903 have the same sign.
904
905 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
906
907 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
908
909 2010-07-31 Anatoly Sokolov <aesok@post.ru>
910
911 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
912
913 2010-07-30 DJ Delorie <dj@redhat.com>
914
915 * config/rx/predicates.md (rx_constshift_operand): New.
916 * config/rx/rx.md (zs_cond): New.
917 (cbranchsi4): Remove mode.
918 (*cbranchsi4_<code>): Likewise.
919 (*tstbranchsi4_<code>): New.
920 (*tstbranchsi4r_<code>): New.
921 (*tstbranchsi4m_eq): New.
922 (*tstbranchsi4m_ne): New.
923 (cbranchsf4): Remove mode.
924 (*cbranchsf4_<code>): Likewise.
925
926 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
927
928 * rtlanal.c (simplify_subreg_regno): Don't treat
929 HARD_FRAME_POINTER_REGNUM specially.
930
931 2010-07-30 Joseph Myers <joseph@codesourcery.com>
932
933 * common.opt (-G): Don't define option here.
934 * config/g.opt: New.
935 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
936 rs6000/powerpc and score targets.
937 * opts.c (common_handle_option): Don't handle -G here.
938 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
939 * config/frv/frv.c (frv_handle_option): Handle -G.
940 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
941 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
942 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
943 * config/mips/mips.c (mips_handle_option): Handle -G.
944 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
945 * config/score/score.c (score_handle_option): Handle -G.
946
947 2010-07-30 Anatoly Sokolov <aesok@post.ru>
948
949 * config/mmix/mmix.c: Include basic-block.h.
950
951 2010-07-30 Jakub Jelinek <jakub@redhat.com>
952
953 PR debug/45055
954 PR rtl-optimization/45137
955 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
956 prototypes.
957 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
958 New functions.
959 * combine.c (next_nonnote_nondebug_insn): Removed.
960 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
961 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
962 * sched-deps.c (sched_analyze_insn): Likewise.
963 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
964 * rtlanal.c (canonicalize_condition): Likewise.
965 * postreload.c (reload_combine_recognize_pattern): Likewise.
966 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
967
968 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
969
970 * config/i386/i386.md (int_cond): Remove code iterator.
971 (fp_cond): Ditto.
972 (cbranch<mode>4): Use ordered_comparison_operator predicate
973 for operator0.
974 (cstore<mode>4): Ditto for operator1.
975 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
976 (add<mode>cc): ditto.
977
978 2010-07-30 Richard Guenther <rguenther@suse.de>
979
980 PR middle-end/45141
981 * expr.c (expand_expr_real_1): Check for not handled base address.
982
983 2010-07-30 Richard Guenther <rguenther@suse.de>
984
985 * ipa-prop.c (ipa_modify_formal_parameters): Use
986 build_distinct_type_copy.
987
988 2010-07-30 Anthony Green <green@moxielogic.com>
989
990 * config/moxie/rtems.h: New file.
991 * config.gcc: Add moxie-rtems support.
992
993 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
994
995 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
996 df flags as in run_fast_df_dce.
997
998 2010-07-29 Jakub Jelinek <jakub@redhat.com>
999
1000 Revert:
1001 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
1002
1003 * rtl.def (NOTE): Swap operands 4 and 5.
1004 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
1005 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
1006 Adjust accordingly.
1007 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
1008
1009 2010-07-29 Jakub Jelinek <jakub@redhat.com>
1010
1011 PR debug/45110
1012 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
1013 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
1014 (gen_subprogram_die): Likewise. Remove it when removing declaration's
1015 formal parameters.
1016 (gen_decl_die): Change return type to dw_die_ref, return what
1017 gen_formal_parameter_die returned.
1018
1019 2010-07-29 Martin Jambor <mjambor@suse.cz>
1020
1021 * dbgcnt.def (eipa_sra): New counter.
1022 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
1023
1024 2010-07-29 Xinliang David Li <davidxl@google.com>
1025
1026 PR bootstrap/45119
1027 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
1028 in revision 162652.
1029
1030 2010-07-29 Richard Guenther <rguenther@suse.de>
1031
1032 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
1033 (TV_TREE_STORE_CCP): Likewise.
1034 (TV_TREE_REDPHI): Likewise.
1035
1036 2010-07-29 Richard Guenther <rguenther@suse.de>
1037
1038 * double-int.h (double_int_and_not): New function.
1039 * combine.c (try_combine): Use it.
1040 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
1041
1042 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
1043
1044 PR rtl-optimization/42575
1045 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
1046 Argument AU removed. All callers changed. Ignore artificial refs.
1047 Use return value of df_word_lr_simulate_defs to decide whether an insn
1048 is necessary.
1049 (fast_dce): Rename arg to WORD_LEVEL.
1050 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
1051 static.
1052 (pass_fast_rtl_byte_dce): Delete.
1053 * dce.h (run_word_dce): Declare.
1054 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
1055 All callers changed. Simplify code to only deal with two-word regs.
1056 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
1057 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
1058 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
1059 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
1060 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
1061 (df_word_lr_mark_ref): Declare.
1062 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
1063 df_word_lr_simulate_uses): Declare or rename from byte variants.
1064 (df_byte_lr_simulate_artificial_refs_at_top,
1065 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
1066 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
1067 declarations.
1068 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
1069 (enum df_mm): Delete.
1070 * df-byte-scan.c: Delete file.
1071 * df-problems.c (df_word_lr_problem_data): Renamed from
1072 df_byte_lr_problem_data, all members deleted except for
1073 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
1074 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
1075 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
1076 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
1077 df_byte_lr_confluence_0): Delete functions.
1078 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
1079 callers changed.
1080 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
1081 Don't initialize members that were deleted, don't try to discover data
1082 about registers. Ignore hard regs.
1083 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
1084 (df_word_lr_mark_ref): New function.
1085 (df_word_lr_bb_local_compute): Renamed from
1086 df_byte_bb_lr_local_compute; all callers changed. Use
1087 df_word_lr_mark_ref. Assert that artificial refs don't include
1088 pseudos. Ignore hard registers.
1089 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
1090 Assert that exit block uses don't contain pseudos.
1091 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
1092 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
1093 callers changed. Ignore hard regs.
1094 (df_word_lr_transfer_function): Renamed from
1095 df_byte_lr_transfer_function; all callers changed.
1096 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
1097 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
1098 changed.
1099 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
1100 callers changed.
1101 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
1102 confluence operator 0 set to NULL.
1103 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
1104 callers changed.
1105 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
1106 Return bool, true if bitmap changed or insn otherwise necessary.
1107 All callers changed. Simplify using df_word_lr_mark_ref.
1108 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
1109 all callers changed. Simplify using df_word_lr_mark_ref.
1110 * lower-subreg.c: Include "dce.h"
1111 (decompose_multiword_subregs): Call run_word_dce if df available.
1112 * Makefile.in (lower-subreg.o): Adjust dependencies.
1113 (df-byte-scan.o): Delete.
1114 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
1115
1116 2010-07-29 Richard Guenther <rguenther@suse.de>
1117
1118 * tree.c (build_vector): Assert that the vector constant
1119 has enough elements.
1120 (build_vector_from_ctor): Pad with trailing zeros.
1121
1122 2010-07-29 Richard Guenther <rguenther@suse.de>
1123
1124 PR tree-optimization/45120
1125 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1126 Handle offset in DEREFs properly.
1127 (get_constraint_for_1): Handle MEM_REF offset properly.
1128
1129 2010-07-29 Richard Guenther <rguenther@suse.de>
1130
1131 PR middle-end/45034
1132 * convert.c (convert_to_integer): Always use an unsigned
1133 type for narrowed negate and bitwise not.
1134
1135 2010-07-29 Ira Rosen <irar@il.ibm.com>
1136
1137 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
1138 to outer loop when creating reduction epilogue for double reduction,
1139 and switch back to the inner loop when updating the phi nodes.
1140 Update uses of outer loop exit phi nodes in double reduction (instead
1141 of uses of reduction).
1142
1143 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1144
1145 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
1146 popcount on power7 and parity on power6 systems.
1147 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
1148 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
1149 instructions.
1150
1151 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
1152 (UNSPEC_PARITY): Ditto.
1153 (SFDF): New iterator for SF/DF.
1154 (rreg2): New mode attribute for floating register constraint.
1155 (TARGET_FLOAT): New mode attribute for whether single/double float
1156 is supported.
1157 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
1158 pattern.
1159 (parity<mode>2_cmpb): New insn for parity on power6 and newer
1160 machines.
1161 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
1162 pattern. Add support for fcpsgn instruction added in power6.
1163 (copysignsf3): Delete.
1164 (copysigndf3): Delete.
1165 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
1166 instead of if_then_else in RTL to avoid problems with -0.
1167
1168 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
1169 of if_then_else to mirror scalar code.
1170 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
1171 rs6000.md.
1172
1173 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
1174 instead of if_then_else.
1175
1176 2010-07-28 Xinliang David Li <davidxl@google.com>
1177
1178 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
1179 (dump_cand): Dump var_before/after.
1180 (htab_inv_expr_eq): New function.
1181 (htab_inv_expr_hash): New function.
1182 (tree_ssa_iv_optimize_init): Support pseudo invariants.
1183 (add_candidate_1): consider base type precision.
1184 (set_use_iv_cost): New parameter.
1185 (adjust_setup_cost): Use profile information.
1186 (get_address_cost): Do not hard code width in computing address
1187 offset limits.
1188 (compare_aff_trees): New function.
1189 (get_loop_invariant_expr_id): New function.
1190 (get_computation_cost_at): New parameter and use profile information.
1191 (get_computation_cost): New parameter.
1192 (determine_use_iv_cost_generic): Pass new parameter.
1193 (determine_use_iv_cost_address): Ditto.
1194 (determine_use_iv_cost_condition): Ditto.
1195 (autoinc_possible_for_pair): Ditto.
1196 (determine_use_iv_costs): More dumps.
1197 (iv_ca_get_num_inv_exprs): New function.
1198 (iv_ca_recount_cost): Consider loop invariants in register pressure
1199 cost.
1200 (iv_ca_add_use): New parameter.
1201 (iv_ca_dump): Better dumping.
1202 (iv_ca_extend): New parameter.
1203 (try_add_cand_for): Attempt to get better partial solution.
1204 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
1205 (create_new-ivs): More dumps.
1206 (rewrite_use_compare): Ditto.
1207 (free_loop_data): More cleanup.
1208 (treee_ssa_iv_optimize_finalize): Ditto.
1209
1210 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
1211
1212 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
1213 * config/i386/i386.c (ix86_profile_before_prologue): New.
1214 (override_options): Add special handling for -mfentry.
1215 (ix86_function_regparm): Likewise.
1216 (ix86_function_sseregparm): Likewise.
1217 (ix86_frame_pointer_required): Likewise.
1218 (ix86_expand_prologue): Check for ms_hook_prologue.
1219 (x86_function_profiler): Adjust mcount output.
1220 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
1221 * config/i386/i386.opt (mfentry): New.
1222 * doc/invoke.texi (mfentry): Add documentation.
1223 * doc/tm.texi: Regenerated..
1224 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
1225 * final.c (final_start_function): Replace macro
1226 PROFILE_BEFORE_PROLOGUE by target hook.
1227 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1228 * target.def (profile_before_prologue): New hook.
1229 * targhooks.c (default_profile_before_prologue): New.
1230 * targhooks.h (default_profile_before_prologue): New.
1231
1232 2010-07-28 Jakub Jelinek <jakub@redhat.com>
1233
1234 PR debug/45105
1235 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
1236
1237 PR debug/45103
1238 * dwarf2out.c (dwarf2out_var_location): Always consider
1239 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
1240
1241 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
1242
1243 PR rtl-optimization/45107
1244 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
1245
1246 2010-07-28 Richard Guenther <rguenther@suse.de>
1247
1248 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
1249 (set_lattice_value): Do not query an old default value.
1250 (get_value_for_expr): New function. Properly canonicalize
1251 float values.
1252 (ccp_visit_phi_node): Use it.
1253
1254 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
1255
1256 * config/arm/arm.c (arm_pcs_default): Remove static.
1257 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
1258 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
1259 (arm_pcs_default): Declare.
1260
1261 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
1262
1263 * config/rs6000/rs6000.c (rs6000_override_options):
1264 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
1265 ... to darwin_rs6000_override_options.
1266 (rs6000_return_in_memory): Update preceding comment for darwin
1267 64 bit ABI. Use TARGET_MACHO inline.
1268 (rs6000_darwin64_struct_check_p): New.
1269 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
1270 (function_arg): Likewise.
1271 (rs6000_arg_partial_bytes): Likewise.
1272 (rs6000_function_value): Likewise.
1273
1274 2010-07-28 Andi Kleen <ak@linux.intel.com>
1275
1276 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
1277
1278 2010-07-28 Richard Guenther <rguenther@suse.de>
1279
1280 PR middle-end/44903
1281 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
1282 targets try harder to not generate unaligned accesses.
1283
1284 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
1285
1286 PR rtl-optimization/45101
1287 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
1288 for gcse-las.
1289
1290 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
1291
1292 PR tree-optimization/44885
1293 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
1294 with non-aliased component.
1295
1296 2010-07-28 Joseph Myers <joseph@codesourcery.com>
1297
1298 * config/darwin-driver.c (SWITCH_TAKES_ARG,
1299 WORD_SWITCH_TAKES_ARG): Remove.
1300 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1301 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
1302 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
1303 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
1304 definitions from gcc.c.
1305 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
1306 defaults.h.
1307 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
1308 Move to defaults.h.
1309 * opts-common.c: Include tm.h.
1310 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
1311 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
1312 Handle more than one argument. Set canonical_option_num_elements.
1313 (decode_cmdline_options_to_array): Set
1314 canonical_option_num_elements and trailing elements of
1315 canonical_option.
1316 * opts.h (struct cl_decoded_option): Allow four elements in
1317 canonical_option. Add field canonical_option_num_elements.
1318 * Makefile.in (opts-common.o): Update dependencies.
1319
1320 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
1321
1322 PR middle-end/44790
1323 PR middle-end/44993
1324 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
1325 sure the base has address_mode before adding the offset.
1326
1327 2010-07-27 Xinliang David Li <davidxl@google.com>
1328
1329 * tree-flow.h (create_mem_ref): Add one new parameter.
1330 * tree-ssa-address.c (create_mem_ref): New parameter.
1331 (addr_to_parts): Ditto.
1332 (move_variant_to_index): New function.
1333 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
1334
1335 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
1336
1337 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
1338 4 and 5.
1339 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
1340 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
1341 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
1342 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
1343 CODE_LABELs and NOTEs.
1344 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
1345 * combine.c (try_combine): Likewise.
1346 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1347 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
1348
1349 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1350
1351 * coretypes.h (struct cl_option_handlers): Declare.
1352 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
1353 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
1354 * langhooks-def.h (lhd_handle_option): Declare.
1355 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
1356 * langhooks.c (lhd_handle_option): New.
1357 * langhooks.h (struct lang_hooks): Update prototype and return
1358 value type of handle_option hook.
1359 * optc-gen.awk: Generate target_flags_explicit definition for the
1360 driver.
1361 * opts-common.c: Include diagnostic.h.
1362 (handle_option): Move from opts.c. Update prototype and return
1363 value type. Use handlers structure.
1364 (read_cmdline_option): Move from opts.c. Update prototype. Use
1365 handlers structure.
1366 (set_option): Move from opts.c.
1367 * opts.c (common_handle_option): Update prototype and return value
1368 type. Update calls to handle_option and enable_warning_as_error.
1369 (unknown_option_callback, post_handling_callback,
1370 lang_handle_option, target_handle_option): New.
1371 (handle_option, read_cmdline_option): Move to opts-common.c.
1372 (read_cmdline_options): Update prototype. Update call to
1373 read_cmdline_option.
1374 (decode_options): Initialize and use handlers structure.
1375 (set_option): Move to opts-common.c.
1376 (enable_warning_as_error): Update prototype. Update call to
1377 handle_option.
1378 * opts.h (struct cl_option_handler_func, struct
1379 cl_option_handlers): New.
1380 (handle_option, enable_warning_as_error): Update prototypes.
1381 (read_cmdline_option): Declare.
1382 * Makefile.in (opts-common.o): Update dependencies.
1383
1384 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1385
1386 * config/arm/arm.c (params.h): Include.
1387 (arm_override_options): Tune gcse-unrestricted-cost.
1388 * config/arm/t-arm (arm.o): Define dependencies.
1389
1390 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1391
1392 PR target/42495
1393 PR middle-end/42574
1394 * basic-block.h (get_dominated_to_depth): Declare.
1395 * dominance.c (get_dominated_to_depth): New function, use
1396 get_all_dominated_blocks as a base.
1397 (get_all_dominated_blocks): Use get_dominated_to_depth.
1398
1399 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
1400 (hoist_exprs): Remove.
1401 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
1402 (compute_code_hoist_vbeinout): Add debug print outs.
1403 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
1404
1405 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
1406 quadratic behavior.
1407 * params.h (MAX_HOIST_DEPTH): New macro.
1408 * doc/invoke.texi (max-hoist-depth): Document.
1409
1410 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1411
1412 PR rtl-optimization/40956
1413 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
1414 constants.
1415
1416 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1417
1418 PR target/42495
1419 PR middle-end/42574
1420 * config/arm/arm.c (legitimize_pic_address): Use
1421 gen_calculate_pic_address pattern to emit calculation of PIC address.
1422 (will_be_in_index_register): New function.
1423 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
1424 (thumb1_legitimate_address_p): Use it provided !strict_p.
1425 * config/arm/arm.md (calculate_pic_address): New expand and split.
1426
1427 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1428
1429 PR target/42495
1430 PR middle-end/42574
1431 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
1432 * config/arm/arm.md (define_split "J", define_split "K"): Make
1433 IRA/reload friendly.
1434
1435 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1436
1437 * gcse.c (insert_insn_end_basic_block): Update signature, remove
1438 unused checks.
1439 (pre_edge_insert, hoist_code): Update.
1440
1441 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1442
1443 PR target/42495
1444 PR middle-end/42574
1445 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
1446
1447 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1448
1449 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
1450
1451 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1452
1453 PR rtl-optimization/40956
1454 PR target/42495
1455 PR middle-end/42574
1456 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
1457 for hoisting.
1458 (hoist_code): Count occurences in current block too.
1459
1460 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1461
1462 * gcse.c (struct expr:max_distance): New field.
1463 (doing_code_hoisting_p): New static variable.
1464 (want_to_gcse_p): Change signature. Allow constrained hoisting of
1465 simple expressions, don't change behavior for PRE. Set max_distance.
1466 (insert_expr_in_table): Set new max_distance field.
1467 (hash_scan_set): Update.
1468 (hoist_expr_reaches_here_p): Stop search after max_distance
1469 instructions.
1470 (find_occr_in_bb): New static function. Use it in ...
1471 (hoist_code): Calculate sizes of basic block before any changes are
1472 done. Pass max_distance to hoist_expr_reaches_here_p.
1473 (one_code_hoisting_pass): Set doing_code_hoisting_p.
1474
1475 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
1476 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
1477 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
1478 macros.
1479 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
1480 Document.
1481
1482 2010-07-27 Jeff Law <law@redhat.com>
1483 Maxim Kuvyrkov <maxim@codesourcery.com>
1484
1485 * gcse.c (compute_transpout, transpout): Remove, move logic
1486 to prune_expressions.
1487 (compute_pre_data): Move pruning of trapping expressions ...
1488 (prune_expressions): ... here. New static function.
1489 (compute_code_hoist_data): Use it.
1490 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
1491
1492 2010-07-27 Xinliang David Li <davidxl@google.com>
1493
1494 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
1495 (rewrite_use_address): Adjust iv update position when needed.
1496
1497 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1498
1499 * dbgcnt.def (hoist_insn): New debug counter.
1500 * gcse.c (hoist_code): Use it.
1501
1502 2010-07-27 Xinliang David Li <davidxl@google.com>
1503
1504 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
1505 (niter_for_single_dom_exit): Passes additional parameter.
1506 (iv_period): Fix comments.
1507 (may_eliminate_iv): Handles multiple exit loops properly.
1508 (free_tree_niter_desc): New function.
1509 (free_loop_data): Frees up loop iteration descriptors.
1510
1511 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1512
1513 PR target/44542
1514 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
1515 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
1516 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
1517 (expand_one_var): Don't consider DECL_ALIGN for variables for
1518 which expand_one_stack_var_at has been already called.
1519
1520 PR testsuite/44701
1521 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
1522 constraints on IA-64.
1523
1524 2010-07-27 Jie Zhang <jie@codesourcery.com>
1525
1526 PR target/44290
1527 Revert:
1528 2010-07-23 Jie Zhang <jie@codesourcery.com>
1529
1530 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1531 false if ! tree_versionable_function_p.
1532
1533 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1534
1535 * dwarf2out.c (add_data_member_location_attribute): Use
1536 add_AT_unsigned instead of add_AT_int if offset is non-negative.
1537
1538 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
1539
1540 * postreload.c (try_replace_in_use): New static function.
1541 (reload_combine_recognize_const_pattern): Use it here. Allow
1542 substituting into a final add insn, and substituting into a memory
1543 reference in an insn that sets the reg.
1544
1545 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1546
1547 * common.opt (o): Add MissingArgError.
1548 * doc/options.texi (MissingArgError): Document.
1549 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
1550 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
1551 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1552 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
1553 * langhooks.h (struct lang_hooks): Remove missing_argument.
1554 * optc-gen.awk: Handle MissingArgError and output new structure
1555 field initializers.
1556 * opts.c (read_cmdline_option): Use missing_argument_error field
1557 instead of missing_argument langhook.
1558 * opts.h (struct cl_option): Add missing_argument_error field.
1559 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
1560
1561 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
1562
1563 PR target/29090
1564 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
1565 Darwin64 ABI, for zero-sized objects.
1566
1567 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
1568
1569 PR target/35491
1570 PR target/29090
1571
1572 Merge from Apple local 4.2.1.
1573 2005-05-11 Stan Shebs <shebs@apple.com>
1574 Fix 64-bit varargs for Darwin (Radar 4028089).
1575 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
1576 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1577 Add argument, add case for 8-byte register half-filled with a float.
1578 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
1579 single-precision floats specially.
1580
1581 2010-07-27 Ira Rosen <irar@il.ibm.com>
1582
1583 PR tree-optimization/44152
1584 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
1585 complex numbers for further check.
1586 (vect_supported_load_permutation_p): Check nodes with
1587 complex numbers.
1588
1589 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1590
1591 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
1592 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
1593 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
1594 (LANG_HOOKS_INITIALIZER): Add new hooks.
1595 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
1596 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
1597 and complain_wrong_lang_p. Update init_options prototype.
1598 * c-objc-common.c (c_initialize_diagnostics): First call
1599 c_common_initialize_diagnostics.
1600 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
1601 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
1602 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
1603 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
1604 (hook_uint_void_0): New.
1605 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
1606 (hook_uint_void_0): New.
1607 * opts-common.c (decode_cmdline_option,
1608 decode_cmdline_options_to_array): Also fill in canonical_option field.
1609 * opts.c (complain_wrong_lang): Use langhook to determine whether
1610 to complain instead of special-casing LTO.
1611 (decode_options): Separate lang_mask determination with
1612 option_lang_mask hook from call of init_options hook.
1613 * opts.h (struct cl_decoded_option): Add canonical_option.
1614
1615 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1616
1617 PR tree-optimization/45083
1618 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
1619
1620 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
1621
1622 * postreload.c (reload_combine_recognize_const_pattern): Move test
1623 for limiting the insn movement to the right scope.
1624
1625 PR rtl-optimization/45051
1626 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
1627 than reg_mentioned_p.
1628
1629 2010-07-26 Richard Henderson <rth@redhat.com>
1630
1631 PR target/44132
1632 * tree-emutls.c: New file.
1633 * Makefile.in (OBJS-common): Add it.
1634 * tree-pass.h (pass_ipa_lower_emutls): Declare.
1635 * passes.c (init_optimization_passes): Add it.
1636
1637 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
1638 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
1639 * expr.c (emutls_var_address): Delete.
1640 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
1641 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
1642 (emutls_finish): Delete.
1643 * toplev.c (compile_file): Don't call it.
1644 * tree.h (emutls_decl): Delete.
1645 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
1646 (emutls_finish, emutls_finalize_control_var): Delete.
1647 (emutls_object_type): Move to tree-emutls.c.
1648 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
1649 default_emutls_var_fields, get_emutls_object_type,
1650 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
1651 default_emutls_var_init): Likewise.
1652 (get_variable_section): Don't special case emutls.
1653 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
1654 default_elf_select_section, default_unique_section,
1655 default_encode_section_info): Likewise.
1656 * varpool.c (decide_is_variable_needed): Likewise.
1657 * gimple-iterator.c (update_call_edge_frequencies): New
1658 (gsi_insert_on_edge_immediate): Use it.
1659 (gsi_insert_seq_on_edge_immediate): Likewise.
1660 (gsi_commit_one_edge_insert): Likewise.
1661
1662 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
1663 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
1664 (x86_64_elf_unique_section): Likewise.
1665
1666 2010-07-26 Jan Hubicka <jh@suse.cz>
1667
1668 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
1669 GTY((skip)).
1670
1671 2010-07-26 Anatoly Sokolov <aesok@post.ru>
1672
1673 * target.def (output_source_filename): New hook.
1674 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
1675 * doc/tm.texi: Regenerate.
1676 * toplev.c (output_file_directive) Remove function.
1677 * toplev.h (output_file_directive) Remove.
1678 * output.h (default_asm_output_source_filename,
1679 output_file_directive): Declare.
1680 * varasm.h (default_asm_output_source_filename,
1681 output_file_directive): New functions.
1682
1683 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1684 * config/mips/mips-protos.h (mips_output_filename): Remove.
1685 * config/mips/mips.c (mips_output_filename): Make Static.
1686 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
1687
1688 2010-07-26 Richard Guenther <rguenther@suse.de>
1689
1690 PR tree-optimization/43784
1691 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
1692 if the destination is used by the call.
1693
1694 2010-07-26 Richard Guenther <rguenther@suse.de>
1695
1696 PR middle-end/45073
1697 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
1698 SSA updating on being in SSA form.
1699
1700 2010-07-26 Richard Guenther <rguenther@suse.de>
1701
1702 PR middle-end/45056
1703 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
1704
1705 2010-07-26 Richard Guenther <rguenther@suse.de>
1706
1707 PR tree-optimization/45071
1708 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
1709 adjust op->opcode.
1710
1711 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
1712
1713 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
1714 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
1715 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
1716 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
1717 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
1718 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
1719 save_r31, return_r31, save_interrupt, return_interrupt,
1720 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
1721 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
1722 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
1723 new ABI requirements.
1724 (save_r6_r9, L_callt_save_r6_r9): Remove.
1725 * config/v850/predicates.md (even_reg_operand, disp23_operand,
1726 const_float_1_operand const_float_0_operand): New Predicates.
1727 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
1728 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
1729 * config/v850/t-v850: Update multilibs for new target variants.
1730 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
1731 * config/v850/t-v850e: Likewise.
1732 * config/v850/v850.c (v850_issue_rate): New.
1733 (v850_strict_argument_naming): New.
1734 (function_arg): Modify to generate a different ABI.
1735 (print_operand): Update case 'z' to support float modes.
1736 (output_move_single): Modify to generate appropriate and better
1737 assembly.
1738 (v850_float_z_comparison_operator, v850_select_cc_mode,
1739 v850_float_nz_comparison_operator, v850_gen_float_compare,
1740 v850_gen_compare): New functions to support comparison of float values.
1741 (ep_memory_offset): Add support for V850E2 targets.
1742 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
1743 (INTERRUPT_REGPARM_NUM): Remove.
1744 (compute_register_save_size): Add extra case to save/restore long call.
1745 (use_prolog_function): New function to support prologue.
1746 (expand_prologue): Add support for V850E2 targets and modified
1747 as per the current ABI requirements.
1748 (expand_epilogue): Likewise.
1749 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
1750 (construct_save_jarl): Likewise.
1751 (construct_dispose_instruction): Update as per the current ABI
1752 requirements.
1753 (construct_prepare_instruction): Likewise.
1754 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
1755 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
1756 (CPP_SPEC): Updated to support v850e2 targets.
1757 (STRICT_ALIGNMENT): Modified.
1758 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
1759 (FIXED_REGISTERS): Likewise.
1760 (CALL_USED_REGISTERS): Likewise.
1761 (CONDITIONAL_REGISTER_USAGE): Updated.
1762 (HARD_REGNO_MODE_OK): Updated.
1763 (reg_class): Updated to add even registers.
1764 (REG_CLASS_NAMES): Likewise.
1765 (REG_CLASS_CONTENTS): Likewise.
1766 (REGNO_REG_CLASS): Updated for CC registers.
1767 (REG_CLASS_FROM_LETTER): Added support for even registers.
1768 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
1769 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
1770 ARG_POINTER_REGNUM): Updated.
1771 (FUNCTION_ARG_ADVANCE): Define.
1772 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
1773 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
1774 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
1775 (GO_IF_LEGITIMATE_ADDRESS): Updated.
1776 (SELECT_CC_MODE): Define.
1777 (REGISTER_NAMES): Updated to add psw and fcc registers.
1778 (ADDITIONAL_REGISTER_NAMES): Updated.
1779 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
1780 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
1781 * config/v850/v850.md (define_constants): Define new constants.
1782 (type): Update store,bit1,macc,div,fpu and single attributes.
1783 (cpu): New attribute.
1784 (cc): Add set_z attribute.
1785 (unsign23byte_load, sign23byte_load, unsign23hword_load,
1786 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
1787 23word_store): New instructions for 23-bit displacement load and store.
1788 (movqi_internal, movhi_internal): Update the attributes.
1789 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
1790 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
1791 the attributes.
1792 (v850_tst1): Modified using CC_REGNUM.
1793 (tstsi): Remove.
1794 (cmpsi): Modified as define_expand from define_insn.
1795 (cmpsi_insn, cmpsf, cmpdf): New instructions.
1796 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
1797 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
1798 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
1799 one_cmplsi2): Clobber the CC_REGNUM register.
1800 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
1801 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
1802 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
1803 (setf_insn, set_z_insn, set_nz_insn): New instructions for
1804 v850e2v3 target.
1805 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
1806 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
1807 targets.
1808 (sasf_1, sasf_2): Remove.
1809 (sasf): New instruction.
1810 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
1811 targets. CC_REGNUM register is clobbered and attributes are
1812 updated.
1813 (branch_z_normal, branch_z_invert, branch_nz_normal,
1814 branch_nz_invert): New branch related instructions.
1815 (jump): Updated the attributes.
1816 (switch): Update to support new targets. CC_REGNUM register is
1817 clobbered and attributes are updated.
1818 (call_internal_short, call_internal_long, call_value_internal_short,
1819 call_value_internal_long): Updated the attributes.
1820 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
1821 clobbered and attributes are updated.
1822 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
1823 Update to support new targets. CC_REGNUM register is clobbered.
1824 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
1825 instructions.
1826 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
1827 are updated.
1828 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
1829 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
1830 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
1831 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
1832 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
1833 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
1834 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
1835 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
1836 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
1837 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
1838 point instructions defined for V850e2v3 target.
1839 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
1840 Add support for V850E2 targets and CC_REGNUM register is clobbered.
1841 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
1842 support for new targets.
1843 * config/v850/v850-modes.def: New file.
1844 * config/v850/v850.opt(mstrict-align): Remove.
1845 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
1846 mv850e2v3): New command line options for V850.
1847 * config.gcc: Update the newly added files.
1848 * doc/invoke.texi: Update the newly added command line options for
1849 V850 target.
1850
1851 2010-07-26 Richard Guenther <rguenther@suse.de>
1852
1853 PR tree-optimization/45052
1854 * ipa-pure-const.c (check_stmt): Check volatileness.
1855
1856 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
1857
1858 PR target/44707
1859 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
1860 * config/sparc/sparc.c: Include reload.h.
1861 (legitimize_tls_address): Rename into...
1862 (sparc_legitimize_tls_address): ...this.
1863 (legitimize_pic_address): Rename into...
1864 (sparc_legitimize_pic_address): ...this.
1865 (sparc_expand_move): Adjust to above renaming.
1866 (sparc_tls_referenced_p): Likewise.
1867 (sparc_legitimize_tls_address): Likewise.
1868 (sparc_legitimize_pic_address): Likewise.
1869 (sparc_legitimize_address): Likewise.
1870 (sparc_output_mi_thunk): Likewise.
1871 (sparc_legitimize_reload_address): New global function. Recognize
1872 (lo_sum (high ...) ...) patterns generated by earlier passes.
1873 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
1874
1875 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
1876
1877 PR target/44484
1878 * config/sparc/predicates.md (memory_reg_operand): Delete.
1879 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
1880 (*sync_compare_and_swap): Encode the address form in the pattern.
1881 (*sync_compare_and_swapdi_v8plus): Likewise.
1882
1883 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
1884
1885 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
1886 Streamline paragraph on compatibility with the system compiler.
1887
1888 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
1889
1890 PR middle-end/45035
1891 * alias.c (true_dependence_1): Fix thinko in merge of old
1892 true_dependence and canon_true_dependence.
1893
1894 2010-07-23 Jan Hubicka <jh@suse.cz>
1895
1896 * lto-streamer-out.c (write_symbol): Fix visibilities of external
1897 references.
1898
1899 2010-07-23 Le-Chun Wu <lcwu@google.com>
1900
1901 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
1902 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
1903 and an unnecessary assignment.
1904 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
1905 self-assign warning.
1906 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
1907 unnecessary self-init.
1908
1909 2010-07-23 Richard Guenther <rguenther@suse.de>
1910
1911 PR lto/43071
1912 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
1913 for -flto and -fwhopr.
1914
1915 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
1916
1917 PR target/41943
1918 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
1919 (stmp-int-hdrs): Prefix/postfix headers by include_next.
1920 * config.gcc (user_headers_inc_next_pre): New.
1921 (user_headers_inc_next_post): Likewise.
1922 (*-w64-mingw*): Use for float.h post-fixing, and for
1923 stddef.h/stdarg.h pre-fixing by include_next.
1924 * configure.ac (user_headers_inc_next_post): New.
1925 (user_headers_inc_next_pre): New.
1926 * configure: Regenerated.
1927
1928 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1929
1930 * configure.ac: Don't disable TLS on Solaris 8/9 by default
1931 Set tga_func for Solaris 2/x86 resp. SPARC.
1932 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
1933 (LIB_THREAD_LDFLAGS_SPEC): Define.
1934 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
1935 * configure: Regenerate.
1936 * config.in: Regenerate.
1937 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
1938 -pthread, -threads, LIB_TLS_SPEC with -pthread.
1939 * doc/install.texi (Specific, *-*-solaris2*): Document use of
1940 alternate thread libraries on Solaris 8.
1941 Document TLS patch requirements.
1942 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
1943 Document tls.
1944
1945 PR target/18788
1946 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
1947 -shared.
1948
1949 2010-07-23 Jakub Jelinek <jakub@redhat.com>
1950
1951 * tree.h (struct tree_base): Add nameless_flag bitfield.
1952 (TYPE_NAMELESS, DECL_NAMELESS): Define.
1953 * omp-low.c (create_omp_child_function, scan_omp_parallel,
1954 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
1955 DECL_ARTIFICIAL where needed.
1956 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
1957 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
1958 has DECL_NAMELESS set.
1959
1960 2010-07-23 Martin Jambor <mjambor@suse.cz>
1961
1962 PR tree-optimization/44915
1963 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
1964 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
1965 (analyze_function): Likewise.
1966
1967 2010-07-23 Martin Jambor <mjambor@suse.cz>
1968
1969 PR tree-optimization/44914
1970 * tree-sra.c (sra_modify_function_body): Return true if CFG was
1971 changed, add purging dead eh edges.
1972 (ipa_sra_modify_function_body): Return true if CFG was changed,
1973 simplify purging dead eh edges.
1974 (modify_function): Return true if CFG was changed.
1975 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
1976 was changed.
1977 (ipa_early_sra): Likewise.
1978
1979 2010-07-23 Jie Zhang <jie@codesourcery.com>
1980
1981 PR target/44290
1982 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
1983 if "naked".
1984 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1985 false if ! tree_versionable_function_p.
1986
1987 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
1988
1989 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
1990 * ipa-pure-const.c (special_builtlin_state): Remove
1991 BUILT_IN_ARGS_INFO case.
1992 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1993 * builtins.c (expand_builtin): Likewise.
1994 (expand_builtin_args_info): Remove.
1995 * doc/tm.texi (__builtin_args_info): Remove.
1996 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
1997 * doc/tm.text.in: Likewise.
1998
1999 2010-07-23 Richard Guenther <rguenther@suse.de>
2000
2001 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
2002 (lto_symtab_merge_decls_2): Likewise.
2003 * tree-ssa.c (useless_type_conversion_p): Likewise.
2004 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2005 * gimple.c (gtc_visited2, gtc_ob2): Remove.
2006 (struct type_pair_d): Make same_p an array indexed by mode.
2007 Update comment.
2008 (lookup_type_pair): Update initialization.
2009 (struct sccs): Adjust same_p type.
2010 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
2011 Adjust.
2012 (print_gimple_types_stats): Likewise.
2013 * gimple.h (enum gtc_mode): New.
2014 (gimple_types_compatible_p): Adjust prototype.
2015
2016 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
2017
2018 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
2019 again after processing insn.
2020
2021 2010-07-23 Jie Zhang <jie@codesourcery.com>
2022
2023 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
2024 proper words when !tree_versionable_function_p.
2025
2026 2010-07-23 Richard Guenther <rguenther@suse.de>
2027
2028 PR tree-optimization/45037
2029 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
2030
2031 2010-07-23 Jie Zhang <jie@codesourcery.com>
2032
2033 * doc/extend.texi: Remove IP2K from the description of naked attribute.
2034 Add MCORE instead.
2035
2036 2010-07-10 Andi Kleen <ak@linux.intel.com>
2037
2038 PR lto/44992
2039 * lto-opts.c (lto_write_options): Add NULL file_data argument to
2040 lto_get_section_name.
2041 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2042 * lto-streamer-out.c (produce_asm): Likewise.
2043 (copy_function): Likewise.
2044 (produce_symtab): Likewise.
2045 (produce_asm_for_decls): Likewise.
2046 * lto-streamer.c (lto_get_section_name): Add file_data argument.
2047 Rewrite to add random postfix to LTO sections.
2048 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
2049 (lto_get_section_name): Add file_data argument to prototype.
2050
2051 2010-07-10 Andi Kleen <ak@linux.intel.com>
2052
2053 * lto-section-in.c (lto_section_name): Synchronize names
2054 with lto_get_section_name.
2055
2056 2010-07-10 Andi Kleen <ak@linux.intel.com>
2057
2058 * lto-opts.c (lto_read_file_options): Check for missing section.
2059
2060 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
2061
2062 * ira.c (check_allocation): Correctly handle the case where an allocno
2063 with two objects was allocated to a single reg.
2064
2065 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
2066
2067 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
2068 (is_widening_mult_p): Likewise.
2069 (convert_to_widen): Use them.
2070 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
2071 well as integer ones.
2072
2073 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
2074
2075 * alias.c (true_dependence_1): New function, merged version of
2076 true_dependence and canon_true_dependence.
2077 (true_dependence): Simplify.
2078 (canon_true_dependence): Simplify.
2079
2080 2010-07-22 Richard Henderson <rth@redhat.com>
2081
2082 PR target/45027
2083 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
2084 of V4SFmode for the SSE saves; increase stack alignment if needed.
2085 (ix86_gimplify_va_arg): Don't increase stack alignment here.
2086
2087 2010-07-22 Jakub Jelinek <jakub@redhat.com>
2088
2089 PR bootstrap/45028
2090 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
2091 call cprop_find_used_regs again via note_uses.
2092
2093 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
2094
2095 * alias.c (get_alias_set): Fix formatting issues.
2096
2097 2010-07-22 Steve Ellcey <sje@cup.hp.com>
2098
2099 PR middle-end/44878
2100 * stmt.c (expand_value_return): Call promote_function_mode with
2101 a for_return argument of 2 when returning by reference.
2102
2103 2010-07-22 Dodji Seketeli <dodji@redhat.com>
2104
2105 PR debug/45024
2106 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
2107 unit DIE if we can find the scope DIE.
2108
2109 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
2110
2111 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
2112 changed. Initialize OBJECT_SUBWORD.
2113 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
2114 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
2115 all callers changed.
2116 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
2117 (finish_allocno): Likewise.
2118 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
2119 (remove_low_level_allocnos): Likewise.
2120 (update_bad_spill_attribute): Likewise.
2121 (setup_min_max_allocno_live_range_point): Likewise.
2122 (sort_conflict_id_map): Likewise.
2123 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
2124 (ior_hard_reg_conflicts): New function.
2125 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
2126 (compress_conflict_vecs): Iterate over objects, not allocnos.
2127 (ira_add_live_range_to_object): New function.
2128 (object_range_compare_func): Renamed from allocno_range_compare_func.
2129 All callers changed.
2130 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
2131 subobjects, widen the min/max range of the lowest-order object to
2132 potentially include all other such low-order objects.
2133 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
2134 (check_allocation): Likewise. Use more fine-grained tests for register
2135 conflicts.
2136 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
2137 allocno subobjects.
2138 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
2139 choices about which bits to set in each set. Don't use
2140 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
2141 using the multiple sets we computed.
2142 (push_allocno_to_stack): Iterate over allocno subobjects.
2143 (all_conflicting_hard_regs_coalesced): New static function.
2144 (setup_allocno_available_regs_num): Use it.
2145 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
2146 subobjects.
2147 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
2148 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2149 by ALLOCNO_NUM_OBJECTS.
2150 (calculate_spill_cost): Likewise.
2151 (color_pass): Express if statement in a more normal way.
2152 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
2153 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
2154 (setup_slot_coalesced_allocno_live_ranges): Likewise.
2155 (allocno_reload_assign): Likewise.
2156 (ira_reassign_pseudos): Likewise.
2157 (fast_allocation): Likewise.
2158 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2159 (print_allocno_conflicts): Likewise.
2160 (ira_build_conflicts): Likewise.
2161 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
2162 callers changed. Test subword 0 of each allocno for conflicts.
2163 (build_object_conflicts): Renamed from build_allocno_conflicts. All
2164 callers changed. Iterate over allocno subobjects.
2165 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
2166 * ira-int.h (struct ira_allocno): New member: num_objects.
2167 Rename object to objects and change it into an array.
2168 (ALLOCNO_OBJECT): Add new argument N.
2169 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
2170 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
2171 (ior_hard_reg_conflicts): Declare.
2172 (ira_add_live_range_to_object): Declare.
2173 (ira_allocno_object_iterator): New.
2174 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
2175 (FOR_EACH_ALLOCNO_OBJECT): New macro.
2176 * ira-lives.c (objects_live): Renamed from allocnos_live; all
2177 uses changed.
2178 (allocnos_processed): New sparseset.
2179 (make_object_born): Renamed from make_allocno_born; take an
2180 ira_object_t argument. All callers changed.
2181 (make_object_dead): Renamed from make_allocno_dead; take an
2182 ira_object_t argument. All callers changed.
2183 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
2184 All callers changed.
2185 (mark_pseudo_regno_live): Iterate over allocno subobjects.
2186 (mark_pseudo_regno_dead): Likewise.
2187 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
2188 functions.
2189 (mark_ref_live): Detect subword accesses and call
2190 mark_pseudo_regno_subword_live as appropriate.
2191 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
2192 (process_bb_nodes_live): Deal with object-related updates first; set
2193 and test bits in allocnos_processed to avoid computing allocno
2194 statistics more than once.
2195 (create_start_finish_chains): Iterate over objects, not allocnos.
2196 (print_object_live_ranges): New function.
2197 (print_allocno_live_ranges): Use it.
2198 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
2199 and objects_live.
2200
2201 2010-07-22 Richard Guenther <rguenther@suse.de>
2202
2203 PR lto/42451
2204 * gimple.c (gtc_next_dfs_num): New global.
2205 (struct sccs): Make value a union, add integer same_p member.
2206 (gtc_visit): New function.
2207 (gimple_types_compatible_p_1): New function, split out from ...
2208 (gimple_types_compatible_p): ... here. Start a DFS walk here.
2209 (iterative_hash_gimple_type): Adjust for sccs change.
2210
2211 2010-07-22 Martin Jambor <mjambor@suse.cz>
2212
2213 PR tree-optimization/44891
2214 * tree-sra.c: Include gimple-pretty-print.h.
2215 (replace_uses_with_default_def_ssa_name): Renamed to
2216 get_repl_default_def_ssa_name, return the new SSA name instead of
2217 replacing the old one.
2218 (sra_modify_assign): Dump a message when removing a load, if the LHS
2219 is an SSA_NAME, do not do any propagation, just set the RHS to a
2220 default definition SSA NAME, type convert if necessary.
2221 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
2222
2223 2010-07-22 Richard Guenther <rguenther@suse.de>
2224
2225 PR tree-optimization/45017
2226 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
2227 TYPE_PRECISION of integral types in addition to size.
2228
2229 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2230
2231 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
2232 when no C library is specified.
2233
2234 2010-07-22 Martin Jambor <mjambor@suse.cz>
2235
2236 * ipa-prop.h (struct ipa_node_params): Updated comment.
2237 (struct ipa_edge_args): Likewise.
2238 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
2239
2240 2010-07-22 Martin Jambor <mjambor@suse.cz>
2241
2242 * cgraphunit.c (verify_edge_count_and_frequency): New function.
2243 (verify_cgraph_node): Verify frequencies of indirect edges.
2244 * tree-inline.c (tree_function_versioning): Update frequencies of
2245 indirect edges.
2246
2247 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2248
2249 PR target/43698
2250 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
2251 Set *arm_rev to be predicable.
2252
2253 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
2254
2255 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
2256 (LINK_COMMAND_SPEC_A): New.
2257 (DSYMUTIL): New.
2258 (DSYMUTIL_SPEC): New.
2259 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
2260 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
2261
2262 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
2263
2264 * calls.c (load_register_parameters): Move check for zero
2265 sized items so that only the call to
2266 mem_overlaps_already_clobbered_arg_p () is protected.
2267
2268 2010-07-22 Jan Hubicka <jh@suse.cz>
2269
2270 * ipa-pure-const.c (varying_state): Break out from ...
2271 (get_function_state): ... here; always return varying_state
2272 when state would be NULL otherwise.
2273 (remove_node_data): Do not free varying state.
2274
2275 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
2276
2277 PR bootstrap/44970
2278 PR middle-end/45009
2279 * postreload.c: Include "target.h".
2280 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
2281 into account.
2282 (fixup_debug_insns): Don't copy the rtx.
2283 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
2284 Don't copy when replacing. Call fixup_debug_insns in the case where
2285 we merged one add with another.
2286 (reload_combine_recognize_pattern): Fail if there aren't any uses.
2287 Try harder to determine whether we're picking a valid index register.
2288 Don't set store_ruid for an insn we're going to scan in the
2289 next iteration.
2290 (reload_combine): Remove unused code.
2291 (reload_combine_note_use): When updating use information for
2292 an old insn, ignore a use that occurs after store_ruid.
2293 * Makefile.in (postreload.o): Update dependencies.
2294
2295 * function.c (record_hard_reg_sets): Restrict the previous change
2296 to cases where the incoming nominal mode is the same as the
2297 incoming promoted mode and everything happens in MODE_INT.
2298
2299 2010-07-21 Jakub Jelinek <jakub@redhat.com>
2300
2301 PR debug/45015
2302 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
2303 ASM_OPERANDS_OUTPUT_IDX.
2304 (adjust_insn): For inline asm with multiple sets ensure first
2305 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
2306 the insn.
2307
2308 2010-07-21 Richard Henderson <rth@redhat.com>
2309
2310 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
2311 comparison for avoiding xmm register saves. Emit the xmm register
2312 saves explicitly.
2313 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
2314 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
2315 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
2316 Remove patterns and the associated splitters.
2317
2318 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
2319
2320 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
2321 and imagine parts of a complex, so that they can have the same
2322 base and fall into the same group.
2323
2324 2010-07-21 Richard Guenther <rguenther@suse.de>
2325
2326 PR lto/45018
2327 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
2328 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
2329 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
2330
2331 2010-07-21 Martin Jambor <mjambor@suse.cz>
2332
2333 PR tree-optimization/44900
2334 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
2335 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
2336
2337 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
2338
2339 PR middle-end/44738
2340 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
2341
2342 2010-07-21 Richard Guenther <rguenther@suse.de>
2343
2344 PR middle-end/45013
2345 * tree-ssa.c (useless_type_conversion_p): Dispatch to
2346 gimple_types_compatible_p only when in lto.
2347 * gimple.c (gimple_types_compatible_p): Use canonical types
2348 to speed up comparison.
2349
2350 2010-07-21 Richard Guenther <rguenther@suse.de>
2351
2352 * tree-flow.h (referenced_var): Move define ...
2353 * tree-flow-inline.h (referenced_var): ... here as an inline
2354 function. Assert here ...
2355 * tree-dfa.c (referenced_var_lookup): ... instead of here.
2356 * tree-ssa.c (maybe_optimize_var): Check if the variable
2357 is in referenced vars.
2358 (execute_update_addresses_taken): Remove old broken check.
2359 * gimple-pretty-print.c (pp_points_to_solution): Use
2360 referenced_var_lookup.
2361 * tree-into-ssa.c (dump_decl_set): Likewise.
2362
2363 2010-07-21 Jakub Jelinek <jakub@redhat.com>
2364
2365 PR debug/45003
2366 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
2367 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
2368 ZERO_EXTEND here.
2369
2370 2010-07-20 Richard Henderson <rth@redhat.com>
2371
2372 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
2373
2374 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
2375
2376 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
2377 computing the sum of the stack pointer and a large constant.
2378 * config/arm/constraints.md (M): Remove superfluous parentheses.
2379 (Pc): New constraint.
2380
2381 2010-07-20 Jakub Jelinek <jakub@redhat.com>
2382
2383 PR debug/45006
2384 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
2385 operand's type if exp is tcc_unary class tree.
2386
2387 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
2388
2389 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
2390 Reverse sense of if_then_else condition.
2391
2392 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
2393
2394 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
2395 * config/rs6000/rs6000.c (rs6000_override_options): Set
2396 rs6000_block_move_inline_limit appropriately.
2397 (expand_block_move): Use rs6000_block_move_inline_limit.
2398 * doc/invoke.texi (mblock-move-inline-limit): Document.
2399
2400 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
2401
2402 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
2403 FROM and TO. All callers changed. Don't look for tracked uses,
2404 just scan the RTL for DEBUG_INSNs and substitute.
2405 (reload_combine_recognize_pattern): Call fixup_debug_insns.
2406 (reload_combine): Ignore DEBUG_INSNs.
2407
2408 2010-07-20 Jakub Jelinek <jakub@redhat.com>
2409
2410 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
2411 depth to 8 from 5.
2412
2413 PR debug/45003
2414 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
2415 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
2416 instead of the result's type.
2417
2418 2010-07-20 Richard Guenther <rguenther@suse.de>
2419
2420 PR tree-optimization/44977
2421 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
2422 SSA form.
2423
2424 2010-07-20 Richard Guenther <rguenther@suse.de>
2425
2426 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
2427 (lto_symtab_merge_decls_2): Likewise.
2428 * gimple.h (gimple_types_compatible_p): Declare.
2429 * gimple.c (gimple_queue_type_fixup): Remove.
2430 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
2431 (gimple_compatible_complete_and_incomplete_type_p): New function.
2432 (gimple_types_compatible_p): Adjust.
2433 (gimple_register_type): Remove type fixup code.
2434 (print_gimple_types_stats): Adjust.
2435 (free_gimple_type_tables): Likewise.
2436 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
2437 * tree-ssa.c (useless_type_conversion_p): Likewise.
2438
2439 2010-07-20 Richard Guenther <rguenther@suse.de>
2440
2441 PR middle-end/44971
2442 PR middle-end/44988
2443 * tree-ssa.c (maybe_optimize_var): New function split out from ...
2444 (execute_update_addresses_taken): ... here.
2445 (non_rewritable_mem_ref_base): Likewise.
2446 (execute_update_addresses_taken): Do not iterate over all referenced
2447 vars but just all local decls and parms.
2448 Properly check call and asm arguments and rewrite call arguments.
2449
2450 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
2451
2452 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
2453 to top level.
2454 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
2455 definitions ...
2456 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
2457 New macro.
2458 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
2459
2460 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2461
2462 * gengtype.c (start_root_entry): New function, split out from
2463 write_root. Check whether V is null and raise an error if so.
2464 (write_field_root): Check for V being null. Don't raise an error here;
2465 set V to null instead.
2466 (write_root): Update comment above function. Use start_root_entry.
2467
2468 2010-07-19 Xinliang David Li <davidxl@google.com>
2469
2470 PR testsuite/44932
2471 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
2472 def edges.
2473 (find_uninit_use): Add dump.
2474 (is_use_properly_guarded): Ditto.
2475 (warn_uninitialized_phi): Ditto.
2476 (execute_late_warn_uninitialized): Ditto.
2477
2478 2010-07-19 Richard Guenther <rguenther@suse.de>
2479
2480 PR middle-end/44941
2481 * expr.c (emit_block_move_hints): Move zero size check first.
2482 Move asserts to more useful places.
2483 * calls.c (load_register_parameters): Check for zero size.
2484
2485 2010-07-19 Richard Henderson <rth@redhat.com>
2486
2487 * tree-optimize.c (execute_all_early_local_passes): New. Change
2488 cgraph_state here ...
2489 (execute_early_local_optimizations): ... not here. Remove.
2490 (pass_early_local_passes, pass_all_early_optimizations): Update.
2491
2492 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
2493
2494 * postreload.c (reload_combine_closest_single_use): Ignore the
2495 number of uses for DEBUG_INSNs.
2496 (fixup_debug_insns): New static function.
2497 (reload_combine_recognize_const_pattern): Use it. Don't let the
2498 main loop be affected by DEBUG_INSNs.
2499 Really disallow moving adds past a jump insn.
2500 (reload_combine_recognize_pattern): Don't update use_ruid here.
2501 (reload_combine_note_use): Do it here.
2502 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
2503
2504 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
2505
2506 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
2507 of a loop.
2508 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
2509
2510 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
2511
2512 * config/i386/darwin.h: Define darwin_emit_branch_islands.
2513 (TARGET_MACHO_BRANCH_ISLANDS): New.
2514 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
2515 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
2516 default value.
2517 * config/i386/i386.c (output_pic_addr_const): Do not emit
2518 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
2519 (x86_output_mi_thunk): Adjust symbol creation.
2520 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
2521 Remove out of date comment.
2522 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
2523 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
2524 (DARWIN_GENERATE_ISLANDS): Ditto.
2525 (output_call): Do not emit branch islands unless
2526 darwin_emit_branch_islands is set.
2527 * config/darwin.c: Declare darwin_emit_branch_islands.
2528 (machopic_indirect_data_reference): Do not emit unless
2529 darwin_emit_branch_islands is set.
2530 (darwin_override_options): Set darwin_emit_branch_islands
2531 where it is needed.
2532 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
2533
2534 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2535
2536 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2537 sse_runtime, sse2_runtime.
2538
2539 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
2540
2541 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
2542 low half of a single-register SCmode return value before ORing
2543 it with the high half.
2544 * config/mips/mips16.S (MERGE_GPRf): Likewise.
2545
2546 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2547
2548 PR target/44805
2549 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
2550 on all targets.
2551
2552 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
2553
2554 PR target/42235
2555 * postreload.c (reload_cse_move2add): Return bool, true if anything.
2556 changed. All callers changed.
2557 (move2add_use_add2_insn): Likewise.
2558 (move2add_use_add3_insn): Likewise.
2559 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
2560 reload_combine.
2561 (RELOAD_COMBINE_MAX_USES): Bump to 16.
2562 (last_jump_ruid): New static variable.
2563 (struct reg_use): New members CONTAINING_MEM and RUID.
2564 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
2565 (reload_combine_split_one_ruid, reload_combine_split_ruids,
2566 reload_combine_purge_insn_uses, reload_combine_closest_single_use
2567 reload_combine_purge_reg_uses_after_ruid,
2568 reload_combine_recognize_const_pattern): New static functions.
2569 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
2570 is true for our reg and that we have available index regs.
2571 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
2572 callers changed. Use them to initialize fields in struct reg_use.
2573 (reload_combine): Initialize last_jump_ruid. Be careful when to
2574 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
2575 Call reload_combine_recognize_const_pattern.
2576 (reload_combine_note_store): Update REAL_STORE_RUID field.
2577
2578 2010-07-16 Jason Merrill <jason@redhat.com>
2579
2580 * Makefile.in (opts-common.o): Depend on options.h.
2581
2582 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
2583
2584 * tree.c (build_common_builtin_nodes): Use build_function_type_list
2585 instead of build_function_type.
2586 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
2587 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
2588
2589 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
2590
2591 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
2592 do all the work.
2593 (rs6000_emit_int_cmove): Use function pointers for insn generation.
2594 Don't force values into registers unnecessarily.
2595 (output_isel): Assert that we're not given conditions we can't handle.
2596 Delete corresponding code.
2597 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
2598 scc_comparison_operator constraint. Permit 0 for the consequent
2599 operand. Permit any GPR for the alternative operand.
2600 (isel_unsigned_<mode>): Likewise.
2601
2602 2010-07-16 Jakub Jelinek <jakub@redhat.com>
2603
2604 PR target/44942
2605 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
2606 argument to const_tree.
2607 * config/i386/i386.c (function_arg_advance): If padding needs to be
2608 inserted before argument, increment cum->words by number of padding
2609 words as well.
2610 (contains_aligned_value_p): Change argument to const_tree.
2611 (ix86_function_arg_boundary): Change second argument to const_tree.
2612
2613 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
2614
2615 PR target/42235
2616 * function.c (record_hard_reg_sets): New static function.
2617 (assign_parm_setup_reg): If an optab for extending exists and the
2618 generated code clobbbers no hard regs, emit the insn directly and
2619 create a REG_EQUIV note.
2620
2621 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2622
2623 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
2624 TREE_CHAIN.
2625 * c-typeck.c (push_init_level): Likewise.
2626 (process_init_element): Likewise.
2627
2628 2010-07-15 Anatoly Sokolov <aesok@post.ru>
2629
2630 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
2631 (integer_three_node): Add.
2632 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
2633 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
2634 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
2635 of call build_int_cst.
2636 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
2637 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
2638 (find_interesting_uses_address): Ditto.
2639 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
2640 * tree-eh.c (lower_eh_constructs_2): Ditto.
2641 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
2642 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
2643 * expmed.c (expand_divmod): Ditto.
2644 * tree-mudflap.c (mx_register_decls): Ditto.
2645 * varasm.c (array_size_for_constructor): Ditto.
2646 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
2647 * c-parser.c (c_parser_postfix_expression): Ditto.
2648
2649 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
2650
2651 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
2652 New static variables.
2653 (reload_combine_recognize_pattern): New static function, broken out
2654 of reload_combine.
2655 (reload_combine): Use it. Only initialize first_index_reg and
2656 last_index_reg once.
2657
2658 2010-07-15 Richard Henderson <rth@redhat.com>
2659
2660 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
2661 when done.
2662
2663 2010-07-15 Jan Hubicka <jh@suse.cz>
2664
2665 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
2666 comdats for broken gold.
2667 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
2668
2669 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2670
2671 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
2672
2673 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2674
2675 * tree.h (DECL_CHAIN): Define.
2676 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2677 * c-decl.c: Likewise.
2678 * c-parser.c: Likewise.
2679 * c-typeck.c: Likewise.
2680 * cfgexpand.c: Likewise.
2681 * cgraph.c: Likewise.
2682 * cgraphunit.c: Likewise.
2683 * combine.c: Likewise.
2684 * config/alpha/alpha.c: Likewise.
2685 * config/arm/arm.c: Likewise.
2686 * config/frv/frv.c: Likewise.
2687 * config/i386/i386.c: Likewise.
2688 * config/i386/winnt-cxx.c: Likewise.
2689 * config/ia64/ia64.c: Likewise.
2690 * config/iq2000/iq2000.c: Likewise.
2691 * config/mep/mep.c: Likewise.
2692 * config/mips/mips.c: Likewise.
2693 * config/pa/som.h: Likewise.
2694 * config/rs6000/rs6000.c: Likewise.
2695 * config/s390/s390.c: Likewise.
2696 * config/sh/sh.c: Likewise.
2697 * config/sh/symbian-cxx.c: Likewise.
2698 * config/sparc/sparc.c: Likewise.
2699 * config/spu/spu.c: Likewise.
2700 * config/stormy16/stormy16.c: Likewise.
2701 * config/vxworks.c: Likewise.
2702 * config/xtensa/xtensa.c: Likewise.
2703 * coverage.c: Likewise.
2704 * dbxout.c: Likewise.
2705 * dwarf2out.c: Likewise.
2706 * emit-rtl.c: Likewise.
2707 * expr.c: Likewise.
2708 * function.c: Likewise.
2709 * gimple-low.c: Likewise.
2710 * gimple-pretty-print.c: Likewise.
2711 * gimplify.c: Likewise.
2712 * integrate.c: Likewise.
2713 * ipa-inline.c: Likewise.
2714 * ipa-prop.c: Likewise.
2715 * ipa-split.c: Likewise.
2716 * ipa-struct-reorg.c: Likewise.
2717 * ipa-type-escape.c: Likewise.
2718 * langhooks.c: Likewise.
2719 * lto-cgraph.c: Likewise.
2720 * omp-low.c: Likewise.
2721 * stor-layout.c: Likewise.
2722 * tree-cfg.c: Likewise.
2723 * tree-complex.c: Likewise.
2724 * tree-dfa.c: Likewise.
2725 * tree-dump.c: Likewise.
2726 * tree-inline.c: Likewise.
2727 * tree-mudflap.c: Likewise.
2728 * tree-nested.c: Likewise.
2729 * tree-object-size.c: Likewise.
2730 * tree-pretty-print.c: Likewise.
2731 * tree-sra.c: Likewise.
2732 * tree-ssa-live.c: Likewise.
2733 * tree-ssa-loop-niter.c: Likewise.
2734 * tree-ssa-math-opts.c: Likewise.
2735 * tree-ssa-reassoc.c: Likewise.
2736 * tree-ssa-sccvn.c: Likewise.
2737 * tree-ssa-structalias.c: Likewise.
2738 * tree-tailcall.c: Likewise.
2739 * tree-vrp.c: Likewise.
2740 * tree.c: Likewise.
2741 * var-tracking.c: Likewise.
2742 * varasm.c: Likewise.
2743
2744 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2745
2746 PR target/44877
2747 * config/spu/spu.c (spu_expand_builtin_1): Allow references
2748 (as well as pointers) as argument to mask_for_load builtins.
2749
2750 2010-07-15 Richard Guenther <rguenther@suse.de>
2751
2752 PR tree-optimization/44946
2753 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
2754 with accessing only padding properly.
2755
2756 2010-07-15 Jan Hubicka <jh@suse.cz>
2757
2758 * ipa.c (function_and_variable_visibility): Variables marked as used
2759 should not be localized.
2760
2761 2010-07-15 Jan Hubicka <jh@suse.cz>
2762
2763 * cgraph.c: Include lto-streamer.h
2764 (change_decl_assembler_name): Work when assembler name hash is at place.
2765 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
2766 be sure to rename it to avoid name clash.
2767 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
2768 Localize hidden symbols only when locally defined.
2769
2770 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
2771
2772 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
2773
2774 2010-07-15 Magnus Granberg <zorry@gentoo.org>
2775 Kevin F. Quinn <kevquinn@gentoo.org>
2776
2777 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
2778 * common.opt: Add -Wtrampolines.
2779 * doc/invoke.texi: Add -Wtrampolines.
2780
2781 2010-07-15 Jie Zhang <jie@codesourcery.com>
2782
2783 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
2784 cortex_a8_issue_ls.
2785
2786 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
2787
2788 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
2789 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2790
2791 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2792
2793 * config/spu/spu.c (reg_names): Remove prototype.
2794 (call_used_regs): Likewise.
2795
2796 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
2797
2798 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
2799 "unused" with attribute "used".
2800 (__JCR_END__): Likewise.
2801 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
2802 "used" attribute.
2803 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
2804
2805 2010-07-14 Richard Guenther <rguenther@suse.de>
2806
2807 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
2808 (maybe_fixup_decls): Likewise.
2809 (input_gimple_stmt): Do not fixup anything.
2810 * lto-streamer-out.c (output_gimple_stmt): Make sure all
2811 non-automatic variable uses are wrapped inside a MEM_REF.
2812
2813 2010-07-14 Richard Henderson <rth@redhat.com>
2814
2815 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
2816 for functions.
2817 * varasm.c (assemble_variable): Remove early exit for functions;
2818 assert that we're given a variable.
2819
2820 2010-07-14 Jie Zhang <jie@codesourcery.com>
2821
2822 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
2823 cortex_a8_default when neon_type is not none.
2824
2825 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
2826
2827 * lower-subreg.c (subreg_context): New static bitmap.
2828 (decompose_multiword_subregs): Allocate and free it.
2829 (find_decomposable_subregs): Set a bit in it for a register that
2830 occurs in a subreg that changes mode but not size.
2831 (can_decompose_p): Test it instead of non_decomposable_context.
2832
2833 2010-07-14 Richard Guenther <rguenther@suse.de>
2834
2835 PR tree-optimization/44824
2836 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
2837 is_gimple_mem_ref_addr.
2838 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
2839 non-decl_address_invariant_p addresses.
2840
2841 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
2842
2843 * reload.c (find_reloads): Revert code to penalize small register
2844 classes that was brought in with the IRA merge.
2845
2846 2010-07-14 Richard Guenther <rguenther@suse.de>
2847
2848 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
2849 as base of ARRAY_REFs.
2850
2851 2010-07-14 Richard Guenther <rguenther@suse.de>
2852
2853 PR middle-end/44930
2854 * tree-pretty-print.c (do_niy): Do not print a newline.
2855
2856 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
2857
2858 * ira-int.h (struct ira_object): New.
2859 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
2860 (struct ira_allocno): Remove members min, max,
2861 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
2862 conflict_allocnos_num and conflict_vec_p. Add new member object.
2863 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
2864 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
2865 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
2866 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
2867 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
2868 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
2869 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
2870 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
2871 an ira_object_t rather than ira_allocno_t. All uses changed.
2872 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2873 contains a vector of ira_object_t; all uses changed.
2874 (ira_objects_num): Declare variable.
2875 (ira_create_allocno_object): Declare function.
2876 (ira_conflict_vector_profitable_p): Adjust prototype.
2877 (ira_allocate_conflict_vec): Renamed from
2878 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
2879 (ira_allocate_object_conflicts): Renamed from
2880 ira_allocate_allocno_conflicts; first arg now ira_object_t.
2881 (struct ira_object_iterator): New.
2882 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
2883 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
2884 to conflict_vec_p. All uses changed.
2885 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
2886 Changed to take into account that conflicts are now tracked for
2887 objects.
2888 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
2889 Args changed to accept ira_object_t. All uses changed.
2890 (allocnos_conflict_p): New static function.
2891 (collected_conflict_objects): Renamed from collected_allocno_objects;
2892 now a vector of ira_object_t. All uses changed.
2893 (build_conflict_bit_table): Changed to take into account that
2894 conflicts are now tracked for objects.
2895 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
2896 (print_allocno_conflicts, ira_build_conflicts): Likewise.
2897 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
2898 setup_allocno_left_conflicts_size, allocno_reload_assign,
2899 fast_allocation): Likewise.
2900 * ira-lives.c (make_hard_regno_born, make_allocno_born)
2901 process_single_reg_class_operands, process_bb_node_lives): Likewise.
2902 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
2903 Likewise.
2904 * ira-build.c (ira_objects_num): New variable.
2905 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2906 contains a vector of ira_object_t; all uses changed.
2907 (ira_object_id_map_vec): Corresponding change.
2908 (object_pool): New static variable.
2909 (initiate_allocnos): Initialize it.
2910 (finish_allocnos): Free it.
2911 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
2912 New functions.
2913 (ira_create_allocno): Don't set members that were removed.
2914 (ira_set_allocno_cover_class): Don't change conflict hard regs.
2915 (merge_hard_reg_conflicts): Changed to take into account that
2916 conflicts are now tracked for objects.
2917 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
2918 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
2919 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
2920 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
2921 setup_min_max_conflict_allocno_ids, ): Likewise.
2922 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
2923 to ira_object_t; all callers changed.
2924 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
2925 to ira_object_t, all callers changed.
2926 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
2927 to ira_object_t, all callers changed.
2928 (conflict_check, curr_conflict_check_tick): Renamed from
2929 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
2930 changed.
2931 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
2932 arg changed to ira_object_t, all callers changed.
2933 (create_cap_allocno): Call ira_create_allocno_object.
2934 (finish_allocno): Free the corresponding object.
2935 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
2936 callers changed. Adjusted for dealing with objects.
2937 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
2938 dealing with objects.
2939 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
2940
2941 * ira-int.h (struct live_range): Rename allocno member to object
2942 and change type to ira_object_t.
2943 (struct ira_object): New member live_ranges.
2944 (struct ira_allocno): Remove member live_ranges.
2945 (ALLOCNO_LIVE_RANGES): Remove.
2946 (OBJECT_LIVE_RANGES): New macro.
2947 (ira_create_live_range, ira_copy_live_range_list,
2948 ira_merge_live_range_list, ira_live_ranges_intersect_p,
2949 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
2950 * ira-build.c (ira_create_object): Initialize live ranges here.
2951 (ira_create_allocno): Not here.
2952 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
2953 changed to ira_object_t, all callers changed.
2954 (copy_live_range): Rename from copy_allocno_live_range, all callers
2955 changed.
2956 (ira_copy_live_range_list): Rename from
2957 ira_copy_allocno_live_range_list, all callers changed.
2958 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
2959 all callers changed.
2960 (ira_live_ranges_intersect_p): Rename from
2961 ira_allocno_live_ranges_intersect_p, all callers changed.
2962 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
2963 callers changed.
2964 (ira_finish_live_range_list): Rename from
2965 ira_finish_allocno_live_range_list, all callers changed.
2966 (change_object_in_range_list): Rename from change_allocno_in_range_list,
2967 last arg changed to ira_object_t, all callers changed.
2968 (finish_allocno): Changed to expect live ranges in the allocno's object.
2969 (move_allocno_live_ranges, copy_allocno_live_ranges,
2970 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
2971 ira_flattening, ira_build): Likewise.
2972 * ira-color.c (allocnos_have_intersected_live_ranges_p,
2973 slot_coalesced_allocno_live_ranges_intersect,
2974 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
2975 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2976 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
2977 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
2978 make_allocno_dead, create_start_finish_chains,
2979 remove_some_program_points_and_update_live_ranges,
2980 ira_debug_live_range_list): Likewise.
2981
2982 * ira-int.h (ira_object_conflict_iterator): Rename from
2983 ira_allocno_conflict_iterator.
2984 (ira_object_conflict_iter_init): Rename from
2985 ira_allocno_conflict_iter_init, second arg changed to
2986 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
2987 FOR_EACH_ALLOCNO_CONFLICT.
2988 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
2989 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
2990 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
2991 * ira-conflicts.c (print_allocno_conflicts): Likewise.
2992
2993 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
2994
2995 PR other/44874
2996 * tree-dump.c (dump_options): Add enumerate_locals entry.
2997 Add TDF_NOID exclusion to all entry.
2998 * tree-dump.h (dump_enumerated_decls): Declare.
2999 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
3000 Don't display type uid.
3001 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
3002 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
3003 * tree-ssa-live.c: Include gimple.h.
3004 (numbered_tree_d): New struct.
3005 (numbered_tree): New typedef.
3006 (DEF_VEC_O (numbered_tree): New.
3007 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
3008 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
3009 (dump_enumerated_decls): Likewise.
3010 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
3011 debug info and flag_dump_final_insns, call dump_enumerated_decls.
3012 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
3013 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
3014
3015 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
3016
3017 * expmed.h (MAX_BITS_PER_WORD): Move to...
3018 * defaults.h (MAX_BITS_PER_WORD): ...here.
3019
3020 2010-07-13 DJ Delorie <dj@redhat.com>
3021
3022 * config/h8300/h8300.c (h8300_init_once): Default to
3023 -fstrict_volatile_bitfields.
3024
3025 * config/sh/sh.c (sh_override_options): Default to
3026 -fstrict_volatile_bitfields.
3027
3028 * config/rx/rx.c (rx_option_override): New.
3029
3030 * config/m32c/m32c.c (m32c_override_options): Default to
3031 -fstrict_volatile_bitfields.
3032
3033 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
3034
3035 * tree.h (build_function_call_expr): Delete.
3036 (build_call_expr_loc_array): New function.
3037 (build_call_expr_loc_vec): New function.
3038 * tree-flow.h (struct omp_region): Change type of ws_args field
3039 to a VEC.
3040 * builtins.c (build_function_call_expr): Delete.
3041 (build_call_expr_loc_array): New function.
3042 (build_call_expr_loc): Call it. Use XALLOCAVEC.
3043 (build_call_expr): Likewise.
3044 (build_call_expr_loc_vec): New function.
3045 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
3046 build_function_call_expr.
3047 * expr.c (emutls_var_address): Likewise.
3048 * varasm.c (emutls_common_1): Likewise.
3049 * omp-low.c (expand_omp_atomic_mutex): Likewise.
3050 (expand_omp_taskreg): Adjust for new type of region->ws_args.
3051 (get_ws_args_for): Return a VEC instead of a tree.
3052 (expand_parallel_call): Call build_call_expr_loc_vec instead of
3053 build_function_call_expr.
3054 * stor-layout.c (self_referential_size): Likewise.
3055
3056 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3057
3058 PR testsuite/44701
3059 * recog.c (constrain_operands): Allow side-effects in memory
3060 operands if either < or > constraint is used, rather than if
3061 both < and > is used.
3062
3063 2010-07-13 Richard Guenther <rguenther@suse.de>
3064
3065 PR middle-end/44911
3066 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
3067 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
3068 without name.
3069
3070 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
3071
3072 PR target/44761
3073 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
3074 to variable emited.
3075 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
3076 * config/sh/sh.md (symGOT_load): Likewise.
3077 (symDTPOFF2reg): Likewise.
3078 (symTPOFF2reg): Likewise.
3079
3080 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3081
3082 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
3083 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
3084
3085 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3086
3087 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
3088 explanation.
3089 Find ucontext_t * on Solaris 11.
3090 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
3091 Handle new Solaris 11 __sighndlr patterns.
3092
3093 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3094
3095 PR debug/44901
3096 * vec.h (VEC_block_remove): Fix comment.
3097 * tree-ssa-live.c (remove_unused_locals): Don't use
3098 VEC_unordered_remove on local_decls, instead replace a single
3099 vector element in each iteration if at least one element had
3100 to be removed and VEC_truncate at the end.
3101 * omp-low.c (expand_omp_taskreg): Likewise.
3102
3103 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3104
3105 * c-decl.c (finish_function): Fix typo in comment.
3106
3107 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
3108
3109 PR bootstrap/44921
3110 * postreload.c (move2add_use_add3_insn): Silence gcc warning
3111 on min_regno.
3112
3113 2010-07-12 Jakub Jelinek <jakub@redhat.com>
3114
3115 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
3116 (simplify_stmt_using_ranges): Use it.
3117
3118 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3119
3120 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
3121 member. Do not mark as GTY(()).
3122 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
3123 (spu_builtin_decls): New static variable.
3124 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
3125 (spu_init_builtins): Likewise.
3126 (spu_builtin_mul_widen_even): Likewise.
3127 (spu_builtin_mul_widen_odd): Likewise.
3128 (spu_builtin_mask_for_load): Likewise.
3129 (spu_builtin_vec_perm): Likewise.
3130 * config/spu/spu-c.c: Include "target.h".
3131 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
3132 of using spu_builtins[].fndecl.
3133
3134 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3135
3136 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
3137 imply -minterlink-mips16.
3138
3139 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3140
3141 * config/mips/mips.h (mips16_globals): Declare.
3142 (SWITCHABLE_TARGET): Define.
3143 * config/mips/mips.c: Include target-globals.h.
3144 (mips16_globals): New variable.
3145 (mips_set_mips16_mode): Use save_target_globals and
3146 restore_target_globals instead of target_reinit.
3147
3148 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3149
3150 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
3151 to say that the function can be called more than once.
3152 * target-globals.c (save_target_globals): Call init_reg_sets.
3153
3154 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3155
3156 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
3157 * bb-reorder.h: New file.
3158 * bb-reorder.c (default_target_bb_reorder): New variable.
3159 (this_target_bb_reorder): New conditional variable.
3160 (uncond_jump_length): Redefine as a macro.
3161 * target-globals.h (this_target_bb_reorder): Declare.
3162 (target_globals): Add a bb_reorder field.
3163 (restore_target_globals): Copy the bb_reorder field to
3164 this_target_bb-reorder.
3165 * target-globals.c: Include bb-reorder.h.
3166 (default_target_globals): Initialize the bb_reorder field.
3167 (save_target_globals): Likewise.
3168
3169 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3170
3171 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
3172 * gcse.h: New file.
3173 * gcse.c: Include gcse.h.
3174 (default_target_gcse): New variable.
3175 (this_target_gcse): New conditional variable.
3176 (can_copy): Redefine as a macro.
3177 (can_copy_init_p): New macro.
3178 (can_copy_p): Remove can_copy_init_p.
3179 * target-globals.h (this_target_gcse): Declare.
3180 (target_globals): Add a gcse field.
3181 (restore_target_globals): Copy the gcse field to this_target_gcse.
3182 * target-globals.c: Include gcse.h.
3183 (default_target_globals): Initialize the gcse field.
3184 (save_target_globals): Likewise.
3185
3186 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3187
3188 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
3189 and x_ira_prohibited_mode_move_regs_initialized_p.
3190 (ira_prohibited_mode_move_regs): Redefine as a macro.
3191 * ira.c (ira_prohibited_mode_move_regs): Delete.
3192 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
3193
3194 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3195
3196 * reload.h (target_reload): Add x_cached_reg_save_code and
3197 x_cached_reg_restore_code.
3198 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
3199 Redefine as macros.
3200
3201 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3202
3203 * Makefile.in (target-globals.o): Depend on builtins.h.
3204 * builtins.h: New file.
3205 * builtins.c: Include builtins.h.
3206 (default_target_builtins): New variable.
3207 (this_target_builtins): New conditional variable.
3208 (apply_args_mode, apply_result_mode): Redefine as macros.
3209 * target-globals.h (this_target_builtins): Declare.
3210 (target_globals): Add a builtins field.
3211 (restore_target_globals): Copy the builtins field to
3212 this_target_builtins.
3213 * target-globals.c: Include builtins.h.
3214 (default_target_globals): Initialize the builtins field.
3215 (save_target_globals): Likewise.
3216
3217 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3218
3219 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
3220 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
3221 from expmed.c.
3222 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
3223 (alg_hash, alg_hash_used_p): New macros.
3224 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
3225 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
3226 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
3227
3228 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3229
3230 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
3231 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
3232 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
3233 (this_op_costs, costs_classes): Redefine as macros.
3234 (record_reg_classes): Don't take op_costs as a parameter.
3235 (record_operand_costs): Likewise. Update calls to record_reg_classes.
3236 (scan_one_insn): Update call to record_operand_costs.
3237
3238 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3239
3240 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
3241 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
3242 (target_ira_int): New structure.
3243 (default_target_ira_int): Declare.
3244 (this_target_ira_int): Declare as a variable or define as a macro.
3245 (ira_reg_mode_hard_regset, ira_register_move_cost)
3246 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
3247 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
3248 (prohibited_class_mode_regs, ira_important_classes_num)
3249 (ira_important_classes, ira_reg_class_intersect)
3250 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
3251 (ira_reg_class_union): Redefine as macros.
3252 * ira.h (target_ira): New structure.
3253 (default_target_ira): Declare.
3254 (this_target_ira): Declare as a variable or define as a macro.
3255 (ira_available_class_regs, ira_hard_regno_cover_class)
3256 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
3257 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
3258 (ira_class_hard_regs_num): Redefine as macros.
3259 * ira.c (default_target_ira, default_target_ira_int): New variables.
3260 (this_target_ira, this_target_ira_int): New conditional variables.
3261 (ira_reg_mode_hard_regset, ira_memory_move_cost)
3262 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
3263 (ira_class_subset_p): Delete.
3264 (no_unit_alloc_regs): Redefine as a macro.
3265 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
3266 (ira_class_hard_regs_num, ira_class_hard_reg_index)
3267 (ira_available_class_regs): Delete.
3268 (alloc_reg_class_subclasses): Redefine as a macro.
3269 (ira_reg_class_cover_size, ira_reg_class_cover)
3270 (ira_important_classes_num, ira_important_classes)
3271 (ira_important_class_nums, ira_class_translate): Delete.
3272 (cover_class_order): Document the variable's lifetime.
3273 (reorder_important_classes): Don't set ira_important_class_nums.
3274 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
3275 (ira_reg_class_super_classes, ira_reg_class_union)
3276 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
3277 Delete.
3278 (setup_reg_class_nregs): Don't set ira_max_regs.
3279 (prohibited_class_mode_regs): Delete.
3280 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
3281 (target_globals): Add ira and ira_int fields.
3282 (restore_target_globals): Copy the ira field to this_target_ira
3283 and the ira_int field to this_target_ira_int.
3284 * target-globals.c: Include ira-int.h.
3285 (default_target_globals): Initialize the ira and ira_int fields.
3286 (save_target_globals): Likewise.
3287
3288 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3289
3290 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
3291 * cfgloop.h (target_cfgloop): New structure.
3292 (default_target_cfgloop): Declare.
3293 (this_target_cfgloop): Declare as a variable or define as a macro.
3294 (target_avail_regs, target_clobbered_regs, target_res_regs)
3295 (target_reg_cost, target_spill_cost): Redefine as macros.
3296 * cfgloopanal.c (default_target_cfgloop): New variable.
3297 (this_target_cfgloop): New conditional variable.
3298 (target_avail_regs, target_clobbered_regs, target_res_regs)
3299 (target_reg_cost, target_spill_cost): Delete.
3300 * target-globals.h (this_target_cfgloop): Declare.
3301 (target_globals): Add a cfgloop field.
3302 (restore_target_globals): Copy the cfgloop field to
3303 this_target_cfgloop.
3304 * target-globals.c: Include cfgloop.h.
3305 (default_target_globals): Initialize the cfgloop field.
3306 (save_target_globals): Likewise.
3307
3308 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3309
3310 * regs.h (target_regs): Add x_direct_load, x_direct_store and
3311 x_float_extend_from_mem.
3312 (direct_load, direct_store, float_extend_from_mem): New macros.
3313 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
3314
3315 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3316
3317 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
3318 (target-globals.o): Depend on $(LIBFUNCS_H).
3319 * libfuncs.h: Include hashtab.h.
3320 (libfunc_entry): Moved from optabs.c.
3321 (target_libfuncs): New structure.
3322 (default_target_libfuncs): Declare.
3323 (this_target_libfuncs): Declare as a variable or define as a macro.
3324 (libfunc_table): Redefine as a macro.
3325 * optabs.c (default_target_libfuncs): New variable.
3326 (this_target_libfuncs): New conditional variable.
3327 (libfunc_table): Delete.
3328 (libfunc_entry): Moved to optabs.h.
3329 (libfunc_hash): Redefine as a macro.
3330 (hash_libfunc, eq_libfunc): Fix comments.
3331 (init_optabs): Use libfunc_hash to detect cases where the function
3332 has already been called. Clear the hash table instead of
3333 recreating it.
3334 * target-globals.h (this_target_libfuncs): Declare.
3335 (target_globals): Add a libfuncs field.
3336 (restore_target_globals): Copy the libfuncs field to
3337 this_target_libfuncs.
3338 * target-globals.c: Include libfuncs.h.
3339 (default_target_globals): Initialize the libfuncs field.
3340 (save_target_globals): Likewise.
3341
3342 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3343
3344 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
3345 in all dependency lists.
3346
3347 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3348
3349 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
3350 * optabs.h (target_optabs): New structure.
3351 (default_target_optabs): Declare.
3352 (this_target_optabs): Declare as a variable or define as a macro.
3353 (optab_table, convert_optab_table, direct_optab_table): Redefine
3354 as macros.
3355 * optabs.c (default_target_optabs): New variable.
3356 (this_target_optabs): New conditional variable.
3357 (optab_table, convert_optab_table, direct_optab_table): Delete.
3358 * target-globals.h (this_target_optabs): Declare.
3359 (target_globals): Add a optabs field.
3360 (restore_target_globals): Copy the optabs field to
3361 this_target_optabs.
3362 * target-globals.c: Include expr.h and optabs.h.
3363 (default_target_globals): Initialize the optabs field.
3364 (save_target_globals): Likewise.
3365
3366 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3367
3368 * flags.h (target_flagstate): Add x_flag_excess_precision.
3369 (flag_excess_precision): Redefine as a macro.
3370 * toplev.c (flag_excess_precision): Delete.
3371
3372 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3373
3374 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
3375 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
3376 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
3377 (no_caller_save_reg_set): Redefine as a macro.
3378 * reload.h (target_reload): Add x_caller_save_initialized_p and
3379 x_regno_save_mode.
3380 (caller_save_initialized_p): Redefine as a macro.
3381 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
3382 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
3383 (regno_save_mode): Redefine as a macro.
3384
3385 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3386
3387 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
3388 * expmed.h: New file.
3389 * expmed.c (default_target_costs): New variable.
3390 (this_target_costs): New conditional variable.
3391 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
3392 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
3393 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
3394 * target-globals.h (this_target_expmed): Declare.
3395 (target_globals): Add a expmed field.
3396 (restore_target_globals): Copy the expmed field to
3397 this_target_expmed.
3398 * target-globals.c: Include expmed.h.
3399 (default_target_globals): Initialize the expmed field.
3400 (save_target_globals): Likewise.
3401
3402 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3403
3404 * Makefile.in (target-globals.o): Depend on reload.h.
3405 * reload.h (target_reload): New structure.
3406 (default_target_reload): Declare.
3407 (this_target_reload): Declare as a variable or define as a macro.
3408 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
3409 * reload1.c (default_target_reload): New variable
3410 (this_target_reload): New conditional variable.
3411 (indirect_symref_ok, double_reg_address_ok): Delete.
3412 (spill_indirect_levels): Redefine as a macro.
3413 * target-globals.h (this_target_reload): Declare.
3414 (target_globals): Add a reload field.
3415 (restore_target_globals): Copy the reload field to
3416 this_target_reload.
3417 * target-globals.c: Include hard-reg-set.h.
3418 (default_target_globals): Initialize the reload field.
3419 (save_target_globals): Likewise.
3420
3421 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3422
3423 * rtl.h (target_rtl): Add x_static_reg_base_value.
3424 * alias.c (static_reg_base_value): Redefine as a macro.
3425
3426 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3427
3428 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
3429 (GTFILES): Remove reginfo.c.
3430 * rtl.h (target_rtl): Add x_top_of_stack.
3431 (top_of_stack): New macro.
3432 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
3433 (top_of_stack): Delete.
3434
3435 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3436
3437 * regs.h (target_regs): Add x_hard_regs_of_mode,
3438 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
3439 x_may_move_out_cost and x_last_mode_for_init_move_cost.
3440 (have_regs_of_mode, contains_reg_of_mode, move_cost)
3441 (may_move_in_cost, may_move_out_cost): Redefine as macros.
3442 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
3443 (may_move_in_cost, may_move_out_cost): Delete.
3444 (last_mode_for_init_move_cost): Redefine as a macro.
3445
3446 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3447
3448 * hard-reg-set.h (target_hard_regs): New structure.
3449 (default_target_hard_regs): Declare.
3450 (this_target_hard_regs): Declare as a variable or define as a macro.
3451 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
3452 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
3453 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
3454 (reg_class_size, reg_class_subclasses, reg_class_subunion)
3455 (reg_class_superunion, reg_names): Redefine as macros.
3456 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
3457 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
3458 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
3459 (reg_class_contents, reg_class_size, reg_class_subclasses)
3460 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
3461 (default_target_hard_regs): New variable
3462 (this_target_hard_regs, initial_call_really_used_regs)
3463 (initial_reg_alloc_order): New conditional variables.
3464 (initial_reg_names): New variable.
3465 (init_reg_sets): Assert that initial_call_really_used_regs,
3466 initial_reg_alloc_order and initial_reg_names
3467 are all the same size as their variable counterparts. Use them to
3468 initialize those counterparts.
3469 * target-globals.h (this_target_hard_regs): Declare.
3470 (target_globals): Add a hard_regs field.
3471 (restore_target_globals): Copy the hard_regs field to
3472 this_target_hard_regs.
3473 * target-globals.c: Include hard-reg-set.h.
3474 (default_target_globals): Initialize the hard_regs field.
3475 (save_target_globals): Likewise.
3476
3477 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3478
3479 * Makefile.in (target-globals.o): Depend on $(RTL_H).
3480 * rtl.h (target_rtl): New structure.
3481 (default_target_rtl): Declare.
3482 (this_target_rtl): Declare as a variable or define as a macro.
3483 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
3484 Redefine as macros.
3485 * emit-rtl.c (default_target_rtl): New variable.
3486 (this_target_rtl): New conditional variable.
3487 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
3488 (return_address_pointer_rtx): Delete.
3489 (initial_regno_reg_rtx): New macro.
3490 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
3491 (init_emit_regs): Likewise.
3492 * target-globals.h (this_target_rtl): Declare.
3493 (target_globals): Add a rtl field.
3494 (restore_target_globals): Copy the rtl field to this_target_rtl.
3495 * target-globals.c: Include rtl.h.
3496 (default_target_globals): Initialize the rtl field.
3497 (save_target_globals): Likewise.
3498
3499 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3500
3501 * Makefile.in (target-globals.o): Depend on $(REGS_H).
3502 * regs.h (target_reg_modes): New structure.
3503 (default_target_reg_modes): Declare.
3504 (this_target_reg_modes): Declare as a variable or define as a macro.
3505 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
3506 * reginfo.c (default_target_reg_modes): New variable.
3507 (this_target_reg_modes): New conditional variable.
3508 (hard_regno_nregs, reg_raw_mode): Delete.
3509 * target-globals.h (this_target_regs): Declare.
3510 (target_globals): Add a regs field.
3511 (restore_target_globals): Copy the regs field to this_target_regs.
3512 * target-globals.c: Include regs.h.
3513 (default_target_globals): Initialize the regs field.
3514 (save_target_globals): Likewise.
3515
3516 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3517
3518 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
3519 * doc/tm.texi: Regenerate.
3520 * Makefile.in (OBJS-common): Add target-globals.o.
3521 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
3522 and target-globals.h.
3523 (target-globals.o): New rule.
3524 (GTFILES): Include $(srcdir)/target-globals.h.
3525 * defaults.h (SWITCHABLE_TARGET): Define.
3526 * gengtype.c (open_base_files): Add target-globals.h to the
3527 list of includes.
3528 * target-globals.h: New file.
3529 * target-globals.c: Likewise.
3530
3531 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
3532 * flags.h (target_flag_state): New structure.
3533 (default_target_flag_state): Declare.
3534 (this_target_flag_state): Declare as a variable or define as a macro.
3535 (align_loops_log): Redefine as a macro.
3536 (align_loops_max_skip, align_jumps_log): Likewise.
3537 (align_jumps_max_skip, align_labels_log): Likewise.
3538 (align_labels_max_skip, align_functions_log): Likewise.
3539 * toplev.c (default_target_flag_state): New variable.
3540 (this_target_flag_state): New conditional variable.
3541 (align_loops_log): Delete.
3542 (align_loops_max_skip, align_jumps_log): Likewise.
3543 (align_jumps_max_skip, align_labels_log): Likewise.
3544 (align_labels_max_skip, align_functions_log): Likewise.
3545 * target-globals.h (this_target_flag_state): Declare.
3546 (target_globals): Add a flag_state field.
3547 (restore_target_globals): Copy the flag_state field to
3548 this_target_flag_state.
3549 * target-globals.c: Include flags.h.
3550 (default_target_globals): Initialize the flag_state field.
3551 (save_target_globals): Likewise.
3552
3553 2010-07-12 Jie Zhang <jie@codesourcery.com>
3554
3555 * postreload.c (reg_symbol_ref[]): New.
3556 (move2add_use_add2_insn): New.
3557 (move2add_use_add3_insn): New.
3558 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
3559 (move2add_note_store): Likewise.
3560
3561 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
3562
3563 PR rtl-optimization/44752
3564 * genautomata.c (main): Don't emit an empty file even if there
3565 is no automaton.
3566
3567 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3568
3569 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
3570 ix86_solaris_return_in_memory.
3571 * config/i386-protos.h: Reflect this.
3572 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
3573 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
3574 Move ...
3575 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
3576
3577 2010-07-12 Jie Zhang <jie@codesourcery.com>
3578
3579 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
3580 align the stack when it's going to be saved.
3581
3582 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3583
3584 PR pch/14940
3585 * config/host-solaris.c (mmap_fixed): New function.
3586 (sol_gt_pch_get_address): Use it.
3587 (sol_gt_pch_use_address): Likewise.
3588
3589 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3590
3591 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
3592 pentiumpro on Solaris 8 and 9/x86.
3593 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
3594 Document SSE/SSE2 support.
3595 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
3596
3597 2010-07-12 Andi Kleen <ak@linux.intel.com>
3598
3599 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
3600 instead of gcc_assert to print better error message for multiple
3601 prevailing defs.
3602
3603 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
3604
3605 * config/i386/i386.c (ix86_asm_output_function_label): Change format
3606 string placeholder from 0x%x to %#x.
3607 (ix86_code_end): Use putc to output '\n'.
3608 (ix86_print_operand) <case ';'>: Use putc to output ';'.
3609
3610 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
3611
3612 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
3613 in directive -export.
3614
3615 2010-07-10 Anatoly Sokolov <aesok@post.ru>
3616
3617 * reginfo.h (reg_classes_intersect_p): Change arguments type to
3618 reg_class_t.
3619 * rtl.h (reg_classes_intersect_p): Adjust prototype.
3620
3621 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3622 Remove macros.
3623 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
3624 rs6000_memory_move_cost): Remove
3625 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
3626 TARGET_MEMORY_MOVE_COST): Define.
3627 (rs6000_register_move_cost): Make static. Change arguments type from
3628 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
3629 (rs6000_memory_move_cost): Make static. Change arguments type from
3630 'enum reg_class' to reg_class_t.
3631
3632 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
3633
3634 PR middle-end/42505
3635 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
3636 lookup code into....
3637 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
3638 new functions.
3639 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
3640 * cfgloopanal.c (target_clobbered_regs): Define.
3641 (init_set_costs): Initialize target_clobbered_regs.
3642 (estimate_reg_pressure_cost): Add call_p argument. When true,
3643 adjust the number of available registers to exclude the
3644 call-clobbered registers.
3645 * cfgloop.h (target_clobbered_regs): Declare.
3646 (estimate_reg_pressure_cost): Adjust declaration.
3647 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
3648 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
3649 (determine_set_costs): Dump target_clobbered_regs.
3650 (loop_body_includes_call): New function.
3651 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
3652 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
3653 call_p flag through.
3654 (best_gain_for_invariant): Likewise.
3655 (find_invariants_to_move): Likewise.
3656 (move_single_loop_invariants): Likewise, using already-computed
3657 has_call field.
3658
3659 2010-07-10 Richard Guenther <rguenther@suse.de>
3660 Joern Rennecke <joern.rennecke@embecosm.com>
3661
3662 PR debug/44832
3663 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
3664 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
3665 unless they have DECL_IGNORED_P set.
3666
3667 2010-07-10 Richard Guenther <rguenther@suse.de>
3668
3669 PR lto/44889
3670 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
3671 helper function.
3672 (gimple_types_compatible_p): Similar to pointed-to
3673 types allow and merge a mix of complete and incomplete aggregate.
3674 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
3675 (iterative_hash_gimple_type): Adjust for that.
3676
3677 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
3678
3679 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
3680
3681 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
3682
3683 PR objc/44140
3684 * config/darwin.c (output_objc_section_asm_op): Save and restore
3685 section when outputting ObjC section list.
3686
3687 2010-07-09 Jan Hubicka <jh@suse.cz>
3688
3689 * lto-streamer-out.c (produce_symtab): Do not write alias
3690 cgraph/varpool nodes.
3691
3692 2010-07-09 Jan Hubicka <jh@suse.cz>
3693
3694 * tree-inline.c (declare_return_variable): Fix ICE while
3695 inlining DECL_BY_VALUE function not in SSA form
3696
3697 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
3698
3699 PR tree-optimization/44576
3700 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
3701 New. Pull out from is_loop_prefetching_profitable to implement
3702 the trip count to ahead ratio heuristic.
3703 (mem_ref_count_reasonable_p): New. Pull out from
3704 is_loop_prefetching_profitable to implement the instruction to
3705 memory reference ratio heuristic. Also consider not reasonable if
3706 the memory reference count is above a threshold (to avoid
3707 explosive compilation time.
3708 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
3709 is_loop_prefetching_profitable to implement the instruction to
3710 prefetch ratio heuristic.
3711 (is_loop_prefetching_profitable): Removed.
3712 (loop_prefetch_arrays): Distribute the cost analysis across the
3713 function to allow early exit of the prefetch analysis.
3714 is_loop_prefetching_profitable is splitted into three functions,
3715 with each one called as early as possible.
3716 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
3717 number of memory references in a loop is considered too many.
3718
3719 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
3720
3721 * reload.c (find_reloads): Don't clear badop if we have a winreg
3722 alternative, but not win, and the class only has fixed regs.
3723 * hard-reg-set.h (class_only_fixed_regs): Declare.
3724 * reginfo.c (class_only_fixed_regs): New array.
3725 (init_reg_sets_1): Initialize it.
3726 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
3727 discourage alternatives using the stack pointer.
3728
3729 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
3730
3731 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
3732
3733 * config/arm/arm.md (cbranchqi4): Fix array size.
3734 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
3735 calculating length.
3736
3737 2010-07-09 Richard Guenther <rguenther@suse.de>
3738
3739 * gimple.c (struct type_fixup_s): New struct and VEC type.
3740 (gimple_register_type_fixups): New static global.
3741 (gimple_queue_type_fixup): New function.
3742 (gimple_types_compatible_p): Queue type fixups instead of
3743 applying them here.
3744 (gimple_register_type): Apply queued fixups for the
3745 canonical type. Empty the type fixup queue.
3746
3747 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
3748
3749 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
3750 * configure: Regenerate.
3751 * config.in: Ditto.
3752
3753 2010-07-09 Jakub Jelinek <jakub@redhat.com>
3754 Denys Vlasenko <dvlasenk@redhat.com>
3755 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3756
3757 PR tree-optimization/28632
3758 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
3759 (extract_range_from_binary_expr): Further optimize
3760 BIT_AND_EXPR and BIT_IOR_EXPR.
3761
3762 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
3763
3764 * tree-if-conv.c (fold_or_predicates): New.
3765 (add_to_predicate_list): Call it.
3766
3767 2010-07-09 Richard Guenther <rguenther@suse.de>
3768
3769 PR middle-end/44890
3770 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
3771 if base is a pointer.
3772 * tree-cfg.c (verify_expr): Update MEM_REF checking.
3773
3774 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3775
3776 PR target/44877
3777 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
3778 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
3779 builtin mask for load/store builtins.
3780
3781 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
3782
3783 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
3784 for "lock addl".
3785 * configure: Regenerate.
3786 * config/i386/i386.c (ix86_print_operand) <case ';'>:
3787 Remove TARGET_MACHO.
3788
3789 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
3790
3791 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
3792 default ISA flags.
3793 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
3794
3795 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
3796
3797 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
3798
3799 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
3800
3801 * config/picochip/picochip.md (commsTestPort): Emit more
3802 efficient sequence for tstport instruction.
3803
3804 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
3805
3806 * config/i386/i386.c (ix86_veclib_handler): Make static.
3807
3808 2010-07-09 Richard Guenther <rguenther@suse.de>
3809
3810 PR tree-optimization/44852
3811 * tree-ssa-alias.c: Include toplev.h for exact_log2.
3812 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
3813 in MEM_REF.
3814 (indirect_refs_may_alias_p): Likewise.
3815 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
3816
3817 2010-07-09 Richard Guenther <rguenther@suse.de>
3818
3819 PR tree-optimization/44882
3820 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
3821 sets do conflict.
3822 (vectorizable_load): Likewise.
3823
3824 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
3825
3826 PR target/40657
3827 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
3828 All callers changed.
3829 Handle the case when we're called for the epilogue.
3830 (thumb_unexpanded_epilogue): Use it.
3831 (thumb1_expand_epilogue): Likewise.
3832
3833 2010-07-09 Jakub Jelinek <jakub@redhat.com>
3834
3835 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
3836 both ranges are range_int_cst_p with non-negative minimum,
3837 try harder to derive smaller range.
3838
3839 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3840
3841 * genrecog.c: Include diagnostic-core.h before toplev.h.
3842 * genoutput.c: Likewise.
3843 * genextract.c: Likewise.
3844 * genautomata.c: Likewise.
3845 * genemit.c: Likewise.
3846 * genpeep.c: Likewise.
3847 * genattrtab.c: Likewise.
3848 * genconditions.c: Likewise.
3849 * genpreds.c: Likewise.
3850
3851 2010-07-08 Andi Kleen <ak@linux.intel.com>
3852
3853 * lto-section-in.c (lto_section_name): Add missing comma.
3854
3855 2010-07-08 Anatoly Sokolov <aesok@post.ru>
3856
3857 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
3858 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
3859 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
3860 (ia64_override_options): Rename to...
3861 (ia64_option_override): ... this one. Make static.
3862
3863 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
3864
3865 PR middle-end/44843
3866 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
3867 pointed-to type of the offset in a MEM_REF to compute the alignment.
3868
3869 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
3870
3871 * final.c (final_scan_insn): Replace
3872 TARGET_UNWIND_INFO macro check by unwind_emit
3873 hook NULL check.
3874 * targhooks.c (default_unwind_emit): Removed.
3875 * targhooks.h (default_unwind_emit): Likewise.
3876 * target.def (unwind_emit): Set default value to NULL.
3877
3878 * config/i386/i386-protos.h (ix86_asm_output_function_label):
3879 New prototype.
3880 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
3881 for NULL fntype argument and allow 64-bit targets.
3882 (ix86_asm_output_function_label): New function.
3883 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
3884 (ix86_handle_fndecl_attribute): Likewise.
3885 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
3886 * doc/doc/tm.texi: Regenerated.
3887 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
3888 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
3889 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
3890 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
3891 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3892 * config/elfos.h: Likewise.
3893 * config/i386/cygming.h: Likewise.
3894 * config/netbsd-aout.h: Likewise.
3895 * config/openbsd.h: Likewise.
3896 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
3897 by ix86_asm_output_function_label function call.
3898 * varasm.c (assemble_start_function): Use
3899 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3900
3901 2010-07-08 Jan Hubicka <jh@suse.cz>
3902
3903 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
3904 New function.
3905 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
3906 Declare.
3907 * ipa-cp.c (ipcp_estimate_growth): Use it.
3908 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
3909 Likewise.
3910
3911 2010-07-08 Jan Hubicka <jh@suse.cz>
3912
3913 * tree-inline.c (declare_return_variable): Allocate annotation for new
3914 temporary.
3915
3916 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
3917
3918 PR tree-optimization/44710
3919 * tree-if-conv.c (parse_predicate): New.
3920 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
3921 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
3922
3923 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
3924
3925 * common.opt (ftree-loop-if-convert): New flag.
3926 * doc/invoke.texi (ftree-loop-if-convert): Documented.
3927 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
3928 when flag_tree_loop_if_convert is set.
3929
3930 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
3931
3932 * config/i386/i386.c: Use short syntax for function calls
3933 through function pointers.
3934 * config/i386/i386.md: Ditto.
3935
3936 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
3937
3938 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
3939
3940 2010-07-08 Richard Guenther <rguenther@suse.de>
3941
3942 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
3943 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
3944
3945 2010-07-08 Jakub Jelinek <jakub@redhat.com>
3946
3947 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
3948 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
3949 (loc_list_from_tree): Likewise.
3950 (output_loc_operands): Handle outputting DW_OP_const[48]u
3951 with loc->dtprel set.
3952 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
3953
3954 2010-07-08 Jan Hubicka <jh@suse.cz>
3955
3956 * ipa.c: Include pointer-set.h
3957 (cgraph_externally_visible_p): New attribute ALIASED;
3958 when in LTO, hidden symbols are local unless they are aliased.
3959 (function_and_variable_visibility): Compute aliased nodes;
3960 handle LTO and hidden symbol on functions and vars.
3961 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
3962 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
3963
3964 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
3965
3966 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3967 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3968 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3969 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3970 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3971 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
3972 (ix86_gen_probe_stack_range): Likewise.
3973 (override_options): Set them.
3974 (ix86_target_stack_probe): New function.
3975 (ix86_compute_frame_layout): Force use of push instructions to
3976 save registers if stack checking with probes is enabled.
3977 (get_scratch_register_on_entry): New function.
3978 (release_scratch_register_on_entry): Likewise.
3979 (ix86_adjust_stack_and_probe): Likewise.
3980 (output_adjust_stack_and_probe): Likewise.
3981 (ix86_emit_probe_stack_range): Likewise.
3982 (output_probe_stack_range): Likewise.
3983 (ix86_expand_prologue): Emit stack checking code if static built-in
3984 stack checking is enabled.
3985 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
3986 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
3987 (output_adjust_stack_and_probe): Likewise.
3988 (output_probe_stack_range): Likewise.
3989 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3990 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
3991 TARGET_STACK_PROBE.
3992 (allocate_stack_worker_64): Likewise.
3993 (allocate_stack): Likewise.
3994 (adjust_stack_and_probe): New insn.
3995 (probe_stack_range): Likewise.
3996
3997 2010-07-08 Richard Guenther <rguenther@suse.de>
3998
3999 PR tree-optimization/44831
4000 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
4001 a MEM_REF preserving TBAA info of the original dereference.
4002 Dereference the original pointer if the address is not invariant.
4003 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
4004 at least one invariant address that we are going to dereference.
4005
4006 2010-07-08 Richard Guenther <rguenther@suse.de>
4007
4008 PR tree-optimization/44861
4009 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
4010 information when building MEM_REFs.
4011 (vectorizable_load): Likewise.
4012 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
4013
4014 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
4015
4016 * config/sol2-c.c: Do not include diagnostic-core.h.
4017
4018 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4019
4020 PR bootstrap/44768
4021 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
4022 with respect to current_function_decl. Pass decl of the function.
4023 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
4024 * ipa-inline.c (compute_inline_parameters): Pass decl to
4025 estimated_stack_frame_size.
4026
4027 2010-07-08 Richard Guenther <rguenther@suse.de>
4028
4029 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4030 New function.
4031 (valueize_refs): Call it.
4032
4033 2010-07-08 Richard Guenther <rguenther@suse.de>
4034
4035 PR rtl-optimization/44838
4036 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
4037 SSA form do not use pointer equivalence.
4038
4039 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
4040
4041 * dwarf2out.c (AT_linkage_name): Delete.
4042 (add_linkage_attr): New function.
4043 (add_linkage_name): Call it to emit the linkage attribute.
4044 (dwarf2out_finish): Likewise.
4045 (move_linkage_attr): Explicitly accept both attribute variants.
4046
4047 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4048
4049 * toplev.h: Do not include diagnostic-core.h.
4050 Include diagnostic-core.h in every file that includes toplev.h.
4051 * c-tree.h: Do not include toplev.h.
4052 * pretty-print.h: Update comment.
4053 * Makefile.in: Update dependencies.
4054 * alias.c: Include diagnostic-core.h in every file that includes
4055 toplev.h.
4056 * attribs.c: Likewise.
4057 * auto-inc-dec.c: Likewise.
4058 * bb-reorder.c: Likewise.
4059 * bt-load.c: Likewise.
4060 * caller-save.c: Likewise.
4061 * calls.c: Likewise.
4062 * cfg.c: Likewise.
4063 * cfganal.c: Likewise.
4064 * cfgbuild.c: Likewise.
4065 * cfgcleanup.c: Likewise.
4066 * cfghooks.c: Likewise.
4067 * cfgloop.c: Likewise.
4068 * combine.c: Likewise.
4069 * config/alpha/alpha.c: Likewise.
4070 * config/arc/arc.c: Likewise.
4071 * config/arm/arm.c: Likewise.
4072 * config/arm/pe.c: Likewise.
4073 * config/avr/avr.c: Likewise.
4074 * config/bfin/bfin.c: Likewise.
4075 * config/cris/cris.c: Likewise.
4076 * config/crx/crx.c: Likewise.
4077 * config/darwin-c.c: Likewise.
4078 * config/darwin.c: Likewise.
4079 * config/fr30/fr30.c: Likewise.
4080 * config/frv/frv.c: Likewise.
4081 * config/h8300/h8300.c: Likewise.
4082 * config/host-darwin.c: Likewise.
4083 * config/i386/i386.c: Likewise.
4084 * config/i386/netware.c: Likewise.
4085 * config/i386/nwld.c: Likewise.
4086 * config/i386/winnt-cxx.c: Likewise.
4087 * config/i386/winnt-stubs.c: Likewise.
4088 * config/i386/winnt.c: Likewise.
4089 * config/ia64/ia64-c.c: Likewise.
4090 * config/ia64/ia64.c: Likewise.
4091 * config/iq2000/iq2000.c: Likewise.
4092 * config/lm32/lm32.c: Likewise.
4093 * config/m32c/m32c-pragma.c: Likewise.
4094 * config/m32c/m32c.c: Likewise.
4095 * config/m32r/m32r.c: Likewise.
4096 * config/m68hc11/m68hc11.c: Likewise.
4097 * config/m68k/m68k.c: Likewise.
4098 * config/mcore/mcore.c: Likewise.
4099 * config/mep/mep-pragma.c: Likewise.
4100 * config/mep/mep.c: Likewise.
4101 * config/mmix/mmix.c: Likewise.
4102 * config/mn10300/mn10300.c: Likewise.
4103 * config/moxie/moxie.c: Likewise.
4104 * config/pa/pa.c: Likewise.
4105 * config/pdp11/pdp11.c: Likewise.
4106 * config/picochip/picochip.c: Likewise.
4107 * config/rs6000/rs6000-c.c: Likewise.
4108 * config/rs6000/rs6000.c: Likewise.
4109 * config/rx/rx.c: Likewise.
4110 * config/s390/s390.c: Likewise.
4111 * config/score/score.c: Likewise.
4112 * config/score/score3.c: Likewise.
4113 * config/score/score7.c: Likewise.
4114 * config/sh/sh.c: Likewise.
4115 * config/sh/symbian-base.c: Likewise.
4116 * config/sh/symbian-c.c: Likewise.
4117 * config/sh/symbian-cxx.c: Likewise.
4118 * config/sol2-c.c: Likewise.
4119 * config/sol2.c: Likewise.
4120 * config/sparc/sparc.c: Likewise.
4121 * config/spu/spu.c: Likewise.
4122 * config/stormy16/stormy16.c: Likewise.
4123 * config/v850/v850-c.c: Likewise.
4124 * config/v850/v850.c: Likewise.
4125 * config/vax/vax.c: Likewise.
4126 * config/vxworks.c: Likewise.
4127 * config/xtensa/xtensa.c: Likewise.
4128 * convert.c: Likewise.
4129 * cse.c: Likewise.
4130 * cselib.c: Likewise.
4131 * dbgcnt.c: Likewise.
4132 * dbxout.c: Likewise.
4133 * ddg.c: Likewise.
4134 * dominance.c: Likewise.
4135 * emit-rtl.c: Likewise.
4136 * explow.c: Likewise.
4137 * expmed.c: Likewise.
4138 * fixed-value.c: Likewise.
4139 * fold-const.c: Likewise.
4140 * fwprop.c: Likewise.
4141 * gcse.c: Likewise.
4142 * ggc-common.c: Likewise.
4143 * ggc-page.c: Likewise.
4144 * ggc-zone.c: Likewise.
4145 * gimple-low.c: Likewise.
4146 * gimplify.c: Likewise.
4147 * graph.c: Likewise.
4148 * haifa-sched.c: Likewise.
4149 * ifcvt.c: Likewise.
4150 * implicit-zee.c: Likewise.
4151 * integrate.c: Likewise.
4152 * ira-build.c: Likewise.
4153 * ira-color.c: Likewise.
4154 * ira-conflicts.c: Likewise.
4155 * ira-costs.c: Likewise.
4156 * ira-lives.c: Likewise.
4157 * ira.c: Likewise.
4158 * lists.c: Likewise.
4159 * loop-doloop.c: Likewise.
4160 * loop-iv.c: Likewise.
4161 * lto-opts.c: Likewise.
4162 * lto-symtab.c: Likewise.
4163 * main.c: Likewise.
4164 * modulo-sched.c: Likewise.
4165 * optabs.c: Likewise.
4166 * params.c: Likewise.
4167 * plugin.c: Likewise.
4168 * postreload-gcse.c: Likewise.
4169 * postreload.c: Likewise.
4170 * predict.c: Likewise.
4171 * profile.c: Likewise.
4172 * real.c: Likewise.
4173 * regcprop.c: Likewise.
4174 * reginfo.c: Likewise.
4175 * regmove.c: Likewise.
4176 * reorg.c: Likewise.
4177 * resource.c: Likewise.
4178 * rtl.c: Likewise.
4179 * rtlanal.c: Likewise.
4180 * sched-deps.c: Likewise.
4181 * sched-ebb.c: Likewise.
4182 * sched-rgn.c: Likewise.
4183 * sdbout.c: Likewise.
4184 * sel-sched-dump.c: Likewise.
4185 * sel-sched-ir.c: Likewise.
4186 * simplify-rtx.c: Likewise.
4187 * stmt.c: Likewise.
4188 * stor-layout.c: Likewise.
4189 * store-motion.c: Likewise.
4190 * targhooks.c: Likewise.
4191 * tree-cfg.c: Likewise.
4192 * tree-cfgcleanup.c: Likewise.
4193 * tree-dump.c: Likewise.
4194 * tree-eh.c: Likewise.
4195 * tree-inline.c: Likewise.
4196 * tree-nomudflap.c: Likewise.
4197 * tree-object-size.c: Likewise.
4198 * tree-optimize.c: Likewise.
4199 * tree-outof-ssa.c: Likewise.
4200 * tree-phinodes.c: Likewise.
4201 * tree-profile.c: Likewise.
4202 * tree-ssa-ccp.c: Likewise.
4203 * tree-ssa-coalesce.c: Likewise.
4204 * tree-ssa-live.c: Likewise.
4205 * tree-ssa-loop-niter.c: Likewise.
4206 * tree-ssa-loop-prefetch.c: Likewise.
4207 * tree-ssa-loop.c: Likewise.
4208 * tree-ssa-structalias.c: Likewise.
4209 * tree-ssa-uninit.c: Likewise.
4210 * tree-ssa.c: Likewise.
4211 * tree-vect-data-refs.c: Likewise.
4212 * tree-vect-loop-manip.c: Likewise.
4213 * tree-vect-loop.c: Likewise.
4214 * tree-vect-patterns.c: Likewise.
4215 * tree-vect-stmts.c: Likewise.
4216 * tree-vrp.c: Likewise.
4217 * varasm.c: Likewise.
4218 * vec.c: Likewise.
4219 * web.c: Likewise.
4220 * xcoffout.c: Likewise.
4221
4222 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
4223
4224 * gengtype.c (write_field_root): New function.
4225 (write_root): Use it.
4226
4227 2010-07-07 Wei Guozhi <carrot@google.com>
4228
4229 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
4230 of lowest bits to lshift/compare): Add a missing line.
4231
4232 2010-07-07 Wei Guozhi <carrot@google.com>
4233
4234 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
4235 of lowest bits to lshift/compare): New.
4236
4237 2010-07-07 Tom Tromey <tromey@redhat.com>
4238
4239 * doc/tm.texi: Update.
4240 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
4241 Add @hook.
4242 * target.def (want_debug_pub_sections): New hook.
4243 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
4244 * dwarf2out.c (add_pubname_string): Check
4245 targetm.want_debug_pub_sections.
4246 (add_pubname): Likewise.
4247 (add_pubtype): Likewise.
4248
4249 2010-07-07 Jie Zhang <jie@codesourcery.com>
4250
4251 * genautomata.c (output_automata_list_min_issue_delay_code):
4252 Correctly decompress min_issue_delay.
4253
4254 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
4255
4256 PR rtl-optimization/44404
4257 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
4258 possible, use reg_overlap_mentioned_p instead.
4259
4260 2010-07-07 Duncan Sands <baldrick@free.fr>
4261
4262 PR middle-end/41355
4263 * tree.c (build_function_type_skip_args): Copy the original type using
4264 build_distinct_type_copy rather than copy_node.
4265
4266 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
4267
4268 PR target/44850
4269 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
4270 revision 161876.
4271 (ix86_expand_prologue): Likewise.
4272 (ix86_handle_fndecl_attribute): Likewise.
4273 (ix86_asm_declare_function_name): Likewise.
4274 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4275 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4276 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
4277 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
4278 * doc/extend.texi: Likewise.
4279
4280 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
4281
4282 PR target/44844
4283 * config/i386/i386.md (rdrand<mode>): Changed to expand to
4284 retry if the carry flag isn't valid.
4285 (rdrand<mode>_1): New.
4286
4287 2010-07-07 Richard Guenther <rguenther@suse.de>
4288
4289 PR middle-end/44790
4290 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
4291 for expanding the constant offset for MEM_REFs.
4292
4293 2010-07-07 Richard Guenther <rguenther@suse.de>
4294
4295 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
4296 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
4297 * gimple.h (is_gimple_operand): Remove.
4298 * gimple.c (is_gimple_operand): Likewise.
4299 (walk_gimple_op): Fix wi->val_only setting for calls.
4300 * tree-cfg.c (verify_gimple_call): Fix argument validation.
4301 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
4302 invalid gimple calls.
4303
4304 2010-07-06 Jan Hubicka <jh@suse.cz>
4305
4306 * lto-cgraph.c (output_cgraph): Add missing declaration.
4307
4308 2010-07-06 Jan Hubicka <jh@suse.cz>
4309
4310 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
4311 partition.
4312
4313 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
4314
4315 * doc/gimple.texi (GIMPLE_DEBUG): Document.
4316 * doc/rtl.texi (Debug Information): New node.
4317 (NOTE_INSN_VAR_LOCATION): Document.
4318 (debug_insn): Likewise.
4319 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
4320
4321 2010-07-07 Jan Hubicka <jh@suse.cz>
4322
4323 With parts by Richard Guenther.
4324
4325 PR middle-end/44813
4326 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
4327 for functions passed by reference.
4328 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
4329 in memory when passed by reference.
4330 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
4331 beggining.
4332 * ipa-split.c (split_function): Cleanup way return value is passed;
4333 handle SSA DECL_BY_REFERENCE retvals.
4334 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
4335 DECL_BY_REFERENCE is set.
4336 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
4337 find_what_p_points_to): Handle RESULT_DECL.
4338 * tree-inline.c (declare_return_variable): Get new entry_block argument;
4339 when passing by reference ensure that RESULT_DECL is gimple_val.
4340 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
4341 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
4342
4343 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
4344
4345 PR rtl-optimization/44787
4346 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
4347 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
4348
4349 2010-07-06 Jan Hubicka <jh@suse.cz>
4350
4351 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
4352 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
4353 with body can prevail.
4354 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
4355 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
4356 * cgraph.c (cgraph_get_node_or_alias): New function.
4357 * cgraph.h (cgraph_get_node_or_alias): Declare.
4358
4359 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
4360
4361 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
4362 support.
4363 (ix86_expand_prologue): Likewise.
4364 (ix86_handle_fndecl_attribute): Likewise.
4365 (ix86_asm_declare_function_name): New function for
4366 ASM_DECLARE_FUNCTION_NAME.
4367 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
4368 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
4369 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
4370 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
4371 * doc/extend.texi: Adjust documentation about ms_hook_prologue
4372 attribute.
4373
4374 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
4375
4376 * config/i386/i386.md (immediate_operand): New mode attribute.
4377
4378 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
4379 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
4380 using P mode iterator.
4381 (pro_epilogue_adjust_stack_di_2): Rename from
4382 pro_epilogue_adjust_stack_rex64_2.
4383
4384 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
4385
4386 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
4387
4388 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
4389 through gen_mov_insv_1 function pointer.
4390 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
4391 gen_truncxf<mode>2 through gen_truncxf function pointer.
4392 (remainder<mode>3): Ditto.
4393 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
4394 (allocate_stack): Call gen_allocate_stack_worker_64 or
4395 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
4396 function pointer.
4397 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
4398 function pointer.
4399
4400 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
4401
4402 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
4403 operand constraint instead of <r><i>m.
4404
4405 2010-07-06 Richard Guenther <rguenther@suse.de>
4406
4407 PR middle-end/44828
4408 * convert.c (convert_to_integer): Watch out for overflowing
4409 MULT_EXPR as well.
4410
4411 2010-07-05 Jan Hubicka <jh@suse.cz>
4412
4413 * lto-streamer.c (write_symbol_vec): Rename to ...
4414 (write_symbol) ... this one; write only symbol given and when
4415 present in cache. Sanity check that what is defined is present
4416 in cgraph/varpool with body/finalized decl.
4417 (write_symbols_of_kind): Remove.
4418 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
4419 pairs to produce symtab.
4420 (produce_asm_for_decls): Update call of produce_symtab; don't do so
4421 when doing WPA streaming.
4422
4423 2010-07-05 Jan Hubicka <jh@suse.cz>
4424
4425 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
4426 function is still available to fold into.
4427
4428 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
4429
4430 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
4431 * function.h (struct_function): Change type of local_decls field
4432 to a VEC.
4433 (add_local_decl): New function.
4434 (FOR_EACH_LOCAL_DECL): New macro.
4435 * cfgexpand.c (init_vars_expansion): Adjust for new type of
4436 cfun->local_decls.
4437 (estimated_stack_frame_size): Likewise.
4438 (expand_used_vars): Likewise.
4439 * cgraphbuild.c (build_cgraph_edges): Likewise.
4440 * function.c (instantiate_decls_1): Likewise.
4441 * ipa-struct-reorg.c (build_data_structure): Likewise.
4442 * ipa-type-escape.c (analyze_function): Likewise.
4443 * lto-streamer-in.c (input_function): Likewise.
4444 * lto-streamer-out.c (output_function): Likewise.
4445 * tree-ssa-live.c (remove_unused_locals): Likewise.
4446 * tree.c (free_lang_data_in_decl): Likewise.
4447 (find_decls_types_in_node): Likewise.
4448 * omp-low.c (remove_exit_barrier): Likewise.
4449 (expand_omp_taskreg): Likewise.
4450 (list2chain): Rename to...
4451 (vec2chain): ...this. Adjust.
4452 * cgraphunit.c (assemble_thunk): Call add_local_decl.
4453 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
4454 * gimple-low.c (record_vars_into): Likewise.
4455 * tree-inline.c (remap_decls): Likewise.
4456 (declare_return_variable): Likewise.
4457 (declare_inline_vars): Likewise.
4458 (copy_forbidden): Adjust for new type of cfun->local_decls.
4459 (add_local_variables): New function.
4460 (expand_call_inline): Call it.
4461 (tree_function_versioning): Likewise.
4462
4463 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
4464
4465 AVX Programming Reference (June, 2010)
4466 * config/i386/cpuid.h (bit_F16C): New.
4467 (bit_RDRND): Likewise.
4468 (bit_FSGSBASE): Likewise.
4469
4470 * config/i386/i386-builtin-types.def: Add
4471 "DEF_FUNCTION_TYPE (UINT16)", function types for
4472 float16 <-> float conversions and
4473 "DEF_FUNCTION_TYPE (VOID, UINT64)".
4474
4475 * config/i386/i386-c.c (ix86_target_macros_internal): Support
4476 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
4477 OPTION_MASK_ISA_F16C.
4478
4479 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
4480 (OPTION_MASK_ISA_RDRND_SET): Likewise.
4481 (OPTION_MASK_ISA_F16C_SET): Likewise.
4482 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
4483 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
4484 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
4485 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
4486 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
4487 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
4488 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
4489 (override_options): Handle them.
4490 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
4491 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
4492 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
4493 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
4494 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
4495 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
4496 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
4497 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
4498 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
4499 (bdesc_args): Likewise.
4500 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
4501 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
4502 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
4503 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
4504 Handle non-memory store.
4505
4506 * config/i386/i386.h (TARGET_FSGSBASE): New.
4507 (TARGET_RDRND): Likewise.
4508 (TARGET_F12C): Likewise.
4509
4510 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
4511 (UNSPEC_VCVTPS2PH): Likewise.
4512 (UNSPECV_RDFSBASE): Likewise.
4513 (UNSPECV_RDGSBASE): Likewise.
4514 (UNSPECV_WRFSBASE): Likewise.
4515 (UNSPECV_WRGSBASE): Likewise.
4516 (UNSPECV_RDRAND): Likewise.
4517 (rdfsbase<mode>): Likewise.
4518 (rdgsbase<mode>): Likewise.
4519 (wrfsbase<mode>): Likewise.
4520 (wrgsbase<mode>): Likewise.
4521 (rdrand<mode>): Likewise.
4522
4523 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
4524
4525 * config/i386/immintrin.h (_rdrand_u16): New.
4526 (_rdrand_u32): Likewise.
4527 (_readfsbase_u32): Likewise.
4528 (_readfsbase_u64): Likewise.
4529 (_readgsbase_u32): Likewise.
4530 (_readgsbase_u64): Likewise.
4531 (_writefsbase_u32): Likewise.
4532 (_writefsbase_u64): Likewise.
4533 (_writegsbase_u32): Likewise.
4534 (_writegsbase_u64): Likewise.
4535 (_rdrand_u64): Likewise.
4536 (_cvtsh_ss): Likewise.
4537 (_mm_cvtph_ps): Likewise.
4538 (_mm256_cvtph_ps): Likewise.
4539 (_cvtss_sh): Likewise.
4540 (_mm_cvtps_ph): Likewise.
4541 (_mm256_cvtps_ph): Likewise.
4542
4543 * config/i386/sse.md (vcvtph2ps): New.
4544 (*vcvtph2ps_load): Likewise.
4545 (vcvtph2ps256): Likewise.
4546 (vcvtps2ph): Likewise.
4547 (*vcvtps2ph): Likewise.
4548 (*vcvtps2ph_store): Likewise.
4549 (vcvtps2ph256): Likewise.
4550
4551 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
4552
4553 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
4554
4555 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
4556
4557 PR bootstrap/44512
4558 * genenums.c (main): Output include of insn-constants.h
4559 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
4560
4561 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
4562
4563 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
4564 (override_options): Initialize it.
4565 (ix86_expand_prologue): Use it.
4566
4567 2010-07-05 Jakub Jelinek <jakub@redhat.com>
4568
4569 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
4570
4571 2010-07-05 Anatoly Sokolov <aesok@post.ru>
4572
4573 * double-int.h (fit_double_type): Remove declaration.
4574 * double-int.c (fit_double_type): Remove function.
4575 * tree.h (int_fits_type_p): Adjust prototype.
4576 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
4577 instead of fit_double_type.
4578 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
4579 instead of fit_double_type and build_int_cst_wide.
4580 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
4581 instead of fit_double_type and build_int_cst_wide.
4582 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
4583 of fit_double_type.
4584
4585 2010-07-05 Jan Hubicka <jh@suse.cz>
4586
4587 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
4588 in_other_partition.
4589 * lto-cgraph.c (referenced_from_other_partition_p,
4590 reachable_from_other_partition_p): Use in_other_partition flags.
4591 (output_node, output_varpool_node): COMDAT nodes always have private
4592 copies and thus are never used from other partition.
4593
4594 2010-07-05 Anatoly Sokolov <aesok@post.ru>
4595
4596 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4597 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
4598 * config/ia64/ia64.c Include reload.h.
4599 (ia64_memory_move_cost): New function.
4600 (TARGET_MEMORY_MOVE_COST): Define.
4601 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
4602 memory_move_cost.
4603
4604 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
4605
4606 PR middle-end/42505
4607 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
4608 comments about cost model.
4609 (try_add_cand_for): Add second strategy for choosing initial set
4610 based on original IVs, controlled by ORIGINALP argument.
4611 (get_initial_solution): Add ORIGINALP argument.
4612 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
4613 (find_optimal_iv_set): Try two different strategies for choosing
4614 the IV set, and return the one with lower cost.
4615
4616 2010-07-05 Richard Guenther <rguenther@suse.de>
4617
4618 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
4619
4620 2010-07-05 Richard Guenther <rguenther@suse.de>
4621
4622 * tree.c (reference_alias_ptr_type): New function.
4623 * tree.h (reference_alias_ptr_type): Declare.
4624 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
4625 allow non-TARGET_MEM_REF new refs.
4626 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
4627 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
4628 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
4629 (create_mem_ref): Get alias pointer type. Adjust calls to
4630 create_mem_ref_raw.
4631 (maybe_fold_tmr): Likewise.
4632 * tree-flow.h (create_mem_ref): Adjust prototype.
4633
4634 2010-07-05 Jakub Jelinek <jakub@redhat.com>
4635
4636 PR c++/44808
4637 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
4638 *from_p is VAR_DECL.
4639
4640 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
4641
4642 * tree.h (build_call_list): Remove.
4643 * tree.c (build_call_list): Remove.
4644
4645 2010-07-05 Richard Guenther <rguenther@suse.de>
4646
4647 * double-int.h (double_int_sub): Declare.
4648 * double-int.c (double_int_sub): New function.
4649 * dwarf2out.c (field_byte_offset): Use it.
4650 * fixed-value.c (do_fixed_add): Likewise.
4651 (do_fixed_multiply): Likewise.
4652 (do_fixed_divide): Likewise.
4653 * tree-predcom.c (add_ref_to_chain): Likewise.
4654 (determine_roots_comp): Likewise.
4655 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
4656
4657 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
4658
4659 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
4660 implementations.
4661
4662 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
4663
4664 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
4665 * arm-modes.def (CC_NOTB): Don't define.
4666 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
4667 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
4668 (LTUGEU): New code_iterator.
4669 (cnb, optab): New corresponding code_attrs.
4670 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
4671 to canonical form. Operands 1 and 2 are commutative. Parametrize
4672 using LTUGEU.
4673 (addsi3_carryin_shift_<optab>): Likewise.
4674 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
4675 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
4676 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
4677 (subsi3_compare): Renamed from subsi3_compare0_c.
4678 Change CC_NOTB to CC.
4679 (arm_subsi3_insn): Allow constants for operand 0.
4680 (compare_scc peephole for eq case): New.
4681 (compare_scc splitters): Change CC_NOTB to CC.
4682
4683 2010-07-05 Richard Guenther <rguenther@suse.de>
4684
4685 * tree-ssa-loop-im.c (for_each_index): Do not handle
4686 ALIGN_INDIRECT_REF.
4687 (gen_lsm_tmp_name): Likewise.
4688 * tree-dump.c (dequeue_and_dump): Likewise.
4689 * tree-pretty-print.c (dump_generic_node): Likewise.
4690 (op_code_prio): Likewise.
4691 (op_symbol_code): Likewise.
4692 * tree.c (staticp): Likewise.
4693 (build1_stat): Likewise.
4694 * tree.h (INDIRECT_REF_P): Likewise.
4695 * fold-const.c (maybe_lvalue_p): Likewise.
4696 (operand_equal_p): Likewise.
4697 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4698 (ao_ref_init_from_vn_reference): Likewise.
4699 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
4700 (find_interesting_uses_address): Likewise.
4701 * dwarf2out.c (loc_list_from_tree): Likewise.
4702 * gimplify.c (gimplify_expr): Likewise.
4703 * tree-eh.c (tree_could_trap_p): Likewise.
4704 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4705 * cfgexpand.c (expand_debug_expr): Likewise.
4706 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4707 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
4708 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
4709 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
4710 * tree-ssa-operands.c (get_expr_operands): Likewise.
4711 * expr.c (safe_from_p): Likewise.
4712 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
4713 * tree-vect-data-refs.c (vect_setup_realignment): Build
4714 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
4715 * tree-vect-stmts.c (vectorizable_load): Likewise.
4716 * tree.def (ALIGN_INDIRECT_REF): Remove.
4717
4718 2010-07-05 Richard Guenther <rguenther@suse.de>
4719
4720 PR tree-optimization/44784
4721 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
4722 for inserted stmts.
4723 (find_or_generate_expression): Fix SCCVN insertion check.
4724
4725 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
4726
4727 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
4728 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
4729 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
4730 directives.
4731
4732 2010-07-05 Ira Rosen <irar@il.ibm.com>
4733
4734 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
4735 statements that are not vectorized.
4736 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
4737 in INSIDE_COST.
4738
4739 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
4740
4741 PR bootstrap/44820
4742 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
4743
4744 2010-07-05 Richard Guenther <rguenther@suse.de>
4745
4746 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
4747 RESULT_DECLs properly.
4748
4749 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
4750
4751 PR rtl-optimization/44695
4752 * config/i386/i386.md (extract_code): Removed.
4753 (<u>divmodqi4): Likewise.
4754 (divmodqi4): New.
4755 (udivmodqi4): Likewise.
4756 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
4757 (udivmodhiqi3): Likewise.
4758
4759 2010-07-04 Jan Hubicka <jh@suse.cz>
4760
4761 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
4762
4763 2010-07-04 Jan Hubicka <jh@suse.cz>
4764
4765 * cgraphunit.c (init_cgraph): Only initialize dump file if it
4766 is not already initialized.
4767
4768 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
4769
4770 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
4771 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
4772 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
4773 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
4774 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
4775 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
4776 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
4777 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
4778 (sync_new_nand_optab): Redefine as macros.
4779 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
4780 Delete.
4781 (direct_optab_index): New enum.
4782 (direct_optab_d): New structure.
4783 (direct_optab): New typedef.
4784 (direct_optab_table): Declare.
4785 (direct_optab_handler, set_direct_optab_handler): New functions.
4786 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
4787 (sync_lock_release_optab): New macros.
4788 * optabs.c (direct_optab_table): New variable.
4789 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
4790 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
4791 cmpstr_optab and cmpstrn_optab.
4792 (emit_conditional_move): Likewise for movcc_optab.
4793 (can_conditionally_move_p): Likewise for movcc_gen_code.
4794 (init_insn_codes): Clear direct_optab_table.
4795 (init_optabs): Don't initialize the new "direct optabs" here.
4796 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
4797 vcond_gen_code.
4798 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
4799 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
4800 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
4801 (expand_sync_operation): Likewise other sync_*_optabs.
4802 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
4803 to sync_compare_and_swap_optab.
4804 (expand_sync_lock_test_and_set): Use direct_optab_handler for
4805 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
4806 to the names of both.
4807 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
4808 cmpstr_optab and cmpstrn_optab.
4809 (expand_builtin_lock_release): Likewise sync_lock_release.
4810 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
4811 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
4812 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
4813 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
4814 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
4815 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
4816 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
4817 (sync_lock_test_and_set, sync_lock_release): Delete.
4818 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
4819 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
4820 * genopinit.c (optabs): Use set_direct_optab_handler for the new
4821 macro optabs.
4822 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
4823 the "optab" local variable. Use direct_optab_handler for optab and
4824 sync_compare_and_swap_optab.
4825 * reload1.c (reload_in_optab, reload_out_optab): Delete.
4826 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
4827 reload_in_optab and reload_out_optab.
4828 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4829 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
4830 * config/pa/pa.c (pa_secondary_reload): Likewise.
4831 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
4832 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
4833 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
4834 (VMSupportsCS8_builtin): Likewise.
4835
4836 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
4837
4838 * optabs.h (optab_handlers): Change type of insn_code to int.
4839 (optab_handler, set_optab_handler, convert_optab_handler)
4840 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
4841 CODE_FOR_nothing".
4842 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
4843 (init_insn_codes): Zero both the above arrays.
4844 (init_optabs): Never call init_insn_codes first time around.
4845
4846 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
4847
4848 * optabs.h (optab_handler, convert_optab_handler): Turn into
4849 inline functions that return an insn code.
4850 (set_optab_handler, set_convert_optab_handler): New functions.
4851 * builtins.c: Replace optab_handler(X)->insn_code with
4852 optab_handler or set_optab_handler thoughout. Likewise
4853 convert_optab_handler(X)->insn_code with convert_optab_handler
4854 and set_convert_optab_handler.
4855 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
4856 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
4857 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
4858 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
4859 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
4860 config/spu/spu.c: Likewise.
4861
4862 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
4863
4864 PR target/44531
4865 * config.gcc (sh*-*-*): Use regular expressions instead of
4866 the 'i' modifier for sed substitutions.
4867
4868 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
4869
4870 * gimple.c (gimple_body): Comments added.
4871
4872 2010-07-04 Richard Guenther <rguenther@suse.de>
4873
4874 PR middle-end/44809
4875 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
4876 of an INDIRECT_REF.
4877
4878 2010-07-04 Richard Guenther <rguenther@suse.de>
4879
4880 PR tree-optimization/44479
4881 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
4882 extra SSA name copy statements which preserves points-to
4883 information.
4884 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4885 Copy points-to information for all pointers. Properly handle
4886 MEM_REFs.
4887 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
4888 copy statements.
4889 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
4890 dependency.
4891
4892 2010-07-04 Richard Guenther <rguenther@suse.de>
4893
4894 PR middle-end/44785
4895 * tree-inline.c (initialize_inlined_parameters): Do not
4896 re-use pointer-map slot over remap_type call.
4897
4898 2010-07-04 Richard Guenther <rguenther@suse.de>
4899
4900 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
4901
4902 2010-07-04 Richard Guenther <rguenther@suse.de>
4903
4904 PR tree-optimization/44656
4905 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
4906 again after value-replacing in the defintions lhs.
4907
4908 2010-07-04 Ira Rosen <irar@il.ibm.com>
4909 Revital Eres <eres@il.ibm.com>
4910
4911 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
4912 Document new arguments.
4913 * doc/tm.texi: Regenerate.
4914 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
4915 Handle unaligned store.
4916 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
4917 * target.def (builtin_vectorization_cost): Add new arguments.
4918 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
4919 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
4920 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
4921 (vect_vfa_segment_size): Fix indentation.
4922 * tree-vectorizer.h (struct _vect_peel_info): New.
4923 (struct _vect_peel_extended_info): New.
4924 (struct _loop_vec_info): Add new field for peeling hash table and a
4925 macro for its access.
4926 (VECT_MAX_COST): Define.
4927 (vect_get_load_cost): Declare.
4928 (vect_get_store_cost, vect_get_known_peeling_cost,
4929 vect_get_single_scalar_iteraion_cost): Likewise.
4930 (vect_supportable_dr_alignment): Add new argument.
4931 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
4932 field.
4933 (destroy_loop_vec_info): Free peeling hash table.
4934 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
4935 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
4936 vect_analyze_slp. Fix indentation.
4937 (vect_get_single_scalar_iteraion_cost): New function.
4938 (vect_get_known_peeling_cost): Likewise.
4939 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
4940 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
4941 statement. Move outside cost calculation inside unknown peeling case.
4942 Call vect_get_known_peeling_cost for known amount of peeling.
4943 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
4944 reference to the print message of forced alignment.
4945 (vect_verify_datarefs_alignment): Update call to
4946 vect_supportable_dr_alignment.
4947 (vect_get_data_access_cost): New function.
4948 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
4949 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
4950 vect_peeling_hash_choose_best_peeling): Likewise.
4951 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
4952 to store all the accesses in the loop and find best possible access to
4953 align using peeling for known alignment case. For unknown alignment
4954 check if stores are preferred or if peeling is worthy.
4955 (vect_find_same_alignment_drs): Analyze pairs of loads too.
4956 (vect_supportable_dr_alignment): Add new argument and check aligned
4957 accesses according to it.
4958 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
4959 (cost_for_stmt): Call vect_get_stmt_cost.
4960 (vect_model_simple_cost): Likewise.
4961 (vect_model_store_cost): Call vect_get_stmt_cost. Call
4962 vect_get_store_cost to calculate the cost of the statement.
4963 (vect_get_store_cost): New function.
4964 (vect_model_load_cost): Call vect_get_stmt_cost. Call
4965 vect_get_load_cost to calculate the cost of the statement.
4966 (vect_get_load_cost): New function.
4967 (vectorizable_store): Update call to vect_supportable_dr_alignment.
4968 (vectorizable_load): Likewise.
4969 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
4970 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
4971 arguments. Handle unaligned store.
4972 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
4973 (rs6000_builtin_support_vector_misalignment): Return true for word and
4974 double word alignments for VSX.
4975 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
4976 vect_supportable_dr_alignment and builtin_vectorization_cost.
4977
4978 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4979
4980 PR target/44597
4981 * config/pa/predicates.md (prefetch_cc_operand): Remove.
4982 (prefetch_nocc_operand): Likewise.
4983 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
4984 (prefetch_20): New insn.
4985 (prefetch_cc): Remove.
4986 (prefetch_nocc): Likewise.
4987
4988 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4989
4990 * expr.c (vector_mode_valid_p): Move to c-common.c.
4991 * expr.h (vector_mode_valid_p): Do not declare here.
4992 * system.h: Poison GCC_EXPR_H in front-ends.
4993 * Makefile.in: Update dependencies.
4994
4995 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4996
4997 PR target/44705
4998 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
4999
5000 2010-07-03 Jan Hubicka <jh@suse.cz>
5001
5002 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
5003 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
5004 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
5005 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
5006 Likewise.
5007
5008 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
5009 Update timevars.V
5010 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
5011 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
5012 TV_IPA_LTO_DECL_OUT): New.
5013 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
5014
5015 2010-07-03 Jan Hubicka <jh@suse.cz>
5016
5017 * ipa-inline.c (update_edge_key): Break out from ...
5018 update_callers_keys): ... here;
5019 (update_callee_keys): Update only the edges from caller to callee.
5020 (update_all_calle_keys): Do what update_calle_keys did.
5021 (decide_inlining_of_small_functions): Avoid recomputing of all
5022 callees when badness increase.
5023
5024 2010-07-03 Jie Zhang <jie@codesourcery.com>
5025
5026 * config/arm/arm.c (arm_attr_length_move_neon): New.
5027 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
5028 * config/arm/neon.md (define_mode_attr V_slen): Remove.
5029 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
5030 to compute length attribute.
5031
5032 2010-07-03 Jie Zhang <jie@codesourcery.com>
5033
5034 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
5035 as predicate for operand 1 and remove its constraint.
5036 * config/arm/predicates.md (vfp_register_operand): New.
5037 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
5038 (*push_fp_multi): Likewise.
5039
5040 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5041
5042 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
5043
5044 2010-07-03 Jan Hubicka <jh@suse.cz>
5045
5046 * config/i386/i386.c (override_options): Revert accidental commit.
5047
5048 2010-07-02 Le-Chun Wu <lcwu@google.com>
5049
5050 PR c++/44128
5051 * doc/invoke.texi: Update documentation of -Wshadow.
5052
5053 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
5054 Julian Brown <julian@codesourcery.com>
5055 Sandra Loosemore <sandra@codesourcery.com>
5056
5057 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
5058 comparisons. Adjust to take both operands.
5059 (arm_select_cc_mode): Handle DImode comparisons.
5060 (arm_gen_compare_reg): Generate a scratch register for DImode
5061 comparisons which require one. Use xor for Thumb equality checks.
5062 (arm_const_double_by_immediates): New.
5063 (arm_print_operand): Allow 'Q' and 'R' for constants.
5064 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
5065 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
5066 arm_canonicalize_comparison.
5067 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
5068 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
5069 prototype.
5070 (arm_const_double_by_immediates): Declare.
5071 * config/arm/constraints.md (Di): New constraint.
5072 * config/arm/predicates.md (arm_immediate_di_operand)
5073 (arm_di_operand, cmpdi_operand): New.
5074 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
5075 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
5076 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
5077 (cstoredi4): Handle non-Cirrus also.
5078
5079 2010-07-02 Julian Brown <julian@codesourcery.com>
5080 Sandra Loosemore <sandra@codesourcery.com>
5081
5082 PR target/43703
5083 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
5084 (smax<mode>3): Disable for NEON float modes when
5085 flag_unsafe_math_optimizations is false.
5086 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
5087 (*mul<mode>3_neon)
5088 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
5089 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
5090 for NEON float modes when flag_unsafe_math_optimizations is false.
5091 (quad_halves_<code>v4sf): Only enable if
5092 flag_unsafe_math_optimizations is true.
5093 * doc/invoke.texi (ARM Options): Add note about floating point
5094 vectorization requiring -funsafe-math-optimizations.
5095
5096 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
5097 Julian Brown <julian@codesourcery.com>
5098
5099 * config/arm/neon.md (UNSPEC_VABA): Delete.
5100 (UNSPEC_VABAL): Delete.
5101 (UNSPEC_VABS): Delete.
5102 (UNSPEC_VMUL_N): Delete.
5103 (adddi3_neon): New.
5104 (subdi3_neon): New.
5105 (mul<mode>3add<mode>_neon): Make the pattern named.
5106 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
5107 (neon_vadd<mode>): Replace with define_expand, and move the remaining
5108 unspec parts...
5109 (neon_vadd<mode>_unspec): ...to this.
5110 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
5111 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
5112 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
5113 (neon_vaba<mode>): Rewrite in terms of vabd.
5114 (neon_vabal<mode>): Rewrite in terms of vabdl.
5115 (neon_vabs<mode>): Rewrite without unspec.
5116 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
5117 (*arm_subdi3): Likewise.
5118 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
5119 No_op attribute to disable assembly output checks.
5120 * config/arm/arm_neon.h: Regenerated.
5121 * doc/arm-neon-intrinsics.texi: Regenerated.
5122
5123 2010-07-02 Jan Hubicka <jh@suse.cz>
5124
5125 * ipa-split.c (split_function): For aggregate values, set the return
5126 slot optimization bit. When passing DECL_BY_REFERENCE, produce
5127 *<retval> = fncall.part ().
5128 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
5129
5130 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
5131
5132 * config/arm/neon.md (UNSPEC_VAND): Delete.
5133 (UNSPEC_VBIC): Delete.
5134 (UNSPEC_VCLZ): Delete.
5135 (UNSPEC_VCNT): Delete.
5136 (UNSPEC_VEOR): Delete.
5137 (UNSPEC_VORN): Delete.
5138 (UNSPEC_VORR): Delete.
5139 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
5140 core registers too.
5141 (anddi3_neon): Likewise.
5142 (orndi3_neon): Likewise.
5143 (bicdi3_neon): Likewise.
5144 (xordi3_neon): Likewise.
5145 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
5146 rid of unspec and handle unused operand.
5147 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
5148 * config/arm/predicates.md (imm_for_neon_logic_operand):
5149 Require TARGET_NEON.
5150 (imm_for_neon_inv_logic_operand): Likewise.
5151 * config/arm/arm.md (define_split for logical_binary_operator):
5152 Disable for NEON registers.
5153 (anddi3): Add new define_expand, and rename the insn. Disable
5154 this insn for NEON, where anddi3_neon now applies.
5155 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
5156 (iordi3): As for anddi3.
5157 (xordi3): Likewise.
5158 * config/arm/neon.ml (Vand): Split DImode variants and mark them
5159 as No_op to disable testing for exact instruction match.
5160 (Vorr): Likewise.
5161 (Veor): Likewise.
5162 (Vbic): Likewise.
5163 (Vorn): Likewise.
5164 * config/arm/arm_neon.h: Regenerated.
5165 * doc/arm-neon-intrinsics.texi: Regenerated.
5166
5167 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5168
5169 * expr.h (emit_stack_probe): Declare.
5170 * explow.c (emit_stack_probe): Make global.
5171 (anti_adjust_stack_and_probe): Fix comments.
5172 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5173 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5174 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5175 * config/sparc/sparc.c: Include except.h.
5176 (sparc_emit_probe_stack_range): New function.
5177 (output_probe_stack_range): Likewise.
5178 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
5179 built-in stack checking is enabled.
5180 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
5181 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5182 (probe_stack_range): New insn.
5183
5184 2010-07-02 Richard Guenther <rguenther@suse.de>
5185
5186 PR target/43958
5187 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
5188 for argument alignment.
5189
5190 2010-07-02 Jan Hubicka <jh@suse.cz>
5191
5192 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
5193 walk backwards from entry_bb to check only those basic block of header
5194 that might lead to execution of split part.
5195 (consider_split) ... here.
5196 (find_return_bb): Allow assignment in return BB.
5197 (find_retval): New.
5198 (split_function): Fix name of cloned function; take care of updating
5199 return value in return_bb containing move.
5200
5201 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
5202
5203 PR target/44771
5204 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
5205 used variable insn.
5206
5207 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5208
5209 * implicit-zee.c (combine_reaching_defs): Fix long lines.
5210 (is_set_with_extension_DI): Delete.
5211 (struct zero_extend_info): New structure.
5212 (add_removable_zero_extend): New function.
5213 (find_removable_zero_extends): Use note_stores to find SETs.
5214 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
5215
5216 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
5217
5218 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
5219 is_miss_rate_acceptable. Pull total_positions computation
5220 out of the loops. Early return if miss_positions exceeds
5221 the acceptable threshold.
5222 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
5223 is_miss_rate_acceptable after renaming of compute_miss_rate.
5224
5225 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
5226
5227 PR middle-end/44576
5228 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
5229 of 1000) for miss rate if the address diference is greater than or
5230 equal to the cache line size (the two reference will never hit the
5231 same cache line).
5232
5233 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
5234
5235 PR target/42835
5236 * config/arm/arm-modes.def (CC_NOTB): New mode.
5237 * config/arm/arm.c (get_arm_condition_code): Handle it.
5238 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
5239 * config/arm/arm.md (subsi3_compare0_c): New pattern.
5240 (compare_scc): Now a define_and_split. Add a number of extra
5241 splitters before it.
5242
5243 PR target/42172
5244 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
5245 and ZERO_EXTEND.
5246 (arm_rtx_costs_1): Likewise.
5247 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
5248 * config/arm/arm.md (is_arch6): New attribute.
5249 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
5250 extendqisi2): Tighten the code somewhat, avoiding invalid
5251 RTL to occur in the expander patterns.
5252 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
5253 (thumb1_zero_extendhisi2_v6): Delete.
5254 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
5255 (thumb1_extendhisi2_v6): Delete.
5256 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
5257 (thumb1_extendqisi2_v6): Delete.
5258 (zero_extendhisi2 for register input splitter): New.
5259 (zero_extendqisi2 for register input splitter): New.
5260 (thumb1_extendhisi2 for register input splitter): New.
5261 (extendhisi2 for register input splitter): New.
5262 (extendqisi2 for register input splitter): New.
5263 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
5264 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
5265 and add support for a register alternative requiring a split.
5266 (thumb1_zero_extendqisi2): Likewise.
5267 (arm_zero_extendqisi2): Likewise.
5268 (arm_extendhisi2): Likewise.
5269 (arm_extendqisi2): Likewise.
5270
5271 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
5272
5273 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
5274 instead of an unspec.
5275 (neon_expand_vector_init): Likewise.
5276 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
5277 (UNSPEC_VDUP_LANE): Delete.
5278 (UNSPEC VDUP_N): Delete.
5279 (UNSPEC_VGET_HIGH): Delete.
5280 (UNSPEC_VGET_LANE): Delete.
5281 (UNSPEC_VGET_LOW): Delete.
5282 (UNSPEC_VMVN): Delete.
5283 (UNSPEC_VSET_LANE): Delete.
5284 (V_double_vector_mode): New.
5285 (vec_set<mode>_internal): Make code emitted match that for the
5286 corresponding intrinsics.
5287 (vec_setv2di_internal): Likewise.
5288 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
5289 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
5290 (neon_vset_lane<mode>): Combine double and quad patterns and
5291 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
5292 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
5293 (neon_vdup_n<mode>): Rewrite RTL without unspec.
5294 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
5295 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
5296 with neon_vdup_lanev2di, adjusting the pattern from the latter
5297 to be predicable for consistency.
5298 (neon_vdup_lane<mode>_internal): New.
5299 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
5300 to avoid using an unspec.
5301 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
5302 (neon_vdup_lanev2di): Turn into a define_expand.
5303 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
5304 (neon_vget_high<mode>): Replace with....
5305 (neon_vget_highv16qi): New pattern using canonical RTL.
5306 (neon_vget_highv8hi): Likewise.
5307 (neon_vget_highv4si): Likewise.
5308 (neon_vget_highv4sf): Likewise.
5309 (neon_vget_highv2di): Likewise.
5310 (neon_vget_low<mode>): Replace with....
5311 (neon_vget_lowv16qi): New pattern using canonical RTL.
5312 (neon_vget_lowv8hi): Likewise.
5313 (neon_vget_lowv4si): Likewise.
5314 (neon_vget_lowv4sf): Likewise.
5315 (neon_vget_lowv2di): Likewise.
5316
5317 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
5318 test for this emitting vmov.
5319 (Vset_lane): Likewise.
5320 (Vdup_n): Likewise.
5321 (Vmov_n): Likewise.
5322
5323 * doc/arm-neon-intrinsics.texi: Regenerated.
5324
5325 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
5326
5327 * config/arm/neon.md (vec_extractv2di): Correct error in register
5328 numbering to reconcile with neon_vget_lanev2di.
5329
5330 2010-07-02 Richard Guenther <rguenther@suse.de>
5331
5332 * tree-ssa-structalias.c (pt_solution_set_var): New function.
5333 * tree-ssa-alias.h (pt_solution_set_var): Declare.
5334 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
5335 points-to information.
5336
5337 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
5338
5339 * config/s390/s390.c (override_options): Adopt prefetching
5340 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
5341
5342 2010-07-02 Jan Hubicka <jh@suse.cz>
5343
5344 * df-problems.c (df_kill_notes): Do not collect dead notes.
5345 (df_set_note): Just call add_reg_note.
5346 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
5347 df_create_unused_note): Do not deal with lists of old notes.
5348 (df_note_bb_compute): Likewise.
5349
5350 2010-07-02 Richard Guenther <rguenther@suse.de>
5351
5352 * tree-ssa-structalias.c (find_func_aliases): Handle
5353 pointer alignment via BIT_AND_EXPR.
5354 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
5355
5356 2010-07-02 Richard Guenther <rguenther@suse.de>
5357
5358 * tree-data-ref.c (initialize_data_dependence_relation): Handle
5359 mismatching number of dimensions properly.
5360
5361 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5362
5363 PR target/44707
5364 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
5365 (lo_sum (high ...) ...) patterns generated by earlier passes.
5366
5367 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5368
5369 * doc/install.texi (Prerequisites): Document Perl requirement on
5370 Solaris 2.
5371 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
5372
5373 2010-07-02 Richard Guenther <rguenther@suse.de>
5374
5375 PR middle-end/44777
5376 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
5377
5378 2010-07-02 Jan Hubicka <jh@suse.cz>
5379
5380 PR middle-end/44706
5381 * predict.c (predict_paths_for_bb): Handle case when control dependence
5382 BB has only abnormal edges.
5383
5384 2010-07-02 Richard Guenther <rguenther@suse.de>
5385
5386 PR tree-optimization/44748
5387 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
5388 the embedded conversion in MEM_REFs.
5389
5390 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
5391
5392 * reload.c: Include toplev.h.
5393 * recog.c: Likewise.
5394 * Makefile.in: Adjust dependencies.
5395
5396 2010-07-01 Jakub Jelinek <jakub@redhat.com>
5397
5398 PR debug/44694
5399 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
5400 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
5401
5402 2010-07-01 Richard Guenther <rguenther@suse.de>
5403
5404 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
5405 types for offsets.
5406
5407 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
5408
5409 PR target/44732
5410 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
5411 Fix argument types.
5412
5413 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
5414
5415 PR target/44727
5416 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5417 Make sure operand 0 dies.
5418
5419 2010-07-01 Richard Guenther <rguenther@suse.de>
5420
5421 PR middle-end/42834
5422 PR middle-end/44468
5423 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
5424 * doc/generic.texi (References to storage): Document MEM_REF.
5425 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
5426 (print_call_name): Likewise.
5427 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
5428 (build_simple_mem_ref_loc): New function.
5429 (mem_ref_offset): Likewise.
5430 * tree.h (build_simple_mem_ref_loc): Declare.
5431 (build_simple_mem_ref): Define.
5432 (mem_ref_offset): Declare.
5433 * fold-const.c: Include tree-flow.h.
5434 (operand_equal_p): Handle MEM_REF.
5435 (build_fold_addr_expr_with_type_loc): Likewise.
5436 (fold_comparison): Likewise.
5437 (fold_unary_loc): Fold
5438 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
5439 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
5440 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
5441 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
5442 (ptr_deref_may_alias_ref_p_1): Likewise.
5443 (ao_ref_base_alias_set): Properly differentiate base object for
5444 offset and TBAA.
5445 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
5446 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
5447 (indirect_refs_may_alias_p): Likewise.
5448 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
5449 chasing code.
5450 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
5451 (call_may_clobber_ref_p_1): Likewise.
5452 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
5453 * expr.c (expand_assignment): Handle MEM_REF.
5454 (store_expr): Handle MEM_REFs from STRING_CSTs.
5455 (store_field): If expanding a MEM_REF of a non-addressable
5456 decl use bitfield operations.
5457 (get_inner_reference): Handle MEM_REF.
5458 (expand_expr_addr_expr_1): Likewise.
5459 (expand_expr_real_1): Likewise.
5460 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
5461 * alias.c (ao_ref_from_mem): Handle MEM_REF.
5462 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
5463 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
5464 (dr_analyze_indices): Likewise.
5465 (dr_analyze_alias): Likewise.
5466 (object_address_invariant_in_loop_p): Likewise.
5467 * gimplify.c (mark_addressable): Handle MEM_REF.
5468 (gimplify_cond_expr): Build MEM_REFs.
5469 (gimplify_modify_expr_to_memcpy): Likewise.
5470 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
5471 (gimple_fold_indirect_ref): Adjust.
5472 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
5473 * tree.def (MEM_REF): New tree code.
5474 * tree-dfa.c: Include toplev.h.
5475 (get_ref_base_and_extent): Handle MEM_REF.
5476 (get_addr_base_and_unit_offset): New function.
5477 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
5478 * gimple-fold.c (may_propagate_address_into_dereference): Handle
5479 MEM_REF.
5480 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
5481 accesses if the array has just one dimension. Remove always true
5482 parameter. Do not require type compatibility here.
5483 (maybe_fold_offset_to_component_ref): Remove.
5484 (maybe_fold_stmt_indirect): Remove.
5485 (maybe_fold_reference): Remove INDIRECT_REF handling.
5486 Fold back to non-MEM_REF.
5487 (maybe_fold_offset_to_address): Simplify. Deal with type
5488 mismatches here.
5489 (maybe_fold_reference): Likewise.
5490 (maybe_fold_stmt_addition): Likewise. Also handle
5491 &ARRAY + I in addition to &ARRAY[0] + I.
5492 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
5493 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
5494 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
5495 * tree-ssa.c (useless_type_conversion_p): Make most pointer
5496 conversions useless.
5497 (warn_uninitialized_var): Handle MEM_REF.
5498 (maybe_rewrite_mem_ref_base): New function.
5499 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
5500 to SSA form.
5501 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
5502 INDIRECT_REF handling.
5503 (copy_tree_body_r): Handle MEM_REF.
5504 * gimple.c (is_gimple_addressable): Adjust.
5505 (is_gimple_address): Likewise.
5506 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
5507 invariant base are invariant.
5508 (is_gimple_min_lval): Adjust.
5509 (is_gimple_mem_ref_addr): New function.
5510 (get_base_address): Handle MEM_REF.
5511 (count_ptr_derefs): Likewise.
5512 (get_base_loadstore): Likewise.
5513 * gimple.h (is_gimple_mem_ref_addr): Declare.
5514 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
5515 * tree-cfg.c (verify_address): New function, split out from ...
5516 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
5517 the address operand of MEM_REFs. Verify MEM_REFs. Reject
5518 INDIRECT_REFs.
5519 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
5520 INDIRECT_REF. Allow conversions.
5521 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
5522 a register does not change its size.
5523 (verify_types_in_gimple_reference): Verify MEM_REF.
5524 (verify_gimple_assign_single): Disallow INDIRECT_REF.
5525 Handle MEM_REF.
5526 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
5527 New.
5528 (mark_address_taken): Handle MEM_REF.
5529 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
5530 (get_asm_expr_operands): Pass opf_not_non_addressable.
5531 (get_expr_operands): Handle opf_[not_]non_addressable.
5532 Handle MEM_REF. Remove INDIRECT_REF handling.
5533 * tree-vrp.c (check_array_ref): Handle MEM_REF.
5534 (search_for_addr_array): Likewise.
5535 (check_array_bounds): Likewise.
5536 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
5537 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
5538 (ref_always_accessed_p): Likewise.
5539 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
5540 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
5541 Handle MEM_REF.
5542 * cgraphbuild.c (mark_load): Properly check for NULL result
5543 from get_base_address.
5544 (mark_store): Likewise.
5545 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
5546 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
5547 handling for MEM_REF.
5548 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
5549 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
5550 * builtins.c (stabilize_va_list_loc): Use the function ABI
5551 valist type if we couldn't canonicalize the argument type.
5552 Always dereference with the canonical va-list type.
5553 (maybe_emit_free_warning): Handle MEM_REF.
5554 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
5555 memmove to memcpy.
5556 * builtins.c (fold_builtin_memory_op): Use ref-all types
5557 for all memcpy foldings.
5558 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
5559 (build_outer_var_ref): Likewise.
5560 (scan_omp_1_op): Likewise.
5561 (lower_rec_input_clauses): Likewise.
5562 (lower_lastprivate_clauses): Likewise.
5563 (lower_reduction_clauses): Likewise.
5564 (lower_copyprivate_clauses): Likewise.
5565 (expand_omp_atomic_pipeline): Likewise.
5566 (expand_omp_atomic_mutex): Likewise.
5567 (create_task_copyfn): Likewise.
5568 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
5569 Remove old union trick. Initialize constant offsets.
5570 (ao_ref_init_from_vn_reference): Likewise. Do not handle
5571 INDIRECT_REF. Init base_alias_set properly.
5572 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
5573 (vn_reference_fold_indirect): Adjust for MEM_REFs.
5574 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
5575 for ARRAY_REFs.
5576 (may_insert): Remove.
5577 (visit_reference_op_load): Do not test may_insert.
5578 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
5579 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
5580 a field to store the constant offset this op applies.
5581 (run_scc_vn): Adjust prototype.
5582 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
5583 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
5584 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
5585 bother about volatile qualifiers on pointers.
5586 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
5587 * tree-ssa-loop-ivopts.c
5588 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
5589 (strip_offset_1): Likewise.
5590 (find_interesting_uses_address): Replace INDIRECT_REF handling with
5591 MEM_REF handling.
5592 (get_computation_cost_at): Likewise.
5593 * ipa-pure-const.c (check_op): Handle MEM_REF.
5594 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
5595 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
5596 and constants.
5597 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
5598 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
5599 (eliminate_local_variables_1): Likewise.
5600 (create_call_for_reduction_1): Likewise.
5601 (create_loads_for_reductions): Likewise.
5602 (create_loads_and_stores_for_name): Likewise.
5603 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
5604 (ssa_accessed_in_tree): Handle MEM_REF.
5605 (ssa_accessed_in_assign_rhs): Likewise.
5606 (update_type_size): Likewise.
5607 (analyze_accesses_for_call_stmt): Likewise.
5608 (analyze_accesses_for_assign_stmt): Likewise.
5609 (transform_access_sites): Likewise.
5610 (transform_allocation_sites): Likewise.
5611 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
5612 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5613 not handle INDIRECT_REF.
5614 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
5615 (cond_store_replacement): Likewise.
5616 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
5617 MEM_REF, no not handle INDIRECT_REFs.
5618 (insert_into_preds_of_block): Properly initialize avail.
5619 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
5620 for ARRAY_REFs. Properly handle reference lookups that
5621 require a bit re-interpretation.
5622 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
5623 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
5624 (build_ref_for_offset_1): Remove.
5625 (build_ref_for_offset): Build MEM_REFs.
5626 (gate_intra_sra): Disable for now.
5627 (sra_ipa_modify_expr): Handle MEM_REF.
5628 (ipa_early_sra_gate): Disable for now.
5629 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
5630 MEM_REF handling.
5631 (disqualify_base_of_expr): Likewise.
5632 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
5633 MEM_REF handling.
5634 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
5635 Use mem_ref_offset. Remove bogus folding.
5636 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
5637 (make_fancy_name_1): Add support for MEM_REF.
5638 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
5639 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
5640 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
5641 (compute_complex_ancestor_jump_func): Likewise.
5642 (ipa_analyze_virtual_call_uses): Likewise.
5643 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
5644 INDIRECT_REF folding with more generalized MEM_REF folding.
5645 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
5646 (forward_propagate_addr_into_variable_array_index): Also handle
5647 &ARRAY + I in addition to &ARRAY[0] + I.
5648 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
5649 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
5650 creates assignments with overlap.
5651 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
5652 (get_frame_field): Likewise.
5653 (get_nonlocal_debug_decl): Likewise.
5654 (convert_nonlocal_reference_op): Likewise.
5655 (struct nesting_info): Add mem_refs pointer-set.
5656 (create_nesting_tree): Allocate it.
5657 (convert_local_reference_op): Insert to be folded mem-refs.
5658 (fold_mem_refs): New function.
5659 (finalize_nesting_tree_1): Perform defered folding of mem-refs
5660 (free_nesting_tree): Free the pointer-set.
5661 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
5662 (vectorizable_load): Likewise.
5663 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
5664 (propagate_with_phi): Likewise.
5665 * tree-object-size.c (addr_object_size): Handle MEM_REFs
5666 instead of INDIRECT_REFs.
5667 (compute_object_offset): Handle MEM_REF.
5668 (plus_stmt_object_size): Handle MEM_REF.
5669 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
5670 for &MEM_REF.
5671 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
5672 (symbol_marked_for_renaming): Likewise.
5673 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
5674 (fold-const.o): Add $(TREE_FLOW_H).
5675 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
5676 (find_func_clobbers): Likewise.
5677 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
5678 (decompose_access): Likewise.
5679 (replace_field_acc): Likewise.
5680 (replace_field_access_stmt): Likewise.
5681 (insert_new_var_in_stmt): Likewise.
5682 (get_stmt_accesses): Likewise.
5683 (reorg_structs_drive): Disable.
5684 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
5685 (ix86_canonical_va_list_type): Likewise.
5686
5687 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
5688
5689 PR other/44566
5690 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
5691 * target.def (struct gcc_target): Replace enum reg_class with
5692 reg_class_t in hook argument / return types.
5693 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
5694 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
5695 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5696 * targhooks.h (default_branch_target_register_class): Likewise.
5697 (default_ira_cover_classes, default_secondary_reload): Likewise.
5698 (default_memory_move_cost, default_register_move_cost): Likewise.
5699 * targhooks.c (default_branch_target_register_class): Likewise.
5700 (default_ira_cover_classes, default_secondary_reload): Likewise.
5701 (default_memory_move_cost, default_register_move_cost): Likewise.
5702 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
5703 * bt-load.c (branch_target_load_optimize): Likewise.
5704 * ira.c (setup_cover_and_important_classes): Likewise.
5705 * ira-costs.c (copy_cost): Likewise.
5706 * reload1.c (emit_input_reload_insns): Likewise.
5707 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
5708 * config/frv/frv.c (frv_secondary_reload): Likewise.
5709 * config/s390/s390.c (s390_secondary_reload): Likewise.
5710 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
5711 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
5712 (ix86_register_move_cost): Likewise.
5713 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
5714 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
5715 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
5716 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
5717 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
5718 (rs6000_ira_cover_classes): Likewise.
5719 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
5720 * config/picochip/picochip-protos.h (picochip_secondary_reload):
5721 Likewise.
5722 * config/pa/pa.c (pa_secondary_reload): Likewise.
5723 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
5724 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
5725 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
5726 * doc/tm.texi: Regenerate.
5727
5728 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
5729
5730 PR bootstrrap/44726
5731 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
5732 use.
5733 (build_alias_set_optimal_p): Likewise.
5734 (build_base_obj_set_for_drs): Likewise.
5735
5736 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
5737
5738 * target.def: Remove comment about licensing problems of function
5739 declarations.
5740
5741 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
5742 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
5743 * doc/tm.texi: Regenerate.
5744
5745 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
5746 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
5747
5748 * target.def (enum_va_list_p): Use DEFHOOK.
5749 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
5750 Rename ptype to ptree.
5751 * doc/tm.texi: Regenerate.
5752
5753 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
5754 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
5755 * doc/tm.texi: Regenerate.
5756
5757 * target.def (memory_move_cost): Use DEFHOOK.
5758 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
5759 Rename regclass AKA class to rclass.
5760 * doc/tm.texi: Regenerate.
5761
5762 * target.def (pragma_parse): Use DEFHOOK.
5763 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
5764 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
5765 * doc/tm.texi: Regenerate.
5766
5767 * target.def (pass_by_reference): Use DEFHOOK.
5768 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
5769 * doc/tm.texi: Regenerate.
5770
5771 * target.def (resolve_overloaded_builtin): Rename params to arglist.
5772 Use DEFHOOK.
5773 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
5774 * doc/tm.texi: Regenerate.
5775
5776 * target.def (return_pops_args): Use DEFHOOK.
5777 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
5778 Rename stack-size to size.
5779 * doc/tm.texi: Regenerate.
5780
5781 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
5782 last-sched_cycle to last_clock, cur_cycle to clock.
5783 * doc/tm.texi.in: Use @hook.
5784 * doc/tm.texi: Regenerate.
5785
5786 * target.def (print_operand, print_operand_address): Update comment.
5787 (print_operand_punct_valid_p): Likewise.
5788
5789 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5790
5791 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
5792 to rtl.h.
5793 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
5794 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
5795 * rtl-error.h: New.
5796 * regrename.c: Do not include toplev.h. Include rtl-error.h.
5797 * rtl-error.c: Likewise.
5798 * reload.c: Likewise.
5799 * recog.c: Likewise.
5800 * sel-sched.c: Likewise.
5801 * function.c: Likewise.
5802 * reg-stack.c: Likewise.
5803 * cfgrtl.c: Likewise.
5804 * reload1.c: Likewise.
5805 * final.c: Include rtl-error.
5806 * Makefile.in: Adjust dependencies.
5807
5808 2010-06-30 Jan Hubicka <jh@suse.cz>
5809
5810 PR middle-end/PR44706
5811 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
5812 to return the value.
5813
5814 2010-06-30 Michael Matz <matz@suse.de>
5815
5816 PR bootstrap/44699
5817 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
5818 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
5819 a gimple reg, attach the original VDEF to the last store in the
5820 sequence.
5821
5822 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
5823
5824 PR other/44034
5825 * config/darwin.c (darwin_override_options): Use renamed
5826 targetm.asm_out.emit_unwind_label.
5827
5828 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
5829
5830 PR tree-optimization/39799
5831 * tree-inline.c (remap_ssa_name): Initialize variable only if
5832 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5833
5834 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
5835
5836 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
5837
5838 2010-06-30 Richard Guenther <rguenther@suse.de>
5839
5840 PR target/44722
5841 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
5842 against oscillation with reverse peephole2.
5843
5844 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
5845
5846 PR target/44721
5847 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5848 Fix last commit.
5849
5850 2010-06-30 Nick Clifton <nickc@redhat.com>
5851
5852 * config/rx/rx-modes.def: New file.
5853 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
5854 (CC_REGNUM): Define.
5855 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
5856 register.
5857 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
5858 (SELECT_CC_MODE): Define.
5859 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
5860 (reg:CC CC_REG) instead of (cc0).
5861 (attr "cc"): Delete.
5862 (cbranchsi4): Do not split compare and branch here. Instead move
5863 it to...
5864 (cbranchsi4_<code>): ... here. New patterns.
5865 (cmpsi): Call rx-compare_redundant to find out if it is necessary
5866 to emit the compare instruction.
5867 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
5868 cc_status flags.
5869 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
5870 FIRST_PSEUDO_REGNUM.
5871 (rx_expand_prologue, rx_expand_epilogue): Likewise.
5872 (rx_notice_update_cc): Delete.
5873 (rx_cc_modes_compatible): New function.
5874 (flags_needed_for_conditional): New function.
5875 (flags_from_mode): New function.
5876 (rx_compare_redundant): New function - scans backwards through
5877 insn list to find out if condition flags are already set correctly.
5878 (TARGET_CC_MODES_COMPATIBLE): Define.
5879 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
5880
5881 * config/rx/rx.h (BRANCH_COST): Define.
5882 (REGISTER_MOVE_COST): Define.
5883 * config/rx/predicates (rx_source_operand): Allow all constant types.
5884 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
5885 (tstsi4): New pattern.
5886 * config/rx/rx.c (rx_memory_move_cost): Define.
5887 (TARGET_MEMORY_MOVE_COST): Define.
5888
5889 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5890
5891 * tree.h (block_may_fallthru): Declare here.
5892 * tree-flow.h (block_may_fallthru): Do not declare here.
5893 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
5894 bitmap.h
5895 * Makefile.in (c-typeck.o): Update dependencies.
5896
5897 2010-06-30 Jakub Jelinek <jakub@redhat.com>
5898
5899 PR debug/44694
5900 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
5901 * cselib.c (cfa_base_preserved_regno): New static variable.
5902 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
5903 of REGNO (cfa_base_preserved_val->locs->loc).
5904 (cselib_preserve_cfa_base_value): Add regno argument, set
5905 cfa_base_preserved_regno to it.
5906 (cselib_invalidate_regno): Allow removal of registers other than
5907 cfa_base_preserved_regno from cfa_base_preserved_val.
5908 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
5909 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
5910 of MEM addresses, if not on LHS.
5911 (reverse_op): Don't add reverse ops for cfa_base_rtx.
5912 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
5913
5914 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
5915
5916 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
5917 static variables.
5918 (peep2_buf_position): New static function.
5919 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
5920 peephole2_optimize): Use it.
5921 (peep2_attempt, peep2_update_life): New static functions, broken out
5922 of peephole2_optimize.
5923 (peep2_fill_buffer): New static function.
5924 (peephole2_optimize): Change the main loop to try to fill the buffer
5925 with the maximum number of insns before matching them against
5926 peepholes. Use a forward scan. Remove special case for targets with
5927 conditional execution.
5928 * genrecog.c (change_state): Delete dead code.
5929 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5930 Rewrite so as not to expect the second insn to have had a peephole
5931 applied yet.
5932
5933 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5934
5935 * genhooks.c (emit_findices): Cast field precision to int.
5936 (emit_documentation): Likewise.
5937
5938 2010-06-29 Jakub Jelinek <jakub@redhat.com>
5939
5940 PR tree-optimization/43801
5941 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
5942 if old_decl was DECL_ONE_ONLY.
5943
5944 PR debug/44668
5945 * dwarf2out.c (add_accessibility_attribute): New function.
5946 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
5947 instead of adding DW_AT_accessibility manually.
5948 (gen_enumeration_type_die, gen_struct_or_union_type_die,
5949 gen_typedef_die): Use it.
5950
5951 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5952
5953 * vmsdbgout.c (full_name): Just output the file name if not native.
5954
5955 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5956
5957 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
5958 (funcnam_table): New static table.
5959 (funcnum_table): New static table.
5960 (write_rtnbeg): Write value saved in funcnum_table.
5961 (write_rtnend): Write value saved in funcnum_table.
5962 (vmsdbgout_begin_function): Save current function info in
5963 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
5964 (vmsdbgout_finish): Iterate over funcnum_table.
5965
5966 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5967
5968 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
5969 (vmsdbgout_type_decl): Declare
5970 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
5971 (FUNC_EPILOGUE_LABEL): New macro
5972 (vmsdbgout_begin_epilogue): New function.
5973 (vmsdbgout_type_decl): New function.
5974
5975 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5976
5977 * vmsdbg.h: Update copyright.
5978
5979 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5980
5981 * vmsdbg.h (DST_K_TBG): New DST constant.
5982 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
5983 (write_modbeg): Cast module_language to avoid warning.
5984 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
5985
5986 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5987
5988 PR other/44034
5989 * target.def, doc/tm.texi.in, genhooks.c: New files.
5990 * target.h: Instead of defining individual hook members,
5991 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
5992 include target.def.
5993 * target-def.h: Instead of defining individual hook initializers,
5994 include target-hooks-def.h.
5995 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
5996 targetm.live_on_entry -> targetm.extra_live_on_entry
5997 targetm.sched.md_finish ->targetm.sched.finish
5998 targetm.sched.md_init -> targetm.sched.init
5999 targetm.sched.md_init_global -> targetm.sched.init_global
6000 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
6001 targetm.asm_out.except_table_label ->
6002 targetm.asm_out.emit_except_table_label
6003 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
6004 targetm.target_help -> targetm.help
6005 targetm.vectorize.builtin_support_vector_misalignment ->
6006 targetm.vectorize.support_vector_misalignment
6007 targetm.file_start_app_off -> targetm.asm_file_start_app_off
6008 targetm.file_start_file_directive ->
6009 targetm.asm_file_start_file_directive
6010 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
6011 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
6012 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
6013 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
6014 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
6015 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
6016 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
6017 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
6018 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
6019 * Makefile.in (TARGET_H): Depend on target.def.
6020 (TARGET_DEF_H): Depend on target-hooks-def.h.
6021 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
6022 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
6023 * doc/tm.texi: Regenerate.
6024
6025 * Makefile.in (s-tm-texi): Remove stray tab / rule.
6026
6027 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
6028 (targetm.sched.init): Likewise.
6029
6030 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
6031
6032 PR bootstrap/44713
6033 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
6034 (function_arg_advance_32): Const-ify TYPE parameter.
6035 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
6036 (ix86_function_arg_advance): Change type of NAMED to bool.
6037 (function_arg_32): Const-ify CUM and TYPE parameters.
6038 (function_arg_64): Likewise. Change type of NAMED to bool.
6039 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
6040 to bool.
6041 (ix86_function_arg): Change type of NAMED to bool.
6042 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
6043 last argument as a bool.
6044
6045 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6046
6047 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
6048 (OVERRIDE_OPTIONS): Add note of obsolescence.
6049 Replace references with references to TARGET_OPTION_OVERRIDE.
6050 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
6051 the macro).
6052 * targhooks.c (default_target_option_override): New function.
6053 * targhooks.h (default_target_option_override): Declare.
6054 * target.h (struct gcc_target): Add override member to
6055 target_option member.
6056 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
6057 targetm.target_option.override call.
6058 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
6059 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
6060
6061 2010-06-29 Jan Hubicka <jh@suse.cz>
6062
6063 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
6064
6065 2010-06-29 Jan Hubicka <jh@suse.cz>
6066
6067 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
6068 unreachable.
6069 (rebuild_frequencies): New function.
6070 * predict.h (rebuild_frequencies): Declare.
6071 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
6072 entry block and edge reaching new_entry.
6073 (tree_function_versioning): When doing partial cloning, rebuild
6074 frequencies when done.
6075 * passes.c (execute_function_todo): Use rebild_frequencies.
6076
6077 2010-06-29 Richard Guenther <rguenther@suse.de>
6078
6079 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
6080 * tree-flow.h (enum noalias_state): Remove.
6081 (struct var_ann_d): Remove noalias_state member.
6082
6083 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
6084
6085 PR target/43902
6086 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
6087 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
6088 (maddhidi4): Likewise.
6089
6090 Revert parts of the change for PR25130.
6091 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
6092 MEM_ALIAS_SET.
6093
6094 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
6095
6096 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
6097 targetm.calls.function_incoming_arg, and
6098 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
6099 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
6100 * target.h (struct gcc_target): Add function_arg_advance,
6101 function_arg, and function_incoming_arg fields.
6102 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
6103 (TARGET_FUNCTION_INCOMING_ARG): Define.
6104 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
6105 and TARGET_FUNCTION_INCOMING_ARG.
6106 * targhooks.h (default_function_arg_advance): Declare.
6107 (default_function_arg, default_function_incoming_arg): Declare.
6108 * targhooks.c (default_function_arg_advance): New function.
6109 (default_function_arg, default_function_incoming_arg): New function.
6110 * config/i386/i386.c (function_arg_advance): Rename to...
6111 (ix86_function_arg_advance): ...this. Make static.
6112 (function_arg): Rename to...
6113 (ix86_function_arg): ...this. Make static.
6114 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6115 (TARGET_FUNCTION_ARG): Define.
6116 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
6117 (FUNCTION_ARG): Delete.
6118 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
6119 (function_arg): Delete prototype.
6120
6121 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
6122
6123 * reginfo.c (init_reg_sets_1): Adjust comments.
6124 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
6125 * calls.c (prepare_call_address): Likewise.
6126 (emit_call_1): Use targetm.calls.return_pops_args.
6127 (expand_call): Likewise.
6128 * function.c (assign_parms): Likewise.
6129 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
6130 * target.h (struct gcc_target) [struct calls]: Add
6131 return_pops_args field.
6132 * targhooks.h (default_return_pops_args): Declare.
6133 * targhooks.c (default_return_pops_args): Define.
6134 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
6135 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
6136 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
6137 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
6138 documentation.
6139 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
6140 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
6141 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
6142 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
6143 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
6144 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
6145 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
6146 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
6147 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
6148 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
6149 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
6150 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
6151 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
6152 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
6153 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
6154 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
6155 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
6156 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
6157 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
6158 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
6159 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
6160 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
6161 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
6162 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
6163 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
6164 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
6165 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
6166 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
6167 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
6168 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
6169 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
6170 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
6171 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
6172 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
6173 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
6174 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
6175 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
6176 * config/i386/i386.c (ix86_return_pops_args): Make static.
6177 Constify arguments.
6178 (TARGET_RETURN_POPS_ARGS): Define.
6179 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
6180 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
6181 (TARGET_RETURN_POPS_ARGS): Define.
6182 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
6183 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
6184 (TARGET_RETURN_POPS_ARGS): Define.
6185
6186 2010-06-29 Richard Guenther <rguenther@suse.de>
6187
6188 PR middle-end/44667
6189 * tree-inline.c (initialize_inlined_parameters): Make sure
6190 to remap the inlined parameter variable substitutions types.
6191
6192 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
6193
6194 PR rtl-optimization/44659
6195 * combine.c (make_compound_operation) <SUBREG>: Do not return the
6196 result of force_to_mode if it partially re-expanded the compound.
6197
6198 2010-06-28 Jan Hubicka <jh@suse.cz>
6199
6200 PR middle-end/44671
6201 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
6202 RESULT_DECL.
6203
6204 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6205
6206 * double-int.h (force_fit_type_double): Remove declaration.
6207 * double-int.c (force_fit_type_double): Move to tree.c.
6208 * tree.h (force_fit_type_double): Declare.
6209 * tree.h (force_fit_type_double): Moved from double-int.c. Use
6210 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
6211 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
6212 * convert.c (convert_to_pointer): Adjust call to
6213 force_fit_type_double.
6214 * tree-vrp.c (extract_range_from_assert,
6215 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
6216 * fold-const.c: Update comment.
6217 (int_const_binop, fold_convert_const_int_from_int,
6218 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
6219 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
6220 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
6221 round_up_loc): Adjust call to force_fit_type_double.
6222
6223 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6224
6225 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
6226
6227 2010-06-28 Martin Jambor <mjambor@suse.cz>
6228
6229 * tree-sra.c (convert_callers): New parameter, change fndecls of
6230 recursive calls.
6231 (modify_function): Pass the old decl to convert_callers.
6232
6233 2010-06-28 Martin Jambor <mjambor@suse.cz>
6234
6235 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
6236 ipa_check_create_node_params and ipa_initialize_node_params with
6237 checking asserts they are not necessary.
6238
6239 2010-06-28 Jan Hubicka <jh@suse.cz>
6240
6241 PR tree-optimization/44687
6242 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
6243
6244 2010-06-28 Martin Jambor <mjambor@suse.cz>
6245
6246 PR c++/44535
6247 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
6248 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
6249 instead of BINFO_BASE_BINFO.
6250
6251 2010-06-28 Michael Matz <matz@suse.de>
6252
6253 PR middle-end/44592
6254 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
6255 proper VDEF chain for intermediate stores in the sequence.
6256
6257 2010-06-28 Jan Hubicka <jh@suse.cz>
6258
6259 PR tree-optimization/44357
6260 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
6261 uninlinable functions.
6262
6263 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6264
6265 * config.gcc (powerpc*-*-*): Handle titan.
6266 * config/rs6000/rs6000.c (titan_cost): New costs.
6267 (rs6000_override_options): Add "titan" to processor_target_table.
6268 Add Titan to branch alignment logic.
6269 Correctly set rs6000_cost for titan.
6270 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
6271 * config/rs6000/titan.md: New file.
6272 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
6273
6274 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
6275
6276 * tree-browser.c (TB_history_stack): Convert to a VEC.
6277 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
6278 (TB_history_prev): Likewise.
6279
6280 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
6281
6282 * vec.h (vec_heap_free): Add parentheses around free.
6283
6284 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6285
6286 * system.h: Poison GCC_EXCEPT_H for front-end files.
6287
6288 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
6289 langhook.
6290 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
6291 Define to NULL by default.
6292 * except.h: Define GCC_EXCEPT_H.
6293 (doing_eh): Remove prototype.
6294 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
6295 (lang_protect_cleanup_actions): Remove.
6296 * except.c (lang_protect_cleanup_actions): Remove.
6297 (doing_eh): Remove.
6298 (gen_eh_region): Don't check doing_eh here.
6299 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
6300 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
6301 instead of lang_protect_cleanup_actions.
6302 * omp-low.c (maybe_catch_exception): Likewise.
6303 * Makefile.in: Update dependencies.
6304
6305 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
6306
6307 * cgraph.h (struct varpool_node): new used_from_object_file flag.
6308 (struct cgraph_local_info): new used_from_object_file flag.
6309 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
6310 (cgraph_clone_node): initialize used_from_object_file.
6311 (cgraph_create_virtual_clone): initialize used_from_object_file.
6312 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
6313 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
6314 when compiling with -fwhole-program.
6315 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
6316 internal resolver.
6317 * ipa.c (function_and_variable_visibility): Set externally_visible
6318 flag of varpool_node if used_from_object_file flag is set.
6319 (cgraph_externally_visible_p): check used_from_object_file flag.
6320 * doc/invoke.texi (-fwhole-program option): Change description of
6321 externally_visible attribute accordingly.
6322 * doc/extend.texi (externally_visible): Ditto.
6323
6324 2010-06-27 Jan Hubicka <jh@suse.cz>
6325
6326 * params.def (max-inline-insns-auto): Default to 40.
6327 * doc/invoke.texi (max-inline-insns-auto): Document the change.
6328
6329 2010-06-27 Jan Hubicka <jh@suse.cz>
6330
6331 PR middle-end/44671
6332 PR middle-end/44686
6333 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
6334 signature change.
6335 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
6336 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
6337
6338 2010-06-27 Anatoly Sokolov <aesok@post.ru>
6339
6340 * target.h (struct gcc_target): Add register_move_cost field.
6341 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
6342 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
6343 * targhooks.c (default_register_move_cost): New function.
6344 * targhooks.h (default_register_move_cost): Declare function.
6345 * defaults.h (REGISTER_MOVE_COST): Delete.
6346 * ira-int.h (ira_register_move_cost): Update comment.
6347 * ira.c (ira_register_move_cost): Update comment.
6348 * reload.h (register_move_cost): Declare.
6349 * reginfo.c (register_move_cost): New function.
6350 (move_cost): Update comment.
6351 (init_move_cost, memory_move_secondary_cost): Replace
6352 REGISTER_MOVE_COST with register_move_cost.
6353 * postreload.c (reload_cse_simplify_set): (Ditto.).
6354 * reload.c (find_valid_class, find_reloads): (Ditto.).
6355 * reload1.c (choose_reload_regs): (Ditto.).
6356 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
6357 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
6358 * doc/md.texi (can_create_pseudo_p): Update documentation.
6359
6360 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6361 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6362 * config/i386/i386.h (ix86_memory_move_cost): Make static.
6363 (TARGET_MEMORY_MOVE_COST): Define.
6364
6365 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6366 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
6367 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
6368 (TARGET_MEMORY_MOVE_COST): Define.
6369
6370 2010-06-27 Richard Guenther <rguenther@suse.de>
6371
6372 PR tree-optimization/44683
6373 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
6374 false edge from the inverted condition.
6375
6376 2010-06-27 Richard Guenther <rguenther@suse.de>
6377
6378 PR middle-end/44684
6379 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
6380 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
6381 for register LHS. Or non-store assignments.
6382
6383 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
6384
6385 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
6386 (sparc_emit_set_const64): Likewise. Remove disabled code.
6387 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
6388 (sparc_emit_set_const64): Likewise.
6389
6390 2010-06-26 Catherine Moore <clm@codesourcery.com>
6391
6392 * config/mips/mips.md (alu_type): New attribute.
6393 (type): Infer type from alu_type.
6394 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
6395 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
6396 *subsi3_extended, negsi2, negdi2, *low<mode>,
6397 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
6398 xor<mode>3, *nor<mode>3,
6399 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
6400 *zero_extendhi_truncqi): Set alu_type instead of type.
6401
6402 2010-06-26 Douglas B Rupp <rupp@gnat.com>
6403
6404 * config/alpha/alpha.c (alpha_need_linkage): Adjust
6405 splay_tree_new_ggc call.
6406 (alpha_use_linkage): Likewise.
6407
6408 2010-06-26 Joseph Myers <joseph@codesourcery.com>
6409
6410 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
6411 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
6412 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
6413 (static_specs): Remove switches_need_spaces.
6414 (process_command, do_self_spec): Hardcode handling "-o" instead of
6415 checking switches_need_spaces.
6416 * system.h (SWITCHES_NEED_SPACES): Poison.
6417
6418 2010-06-26 Richard Guenther <rguenther@suse.de>
6419
6420 PR tree-optimization/44393
6421 * tree-loop-distribution.c (generate_loops_for_partition): Fix
6422 stmt removal and VOP renaming.
6423 (generate_memset_zero): Remove redundant stmt updating.
6424 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
6425 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
6426
6427 2010-06-26 Jan Hubicka <jh@suse.cz>
6428
6429 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
6430 edges comming from header are equivalent.
6431 (visit_bb): Handle PHIs correctly.
6432 * tree-inline.c (copy_phis_for_bb): Be able to copy
6433 PHI from entry edge.
6434 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
6435
6436 2010-06-26 Richard Guenther <rguenther@suse.de>
6437
6438 PR middle-end/44674
6439 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
6440 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
6441
6442 2010-06-26 Joseph Myers <joseph@codesourcery.com>
6443
6444 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
6445 add_infile, alloc_switch): New.
6446 (process_command): Remove variable lang_n_infiles. Process
6447 options in a single pass. Use new functions for allocating
6448 infiles and switches arrays. Properly skip operands of
6449 -Xpreprocessor and -Xassembler.
6450
6451 2010-06-26 Jan Hubicka <jh@suse.cz>
6452
6453 PR middle-end/44671
6454 * cgraphunit.c (cgraph_function_versioning): Remove wrong
6455 cgraph_make_decl_local call; fix typo copying RTL data.
6456
6457 2010-06-25 DJ Delorie <dj@redhat.com>
6458
6459 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
6460 (m32c_output_aligned_common): Likewise.
6461 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
6462 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
6463 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
6464 (m32c_register_pragmas): Register it.
6465 * config/m32c/m32c.c (m32c_get_pragma_address): New.
6466 (m32c_insert_attributes): Set #pragma address decls volatile.
6467 (pragma_entry_eq): New.
6468 (pragma_entry_hash): New.
6469 (m32c_note_pragma_address): New.
6470 (m32c_get_pragma_address): New.
6471 (m32c_output_aligned_common): New.
6472 * doc/extend.texi: Document the new pragma.
6473
6474 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
6475 also.
6476 * config/m32c/predicates.md (m32c_any_operand): Check the code
6477 instead of memory_operand so as to allow matching volatile MEMs.
6478 (m32c_nonimmediate_operand): Likewise.
6479 (mra_operand): Allow volatiles.
6480
6481 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
6482
6483 PR debug/44610
6484 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
6485 address if the offset is unknown.
6486
6487 2010-06-25 Douglas B Rupp <rupp@gnat.com>
6488
6489 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
6490 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
6491 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
6492 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
6493 to ia64_start_function. Invoke it.
6494 * config/ia64/ia64.c (ia64_start_function): Call new function
6495 dwarf2out_vms_debug_main_pointer.
6496
6497 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
6498
6499 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
6500 statements computing the true predicate.
6501
6502 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
6503
6504 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
6505 to boolean_true_node.
6506 (reset_bb_predicate): New.
6507 (predicate_bbs): Call reset_bb_predicate.
6508
6509 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
6510
6511 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
6512 (tree_if_conversion): Returns true when something has been changed.
6513 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
6514 changed something.
6515
6516 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
6517
6518 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
6519 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
6520 * tree-if-conv.c: Include dbgcnt.h.
6521 (tree_if_conversion): Use if_conversion_tree to count the number of
6522 if-convertible loops.
6523
6524 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
6525
6526 * common.opt (fprefetch-loop-arrays): Re-define
6527 -fprefetch-loop-arrays as a tri-state option with the initial
6528 value of -1.
6529 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
6530 pass only when flag_prefetch_loop_arrays > 0.
6531 * toplev.c (process_options): Note that, with tri-states,
6532 flag_prefetch_loop_arrays>0 means prefetching is enabled.
6533 * config/i386/i386.c (override_options): Enable prefetching at -O3
6534 for a set of CPUs that sw prefetching is helpful.
6535 (software_prefetching_beneficial_p): New. Return TRUE if software
6536 prefetching is beneficial for the given CPU.
6537
6538 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
6539
6540 PR rtl-optimization/44326
6541 * implicit-zee.c (find_removable_zero_extends): Replace
6542 INSN_P with NONDEBUG_INSN_P.
6543
6544 2010-06-25 Martin Jambor <mjambor@suse.cz>
6545
6546 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
6547 (struct ipa_node_params): Removed the modification_analysis_done flag.
6548 (ipa_is_param_modified): Removed.
6549 (ipa_analyze_node): Declare.
6550 (ipa_compute_jump_functions): Remove declaration.
6551 (ipa_count_arguments): Likewise.
6552 (ipa_detect_param_modifications): Likewise.
6553 (ipa_analyze_params_uses): Likewise.
6554 * ipa-prop.c (struct param_analysis_info): New type.
6555 (visit_store_addr_for_mod_analysis): Removed.
6556 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
6557 moved down in the file.
6558 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
6559 (ipa_count_arguments): Made static.
6560 (mark_modified): New function.
6561 (is_parm_modified_before_call): New function.
6562 (compute_pass_through_member_ptrs): New parameter parms_info, call
6563 is_parm_modified_before_call instead of ipa_is_param_modified.
6564 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
6565 it to compute_pass_through_member_ptrs.
6566 (ipa_compute_jump_functions): New parameter parms_info, pass it to
6567 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
6568 on the callee if it is analyzed. Made static.
6569 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
6570 is_parm_modified_before_call instead of ipa_is_param_modified.
6571 (ipa_analyze_call_uses): New parameter parms_info, pass it to
6572 ipa_analyze_indirect_call_uses.
6573 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
6574 ipa_analyze_call_uses.
6575 (ipa_analyze_params_uses): New parameter parms_info, pass it to
6576 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
6577 (ipa_analyze_node): New function.
6578 (ipa_print_node_params): Do not dump the modified flag.
6579 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
6580 it. Do not stream the modified parameter flag.
6581 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
6582 it. Do not stream the modified parameter flag.
6583 * ipa-cp.c (ipcp_analyze_node): Removed.
6584 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
6585 with only a call to ipa_analyze_node.
6586 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
6587 node with only a call to ipa_analyze_node.
6588
6589 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6590
6591 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
6592
6593 2010-06-25 Jan Hubicka <jh@suse.cz>
6594
6595 * tree-pass.h (pass_split_functions): Declare.
6596 * opts.c (decode_options): Enable function splitting at -O2
6597 * timevar.def (TV_IPA_FNSPLIT): New macro.
6598 * ipa-split.c: New file.
6599 * common.opt (-fpartial-inlining): New flag.
6600 * Makefile.in (ipa-split.o): New object file.
6601 * passes.c (init_optimization_passes): Add ipa-split.
6602 * params.def (partial-inlining-entry-probability): New parameters.
6603 * doc/invoke.texi (-fpartial-inlining): New.
6604
6605 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6606
6607 PR 44665
6608 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
6609 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
6610 (gimplify_expr): Likewise.
6611
6612 2010-06-25 Martin Jambor <mjambor@suse.cz>
6613
6614 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
6615 statements instead of bailing out on them.
6616 (ipa_analyze_indirect_call_uses): Do not require that loads from the
6617 parameter are in the same BB as the condition. Update comments.
6618
6619 2010-06-25 Jakub Jelinek <jakub@redhat.com>
6620
6621 PR middle-end/43866
6622 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
6623 true or always false, return NULL_TREE.
6624 (tree_unswitch_single_loop): Optimize conditions even when reaching
6625 max-unswitch-level parameter. If num > 0, optimize first all conditions
6626 using entry checks, then do still reachable block discovery and consider
6627 only conditions in still reachable basic blocks in the loop.
6628
6629 PR tree-optimization/44539
6630 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
6631 the call doesn't have LHS, but has VDEF.
6632
6633 2010-06-25 Joseph Myers <joseph@codesourcery.com>
6634
6635 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
6636 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
6637 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
6638 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
6639 * system.h (MODIFY_TARGET_NAME): Poison.
6640
6641 2010-06-25 Alan Modra <amodra@gmail.com>
6642
6643 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
6644 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
6645 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6646 CMODEL_LARGE as default.
6647 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
6648 (offsettable_ok_by_alignment): Delete.
6649 (rs6000_emit_move): Remove mcmodel=medium optimization.
6650
6651 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
6652
6653 With large parts from Jim Wilson:
6654 PR target/43902
6655 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
6656 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6657 * optabs.c (optab_for_tree_code): Likewise.
6658 (expand_widen_pattern_expr): Likewise.
6659 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
6660 out of execute_optimize_widening_mul.
6661 (convert_plusminus_to_widen): New function.
6662 (execute_optimize_widening_mul): Use the two new functions.
6663 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
6664 Remove code to generate widening multiply-accumulate. Add support
6665 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6666 * gimple-pretty-print.c (dump_ternary_rhs): New function.
6667 (dump_gimple_assign): Call it when appropriate.
6668 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
6669 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
6670 (expand_gimple_stmt_1): Likewise.
6671 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
6672 WIDEN_MULT_MINUS_EXPR.
6673 * tree-ssa-operands.c (get_expr_operands): Likewise.
6674 * tree-inline.c (estimate_operator_cost): Likewise.
6675 * gimple.c (extract_ops_from_tree_1): Renamed from
6676 extract_ops_from_tree. Add new arg for a third operand; fill it.
6677 (gimple_build_assign_stat): Support operations with three operands.
6678 (gimple_build_assign_with_ops_stat): Likewise.
6679 (gimple_assign_set_rhs_from_tree): Likewise.
6680 (gimple_assign_set_rhs_with_ops_1): Renamed from
6681 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
6682 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
6683 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
6684 WIDEN_MULT_MINUS_EXPR.
6685 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
6686 (extract_ops_from_tree_1): Adjust declaration.
6687 (gimple_assign_set_rhs_with_ops_1): Likewise.
6688 (gimple_build_assign_with_ops): Pass NULL for last operand.
6689 (gimple_build_assign_with_ops3): New macro.
6690 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
6691 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
6692 functions.
6693 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
6694 (verify_gimple_assign): Call it.
6695 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
6696 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
6697 functions for dealing with three-operand statements.
6698 * tree.c (commutative_ternary_tree_code): New function.
6699 * tree.h (commutative_ternary_tree_code): Declare it.
6700 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
6701 ternary statements.
6702 (gimple_assign_nonzero_warnv_p): Likewise.
6703 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
6704 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
6705 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
6706 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
6707 (struct hashtable_expr): New member ternary in the union.
6708 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
6709 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
6710 (iterative_hash_hashable_expr): Likewise.
6711 (print_expr_hash_elt): Handle EXPR_TERNARY.
6712 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
6713 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
6714 statements. Handle GIMPLE_TERNARY_RHS.
6715
6716 2010-06-25 Jan Hubicka <jh@suse.cz>
6717
6718 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
6719
6720 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
6721
6722 PR c/44517
6723 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
6724 parameters are not good.
6725 (c_parser_parameter_declaration): Error unknown type name if the type
6726 name can't start declaration specifiers.
6727
6728 2010-06-25 Joseph Myers <joseph@codesourcery.com>
6729
6730 * gcc.c (translate_options): Don't mention +e in comment.
6731 (process_command): Don't handle +e specially.
6732
6733 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
6734
6735 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
6736
6737 * ira-build.c (merge_hard_reg_conflicts): New function.
6738 (create_cap_allocno, copy_info_to_removed_store_destinations,
6739 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
6740 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
6741 (remove_unnecessary_allocnos, remove_low_level_allocnos)
6742 copy_nifo_to_removed_store_destination): Use them.
6743 * ira-lives.c (make_hard_regno_born): New function, split out of
6744 make_regno_born.
6745 (make_allocno_born): Likewise.
6746 (make_hard_regno_dead): New function, split out of make_regno_dead.
6747 (make_allocno_dead): Likewise.
6748 (inc_register_pressure): New function, split out of set_allocno_live.
6749 (dec_register_pressure): New function, split out of clear_allocno_live.
6750 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
6751 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
6752 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
6753 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
6754 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
6755 mark_pseudo_regno_live.
6756 (process_bb_node_lives): Use mark_pseudo_regno_live,
6757 make_hard_regno_born and make_allocno_dead.
6758 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
6759 set_allocno_live, clear_allocno_live): Delete functions.
6760
6761 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
6762 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
6763 functions.
6764 (ira_flattening): Use ira_parent_allocno.
6765 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
6766 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
6767
6768 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
6769 statement.
6770
6771 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
6772 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
6773 minmax_set_iter_cond, minmax_set_iter_next,
6774 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
6775 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
6776 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
6777 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
6778 uses changed.
6779
6780 * ira-int.h (struct live_range, live_range_t): Renamed from struct
6781 ira_allocno_live_range and allocno_live_range_t; all uses changed.
6782 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
6783 All uses changed.
6784
6785 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
6786
6787 * thumb2.md (thumb2_tlobits_cbranch): Delete.
6788 (peephole2 to convert zero_extract/compare of single bit to
6789 lshift/compare): New.
6790
6791 2010-06-24 Anatoly Sokolov <aesok@post.ru>
6792
6793 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
6794 recursive call and call to 'int_const_binop'.
6795 (build_range_check, fold_cond_expr_with_comparison, unextend,
6796 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
6797 multiple_of_p): Adjust call to const_binop.
6798
6799 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
6800
6801 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
6802 determine size of XFmode operand.
6803 (XFmode extended DFmode push splitter): Ditto.
6804 (XFmode extended SFmode push splitter): Ditto.
6805
6806 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
6807
6808 PR target/44588
6809 * config/i386/i386.md (extract_code): New.
6810 (<u>divmodqi4): Likewise.
6811 (divmodhiqi3): Likewise.
6812 (udivmodhiqi3): Likewise.
6813 (<u>divqi3): Remvoved.
6814
6815 2010-06-24 Jakub Jelinek <jakub@redhat.com>
6816
6817 PR middle-end/44492
6818 * recog.h (struct recog_data): Add is_asm field.
6819 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
6820 present in constraints of inline-asm operand and memory operand
6821 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
6822 (extract_insn): Initialize recog_data.is_asm.
6823 * doc/md.texi (Constraints): Document operand side-effect rules.
6824
6825 2010-06-24 Andi Kleen <ak@linux.intel.com>
6826
6827 * c-parser.c (c_parser_conditional_expression): Call
6828 warn_for_omitted_condop.
6829 * doc/invoke.texi: Document omitted condop warning.
6830
6831 2010-06-24 Nick Clifton<nickc@redhat.com>
6832
6833 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
6834 insn in the sequence is a jump insn before setting its label.
6835
6836 2010-06-24 Alan Modra <amodra@gmail.com>
6837
6838 * collect2.c (main): Match exactly --version and --help.
6839
6840 2010-06-24 DJ Delorie <dj@redhat.com>
6841
6842 * config/m32c/m32c-pragma.c: Don't include rtl.h.
6843
6844 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
6845
6846 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
6847 using X87MODEF mode iterator.
6848 (pushsf splitter): Macroize splitter using P mode iterator.
6849 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
6850 mode iterator.
6851
6852 (*movxf_internal): Rename from *movxf_integer.
6853 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
6854 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
6855 (*movdf_internal): Rename from *movdf_integer.
6856 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
6857 (*movsf_internal): Rename from *movdf_1.
6858
6859 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
6860
6861 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
6862 (const_gimple_seq_node): Removed typedefs.
6863
6864 * gimple.h (gimple_seq_node_d, gimple_seq_node)
6865 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
6866
6867 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
6868
6869 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
6870 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
6871 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
6872 and CODE_FOR_vec_extract_lo_v4df.
6873
6874 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
6875 Changed to define_insn_and_split.
6876 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
6877 (vec_extract_lo_v16hi): Likewise.
6878 (vec_extract_lo_v32qi): Likewise.
6879 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
6880 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
6881
6882 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
6883
6884 PR target/44640
6885 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
6886 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
6887 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
6888 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
6889 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
6890
6891 PR target/44640
6892 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
6893
6894 PR other/44644
6895 * df-core.c (struct df): Rename to df_d.
6896 * df.h (struct df): Likewise.
6897 * dse.h (struct df): Remove forward declaration.
6898 * recog.h (struct insn_data): Rename to:
6899 (struct_insn_data_d). Adjusted all users.
6900
6901 2010-06-23 Arnaud Charlet <charlet@adacore.com
6902
6903 PR ada/22220
6904 * doc/install.texi: Update requirements to build GNAT.
6905
6906 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
6907
6908 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
6909 enum type.
6910 (m68k_sched_attr_opx_type): Remove unreachable return.
6911 (m68k_sched_attr_opy_type): Likewise.
6912 (m68k_sched_attr_size): Likewise.
6913 (sched_get_opxy_mem_type): Likewise.
6914 (m68k_sched_attr_op_mem): Likewise.
6915
6916 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6917
6918 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
6919 new statement and adjust VDEF only if necessary. Remove superfluous
6920 call to maybe_clean_or_replace_eh_stmt.
6921 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
6922 copy the flags.
6923 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
6924 * tree-inline.c (copy_bb): ...and not there.
6925
6926 2010-06-22 Cary Coutant <ccoutant@google.com>
6927
6928 * dwarf2out.c (is_nested_in_subprogram): New function.
6929 (should_move_die_to_comdat): Use it.
6930 (copy_ancestor_tree): Don't mark DIEs here.
6931 (copy_decls_walk): Start walk from root of newly-added tree;
6932 mark DIEs here instead.
6933
6934 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
6935
6936 * config/i386/i386.md (unit): Also check sseishft1.
6937
6938 2010-06-22 Jan Hubicka <jh@suse.cz>
6939
6940 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
6941 enabled.
6942
6943 2010-06-22 Jan Hubicka <jh@suse.cz>
6944
6945 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
6946 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
6947 Return true if something changed.
6948 * df.h (df_confluence_function_n): Return bool.
6949 * df-core.c (df_worklist_propagate_forward,
6950 df_worklist_propagate_backward): Track changes and ages.
6951 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
6952 track ages.
6953 * dse.c (dse_confluence_n): Return always true.
6954
6955 2010-06-22 Jan Hubicka <jh@suse.cz>
6956
6957 * bitmap.c (bitmap_clear_bit): Micro optimize.
6958
6959 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
6960
6961 * config/i386/i386.md (SWI1248x): New mode iterator.
6962 (SWI48x): Ditto.
6963 (SWI12): Ditto.
6964 (SWI24): Ditto.
6965
6966 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
6967 SWI1248x mode iterator.
6968 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
6969 using SWI124 mode iterator.
6970 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
6971 mode iterator.
6972 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
6973 *pushdi2_prologue_rex64 using P mode iterator.
6974 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
6975 using SWI48 mode iterator.
6976 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
6977 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
6978 using SWI1248x mode iterator.
6979 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
6980 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
6981 SWI48 mode iterator.
6982 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
6983 iterator.
6984 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
6985 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
6986 SWI12 mode iterator.
6987 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
6988 SWI12 mode iterator.
6989 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
6990 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
6991 SWI24 mode iterator.
6992 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
6993 SWI48 mode iterator.
6994 (mov<mode>_insn_1): New expander.
6995 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
6996 using SWI48x mode iterator.
6997
6998 (*movoi_internal_avx): Rename from *movoi_internal.
6999 (*movti_internal_rex64): Rename from *movti_rex64.
7000 (*movti_internal_sse): Rename from *movti_sse.
7001 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
7002 (*movdi_internal): Rename from *movdi_2.
7003 (*movsi_internal): Rename from *movsi_1.
7004 (*movhi_internal): Rename from *movhi_1.
7005 (*movqi_internal): Rename from *movqi_1.
7006
7007 (insv): Update the call to gen_movsi_insv_1 for rename.
7008 * config/i386/i386.c (promote_duplicated_reg): Ditto.
7009
7010 2010-06-22 Jan Hubicka <jh@suse.cz>
7011
7012 * passes.c (execute_function_todo): Move call of statistics_fini_pass
7013 to ...
7014 (execute_todo) ... this one.
7015
7016 2010-06-22 Alan Modra <amodra@gmail.com>
7017
7018 PR target/44364
7019 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7020 * caller-save.c (insert_restore, insert_save): Use non-validate
7021 form of adjust_address.
7022
7023 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7024
7025 PR target/39690
7026 * config/pa/pa.c (override_options): Disable
7027 -freorder-blocks-and-partition.
7028
7029 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
7030
7031 PR target/44615
7032 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
7033
7034 * config/i386/i386.md (type): Add sseishft1
7035
7036 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
7037 (ppro_insn_load): Likewise.
7038 (ppro_insn_store): Likewise.
7039 (ppro_insn_both): Likewise.
7040
7041 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
7042 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
7043 for type.
7044 (*vec_extractv2di_1_avx): Likewise.
7045 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
7046 type. Remove atom_unit.
7047 (*vec_extractv2di_1_sse2): Likewise.
7048
7049 2010-06-21 DJ Delorie <dj@redhat.com>
7050
7051 * diagnostic.h (diagnostic_classification_change_t): New.
7052 (diagnostic_context): Add history and push/pop list.
7053 (diagnostic_push_diagnostics): Declare.
7054 (diagnostic_pop_diagnostics): Declare.
7055 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
7056 from pragmas in a history chain instead of the global table.
7057 (diagnostic_push_diagnostics): New.
7058 (diagnostic_pop_diagnostics): New.
7059 (diagnostic_report_diagnostic): Scan history chain to find state
7060 of diagnostics as of the diagnostic location.
7061 * opts.c (set_option): Pass UNKNOWN_LOCATION to
7062 diagnostic_classify_diagnostic.
7063 (enable_warning_as_error): Likewise.
7064 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
7065 use in the history chain.
7066 * doc/extend.texi: Document pragma GCC diagnostic changes.
7067
7068 2010-06-21 Jakub Jelinek <jakub@redhat.com>
7069
7070 * dwarf2out.c (add_linkage_name): New function. Don't add
7071 anything to DW_TAG_member DIEs.
7072 (add_name_and_src_coords_attributes): Use it.
7073 (gen_variable_die): Call it for C++ static data members if
7074 specification is DW_TAG_member.
7075
7076 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
7077 C++ char16_t and char32_t.
7078
7079 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
7080 * genattrtab.c: Include vecprim.h.
7081 (cached_attrs, cached_attr_count, attrs_seen_once,
7082 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
7083 attrs_cached_after): New variables.
7084 (find_attrs_to_cache): New function.
7085 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
7086 (write_test_expr): Add attrs_cached argument, return it too,
7087 attempt to cache non-const attributes used more than once in
7088 a single case handling.
7089 (write_attr_get): Use find_attrs_to_cache, for caching candidates
7090 emit cached_* variables. Adjust write_attr_set callers.
7091 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
7092 to find attributes that should be cached in this block. Adjust
7093 write_test_expr callers.
7094 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
7095 callers.
7096 (make_automaton_attrs): Adjust write_test_expr caller.
7097
7098 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
7099 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
7100 (make_automaton_attrs): If find_tune_attr returns non-NULL,
7101 write separate internal_dfa_insn_code_* and insn_default_latency_*
7102 functions for each attribute's value and emit init_sched_attrs
7103 function and function pointers.
7104 * genattr.c (const_attrs, reservations): New variables.
7105 (gen_attr): Add const attributes to const_attrs vector.
7106 (check_tune_attr, find_tune_attr): New functions.
7107 (main): Add reservations to reservations vector. If find_tune_attr
7108 returns true, add prototype for init_sched_attrs and make
7109 internal_dfa_insn_code and insn_default_latency function pointers,
7110 otherwise define init_sched_attrs as dummy macro.
7111 * cfgexpand.c: Include insn-attr.h.
7112 (gimple_expand_cfg): Call init_sched_attrs.
7113
7114 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
7115
7116 PR target/44575
7117 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
7118 va_arg from a set of register save slots into a temporary,
7119 if the container is bigger than type size, do the copying
7120 using smaller mode or using memcpy.
7121
7122 PR bootstrap/44426
7123 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
7124 prototype.
7125 (sel_print_to_dot): Remove macro.
7126 (sel_print): Likewise. New prototype.
7127 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
7128 (sel_print): New function.
7129
7130 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7131
7132 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
7133 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
7134
7135 2010-06-21 Nick Clifton <nickc@redhat.com>
7136
7137 * config/rx/rx.h (PTRDIFF_TYPE): Define.
7138 (SMALL_REGISTER_CLASS): Define (to zero).
7139 (PRINT_OPERAND): Delete.
7140 (PRINT_OPERAND_ADDRESS): Delete.
7141 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
7142 (rx_print_operand_address): Delete prototype.
7143 * config/rx/rx.c (rx_print_operand): Make static.
7144 Allow %H and %L to handle CONST_DOUBLEs.
7145 (rx_print_operand_address): Make static.
7146 (rx_gen_move_template): Rename local variable 'template' to
7147 out_template.
7148 (rx_function_arg): Do not pass unknown sized objects in registers.
7149 (TARGET_PRINT_OPERAND): Define.
7150 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7151
7152 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7153
7154 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
7155
7156 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
7157
7158 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
7159 stack-alignment for simple leaf-functions.
7160
7161 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
7162
7163 * doc/install.texi: Document bootstrap-lto.
7164
7165 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
7166
7167 PR debug/44248
7168 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
7169 (input_function): Drop them here, if VTA is disabled.
7170
7171 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
7172
7173 PR target/44546
7174 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
7175 New predicate.
7176 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
7177 ix86_swapped_fp_comparsion_operator instead of
7178 ix86_fp_comparison_operator.
7179
7180 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
7181 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
7182 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
7183 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
7184 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
7185 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
7186
7187 2010-06-20 Joseph Myers <joseph@codesourcery.com>
7188
7189 PR other/32998
7190 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
7191 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
7192 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
7193 (decode_cmdline_option): Update for this return value. Set
7194 orig_option_with_args_text field. Set arg field for unknown
7195 options. Make static.
7196 (decode_cmdline_options_to_array): New.
7197 (prune_options): Update handling of find_opt return value.
7198 * opts.c (read_cmdline_option): Take decoded option. Return void.
7199 (read_cmdline_options): Take decoded options.
7200 (decode_options): Add parameters for decoded options. Use
7201 decode_cmdline_options_to_array. Use decoded options for -O
7202 scan. Use integral_argument for -O parameters. Update call to
7203 read_cmdline_options.
7204 (enable_warning_as_error): Update handling of find_opt return value.
7205 * opts.h: Update comment on unknown options.
7206 (struct cl_decoded_option): Update comments on opt_index and arg.
7207 Add orig_option_with_args_text.
7208 (decode_cmdline_option): Remove.
7209 (decode_cmdline_options_to_array): Declare.
7210 (decode_options): Update prototype.
7211 * toplev.c (save_argv): Remove.
7212 (save_decoded_options, save_decoded_options_count): New.
7213 (read_integral_parameter): Remove.
7214 (print_switch_values): Use decoded options.
7215 (toplev_main): Don't set save_argv. Update call to decode_options.
7216 * toplev.h (read_integral_parameter): Remove.
7217 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
7218
7219 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
7220
7221 PR target/44072
7222 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
7223 immediate.
7224 * constraints.md (Pw, Px): New constraints.
7225 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
7226
7227 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
7228
7229 * config/i386/sse.md (fma4modesuffixf4): Removed.
7230 (ssemodesuffixf2s): Likewise.
7231 (ssemodesuffixf4): Likewise.
7232 (ssemodesuffixf2c): Likewise.
7233 (ssescalarmodesuffix2s): Likewise.
7234 (avxmodesuffixf2c): Likewise.
7235 (ssemodesuffix): New.
7236 (ssescalarmodesuffix): Likewise.
7237 Update patterns with ssemodesuffix and ssescalarmodesuffix.
7238
7239 2010-06-19 Philip Herron <herron.philip@googlemail.com>
7240
7241 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
7242
7243 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
7244
7245 * stor-layout.c (debug_rli): Remove unused local variables.
7246
7247 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7248
7249 PR rtl-optimization/40900
7250 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
7251 original expression for later reuse.
7252 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
7253 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
7254
7255 2010-06-18 Anatoly Sokolov <aesok@post.ru>
7256
7257 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
7258 double_int_fits_in_uhwi_p): Implement as static inline.
7259 (double_int_xor): New inline function.
7260 (double_int_lrotate, double_int_rrotate, double_int_max,
7261 double_int_umax, double_int_smax, double_int_min, double_int_umin,
7262 double_int_smin): Declare.
7263 (lrotate_double, rrotate_double): Remove declaration.
7264 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
7265 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
7266 (double_int_lrotate, double_int_rrotate, double_int_max,
7267 double_int_umax, double_int_smax, double_int_min, double_int_umin,
7268 double_int_smin): New function.
7269 * fold-const.c (int_const_binop): Clean up, use double_int_*
7270 functions.
7271 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
7272 double_int_* and immed_double_int_const functions.
7273
7274 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7275
7276 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
7277 * function.c (types_used_by_cur_var_decl): Likewise.
7278 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
7279
7280 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7281
7282 * tree.h (record_layout_info): Change type of pending_statics field
7283 to a VEC.
7284 * stor-layout.c (start_record_layout): Store NULL into
7285 pending_statics.
7286 (debug_rli): Call debug_vec_tree instead of debug_tree.
7287 (place_field): Likewise.
7288 (finish_record_layout): Likewise.
7289
7290 2010-06-18 Alan Modra <amodra@gmail.com>
7291
7292 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
7293
7294 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7295
7296 PR target/43740
7297 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
7298 for SET source operand from SET destination operand.
7299
7300 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
7301
7302 PR rtl-optimization/39871
7303 * reload1.c (init_eliminable_invariants): For flag_pic, disable
7304 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
7305 (function_invariant_p): Rule out a plus of frame or arg pointer with
7306 a SYMBOL_REF.
7307 * ira.c (find_reg_equiv_invariant_const): Likewise.
7308
7309 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
7310
7311 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
7312 print_operand_address and puts to output the operand for CONST.
7313
7314 2010-06-17 Jakub Jelinek <jakub@redhat.com>
7315
7316 PR debug/44572
7317 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
7318 hook.
7319
7320 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7321
7322 * v850-protos.h (print_operand): Delete.
7323 (print_operand_address): Delete.
7324 * v850.h (PRINT_OPERAND): Delete.
7325 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7326 (PRINT_OPERAND_ADDRESS): Delete.
7327 * v850.c (print_operand_address): Rename to...
7328 (v850_print_operand_address): ...this. Make static. Call
7329 v850_print_operand.
7330 (print_operand): Rename to...
7331 (v850_print_operand): ...this. Make static. Call
7332 v850_print_operand_address.
7333 (v850_print_operand_punct_valid_p): New function.
7334 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7335 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7336
7337 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7338
7339 * config/sh/sh-protos.h (print_operand): Delete.
7340 (print_operand_address): Delete.
7341 * config/sh/sh.h (PRINT_OPERAND): Delete.
7342 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7343 (PRINT_OPERAND_ADDRESS): Delete.
7344 * config/sh/sh.c (sh_print_operand_address): Make static.
7345 (sh_print_operand): Make static. Call sh_print_operand_address
7346 and sh_print_operand.
7347 (sh_print_operand_punct_valid_p): New function.
7348 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7349 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7350
7351 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7352
7353 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
7354 (mcore_print_operand_address): Delete.
7355 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
7356 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7357 (PRINT_OPERAND_ADDRESS): Delete.
7358 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
7359 (mcore_print_operand): Make static.
7360 (mcore_print_operand_punct_valid_p): New function.
7361 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
7362 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7363
7364 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7365
7366 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
7367 (print_operand_address): Delete.
7368 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
7369 (PRINT_OPERAND_ADDRESS): Delete.
7370 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
7371 static.
7372 (m68hc11_print_operand): Make static.
7373 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7374
7375 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7376
7377 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
7378 (m32r_print_operand_address): Delete.
7379 * config/m32r/m32r.h (m32r_punct_chars): Delete.
7380 (PRINT_OPERAND): Delete.
7381 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7382 (PRINT_OPERAND_ADDRESS): Delete.
7383 * config/m32r/m32r.c (m32r_punct_chars): Make static.
7384 (m32r_print_operand_address): Make static.
7385 (m32r_print_operand): Make static.
7386 (m32r_print_operand_punct_valid_p): New function.
7387 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7388 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7389
7390 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7391
7392 * config/iq2000/iq2000-protos.h (print_operand): Delete.
7393 (print_operand_address): Delete.
7394 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
7395 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7396 (PRINT_OPERAND_ADDRESS): Delete.
7397 (iq2000_print_operand_punct): Delete.
7398 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
7399 (iq2000_print_operand_address): Make static.
7400 (iq2000_print_operand): Make static.
7401 (iq2000_print_operand_punct_valid_p): New function.
7402 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7403 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7404
7405 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7406
7407 * config/frv/frv-protos.h (frv_print_operand): Delete.
7408 (frv_print_operand_address): Delete.
7409 * config/frv/frv.h (PRINT_OPERAND): Delete.
7410 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7411 (PRINT_OPERAND_ADDRESS): Delete.
7412 * config/frv/frv.c (frv_print_operand_address): Make static.
7413 (frv_print_operand): Make static.
7414 (frv_print_operand_punct_valid_p): New function.
7415 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7416 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7417
7418 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7419
7420 * tree.h (vec_member): Declare.
7421 * tree.c (vec_member): Define.
7422
7423 2010-06-17 Richard Guenther <rguenther@suse.de>
7424
7425 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
7426 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
7427
7428 2010-06-17 Richard Guenther <rguenther@suse.de>
7429
7430 * tree-inline.c (declare_return_variable): Remove bogus code.
7431
7432 2010-06-17 Richard Guenther <rguenther@suse.de>
7433
7434 * gimplify.c (gimplify_bind_expr): Always promote complex
7435 and vector variables to registers if possible.
7436
7437 2010-06-17 Richard Guenther <rguenther@suse.de>
7438
7439 * expr.c (get_inner_reference): Use double_int for bit_offset
7440 calculation.
7441
7442 2010-06-16 DJ Delorie <dj@redhat.com>
7443
7444 * common.opt (-fstrict-volatile-bitfields): new.
7445 * doc/invoke.texi: Document it.
7446 * fold-const.c (optimize_bit_field_compare): For volatile
7447 bitfields, use the field's type to determine the mode, not the
7448 field's size.
7449 * expr.c (expand_assignment): Likewise.
7450 (get_inner_reference): Likewise.
7451 (expand_expr_real_1): Likewise.
7452 * expmed.c (store_fixed_bit_field): Likewise.
7453 (extract_bit_field_1): Likewise.
7454 (extract_fixed_bit_field): Likewise.
7455
7456 2010-06-16 Richard Guenther <rguenther@suse.de>
7457
7458 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
7459
7460 2010-06-16 Douglas B Rupp <rupp@gnat.com>
7461
7462 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
7463 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
7464 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
7465 * debug.c: Likewise.
7466 * sdbout.c: Likewise.
7467 * vmsdbgout.c: Likewise.
7468 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
7469 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
7470 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
7471 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
7472 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
7473 * dwarf2out.c (dw_fde_struct): New fields
7474 dw_fde_vms_{end,begin}_prologue.
7475 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
7476 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
7477 (dwarf2out_vms_end_prologue): New function.
7478 (dwarf2out_vms_begin_epilogue): New function.
7479 (dw_val_struct): New value dw_val_class_vms_delta.
7480 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
7481 begin_epilogue for VMS.
7482 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
7483 new static functions.
7484 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
7485 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
7486 static functions.
7487 (print_die): New case dw_val_class_vms_delta.
7488 (attr_checksum): Likewise.
7489 (same_dw_val_p: Likewise.
7490 (size_of_die): Likewise.
7491 (value_format): Likewise.
7492 (output_die): Likewise.
7493 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
7494 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
7495 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
7496 dwarf2out_cfi_begin_epilogue
7497 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
7498
7499 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
7500
7501 * config/cris/cris-protos.h (cris_print_operand): Delete.
7502 (cris_print_operand_address): Delete.
7503 * config/cris/cris.h (PRINT_OPERAND): Delete.
7504 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7505 (PRINT_OPERAND_ADDRESS): Delete.
7506 * config/cris/cris.c (cris_print_operand_address): Make static.
7507 (cris_print_operand): Make static.
7508 (cris_print_operand_punct_valid_p): New function.
7509 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7510 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7511
7512 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
7513
7514 * config/arm/arm-protos.h (arm_print_operand): Delete.
7515 (arm_print_operand_address): Delete.
7516 * config/arm/arm.h (PRINT_OPERAND): Delete.
7517 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7518 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
7519 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
7520 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
7521 (arm_print_operand): Make static.
7522 (arm_print_operand_punct_valid_p): New function.
7523 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7524 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7525
7526 2010-06-16 Nick Clifton <nickc@redhat.com>
7527
7528 * config/rx/constraints.md (NEGint4): New constraint.
7529 * config/rx/rx.md (attr cc): Add set_zsc.
7530 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
7531 initialised.
7532 (cmpsf): Likewise.
7533 (call_internal): Clobber the cc0 register.
7534 (call_value_internal): Likewise.
7535 (cstoresi4): Likewise.
7536 (movsieq): Likewise.
7537 (movsine): Likewise.
7538 (addsi3): Add alternative to handle small negative constants.
7539 (sunsi3): Likewise.
7540 (addsi3): Do not set the O bit in the cc0 register.
7541 (adddi3): Likewise.
7542 (subsi3): Likewise.
7543 (subdi3): Likewise.
7544 (andsi3): Reorder alternatives to prefer shorter forms.
7545 (mulsi3): Likewise.
7546 (iorsi3): Likewise.
7547 (negsi2): Note that the cc0 flags are set.
7548 (rotlsi3): Note that only the Z and S bits are set in cc0.
7549 (lshrsi3): Likewise.
7550 (ashlsi3): Likewise.
7551 (subsf3): Use %Q for the MEM operand.
7552 (fix_truncsfsi2): Likewise.
7553 (floatsisf2): Likewise.
7554 (bitset): Remove early clobber from destination.
7555 (bitset_in_memory): Likewise.
7556 (lrintsf2): Clobber the cc0 register.
7557 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
7558 (rx_print_operand): Handle %N.
7559
7560 2010-06-16 Jan Hubicka <jh@suse.cz>
7561
7562 * df-core.c (df_compact_blocks): Free problem_temps vector.
7563
7564 2010-06-16 Martin Jambor <mjambor@suse.cz>
7565
7566 PR tree-optimization/43905
7567 * tree-sra.c: Include tree-inline.h.
7568 (create_abstract_origin): Removed.
7569 (modify_function): Version the call graph node instead of creating
7570 abstract origins and dealing with same_body aliases.
7571 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
7572 function is versionable.
7573 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
7574
7575 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
7576
7577 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
7578 (CHOOSE_DYNAMIC_LINKER): Update.
7579
7580 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
7581
7582 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
7583 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
7584 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
7585 *prefetch_3dnow_rex.
7586
7587 2010-06-15 Anatoly Sokolov <aesok@post.ru>
7588
7589 * target.h (struct asm_out):Add declare_constant_name field.
7590 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
7591 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
7592 * output.h (default_asm_declare_constant_name): Declare.
7593 (assemble_label): Update prototype.
7594 * varasm.c (assemble_constant_contents): Use
7595 targetm.asm_out.declare_constant_name target hook.
7596 (assemble_label): Add 'file' argument.
7597 (default_asm_declare_constant_name): New function.
7598 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
7599 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
7600 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
7601
7602 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
7603 * config/darwin.c (darwin_asm_declare_constant_name): New function.
7604 (machopic_output_indirection): Update assemble_label argument list.
7605 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
7606 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
7607
7608 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
7609
7610 PR middle-end/44391
7611 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7612 size_one_node for pointer types. Do not call gmp_cst_to_tree.
7613
7614 2010-06-15 Richard Guenther <rguenther@suse.de>
7615
7616 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
7617
7618 2010-06-15 Paul Brook <paul@codesourcery.com>
7619
7620 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
7621 hard-float ABI.
7622
7623 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
7624
7625 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
7626 don't get a vector type for output.
7627
7628 2010-06-15 Jakub Jelinek <jakub@redhat.com>
7629
7630 PR fortran/44536
7631 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
7632 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
7633 (LANG_HOOKS_DECLS): Add it.
7634 * gimplify.c (omp_notice_variable): Call
7635 lang_hooks.decls.omp_report_decl.
7636
7637 2010-06-15 Martin Jambor <mjambor@suse.cz>
7638
7639 PR lto/44464
7640 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
7641 on the newly dead SSA name.
7642
7643 2010-06-15 Alan Modra <amodra@gmail.com>
7644
7645 * doc/invoke.texi: Add mcmodel to powerpc options.
7646 * configure.ac: Add HAVE_LD_LARGE_TOC test.
7647 * configure: Regenerate.
7648 * config.in: Regenerate.
7649 * config/rs6000/linux64.opt (mcmodel): New.
7650 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
7651 (TARGET_CMODEL, SET_CMODEL): Define.
7652 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
7653 select CMODEL_MEDIUM default.
7654 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
7655 (TARGET_CMODEL): Define default.
7656 * config/rs6000/rs6000.c (cmodel): New variable.
7657 (rs6000_explicit_options): Add cmodel field.
7658 (rs6000_handle_option): Handle -mcmodel.
7659 (create_TOC_reference): Add largetoc_reg param. Generate high,
7660 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
7661 (rs6000_delegitimize_address): Recognise new toc reference rtl
7662 and minimal-toc rtl.
7663 (rs6000_legitimize_reload_address): Handle new toc references.
7664 (print_operand_address): Handle legitimate_constant_pool_address_p
7665 match before lo_sum.
7666 (rs6000_eliminate_indexed_memrefs): Tidy.
7667 (rs6000_emit_move): Tweak threshold for inlining constants.
7668 Keep rs6000_emit_allocate_stack large stack frame offsets
7669 loaded into r0 inline.
7670 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
7671 (tocrel_base, tocrel_offset): New variables.
7672 (toc_relative_expr_p): Set them here.
7673 (print_operand_address): Skip over any offset on constant pool address.
7674 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
7675 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
7676 (offsettable_ok_by_alignment): New function.
7677 (rs6000_emit_move): Address suitably aligned local symbol_refs
7678 relative to the toc pointer for -mcmodel=medium.
7679 (legitimate_constant_pool_address_p): Make param const_rtx. Add
7680 strict param. Allow lo_sum version of addressing. Verify reg
7681 used for -mminimal-toc and -mcmodel != small. Update all callers.
7682 * config/rs6000/constraints.md: Update for above change.
7683 * config/rs6000/predicates.md: Likewise.
7684 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
7685 code.
7686 (tls_gd): Split for -mcmodel=medium/large.
7687 (tls_gd_high, tls_gd_low): New.
7688 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
7689 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
7690 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
7691 (largetoc_high, largetoc_low): New.
7692 (cmptf_internal2): Add clobber.
7693 * config/rs6000/rs6000-protos.h: Update.
7694
7695 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
7696
7697 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
7698 true if no prefetch is going to be generated for a given group.
7699 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
7700 estimate the prefetch_count.
7701 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
7702 prefetch count by considering the unroll_factor and prefetch_mod
7703 for is_loop_prefetching_profitable.
7704
7705 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
7706
7707 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
7708 anything if the argument is not a MEM.
7709
7710 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
7711
7712 PR debug/43650
7713 PR debug/44181
7714 PR debug/44247
7715 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
7716 debug stmts.
7717 (canonicalize_loop_ivs): Likewise.
7718
7719 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
7720
7721 PR debug/43656
7722 * haifa-sched.c (setup_insn_reg_pressure_info,
7723 update_register_pressure): Reject debug insns.
7724 (ready_sort): Don't setup reg pressure for debug insns.
7725 (schedule_insn): Don't update reg pressure for debug insns.
7726
7727 2010-06-14 Richard Guenther <rguenther@suse.de>
7728
7729 * lto-streamer.c (cached_bp): Remove.
7730 (bitpack_delete): Likewise.
7731 (bitpack_create): Likewise.
7732 (bp_get_next_word): Likewise.
7733 (bp_pack_value, bp_unpack_value): Move ...
7734 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
7735 Re-implement.
7736 (struct bitpack_d): Likewise.
7737 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
7738 New inline functions.
7739 * lto-streamer-out.c (lto_output_bitpack): Remove.
7740 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
7741 (pack_value_fields): Adjust.
7742 (lto_write_tree): Likewise.
7743 (output_gimple_stmt): Likewise.
7744 (output_function): Likewise.
7745 * lto-streamer-in.c (input_gimple_stmt): Adjust.
7746 (input_function): Likewise.
7747 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
7748 (lto_input_bitpack): Remove.
7749 (lto_materialize_tree): Adjust.
7750 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
7751 * lto-cgraph.c (lto_output_edge): Adjust.
7752 (lto_output_node): Likewise.
7753 (lto_output_varpool_node): Likewise.
7754 (lto_output_ref): Likewise.
7755 (input_node): Likewise.
7756 (input_varpool_node): Likewise.
7757 (input_ref): Likewise.
7758 (input_edge): Likewise.
7759 (output_node_opt_summary): Likewise.
7760 (input_node_opt_summary): Likewise.
7761 * ipa-pure-const.c (pure_const_write_summary): Likewise.
7762 (pure_const_read_summary): Likewise.
7763 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
7764 (ipa_read_indirect_edge_info): Likewise.
7765 (ipa_write_node_info): Likewise.
7766 (ipa_read_node_info): Likewise.
7767
7768 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
7769
7770 PR target/44534
7771 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
7772 (vec_extract_lo_v16hi): Likewise.
7773 (vec_extract_lo_v32qi): Likewise.
7774
7775 2010-06-14 Jakub Jelinek <jakub@redhat.com>
7776
7777 PR bootstrap/44426
7778 * tree.h (build_call_expr): Don't define as vararg macro, instead
7779 add a prototype.
7780 * builtins.c (build_call_nofold): Remove.
7781 (expand_builtin_int_roundingfn, expand_builtin_pow,
7782 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
7783 expand_builtin_memset_args, expand_builtin_strcmp,
7784 expand_builtin_strncmp, expand_builtin_memory_chk): Use
7785 build_call_nofold_loc instead of build_call_nofold.
7786 (build_call_expr): New function.
7787
7788 PR tree-optimization/44508
7789 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
7790 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
7791 don't eliminate trivially dead stmts.
7792 * tree-vrp.c (vrp_finalize): Pass false as last argument
7793 to substitute_and_fold.
7794 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
7795 to substitute_and_fold.
7796 * tree-ssa-ccp.c (ccp_finalize): Likewise.
7797
7798 PR bootstrap/44509
7799 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
7800
7801 2010-06-14 Ira Rosen <irar@il.ibm.com>
7802
7803 PR tree-optimization/44507
7804 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
7805 to build initial vector for BIT_AND_EXPR.
7806 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7807
7808 2010-06-14 Jakub Jelinek <jakub@redhat.com>
7809
7810 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
7811 adjust z10prop set_attr.
7812
7813 2010-06-13 Jan Hubicka <jh@suse.cz>
7814
7815 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
7816 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
7817 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
7818 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
7819 datastructure checks into checking asserts.
7820 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
7821 * tree-ssa-sccvn.c (VN_INFO): Likewise.
7822 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
7823 df_ref_create_structure): Likewise.
7824 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
7825 pool_free): Use gcc_checking_assert.
7826 * alias.c (get_alias_set): Likewise.
7827 * var-tracking.c (variable_htab_free, shared_hash_copy,
7828 canonicalize_values_mark, variable_merge_over_cur): Likewise.
7829 * lto-streamer.c (bp_unpack_value): Likewise.
7830
7831 2010-06-13 Richard Guenther <rguenther@suse.de>
7832
7833 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
7834 Do not stream but initialize TYPE_CANONICAL to NULL.
7835 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
7836 * gimple.c (gimple_types_compatible_p): Disregard
7837 TYPE_STRUCTURAL_EQUALITY_P.
7838 (gimple_register_type): Use TYPE_CANONICAL as cache.
7839 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
7840 before registering common types.
7841 * config/i386/i386.c (ix86_function_arg_boundary): Do not
7842 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
7843 * tree.h (TYPE_CANONICAL): Clarify documentation.
7844
7845 2010-06-13 Anatoly Sokolov <aesok@post.ru>
7846
7847 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7848 LIBCALL_VALUE): Remove macros.
7849 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
7850 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7851 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7852 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
7853 (ia64_function_value): Make static. Handle receiving the function
7854 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
7855
7856 2010-06-12 Jan Hubicka <jh@suse.cz>
7857
7858 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
7859 at correct place.
7860
7861 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
7862
7863 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
7864
7865 2010-06-12 Jan Hubicka <jh@suse.cz>
7866
7867 * df-core.c (df_clear_bb_info): New function.
7868 (df_set_blocks): bb_info is always allocated.
7869 (df_get_bb_info): Use block_info_elt_size.
7870 (df_set_bb_info): Likewise.
7871 (df_compact_blocks): Update for new block_info.
7872 (grow_bb_info): New function.
7873 * df-problems.c (df_grow_bb_info): Move to df-core.c
7874 (df_rd_set_bb_info): Remove.
7875 (df_rd_free_bb_info): Do not free block pool.
7876 (df_rd_alloc): Do not create pool, use check for
7877 obstack presence instead of NULL pointer for new blocks.
7878 (df_rd_free): DO not free alloc pool; clear block_info.
7879 (problem_RD): Add size of block info structure.
7880 (df_lr_set_bb_info): Remove.
7881 (df_lr_free_bb_info): Do not free block pool.
7882 (df_lr_alloc): Do not create pool, use check for
7883 obstack presence instead of NULL pointer for new blocks.
7884 (df_lr_free): DO not free alloc pool; clear block_info.
7885 (problem_LR): Add size of block info structure.
7886 (df_live_set_bb_info): Remove.
7887 (df_live_free_bb_info): Do not free block pool.
7888 (df_live_alloc): Do not create pool, use check for
7889 obstack presence instead of NULL pointer for new blocks.
7890 (df_live_free): DO not free alloc pool; clear block_info.
7891 (problem_LIVE): Add size of block info structure.
7892 (problem_CHAIN): Add size of block info structure.
7893 (df_byte_lr_set_bb_info): Remove.
7894 (df_byte_lr_free_bb_info): Do not free block pool.
7895 (df_byte_lr_alloc): Do not create pool, use check for
7896 obstack presence instead of NULL pointer for new blocks.
7897 (df_byte_lr_free): DO not free alloc pool; clear block_info.
7898 (problem_BYTE_LR): Add size of block info structure.
7899 (problem_NOTE): Add size of block info structure.
7900 (df_byte_MD_set_bb_info): Remove.
7901 (df_byte_MD_free_bb_info): Do not free block pool.
7902 (df_byte_MD_alloc): Do not create pool, use check for
7903 obstack presence instead of NULL pointer for new blocks.
7904 (df_byte_MD_free): DO not free alloc pool; clear block_info.
7905 (problem_BD): Add size of block info structure.
7906 * df-scan.c (df_scan_free_internal): Free block pool.
7907 (df_scan_set_bb_info): Remove.
7908 (df_scan_free_bb_info): Check for artificial_defs instead
7909 of bb_info being non-NULL.
7910 (df_scan_alloc): DO not create df_scan_block pool.
7911 (problem_SCAN): Set size of block info.
7912 (df_bb_refs_record): Do not allocate bb_info.
7913 * df.h (df_problem): Add block_info_elt_size.
7914 (struct dataflow): Change block_info to void *.
7915 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
7916 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
7917 in-line structures.
7918
7919 2010-06-12 Jan Hubicka <jh@suse.cz>
7920
7921 PR tree-optimize/44485
7922 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
7923 containing use of return value of noreturn function.
7924
7925 2010-06-12 Anatoly Sokolov <aesok@post.ru>
7926
7927 * targhooks.c (default_function_value): Don't use
7928 FUNCTION_OUTGOING_VALUE.
7929 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
7930 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
7931
7932 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
7933
7934 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
7935 Add crtfastmath.o to extra_parts.
7936 * config/mips/crtfastmath.c: New.
7937 * config/mips/linux.h (ENDFILE_SPEC): New.
7938
7939 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
7940
7941 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
7942 old_type in parameter.
7943 (gcc_type_for_value): Update call to gcc_type_for_interval.
7944 (compute_type_for_level_1): Renamed compute_type_for_level.
7945 Update call to gcc_type_for_interval.
7946
7947 2010-06-11 Joseph Myers <joseph@codesourcery.com>
7948
7949 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
7950 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
7951
7952 2010-06-11 Joseph Myers <joseph@codesourcery.com>
7953
7954 * opts-common.c: Include options.h.
7955 (integral_argument): Move from opts.c.
7956 (decode_cmdline_option): New. Based on read_cmdline_option.
7957 * opts.c (integral_argument): Move to opts-common.c.
7958 (read_cmdline_option): Move most contents to
7959 decode_cmdline_option. Use %qs in diagnostics.
7960 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
7961 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
7962 decode_cmdline_option): New.
7963
7964 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
7965
7966 PR target/44481
7967 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
7968 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
7969 (partiysi2_cmp): Ditto.
7970 (*partiyhi2_cmp): Ditto.
7971 (*parityqi2_cmp): Remove.
7972
7973 2010-06-11 Jan Hubicka <jh@suse.cz>
7974
7975 * bitmap.h (bmp_iter_next_bit): New.
7976 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
7977
7978 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
7979 Eric Botcazou <ebotcazou@adacore.com>
7980
7981 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
7982 computed cost.
7983
7984 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
7985
7986 * config/i386/i386.md (unspec): New define_c_enum.
7987 (unspecv): Ditto.
7988
7989 2010-06-10 Jakub Jelinek <jakub@redhat.com>
7990
7991 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
7992
7993 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
7994
7995 PR middle-end/44483
7996 * tree-if-conv.c (bb_predicate_s): New struct.
7997 (bb_predicate_p): New.
7998 (bb_has_predicate): New.
7999 (bb_predicate): New.
8000 (set_bb_predicate): New.
8001 (bb_predicate_gimplified_stmts): New.
8002 (set_bb_predicate_gimplified_stmts): New.
8003 (add_bb_predicate_gimplified_stmts): New.
8004 (init_bb_predicate): New.
8005 (free_bb_predicate): New.
8006 (is_predicated): Use bb_predicate.
8007 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
8008 (predicate_bbs): Same. Gimplify the condition of the basic blocks
8009 before processing their successors.
8010 (clean_predicate_lists): Removed.
8011 (find_phi_replacement_condition): Use bb_predicate.
8012 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
8013 computations.
8014 (insert_gimplified_predicates): New.
8015 (combine_blocks): Call insert_gimplified_predicates.
8016 (tree_if_conversion): Call free_bb_predicate instead of
8017 clean_predicate_lists.
8018
8019 2010-10-11 Paul Brook <paul@codesourcery.com>
8020
8021 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
8022 * config/arm/arm.c (all_architectures): Change v7e-m default to
8023 cortexm4.
8024 * config/arm/arm-cores.def: Add cortex-m4.
8025 * config/arm/arm-tune.md: Regenerate.
8026
8027 2010-06-11 Jan Hubicka <jh@suse.cz>
8028
8029 * ipa-pure-const.c (special_builtlin_state): New function.
8030 (check_call): Use it instead of special casign BUILT_IN_RETURN.
8031 (propagate_pure_const): Use it.
8032
8033 2010-06-11 Jan Hubicka <jh@suse.cz>
8034
8035 * df-problems.c (df_live_scratch): Convert to bitmap_head.
8036 (df_live_alloc): Initialize df_live_scratch when initializing
8037 problem_data.
8038 (df_live_transfer_function): Update uses of df_live_scratch.
8039 (df_live_free): Free problem_data; clear df_live_scratch before
8040 releasing the obstack.
8041 (df_md_free): Free problem data.
8042
8043 2010-06-11 Jan Hubicka <jh@suse.cz>
8044
8045 * doc/invoke.texi (Wsuggest-attribute): Document.
8046 (Wmissing-noreturn): Remove.
8047 * ipa-pure-const.c (warn_function_noreturn): New function.
8048 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
8049 warn_missing_noreturn.
8050 * common.opt (Wsuggest-attribute=noreturn): New.
8051 * tree-flow.h (warn_function_noreturn): Declare.
8052 * tree-cfg.c (execute_warn_function_noreturn): Use
8053 warn_function_noreturn.
8054 (gate_warn_function_noreturn): New.
8055 (pass_warn_function_noreturn): Update.
8056
8057 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8058
8059 * c-typeck.c (handle_warn_cast_qual): Add loc
8060 parameter. Improve warning message.
8061 (build_c_cast): Pass location to handle_warn_cast_qual.
8062
8063 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
8064
8065 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
8066 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
8067 insn mnemonic.
8068 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
8069
8070 2010-06-10 Dodji Seketeli <dodji@redhat.com>
8071
8072 Fix bootstap on mips
8073 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
8074 be naming typedefs.
8075
8076 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
8077
8078 * system.h (helper_const_non_const_cast): New inline for
8079 gcc version <= 4.0.
8080 (CONST_CAST2): For gcc version <= 4.0 use
8081 new helper to do const/non-const casting.
8082
8083 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8084
8085 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
8086 * Makefile.in (OBJS-common): Include insn-enums.o.
8087 (insn-enums.o): New rule.
8088 (simple_generated_c): Add insn-enums.c.
8089 (build/genenums.o): New rule.
8090 (genprogmd): Add "enums".
8091 * genconstants.c (print_enum_type): Declare a C string array
8092 for each enum.
8093 * genenums.c: New file.
8094 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
8095 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
8096 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
8097
8098 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8099
8100 * doc/md.texi (define_enum_attr): Document.
8101 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
8102 * read-md.h (lookup_enum_type): Declare.
8103 * read-md.c (lookup_enum_type): New function.
8104 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
8105 * genattrtab.c (attr_desc): Add an enum_name field.
8106 (evaluate_eq_attr): Take the associated attribute as argument.
8107 Get the enum prefix from the enum_name field, if defined.
8108 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
8109 (simplify_test_exp): Pass attr to evaluate_eq_attr.
8110 (add_attr_value): New function, split out from...
8111 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
8112 (write_test_expr): Pass attr to evaluate_eq_attr.
8113 (write_attr_get): Use the enum_name as the enum tag, if defined.
8114 (write_attr_valueq): Use the enum_name as a prefix, if defined.
8115 (find_attr): Initialize enum_name.
8116 (main): Handle DEFINE_ENUM_ATTR.
8117 * gensupport.c (process_rtx): Likewise.
8118 * config/mips/mips.h (mips_tune_attr): Delete.
8119 * config/mips/mips.md (cpu): Use define_attr_enum.
8120
8121 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8122
8123 * doc/md.texi (define_c_enum, define_enum): Document.
8124 * read-md.h (md_constant): Add a parent_enum field.
8125 (enum_value, enum_type): New structures.
8126 (upcase_string, traverse_enum_types): Declare.
8127 * read-md.c (enum_types): New variable.
8128 (upcase_string, add_constant): New functions.
8129 (handle_constants): Don't create the hash table here.
8130 Use add_constant.
8131 (traverse_md_constants): Don't check for a null md_constants.
8132 (decimal_string, handle_enum, traverse_enum_types): New functions.
8133 (read_md_files): Initialize md_constants and md_enums.
8134 * genconstants.c (print_md_constant): Ignore info argument.
8135 Only print constants that belong to no enum.
8136 (print_enum_type): New function.
8137 (main): Don't pass stdout to print_md_constant. Call print_enum_type
8138 for each defined enum type.
8139 * config/mips/mips.md (processor): New define_enum.
8140 (unspec): New define_c_enum.
8141 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
8142 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
8143 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
8144 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
8145 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
8146 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
8147 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
8148 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
8149 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
8150 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
8151 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
8152 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
8153 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
8154 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
8155 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
8156 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
8157 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
8158 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
8159 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
8160 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
8161 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
8162 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
8163 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
8164 (UNSPEC_RDDSP): Move to mips-dsp.md.
8165 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
8166 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
8167 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
8168 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
8169 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
8170 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
8171 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
8172 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
8173 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
8174 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
8175 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
8176 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
8177 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
8178 Moved to mips-dspr2.md.
8179 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
8180 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
8181 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
8182 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
8183 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
8184 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
8185 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
8186 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
8187 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
8188 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
8189 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
8190 UNSPEC_LOONGSON_PSADBH)
8191 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
8192 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
8193 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
8194 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
8195 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
8196 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
8197 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
8198 (cpu): Update comment.
8199 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
8200 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
8201 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
8202 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
8203 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
8204 UNSPEC_LOONGSON_PCMPEQ)
8205 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
8206 UNSPEC_LOONGSON_PINSR_0)
8207 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
8208 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
8209 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
8210 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
8211 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
8212 UNSPEC_LOONGSON_PSADBH)
8213 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
8214 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
8215 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
8216 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
8217 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
8218 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
8219 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
8220 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
8221 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
8222 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
8223 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
8224 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
8225 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
8226 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
8227 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
8228 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
8229 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
8230 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
8231 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
8232 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
8233 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
8234 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
8235 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
8236 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
8237 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
8238 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
8239 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
8240 (UNSPEC_RDDSP): Moved from mips.md.
8241 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
8242 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
8243 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
8244 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
8245 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
8246 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
8247 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
8248 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
8249 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
8250 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
8251 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
8252 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
8253 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
8254 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
8255 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
8256 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
8257 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
8258 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
8259 (UNSPEC_SCC): Moved from mips.md.
8260 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
8261 "processor_type" to "processor".
8262 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
8263 * config/mips/mips.h (processor_type): Delete.
8264 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
8265 "processor_type" to "processor".
8266
8267 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8268
8269 * configure.ac (tm_include_list): Add insn-constants.h.
8270 * configure: Regenerate.
8271 * Makefile.in (GTM_H): Move insn-constants.h here from...
8272 (TM_H): ...here.
8273 * mkconfig.sh: Remove special handling for insn-constants.h.
8274
8275 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8276
8277 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
8278 (BUILD_MD): ...this new variable.
8279 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
8280 that include the old contents of simple_generated_h and
8281 simple_generated_c.
8282 (simple_generated_h, simple_generated_c): Include them. Add
8283 insn-constants.h.
8284 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
8285 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
8286 Remove these dependencies from the main rule and include
8287 insn-conditions.md in the command line only if it appears
8288 in the dependency list.
8289 (insn-constants.h, s-constants): Delete.
8290 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
8291 or gensupport.h.
8292 (build/genmddeps.o): Likewise.
8293 (genprogrtl): New variable that contains everything from genprogmd
8294 except mddeps and constants.
8295 (genprogmd): Redefine in terms of genprogrtl. Make these programs
8296 depend on $(BUILD_MD)
8297 (genprog): New variable. Make these programs depend on
8298 $(BUILD_ERRORS).
8299 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
8300 (main): Use read_md_files instead of init_rtx_reader_args.
8301 * genconstants.c: As for genmddeps.c.
8302 * read-md.h (read_skip_construct): Declare.
8303 * read-md.c (read_skip_construct): New function.
8304 (handle_file): Allow a null handle_directive, skipping the
8305 construct if so.
8306 (parse_include): Update the comment accordingly.
8307
8308 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8309
8310 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
8311 * genmddeps.c: Include read-md.h.
8312 (main): Call init_rtx_reader_args instead of init_md_reader_args.
8313 * genattr.c (main): Likewise.
8314 * genattrtab.c (main): Likewise.
8315 * genautomata.c (main): Likewise.
8316 * gencodes.c (main): Likewise.
8317 * genconditions.c (main): Likewise.
8318 * genconfig.c (main): Likewise.
8319 * genconstants.c (main): Likewise.
8320 * genemit.c (main): Likewise.
8321 * genextract.c (main): Likewise.
8322 * genflags.c (main): Likewise.
8323 * genopinit.c (main): Likewise.
8324 * genoutput.c (main): Likewise.
8325 * genpeep.c (main): Likewise.
8326 * genrecog.c (main): Likewise.
8327 * genpreds.c (main): Likewise.
8328 * gensupport.h (in_fname): Move to read-md.h.
8329 (init_md_reader_args_cb): Rename to...
8330 (init_rtx_reader_args_cb): ...this and return a bool.
8331 (init_md_reader_args): Rename to...
8332 (init_rtx_reader_args): ...this and return a bool.
8333 (include_callback): Move to read-md.h.
8334 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
8335 (file_name_list, first_dir_md_include): Move to read-md.c
8336 (first_bracket_include): Delete unused variable.
8337 (last_dir_md_include): Move to read-md.c.
8338 (process_include): Delete, moving code to read-md.c:handle_include.
8339 (process_rtx): Don't handle INCLUDE.
8340 (save_string): Delete.
8341 (rtx_handle_directive): New function.
8342 (init_md_reader_args_cb): Rename to...
8343 (init_rtx_reader_args_cb): ...this and return a boolean success value.
8344 Use read_md_args.
8345 (init_md_reader_args): Rename to...
8346 (init_rtx_reader_args): ...this and return a boolean success value.
8347 * rtl.def (INCLUDE): Delete.
8348 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
8349 argument.
8350 * read-rtl.c (read_conditions): Don't gobble ')' here.
8351 (read_mapping): Likewise.
8352 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
8353 Handle top-level non-rtx constructs here rather than in read_rtx_1.
8354 Store the whole queue in *X. Remove call to init_md_reader.
8355 (read_rtx_1): Rename to...
8356 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
8357 Don't handle top-level non-rtx constructs here. Don't handle (nil)
8358 here.
8359 (read_nested_rtx): New function. Handle (nil) here rather than
8360 in read_rtx_code.
8361 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
8362 gobble ')' here.
8363 * read-md.h (directive_handler_t): New type.
8364 (in_fname, include_callback): Moved from read-md.h.
8365 (read_constants, init_md_reader): Delete.
8366 (read_md_files): Declare.
8367 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
8368 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
8369 from gensupport.c.
8370 (read_constants): Rename to...
8371 (handle_constants): ...this. Don't gobble ')' here.
8372 (handle_include, handle_file, handle_toplevel_file)
8373 (parse_include): New functions, mostly taken from gensupport.c.
8374 (init_md_reader): Subsume into...
8375 (read_md_files): ...this new function.
8376
8377 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8378
8379 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
8380 (unread_char): Decrement read_md_lineno after putting back '\n'.
8381 * read-md.c (fatal_with_file_and_line): Push back any characters
8382 that we decide not to add to the context.
8383 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
8384 fatal_expected_char in cases where '/' ends a line (for example).
8385 (read_name): Don't increment read_md_lineno here.
8386 (read_escape): Likewise.
8387 (read_quoted_string): Likewise.
8388 (read_braced_string): Likewise.
8389
8390 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8391
8392 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
8393 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
8394 * genconstants.c: Include read-md.h.
8395 * read-rtl.c (md_constants): Move to read-md.c.
8396 (md_name): Move to read-md.h.
8397 (initialize_iterators): Use leading_string_hash instead of def_hash
8398 and leading_string_eq_p instead of def_name_eq_p.
8399 (read_name): Move to read-md.c.
8400 (def_hash, def_name_eq_p): Delete.
8401 (read_constants, traverse_md_constants): Move to read-md.c.
8402 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
8403 * read-md.h: Include hashtab.h.
8404 (md_name): Moved from read-rtl.c.
8405 (md_constant): Moved from read-md.h.
8406 (leading_string_hash, leading_string_eq_p, read_name)
8407 (read_constants, traverse_md_constants): Declare.
8408 * read-md.c (md_constants): Moved from read-rtl.c.
8409 (leading_string_hash, leading_string_eq_p): New functions.
8410 (read_name, read_constants, traverse_md_constants): Moved from
8411 read-rtl.c.
8412
8413 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8414
8415 * read-rtl.c (md_name): New structure.
8416 (read_name): Take an md_name instead of a buffer pointer.
8417 Use the "string" field instead of strcpy when expanding constants.
8418 (read_constants): Remove the tmp_char argument. Update the calls
8419 to read_name, using two local name buffers instead of the tmp_char
8420 argument. Merge the constant-creation code.
8421 (read_conditions): Remove the tmp_char argument. Update the calls
8422 to read_name, using a local name buffer instead of the tmp_char
8423 argument.
8424 (read_mapping): Replace tmp_char variable with a local name buffer.
8425 Update the calls to read_name.
8426 (read_rtx_1): Likewise. Update the calls to read_constants and
8427 read_conditions.
8428
8429 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8430
8431 * Makefile.in (build/read-md.o): Depend on errors.h.
8432 * read-md.h (error_with_line): Declare.
8433 * read-md.c: Include errors.h.
8434 (message_with_line_1): New function, extracted from...
8435 (message_with_line): ...here.
8436 (error_with_line): New function.
8437 * genattrtab.c: If a call to message_with_line is followed by
8438 "have_error = 1;", replace both statements with a call to
8439 error_with_line.
8440 * genoutput.c: Likewise.
8441 * genpreds.c: Likewise.
8442 * genrecog.c: If a call to message_with_line is followed by
8443 "error_count++;", replace both statements with a call to
8444 error_with_line.
8445 (errorcount): Delete.
8446 (main): Don't check it.
8447 * gensupport.c: If a call to message_with_line is followed by
8448 "errors = 1;", replace both statements with a call to error_with_line.
8449 (errors): Delete.
8450 (process_define_cond_exec): Check have_error instead of errors.
8451 (init_md_reader_args_cb): Likewise. Don't set errors.
8452
8453 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8454
8455 * read-md.h (read_md_file): Declare.
8456 (read_char, unread_char): New functions.
8457 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
8458 (read_quoted_string, read_string): Remove FILE * argument.
8459 * read-md.c (read_md_file): New variable.
8460 (read_md_filename, read_md_lineno): Update comments and remove
8461 unnecessary initialization.
8462 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
8463 (read_escape, read_quoted_string, read_braced_string, read_string):
8464 Remove FILE * argument. Update calls accordingly, using read_char
8465 and unread_char instead of getc and ungetc.
8466 * rtl.h (read_rtx): Remove FILE * argument.
8467 * read-rtl.c (iterator_group): Remove FILE * argument from
8468 "find_builtin".
8469 (iterator_traverse_data): Remove "infile" field.
8470 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
8471 (add_mapping, read_name, read_constants, read_conditions)
8472 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
8473 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
8474 Remove file arguments from all calls, using read_char and unread_char
8475 instead of getc and ungetc.
8476 * gensupport.c (process_include): Preserve read_md_file around
8477 the include. Set read_md_file to the handle of the included file.
8478 Update call to read_rtx.
8479 (init_md_reader_args_cb): Set read_md_file to the handle of the file
8480 and remove local FILE *. Update calls to read_rtx.
8481
8482 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8483
8484 * read-md.h (read_rtx_lineno): Rename to...
8485 (read_md_lineno): ...this.
8486 (read_rtx_filename): Rename to...
8487 (read_md_filename): ...this.
8488 (copy_rtx_ptr_loc): Rename to...
8489 (copy_md_ptr_loc): ...this.
8490 (print_rtx_ptr_loc): Rename to...
8491 (print_md_ptr_loc): ...this.
8492 * read-md.c: Likewise. Update references after renaming.
8493 (string_obstack): Replace RTL with MD in comment.
8494 (set_rtx_ptr_loc): Rename to...
8495 (set_md_ptr_loc): ...this.
8496 (get_rtx_ptr_loc): Rename to...
8497 (get_md_ptr_loc): ...this.
8498 * genconditions.c: Update references after renaming.
8499 * genemit.c: Likewise.
8500 * genoutput.c: Likewise.
8501 * genpreds.c: Likewise.
8502 * gensupport.c: Likewise.
8503 * read-rtl.c: Likewise.
8504
8505 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8506
8507 * Makefile.in (READ_MD_H): New variable.
8508 (BUILD_RTL): Add build/read-md.o.
8509 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
8510 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
8511 (build/genattrtab.o, build/genconditions.o build/genemit.o)
8512 (build/genextract.o, build/genflags.o, build/genoutput.o)
8513 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
8514 (build/read-md.o): New rule.
8515 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
8516 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
8517 * coretypes.h: ...here.
8518 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
8519 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
8520 * genattr.c: Include read-md.h.
8521 * genattrtab.c: Likewise.
8522 * genconditions.c: Likewise.
8523 * genemit.c: Likewise.
8524 * genextract.c: Likewise.
8525 * genflags.c: Likewise.
8526 * genoutput.c: Likewise.
8527 * genpreds.c: Likewise.
8528 * genrecog.c: Likewise.
8529 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
8530 (join_c_conditions, print_c_condition, read_rtx_filename)
8531 (read_rtx_lineno): Move to read-md.h.
8532 * read-rtl.c: Include read-md.h.
8533 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
8534 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
8535 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
8536 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
8537 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
8538 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
8539 (read_braced_string, read_string): Move to read-md.c.
8540 (read_rtx): Move some initialization to init_md_reader and call
8541 init_md_reader here.
8542 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
8543 Move to read-md.h.
8544 * gensupport.c: Include read-md.h.
8545 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
8546 * read-md.h, read-md.c: New files.
8547
8548 2010-06-10 Anatoly Sokolov <aesok@post.ru>
8549
8550 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8551 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8552 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
8553 * config/moxie/moxie.c (moxie_function_value): Make static.
8554 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
8555 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8556
8557 2010-06-10 Martin Jambor <mjambor@suse.cz>
8558
8559 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
8560 * dbgcnt.def (tree_sra): New counter.
8561 * tree-sra.c: Include dbgcnt.h.
8562 (gate_intra_sra): Check tree_sra debug counter.
8563
8564 2010-06-10 Martin Jambor <mjambor@suse.cz>
8565
8566 PR tree-optimization/44258
8567 * tree-sra.c (build_access_subtree): Return false iff there is a
8568 partial overlap.
8569 (build_access_trees): Likewise.
8570 (analyze_all_variable_accesses): Disqualify candidates if
8571 build_access_trees returns true for them.
8572
8573 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
8574
8575 PR debug/41371
8576 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
8577 tail-recurse into canonical node. Fast-forward over
8578 non-canonical VALUEs.
8579
8580 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
8581
8582 PR boostrap/44470
8583 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
8584 (*addsi_1_zext) <TYPE_LEA>: Likewise.
8585 (add lea splitter): Likewise.
8586 (add_zext lea splitter): Likewise.
8587
8588 2010-06-10 Joseph Myers <joseph@codesourcery.com>
8589
8590 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
8591
8592 2010-06-10 Jan Hubicka <jh@suse.cz>
8593
8594 * df-problems.c (df_live_problem_data): Add live_bitmaps.
8595 (df_live_alloc): Initialize problem data and live_osbtacks.
8596 (df_live_finalize): Remove obstack, problem data; do not
8597 clear all bitmaps.
8598 (df_live_top_dump, df_live_bottom_dump): Do not dump old
8599 data when not allocated.
8600 (df_live_verify_solution_start): Do not allocate problem data.
8601 (df_live_verify_solution_end): Check if out is allocated.
8602 (struct df_md_problem_data): New structure.
8603 (df_md_alloc): Allocate problem data.
8604 (df_md_free): Free problem data; do not clear bitmaps.
8605
8606 2010-06-10 Jan Beulich <jbeulich@novell.com>
8607
8608 PR bootstrap/37304
8609 * configure.ac: Replace $() with ${} when intending to expand
8610 variables rather than invoking commands.
8611 * configure: Re-generate.
8612
8613 2010-06-10 Jan Hubicka <jh@suse.cz>
8614
8615 PR rtl-optimization/44460
8616 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8617 TYPE_NEEDS_CONSTRUCTING sanity check.
8618
8619 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8620
8621 * doc/include/fdl.texi: Move to GFDL version 1.3.
8622
8623 * doc/cpp.texi: Move to GFDL version 1.3.
8624 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
8625 * doc/gccint.texi: Move to GFDL version 1.3.
8626 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
8627 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
8628 * doc/invoke.texi: Move to GFDL version 1.3.
8629
8630 2010-06-09 Jan Hubicka <jh@suse.cz>
8631
8632 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
8633 Break out from ...
8634 (propagate) ... here; swap the order.
8635
8636 2010-06-09 Jan Hubicka <jh@suse.cz>
8637
8638 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
8639 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
8640 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
8641 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
8642
8643 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
8644
8645 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
8646 Do not the gather memory reference in the outer loop if the step
8647 is not a constant.
8648
8649 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
8650
8651 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
8652 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
8653 8 to 4. Minor change of the related comments.
8654
8655 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
8656
8657 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
8658 the scev analysis when the variable is not used outside the loop
8659 in a close phi node: call compute_overall_effect_of_inner_loop.
8660
8661 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
8662
8663 * graphite-sese-to-poly.c (single_pred_cond): Renamed
8664 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
8665 (build_sese_conditions_before): Renamed call to single_pred_cond.
8666 (build_sese_conditions_after): Same.
8667
8668 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
8669
8670 * graphite-poly.h: Fix comments and indentation.
8671 * graphite-sese-to-poly.c: Same.
8672 (build_sese_conditions_before): Compute stmt and gbb only when needed.
8673 * tree-chrec.c: Fix comments and indentation.
8674 (tree-ssa-loop-niter.c): Same.
8675
8676 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8677
8678 PR rtl-optimization/42461
8679 * dce.c (deletable_insn_p): Return true for const or pure calls again.
8680 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
8681
8682 2010-06-09 Jan Hubicka <jh@suse.cz>
8683
8684 * bitmap.c (bitmap_and): Walk array forward.
8685 (bitmap_and_compl_into): Likewise.
8686 (bitmap_xor): Likewise.
8687 (bitmap_xor_into): Likewise.
8688 (bitmap_equal_p): Likewise.
8689 (bitmap_intersect_p): Likewise.
8690 (bitmap_intersect_compl_p): Likewise.
8691 (bitmap_ior_and_into): Likewise.
8692 (bitmap_elt_copy): Likewise.
8693 (bitmap_and_compl): Likewise.
8694 (bitmap_elt_ior): Likewise.
8695
8696 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
8697
8698 * opts-common.c (prune_options): Ensure replacement argv array
8699 is correctly terminated by a NULL entry.
8700
8701 2010-06-09 Jan Hubicka <jh@suse.cz>
8702
8703 * cgraph.h (varpool_first_static_initializer,
8704 varpool_next_static_initializer): Make checking only when
8705 checking enabled.
8706 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
8707 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
8708 gcc_assert to gcc_checking_assert.
8709 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
8710 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
8711 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
8712 op_iter_init_phiuse, op_iter_init_phidef,
8713 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
8714 gcc_checking_assert.
8715 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
8716 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
8717 partition_is_global, live_on_entry, live_on_exit,
8718 live_merge_and_clear): Likewise.
8719 * system.h (gcc_checking_assert): New macro.
8720 * gimple.h (set_bb_seq): Use gcc_checking_assert.
8721
8722 2010-06-09 Jason Merrill <jason@redhat.com>
8723
8724 * Makefile.in (TAGS): Collect tags info from c-family.
8725
8726 2010-06-09 Jan Hubicka <jh@suse.cz>
8727
8728 * gimple.h (gcc_gimple_checking_assert): New macro.
8729 (gimple_set_def_ops, gimple_set_use_ops,
8730 gimple_set_vuse, gimple_set_vdef,
8731 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
8732 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
8733 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
8734 gimple_asm_output_op, gimple_asm_output_op_ptr,
8735 gimple_asm_set_output_op, gimple_asm_clobber_op,
8736 gimple_asm_set_clobber_op, gimple_asm_label_op,
8737 gimple_asm_set_label_op, gimple_try_set_kind,
8738 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
8739 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
8740 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
8741 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
8742 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
8743 gimple_omp_for_set_initial, gimple_omp_for_final,
8744 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
8745 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
8746 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
8747 conditional with ENABLE_GIMPLE_CHECKING.
8748 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
8749
8750 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
8751
8752 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
8753 (get_computation_cost_at): Use it.
8754 (determine_use_iv_cost_condition): Likewise.
8755 (determine_iv_cost): Likewise.
8756
8757 2010-06-09 Richard Guenther <rguenther@suse.de>
8758
8759 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
8760 replace constants.
8761
8762 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
8763
8764 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
8765
8766 2010-06-09 Martin Jambor <mjambor@suse.cz>
8767
8768 PR tree-optimization/44423
8769 * tree-sra.c (dump_access): Dump also grp_assignment_read.
8770 (analyze_access_subtree): Pass negative allow_replacements to children
8771 if the current type is scalar.
8772
8773 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
8774
8775 PR testsuite/42843
8776 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
8777 * doc/plugins.texi (Plugin license check): Update information
8778 on type of plugin_is_GPL_compatible.
8779 * Makefile.in (PLUGINCC): Define as $(COMPILER).
8780 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
8781
8782 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
8783
8784 * config/arm/arm.c (thumb2_reorg): New function.
8785 (arm_reorg): Call it.
8786 * config/arm/thumb2.md (define_peephole2 for flag clobbering
8787 arithmetic operations): Delete.
8788
8789 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
8790
8791 PR target/44067
8792 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
8793 e500v2 target.
8794
8795 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
8796
8797 PR plugins/44459
8798 * gcc-plugin.h: Encapsulate all declarations in extern "C".
8799
8800 2010-06-08 Jan Hubicka <jh@suse.cz>
8801
8802 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
8803 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
8804
8805 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
8806
8807 PR tree-optimization/39874
8808 PR middle-end/28685
8809 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
8810 Declare.
8811 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
8812 same_bool_result_p): New.
8813 (and_var_with_comparison, and_var_with_comparison_1,
8814 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
8815 (or_var_with_comparison, or_var_with_comparison_1,
8816 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
8817 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
8818 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
8819 of combine_comparisons.
8820 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
8821
8822 2010-06-08 Anatoly Sokolov <aesok@post.ru>
8823
8824 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8825 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8826 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
8827 pdp11_function_value_regno_p): New functions.
8828 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8829 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8830
8831 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
8832
8833 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
8834 Thumb-2 in the MINUS case.
8835
8836 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8837
8838 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
8839
8840 * doc/gty.texi (GTY Options): Document typed GC allocation and
8841 variable_size GTY option.
8842
8843 * ggc-internal.h: New.
8844
8845 * ggc.h: Update copyright year.
8846 (digit_string): Move to stringpool.c.
8847 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
8848 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
8849 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
8850 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
8851 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
8852 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
8853 (ggc_force_collect, ggc_get_size, ggc_statistics)
8854 (ggc_print_common_statistics): Move to ggc-internal.h.
8855 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
8856 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
8857 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
8858 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
8859 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
8860 (ggc_alloc_zone_pass_stat): Remove.
8861 (ggc_internal_alloc_stat, ggc_internal_alloc)
8862 (ggc_internal_cleared_alloc_stat): New.
8863 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
8864 (ggc_internal_vec_alloc_stat)
8865 (ggc_internal_cleared_vec_alloc_stat)
8866 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
8867 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
8868 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
8869 (ggc_cleared_alloc_ptr_array_two_args): New.
8870 (htab_create_ggc, splay_tree_new_ggc): Redefine.
8871 (ggc_splay_alloc): Change the type of the first argument to
8872 enum gt_types_enum.
8873 (ggc_alloc_string): Make macro.
8874 (ggc_alloc_string_stat): New.
8875 (ggc_strdup): Redefine.
8876 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
8877 (ggc_alloc_rtvec_sized): New.
8878 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
8879 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
8880 (ggc_internal_cleared_alloc_zone_stat)
8881 (ggc_internal_zone_alloc_stat)
8882 (ggc_internal_zone_cleared_alloc_stat)
8883 (ggc_internal_zone_vec_alloc_stat)
8884 (ggc_alloc_zone_rtx_def_stat)
8885 (ggc_alloc_zone_tree_node_stat)
8886 (ggc_alloc_zone_cleared_tree_node_stat)
8887 (ggc_alloc_cleared_gimple_statement_d_stat): New.
8888
8889 * ggc-common.c: Include ggc-internal.h.
8890 (ggc_internal_cleared_alloc_stat): Rename from
8891 ggc_alloc_cleared_stat.
8892 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
8893 (ggc_calloc): Remove.
8894 (ggc_cleared_alloc_htab_ignore_args): New.
8895 (ggc_cleared_alloc_ptr_array_two_args): New.
8896 (ggc_splay_alloc): Add obj_type parameter.
8897 (init_ggc_heuristics): Formatting fixes.
8898
8899 * ggc-none.c: Update copyright year.
8900 (ggc_alloc_stat): Rename to ggc_alloc_stat.
8901 (ggc_alloc_cleared_stat): Rename to
8902 ggc_internal_cleared_alloc_stat.
8903 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8904
8905 * ggc-page.c: Update copyright year. Include ggc-internal.h.
8906 Remove references to ggc_alloc in comments.
8907 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
8908 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
8909 (new_ggc_zone, destroy_ggc_zone): Remove.
8910 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8911
8912 * ggc-zone.c: Include ggc-internal.h. Remove references to
8913 ggc_alloc in comments.
8914 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
8915 (ggc_internal_alloc_zone_pass_stat): New.
8916 (ggc_internal_cleared_alloc_zone_stat): New.
8917 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
8918 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
8919 (new_ggc_zone, destroy_ggc_zone): Remove.
8920
8921 * stringpool.c: Update copyright year. Include ggc-internal.h
8922 (digit_vector): Make static.
8923 (digit_string): Moved from ggc.h.
8924 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
8925 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
8926
8927 * Makefile.in (GGC_INTERNAL_H): New.
8928 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
8929 $(GGC_INTERNAL_H) to dependencies.
8930
8931 * gentype.c: Update copyright year.
8932 (walk_type): Accept variable_size GTY option.
8933 (USED_BY_TYPED_GC_P): New macro.
8934 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
8935 whitespace at the end of strings.
8936 (get_type_specifier, variable_size_p): New functions.
8937 (alloc_quantity, alloc_zone): New enums.
8938 (write_typed_alloc_def): New function.
8939 (write_typed_struct_alloc_def): Likewise.
8940 (write_typed_typed_typedef_alloc_def): Likewise.
8941 (write_typed_alloc_defns): Likewise.
8942 (output_typename, write_splay_tree_allocator_def): Likewise.
8943 (write_splay_tree_allocators): Likewise.
8944 (main): Call write_typed_alloc_defns and
8945 write_splay_tree_allocators.
8946
8947 * lto-streamer.h (lto_file_decl_data_ptr): New.
8948
8949 * passes.c (order): Define using cgraph_node_ptr.
8950
8951 * strinpool.c (struct string_pool_data): Declare nested_ptr using
8952 ht_identifier_ptr.
8953
8954 * gimple.h (union gimple_statement_d): Likewise.
8955
8956 * rtl.h (struct rtx_def): Likewise.
8957 (struct rtvec_def): Likewise.
8958
8959 * tree.h (union tree_node): Likewise.
8960
8961 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
8962
8963 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
8964
8965 * tree-scalar-evolution.c (scev_initialize): Likewise.
8966
8967 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
8968
8969 * dwarf2asm.c (dw2_force_const_mem): Likewise.
8970
8971 * omp-low.c (lower_omp_critical): Likewise.
8972
8973 * bitmap.h (struct bitmap_head_def): Update comment to not
8974 reference ggc_alloc.
8975
8976 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
8977
8978 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
8979
8980 * ipa-prop.c (duplicate_ggc_array): Rename to
8981 duplicate_ipa_jump_func_array. Use typed GC allocation.
8982 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
8983
8984 * gimple.c (gimple_alloc_stat): Use
8985 ggc_alloc_cleared_gimple_statement_d_stat.
8986
8987 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
8988
8989 * tree.c (make_node_stat): Use
8990 ggc_alloc_zone_cleared_tree_node_stat.
8991 (make_tree_vec_stat): Likewise.
8992 (build_vl_exp_stat): Likewise.
8993 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
8994 (make_tree_binfo_stat): Likewise.
8995 (tree_cons_stat): Likewise.
8996
8997 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
8998 (shallow_copy_rtx_stat): Likewise.
8999 (make_node_stat): Likewise.
9000
9001 * lto-symtab.c: Fix comment.
9002
9003 * tree-cfg.c (create_bb): Update comment to not reference
9004 ggc_alloc_cleared.
9005 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
9006
9007 * varpool.c (varpool_node): Use typed GC allocation.
9008 (varpool_extra_name_alias): Likewise.
9009
9010 * varasm.c (emutls_decl): Likewise.
9011 (get_unnamed_section): Likewise.
9012 (get_noswitch_section): Likewise.
9013 (get_section): Likewise.
9014 (get_block_for_section): Likewise.
9015 (build_constant_desc): Likewise.
9016 (create_constant_pool): Likewise.
9017 (force_const_mem): Likewise.
9018
9019 * tree.c (build_vl_exp_stat): Likewise.
9020 (build_real): Likewise.
9021 (build_string): Likewise.
9022 (decl_debug_expr_insert): Likewise.
9023 (decl_value_expr_insert): Likewise.
9024 (type_hash_add): Likewise.
9025 (build_omp_clause): Likewise.
9026
9027 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
9028
9029 * tree-ssa.c (init_tree_ssa): Likewise.
9030
9031 * tree-ssa-structalias.c (heapvar_insert): Likewise.
9032
9033 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
9034
9035 * tree-ssa-loop-niter.c (record_estimate): Likewise.
9036
9037 * tree-ssa-alias.c (get_ptr_info): Likewise.
9038
9039 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
9040
9041 * tree-phinodes.c (allocate_phi_node): Likewise.
9042
9043 * tree-iterator.c (tsi_link_before): Likewise.
9044 (tsi_link_after): Likewise.
9045
9046 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
9047
9048 * tree-dfa.c (create_var_ann): Likewise.
9049
9050 * tree-cfg.c (create_bb): Likewise.
9051
9052 * toplev.c (alloc_for_identifier_to_locale): Likewise.
9053 (general_init): Likewise.
9054
9055 * stringpool.c (stringpool_ggc_alloc): Likewise.
9056 (gt_pch_save_stringpool): Likewise.
9057
9058 * sese.c (if_region_set_false_region): Likewise.
9059
9060 * passes.c (do_per_function_toporder): Likewise.
9061
9062 * optabs.c (set_optab_libfunc): Likewise.
9063 (set_conv_libfunc): Likewise.
9064
9065 * lto-symtab.c (lto_symtab_register_decl): Likewise.
9066
9067 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
9068 (input_eh_region): Likewise.
9069 (input_eh_lp): Likewise.
9070 (make_new_block): Likewise.
9071 (unpack_ts_real_cst_value_fields): Likewise.
9072
9073 * lto-section-in.c (lto_new_in_decl_state): Likewise.
9074
9075 * lto-cgraph.c (input_node_opt_summary): Likewise.
9076
9077 * loop-init.c (loop_optimizer_init): Likewise.
9078
9079 * lambda.h (lambda_vector_new): Likewise.
9080
9081 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
9082
9083 * ira.c (update_equiv_regs): Likewise.
9084
9085 * ipa.c (cgraph_node_set_new): Likewise.
9086 (cgraph_node_set_add): Likewise.
9087 (varpool_node_set_new): Likewise.
9088 (varpool_node_set_add): Likewise.
9089
9090 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
9091 (duplicate_ipa_jump_func_array): Likewise.
9092 (ipa_read_node_info): Likewise.
9093
9094 * ipa-cp.c (ipcp_create_replace_map): Likewise.
9095
9096 * integrate.c (get_hard_reg_initial_val): Likewise.
9097
9098 * gimple.c (gimple_alloc_stat): Likewise.
9099 (gimple_build_omp_for): Likewise.
9100 (gimple_seq_alloc): Likewise.
9101 (gimple_copy): Likewise.
9102
9103 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
9104 (gsi_insert_after_without_update): Likewise.
9105
9106 * function.c (add_frame_space): Likewise.
9107 (insert_temp_slot_address): Likewise.
9108 (assign_stack_temp_for_type): Likewise.
9109 (allocate_struct_function): Likewise.
9110 (types_used_by_var_decl_insert): Likewise.
9111
9112 * except.c (init_eh_for_function): Likewise.
9113 (gen_eh_region): Likewise.
9114 (gen_eh_region_catch): Likewise.
9115 (gen_eh_landing_pad): Likewise.
9116 (add_call_site): Likewise.
9117
9118 * emit-rtl.c (get_mem_attrs): Likewise.
9119 (get_reg_attrs): Likewise.
9120 (start_sequence): Likewise.
9121 (init_emit): Likewise.
9122
9123 * dwarf2out.c (new_cfi): Likewise.
9124 (queue_reg_save): Likewise.
9125 (dwarf2out_frame_init): Likewise.
9126 (new_loc_descr): Likewise.
9127 (find_AT_string): Likewise.
9128 (new_die): Likewise.
9129 (add_var_loc_to_decl): Likewise.
9130 (clone_die): Likewise.
9131 (clone_as_declaration): Likewise.
9132 (break_out_comdat_types): Likewise.
9133 (new_loc_list): Likewise.
9134 (loc_descriptor): Likewise.
9135 (add_loc_descr_to_each): Likewise.
9136 (add_const_value_attribute): Likewise.
9137 (tree_add_const_value_attribute): Likewise.
9138 (add_comp_dir_attribute): Likewise.
9139 (add_name_and_src_coords_attributes): Likewise.
9140 (lookup_filename): Likewise.
9141 (store_vcall_insn): Likewise.
9142 (dwarf2out_init): Likewise.
9143
9144 * dbxout.c (dbxout_init): Likewise.
9145
9146 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9147
9148 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9149
9150 * config/score/score7.c (score7_output_external): Likewise.
9151
9152 * config/score/score3.c (score3_output_external): Likewise.
9153
9154 * config/s390/s390.c (s390_init_machine_status): Likewise.
9155
9156 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
9157 (rs6000_init_machine_status): Likewise.
9158 (output_toc): Likewise.
9159
9160 * config/pa/pa.c (pa_init_machine_status): Likewise.
9161 (get_deferred_plabel): Likewise.
9162
9163 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
9164
9165 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
9166
9167 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
9168
9169 * config/mep/mep.c (mep_init_machine_status): Likewise.
9170 (mep_note_pragma_flag): Likewise.
9171
9172 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
9173
9174 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
9175
9176 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
9177
9178 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
9179 (i386_pe_maybe_record_exported_symbol): Likewise.
9180
9181 * config/i386/i386.c (get_dllimport_decl): Likewise.
9182 (ix86_init_machine_status): Likewise.
9183 (assign_386_stack_local): Likewise.
9184
9185 * config/frv/frv.c (frv_init_machine_status): Likewise.
9186
9187 * config/darwin.c (machopic_indirection_name): Likewise.
9188
9189 * config/cris/cris.c (cris_init_machine_status): Likewise.
9190
9191 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
9192
9193 * config/avr/avr.c (avr_init_machine_status): Likewise.
9194
9195 * config/arm/arm.c (arm_init_machine_status): Likewise.
9196
9197 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
9198 (alpha_need_linkage): Likewise.
9199 (alpha_use_linkage): Likewise.
9200
9201 * cgraph.c (cgraph_allocate_node): Likewise.
9202 (cgraph_create_edge_1): Likewise.
9203 (cgraph_create_indirect_edge): Likewise.
9204 (cgraph_add_asm_node): Likewise.
9205
9206 * cfgrtl.c (init_rtl_bb_info): Likewise.
9207
9208 * cfgloop.c (alloc_loop): Likewise.
9209 (rescan_loop_exit): Likewise.
9210
9211 * cfg.c (init_flow): Likewise.
9212 (alloc_block): Likewise.
9213 (unchecked_make_edge): Likewise.
9214
9215 * c-parser.c (c_parse_init): Likewise.
9216 (c_parse_file): Likewise.
9217
9218 * c-decl.c (bind): Likewise.
9219 (record_inline_static): Likewise.
9220 (push_scope): Likewise.
9221 (make_label): Likewise.
9222 (lookup_label_for_goto): Likewise.
9223 (finish_struct): Likewise.
9224 (finish_enum): Likewise.
9225 (c_push_function_context): Likewise.
9226
9227 * bitmap.c (bitmap_element_allocate): Likewise.
9228 (bitmap_gc_alloc_stat): Likewise.
9229
9230 * alias.c (record_alias_subset): Likewise.
9231 (init_alias_analysis): Likewise.
9232
9233 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
9234
9235 * fold-const.c (fold_comparison): Remove redundant parenthesis.
9236 * tree-inline.c (expand_call_inline): Pass translated return value of
9237 cgraph_inline_failed_string to diagnostic function.
9238
9239 2010-06-08 Andrew Pinski <pinskia@gmail.com>
9240 Shujing Zhao <pearly.zhao@oracle.com>
9241
9242 PR c/37724
9243 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
9244 implicit bad conversions is initialization.
9245 (error_init): Use gmsgid instead of msgid for argument name and change
9246 the call for error.
9247 (pedwarn_init): Use gmsgid instead of msgid for argument name and
9248 change the call for pedwarn.
9249 (warning_init): Use gmsgid instead of msgid for argument name and
9250 change the call for warning.
9251
9252 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
9253
9254 * config/mips/mips-protos.h (mips_print_operand): Delete.
9255 (mips_print_operand_address): Delete.
9256 * config/mips/mips.h (mips_print_operand_punct): Delete.
9257 (PRINT_OPERAND): Delete.
9258 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9259 (PRINT_OPERAND_ADDRESS): Delete.
9260 * config/mips/mips.c (mips_print_operand_punct): Make static.
9261 (mips_print_operand_address): Make static.
9262 (mips_print_operand): Make static. Call
9263 mips_print_operand_punct_valid_p.
9264 (mips_print_operand_punct_valid_p): New function.
9265 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9266 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9267
9268 2010-06-07 Jan Hubicka <jh@suse.cz>
9269
9270 PR middle-end/44454
9271 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
9272 are allocated.
9273
9274 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
9275
9276 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
9277 name of RECORD.
9278
9279 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9280
9281 * doc/sourcebuild.texi (Effective-Target Keywords, Other
9282 attributes): Document gas.
9283
9284 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
9285
9286 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
9287 <TYPE_LEA>: Split instruction.
9288 <default>: Remove alternative 2 handling.
9289 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
9290 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
9291 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
9292
9293 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
9294 (ashift_zext lea splitter): Use DImode for multiplication.
9295
9296 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
9297 to generate addition.
9298
9299 2010-06-07 Joseph Myers <joseph@codesourcery.com>
9300
9301 * common.opt (fira-verbose): Use Var.
9302 (fpcc-struct-return): Use Init instead of VarExists.
9303 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
9304 toplev.c.
9305 * flags.h (flag_signed_char, flag_short_enums,
9306 flag_pcc_struct_return, flag_ira_verbose,
9307 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
9308 * toplev.c (flag_detailed_statistics, flag_signed_char,
9309 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
9310 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
9311 * toplev.h (flag_crossjumping, flag_if_conversion,
9312 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
9313 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
9314 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
9315 flag_cprop_registers, time_report, flag_ira_loop_pressure,
9316 flag_ira_coalesce, flag_ira_move_spills,
9317 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
9318
9319 2010-06-07 Jan Hubicka <jh@suse.cz>
9320
9321 * df-core.c (df_analyze_problem): Do verification after allocation.
9322
9323 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
9324 (df_lr_alloc): Initialize problem data; move bitmaps to
9325 lr_bitmaps obstack.
9326 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
9327 (df_lr_verify_solution_start): Do not initialize problem data;
9328 allocate bitmaps in lr_bitmaps.
9329 (df_lr_verify_solution_end): Do not free problem data.
9330
9331 2010-06-07 Jan Hubicka <jh@suse.cz>
9332
9333 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
9334 if caller is noreturn.
9335 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
9336 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
9337 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
9338 * ipa-pure-const.c (check_decl): Add IPA parameter.
9339 (state_from_flags): New function.
9340 (better_state, worse_state): New functions.
9341 (check_call): When in IPA mode, do not care about callees.
9342 (check_load, check_store): Update.
9343 (check_ipa_load, check_ipa_store): New.
9344 (check_stmt): When in IPA mode, use IPA checkers.
9345 (analyze_function): Use state_from_flags.
9346 (propagate): Check indirect edges and references.
9347
9348 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
9349
9350 PR rtl-optimization/44404
9351 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
9352 of count_occurrences to see if it's safe to modify mem_insn.
9353
9354 2010-06-07 Richard Guenther <rguenther@suse.de>
9355
9356 * gimplify.c (gimplify_cleanup_point_expr): For empty body
9357 and EH-only cleanup drop the cleanup instead of inserting it
9358 unconditionally.
9359
9360 2010-06-07 Ira Rosen <irar@il.ibm.com>
9361
9362 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
9363 documentation.
9364 * targhooks.c (default_builtin_vectorization_cost): New function.
9365 * targhooks.h (default_builtin_vectorization_cost): Declare.
9366 * target.h (enum vect_cost_for_stmt): Define.
9367 (builtin_vectorization_cost): Change argument and comment.
9368 * tree-vectorizer.h: Remove cost model macros.
9369 * tree-vect-loop.c: Include target.h.
9370 (vect_get_cost): New function.
9371 (vect_estimate_min_profitable_iters): Replace cost model macros with
9372 calls to vect_get_cost.
9373 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
9374 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
9375 default implementation.
9376 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
9377 calls to target hook builtin_vectorization_cost.
9378 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
9379 Likewise.
9380 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
9381 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
9382 implementation to return costs.
9383 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
9384 * config/spu/spu.h: Remove vectorizer cost model macros.
9385 * config/i386/i386.h: Likewise.
9386 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
9387 a call to target hook builtin_vectorization_cost.
9388
9389 2010-06-06 Sriraman Tallam <tmsriram@google.com>
9390
9391 PR target/44319
9392 * config/i386/i386.c (override_options): Turn zee pass on for level 2
9393 and above and defer till target is known.
9394 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
9395 turn off otherwise.
9396
9397 2010-05-25 Jan Hubicka <jh@suse.cz>
9398
9399 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
9400 (df_compact_blocks): Likewise.
9401 * df.h (struct df): Turn hardware_regs_used,
9402 regular_block_artificial_uses, eh_block_artificial_uses,
9403 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
9404 bitmap_head.
9405 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
9406 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
9407 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
9408 df_scan_blocks, df_insn_delete, df_insn_rescan,
9409 df_insn_rescan_debug_internal, df_insn_rescan_all,
9410 df_process_deferred_rescans, df_process_deferred_rescans,
9411 df_notes_rescan, df_get_call_refs, df_get_call_refs,
9412 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
9413 df_record_entry_block_defs, df_record_exit_block_uses,
9414 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
9415 df_scan_verify): Update.
9416
9417 2010-05-25 Dodji Seketeli <dodji@redhat.com>
9418
9419 PR c++/44188
9420 * c-common.c (is_typedef_decl): Move this definition ...
9421 * tree.c (is_typedef_decl): ... here.
9422 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
9423 * c-common.h (is_typedef_decl): Move this declaration ...
9424 * tree.h (is_typedef_decl): ... here.
9425 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
9426 * dwarf2out.c (is_naming_typedef_decl): New function.
9427 (gen_tagged_type_die): Split out of ...
9428 (gen_type_die_with_usage): ... this function. When an anonymous
9429 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
9430 is emitted for the typedef.
9431 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
9432 anonymous tagged types.
9433
9434 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
9435
9436 PR c/20000
9437 * c-decl.c (grokdeclarator): Delete warning.
9438
9439 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
9440
9441 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
9442 newly built CALL_EXPR.
9443 * tree-profile.c (tree_profiling): Don't profile functions produced
9444 for built-in stuff.
9445
9446 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
9447
9448 PR bootstrap/44427
9449 PR bootstrap/44428
9450 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
9451 endianness-independent.
9452
9453 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
9454
9455 * c-common.c: Move to c-family/.
9456 * c-common.def: Likewise.
9457 * c-common.h: Likewise.
9458 * c-cppbuiltin.c: Likewise.
9459 * c-dump.c: Likewise.
9460 * c-format.c: Likewise.
9461 * c-format.h : Likewise.
9462 * c-gimplify.c: Likewise.
9463 * c-lex.c: Likewise.
9464 * c-omp.c: Likewise.
9465 * c.opt: Likewise.
9466 * c-opts.c: Likewise.
9467 * c-pch.c: Likewise.
9468 * c-ppoutput.c: Likewise.
9469 * c-pragma.c: Likewise.
9470 * c-pragma.h: Likewise.
9471 * c-pretty-print.c: Likewise.
9472 * c-pretty-print.h: Likewise.
9473 * c-semantics.c: Likewise.
9474 * stub-objc.c: Likewise.
9475
9476 * gengtype.c (get_file_langdir): Special-case files in c-family/.
9477 (get_output_file_with_visibility): Fix name for c-common.h.
9478 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
9479
9480 * c-tree.h: Update include path for moved files.
9481 * c-lang.c: Likewise.
9482 * c-lang.h: Likewise.
9483 * c-parser.c: Likewise.
9484 * c-convert.c: Likewise.
9485 * c-decl.c: Likewise.
9486 * c-objc-common.c: Likewise.
9487 * configure.ac: Make sure c-family/ exists in the build directory.
9488 * configure: Regenerate.
9489 * Makefile.in: Update paths for moved files. Regroup files per
9490 location and update dependencies. Move generated_files down after
9491 ALL_GTFILES_H.
9492
9493 * config/spu/spu-c.c: Update paths for moved files.
9494 * config/mep/mep-pragma.c: Likewise.
9495 * config/darwin-c.c: Likewise.
9496 * config/i386/msformat-c.c: Likewise.
9497 * config/i386/i386-c.c: Likewise.
9498 * config/avr/avr-c.c: Likewise.
9499 * config/sol2-c.c: Likewise.
9500 * config/ia64/ia64-c.c: Likewise.
9501 * config/rs6000/rs6000-c.c: Likewise.
9502 * config/arm/arm.c: Likewise.
9503 * config/arm/arm-c.c: Likewise.
9504 * config/h8300/h8300.c: Likewise.
9505 * config/v850/v850-c.c: Likewise.
9506
9507 * config/t-darwin: Fix dependencies for moved files.
9508 * config/t-sol2: Fix dependencies for moved files.
9509 * config/mep/t-mep: Fix dependencies for moved files.
9510 * config/ia64/t-ia64: Fix dependencies for moved files.
9511 * config/rs6000/t-rs6000: Fix dependencies for moved files.
9512 * config/v850/t-v850: Fix dependencies for moved files.
9513 * config/v850/t-v850e: Fix dependencies for moved files.
9514
9515 * config/m32c/m32c-pragma.c
9516
9517 * po/exgettext: Look in c-family/ also.
9518
9519 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
9520
9521 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
9522 (mark_control_dependent_edges_necessary): Call it instead of marking
9523 the last statement manually.
9524 (propagate_necessity): Likewise.
9525
9526 2010-06-05 Jan Hubicka <jh@suse.cz>
9527
9528 * basic-block.h (compute_dominance_frontiers): Updated.
9529 (compute_idf): Likewise.
9530
9531 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
9532 for dominance frontiers.
9533 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
9534 (insert_updated_phi_nodes_for): Likewise.
9535 (update_ssa): Likewise.
9536 * cfganal.c (compute_dominance_frontiers_1): Likewise.
9537 (compute_dominance_frontiers): Likewise.
9538 (compute_idf): Likewise.
9539 * df-problems.c (df_md_local_compute): Likewise.
9540
9541 2010-06-05 Anatoly Sokolov <aesok@post.ru>
9542
9543 * target.h (struct gcc_target): Add memory_move_cost field.
9544 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
9545 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
9546 * targhooks.c (default_memory_move_cost): New function.
9547 * targhooks.h (default_memory_move_cost): Declare function.
9548 * reload.h (memory_move_cost): Declare.
9549 (memory_move_secondary_cost): Change type of 'in' argument to bool.
9550 * reginfo.c (memory_move_cost): New function.
9551 (memory_move_secondary_cost): Change type of 'in' argument to bool.
9552 * ira.h (ira_memory_move_cost): Update comment.
9553 * ira.c (ira_memory_move_cost): Update comment.
9554 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
9555 with memory_move_cost.
9556 * postreload.c (reload_cse_simplify_set): (Ditto.).
9557 * reload1.c (choose_reload_regs): (Ditto.).
9558 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
9559 (MEMORY_MOVE_COST): Revise documentation.
9560
9561 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9562 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9563 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
9564 type of 'in' argument to bool.
9565 (TARGET_MEMORY_MOVE_COST): Define.
9566
9567 2010-06-05 Jan Hubicka <jh@suse.cz>
9568
9569 * ipa-pure-const.c (propagate): Fix typo in handling of functions
9570 that cannot return. Be more careful when merging the results with
9571 previously known ones.
9572
9573 2010-06-05 Matthias Klose <doko@ubuntu.com>
9574
9575 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
9576 function to add the -iplugindir option.
9577 (find_plugindir_spec_function): Add new declaration and function.
9578 (static_spec_func): Use it for "find-plugindir".
9579
9580 2010-06-05 Jakub Jelinek <jakub@redhat.com>
9581
9582 PR c++/44361
9583 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
9584 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
9585 statement expression.
9586
9587 2010-06-05 Jan Hubicka <jh@suse.cz>
9588
9589 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
9590 (df_rd_problem_data): Convert sparse_invalidated_by_call,
9591 dense_invalidated_by_call to bitmap head.
9592 (df_rd_alloc, df_rd_bb_local_compute_process_def,
9593 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
9594 df_rd_start_dump, df_lr_verify_transfer_functions,
9595 df_live_verify_transfer_functions, df_chain_create_bb,
9596 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
9597 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
9598 df_simulate_one_insn_forwards, df_md_alloc,
9599 df_md_bb_local_compute_process_def,
9600 df_md_bb_local_compute_process_def, df_md_local_compute,
9601 df_md_transfer_function df_md_free): Update.
9602
9603 2010-06-05 Joseph Myers <joseph@codesourcery.com>
9604
9605 PR c/44322
9606 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
9607 target type for ADDR_EXPR; require no changes to qualifiers except
9608 for function types.
9609 * c-tree.h (c_build_type_variant): Remove.
9610
9611 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
9612
9613 * genautomata.c (get_excl_set): Do work per element, not per char.
9614 (check_presence_pattern_sets): Similar.
9615 (check_absence_pattern_sets): Similar.
9616
9617 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
9618
9619 * genautomata.c (curr_state_pass_num): Delete.
9620 (min_issue_delay_pass_states): Delete.
9621 (min_issue_delay): Delete.
9622 (initiate_min_issue_delay_pass_states): Delete.
9623 (output_min_issue_delay_table): Compute min_issue_delay_vect
9624 using a breadth-first search variant.
9625 (output_tables): Don't call initiate_min_issue_delay_pass_states.
9626
9627 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
9628
9629 PR boostrap/44421
9630 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
9631 (df_byte_lr_bb_local_compute): Likewise.
9632
9633 2010-06-03 Jason Merrill <jason@redhat.com>
9634
9635 Implement noexcept operator (5.3.7)
9636 * c-common.c (c_common_reswords): Add noexcept.
9637 * c-common.h (enum rid): Add RID_NOEXCEPT.
9638
9639 2010-06-04 Joseph Myers <joseph@codesourcery.com>
9640
9641 * config/darwin-driver.c (darwin_default_min_version): Use
9642 GCC-specific formats in diagnostics.
9643 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
9644 diagnostics.
9645 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
9646 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
9647 eval_spec_function, handle_braces, process_brace_body, main,
9648 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
9649 getenv_spec_function, compare_version_strings,
9650 version_compare_spec_function): Use GCC-specific formats in
9651 diagnostics.
9652
9653 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
9654
9655 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
9656 that operand 0 and operand 1 are equal.
9657 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
9658 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
9659 and operand 1 are equal.
9660 <default>: Ditto. Remove ??? comment.
9661 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
9662 and operand 1 are equal.
9663 <default>: Ditto. Remove ??? comment.
9664 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
9665 are equal.
9666 (*add<mode>_4) <default>: Ditto.
9667 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
9668
9669 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
9670
9671 * config/i386/i386-protos.h (ix86_print_operand): Declare.
9672 * config/i386/i386.c (ix86_print_operand): Make non-static.
9673 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
9674 * output.h (output_operand): Declare.
9675 * final.c (output_operand): Make non-static.
9676
9677 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
9678
9679 PR rtl-optimization/44013
9680 * sched-deps.c (add_dependence_list_and_free): Don't free lists
9681 when processing debug insns.
9682
9683 PR debug/41371
9684 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
9685 recursing. Check that recursion is bounded. Rename inner var
9686 to avoid hiding incoming argument.
9687
9688 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
9689
9690 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
9691 operands[2] == 255.
9692 (*addqi_3): Ditto.
9693 (*addqi_4): Ditto.
9694 (*addqi_5): Ditto.
9695 (*addqi_ext_1_rex64): Ditto.
9696 (*addqi_ext_1): Ditto.
9697
9698 (*addqi_4): Check for incdec_operand in QImode.
9699
9700 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
9701 using SWI mode iterator.
9702 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
9703 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
9704 mode iterator.
9705 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
9706 using SWI mode iterator.
9707
9708 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9709
9710 PR c/25880
9711 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
9712 * c-format.c (gcc_diag_flag_specs): Add hash.
9713 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
9714 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
9715 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
9716 pp_c_cv_qualifiers. Handle qualifiers spelling here.
9717 (pp_c_type_qualifier_list): Call the function above.
9718 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
9719 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
9720 (WARN_FOR_QUALIFIERS): New macro.
9721 (convert_for_assignment): Use it.
9722
9723 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
9724
9725 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
9726
9727 2010-06-04 Jan Hubicka <jh@suse.cz>
9728
9729 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
9730 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
9731 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
9732 DF_BYTE_LR_OUT): Update for embedded bitmaps.
9733 * fwprop.c (single_def_use_enter_block): Likewise.
9734 * ddg.c (create_ddg_dep_from_intra_loop_link,
9735 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
9736 * loop-iv.c (latch_dominating_def): Likewise.
9737 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
9738 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
9739 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
9740 df_rd_transfer_function, df_rd_top_dump,
9741 df_rd_bottom_dump): Update.
9742 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
9743 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
9744 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
9745 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
9746 df_lr_verify_solution_start, df_lr_verify_solution_end,
9747 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
9748 df_live_free_bb_info, df_live_alloc, df_live_reset,
9749 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
9750 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
9751 df_live_verify_solution_start, df_live_verify_solution_end,
9752 df_live_verify_transfer_functions, df_chain_create_bb,
9753 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
9754 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9755 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9756 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
9757 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9758 df_byte_lr_transfer_function, df_byte_lr_top_dump,
9759 df_byte_lr_bottom_dump, df_create_unused_note,
9760 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
9761 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
9762 df_md_transfer_function, df_md_init, df_md_confluence_0,
9763 df_md_confluence_n,
9764 df_md_top_dump, df_md_bottom_dump): Update.
9765 (struct df_lr_problem_data): Embedd bitmap headers.
9766
9767 2010-06-04 Jan Hubicka <jh@suse.cz>
9768
9769 * dce.c (dce_process_block): Do not re-scan already marked
9770 instructions.
9771
9772 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
9773
9774 PR rtl-optimization/39871
9775 PR rtl-optimization/40615
9776 PR rtl-optimization/42500
9777 PR rtl-optimization/42502
9778 * ira.c (init_reg_equiv_memory_loc: New function.
9779 (ira): Call it twice.
9780 * reload.h (calculate_elim_costs_all_insns): Declare.
9781 * ira-costs.c: Include "reload.h".
9782 (regno_equiv_gains): New static variable.
9783 (init_costs): Allocate it.
9784 (finish_costs): Free it.
9785 (ira_costs): Call calculate_elim_costs_all_insns.
9786 (find_costs_and_classes): Take estimated elimination costs
9787 into account.
9788 (ira_adjust_equiv_reg_cost): New function.
9789 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
9790 * reload1.c (init_eliminable_invariants, free_reg_equiv,
9791 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
9792 (elim_bb): New static variable.
9793 (reload): Move code out of here into init_eliminable_invariants and
9794 free_reg_equiv. Call them.
9795 (calculate_elim_costs_all_insns): New function.
9796 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
9797 all callers changed. If FOR_COSTS is true, don't call alter_reg,
9798 but call note_reg_elim_costly if we turned a valid memory address
9799 into an invalid one.
9800 * Makefile.in (ira-costs.o): Depend on reload.h.
9801
9802 2010-06-04 Julian Brown <julian@codesourcery.com>
9803
9804 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
9805 for pool ranges.
9806
9807 2010-06-04 Richard Guenther <rguenther@suse.de>
9808
9809 PR lto/41584
9810 * cgraph.h (struct varpool_node): Add lto_file_data field.
9811 * lto-cgraph.c (input_varpool_node): Initialize it.
9812
9813 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
9814
9815 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
9816 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
9817 predicate in "type" attribute calculation.
9818 (*addsi_1_zext): Ditto.
9819 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
9820 (*addsi_2_zext): Ditto.
9821 (*add<mode>_3): Ditto.
9822 (*addsi_3_zext): Ditto.
9823 (*add<mode>_5): Ditto.
9824
9825 2010-06-03 Jan Hubicka <jh@suse.cz>
9826
9827 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
9828 of bitmap_bit_p.
9829 * cfganal.c (compute_dominance_frontiers_1): Likewise.
9830
9831 2010-06-03 Jan Hubicka <jh@suse.cz>
9832
9833 * df-problems.c (df_create_unused_note, df_note_bb_compute):
9834 micro-optimize the checks when to add new note.
9835
9836 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
9837
9838 * final.c (output_asm_insn): Call
9839 targetm.asm_out.print_operand_punct_valid_p. Update comments.
9840 (output_operand): Call targetm.asm_out.print_operand. Update comments.
9841 (output_address): Call targetm.asm_out.print_operand_address.
9842 Update comments.
9843 * target.h (struct gcc_target): Add print_operand,
9844 print_operand_address, and print_operand_punct_valid_p fields.
9845 * targhooks.h (default_print_operand): Declare.
9846 (default_print_operand_address): Declare.
9847 (default_print_operand_punct_valid_p): Declare.
9848 * targhooks.c (default_print_operand): Define.
9849 (default_print_operand_address): Define.
9850 (default_print_operand_punct_valid_p): Define.
9851 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
9852 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
9853 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
9854 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
9855 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
9856 * vmsdbgout.c (addr_const_to_string): Update comment.
9857 * config/i386/i386.c (print_operand): Rename to...
9858 (ix86_print_operand): ...this. Make static.
9859 (print_operand_address): Rename to...
9860 (ix86_print_operand_address): ...this. Make static. Call
9861 ix86_print_operand instead of PRINT_OPERAND.
9862 (ix86_print_operand_punct_valid_p): New function.
9863 (TARGET_PRINT_OPERAND): Define.
9864 (TARGET_PRINT_OPERAND_ADDRESS): Define.
9865 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9866 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
9867 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9868 (PRINT_OPERAND): Delete.
9869 (PRINT_OPERAND_ADDRESS): Delete.
9870 * config/i386/i386-protos.h (print_operand): Delete prototype.
9871 (print_operand_address): Delete prototype.
9872
9873 2010-06-03 Richard Guenther <rguenther@suse.de>
9874
9875 PR tree-optimization/44403
9876 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9877 Preserve pointer qualifiers.
9878 (vect_create_data_ref_ptr): Likewise.
9879
9880 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
9881
9882 PR c++/44294
9883 * defaults.h (MAX_FIXED_MODE_SIZE): New.
9884
9885 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
9886
9887 2010-06-03 Jakub Jelinek <jakub@redhat.com>
9888
9889 PR debug/44375
9890 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
9891 return false if merging the bbs would lead to goto_locus
9892 location being lost from the IL.
9893
9894 2010-06-03 Jan Hubicka <jh@suse.cz>
9895 Jakub Jelinek <jakub@redhat.com>
9896
9897 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
9898 set->regs[i] is NULL or has just one entry.
9899
9900 2010-06-03 Jan Hubicka <jh@suse.cz>
9901
9902 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
9903 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
9904
9905 2010-06-03 Paul Brook <paul@codesourcery.com>
9906
9907 * config/arm/arm.c (FL_TUNE): Define.
9908 (arm_default_cpu, arm_cpu_select): Remove.
9909 (all_cores): Populate core field.
9910 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
9911 (arm_find_cpu): New function.
9912 (arm_handle_option): Lookup cpu/architecture names.
9913 (arm_override_options): Cleanup mcpu/march/mtune handling.
9914 (arm_file_start): Ditto.
9915
9916 2010-06-03 Alan Modra <amodra@gmail.com>
9917
9918 PR target/44169
9919 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
9920 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
9921 rtx to gen_load_toc_v4_PIC_1b. Tidy.
9922 (rs6000_emit_load_toc_table): Likewise.
9923
9924 2010-06-02 Jan Hubicka <jh@suse.cz>
9925
9926 * passes.c (init_optimization_passes): Put ipa reference
9927 after ipa pure-const.
9928
9929 2010-06-02 Jan Hubicka <jh@suse.cz>
9930
9931 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
9932 calls_read_all and calls_write_all.
9933 (get_reference_optimization_summary): Fix formatting.
9934 (is_proper_for_analysis): Check that decl is not readonly.
9935 (propagate_bits): Check CONST/PURE/noreturn flags.
9936 (ipa_init): Move all_module_statics to optimization_summary_obstack.
9937 (analyze_function): Ignore indirect edges.
9938 (copy_global_bitmap): For all module statics, do nothing.
9939 (generate_summary): Do not print calls_read_all/calls_write_all.
9940 (read_write_all_from_decl): Take node as argument; check
9941 cgraph_node_cannot_return.
9942 (propagate): Reorganize read_all/write_all computation;
9943 check indirect edges; check ecf flags; use all_module_statics
9944 in the results; do not free all_module_statics.
9945 (stream_out_bitmap): Handle all_module_statics.
9946 (ipa_reference_write_optimization_summary): Likewise; use
9947 varpool/cgraph encoders to get boundaries.
9948 (ipa_reference_read_optimization_summary): Read in all_module_statics;
9949 use it when possible.
9950
9951 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9952
9953 PR target/44218
9954 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
9955 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
9956
9957 * doc/extend.texi (powerpc builtins): Document vec_recip,
9958 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
9959
9960 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
9961 (rs6000_emit_swrsqrt): Ditto.
9962 (rs6000_emit_swdivsf): Delete.
9963 (rs6000_emit_swdivdf): Ditto.
9964 (rs6000_emit_swrsqrtsf): Ditto.
9965
9966 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
9967 describe the reciprocal estimate support for each type.
9968 (recip_options): Map -mrecip=<opt> into option bits.
9969 (gen_2arg_fn_t): New typedef for binary rtx gen function.
9970 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
9971 reciprocal estimate instructions.
9972 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
9973 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
9974 Set up rs6000_recip_bits based on the -mrecip* options. Print the
9975 cost information if -mdebug=cost or -mdebug=reg.
9976 (rs6000_override_options): Set -mrecip-precision for power6, and
9977 power7 machines. If -mvsx or -mdfp, enable various options that
9978 came in previous instruction set ISAs, unless the option was
9979 explicitly disabled by the command line option. Parse
9980 -mrecip=<opt> options.
9981 (rs6000_builtin_vectorized_function): Add support for vectorizing
9982 the reciprocal estimate builtins and expansions.
9983 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
9984 (bdesc_2arg): Add reciprocal estimate builtins.
9985 (bdesc_1arg): Add reciprocal square root estimate builtins.
9986 (rs6000_expand_builtin): Rewrite to use a switch statement,
9987 instead of multiple if/then/elses. Add reciprocal estimate builtins.
9988 (rs6000_init_builtins): Create declarations for reciprocal
9989 estimate builtins.
9990 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
9991 sized, prefer traditional floating point registers, if integer
9992 vector types, prefer altivec registers. Don't actually look at
9993 the memory address any more.
9994 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
9995 builtins.
9996 (rs6000_load_constant_and_splat): New helper function to load up
9997 the constant for reciprocal estimate instructions.
9998 (rs6000_emit_madd): New helper function for generating
9999 multiply/add type instructions, based on the current switches.
10000 (rs6000_emit_msub): Ditto.
10001 (rs6000_emit_mnsub): Ditto.
10002 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
10003 replace a divide with a reciprocal estimate and fixup, adding
10004 support for machines with high precision and vectors.
10005 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
10006 low precision machines.
10007 (rs6000_emit_swdiv): New common function to be called to replace a
10008 division with reciprocal estimate and fixup.
10009 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
10010 for double and vector types. Add support for high precision machines.
10011
10012 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
10013 the reciprocal estimate instructions can be generated.
10014 (TARGET_FRE): Ditto.
10015 (TARGET_FRSQRTES): Ditto.
10016 (TARGET_FRSQRTE): Ditto.
10017 (RS6000_RECIP_*): New macros for reciprocal estimate support.
10018
10019 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
10020 square root estimate on vectors.
10021 (re<mode>2): New insn for reciprocal division estimate on vectors.
10022
10023 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
10024 New builtin.
10025 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
10026 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
10027 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
10028 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
10029 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
10030 (RS6000_BUILTIN_RSQRT): Ditto.
10031 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
10032 floating point builtin.
10033
10034 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10035 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
10036 __RECIP_PRECISION__ based on the command line switches.
10037 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
10038
10039 * config/rs6000/rs6000.opt (-mrecip): Document add support for
10040 replacing division instructions with reciprocal estimate and fixup.
10041 (-mrecip=<opt>): New option.
10042 (-mrecip-precision): Ditto.
10043
10044 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
10045 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
10046 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
10047 precision scalar.
10048
10049 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
10050 (UNSPEC_VREFP): Ditto.
10051 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
10052 conterparts with regard to support of -mno-fused-madd and -ffast-math.
10053 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
10054 reciprocal estimate instructions to be generated.
10055 (altivec_vrefp): Ditto.
10056
10057 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
10058 estimate support.
10059 (rreg): New mode attribute for reciprocal estimate support.
10060 (recip<mode>3): New insn for division using reciprocal estimate
10061 and fixup builtins.
10062 (divide define_split): New define_split to convert floating point
10063 division to use reciprocal estimate if the user used the
10064 appropriate options and the split is run when we can add new
10065 pseudo registers for the fixup.
10066 (rsqrt<mode>2): New insn for reciprocal square root support.
10067 (recipsf3): Move into recip<mode>3.
10068 (recipdf3): Ditto.
10069 (fres): Use TARGET_FRES.
10070 (rsqrtsf2): Move into rsqrt<mode>2.
10071 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
10072 (copysignsf3): Add support for VSX.
10073 (fred): Use TARGET_FRE.
10074 (fred_fpr): Ditto.
10075 (rsqrtdf_internal1): New function for frsqrte instruciton.
10076
10077 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
10078 (vec_rsqrt): Ditto.
10079
10080 2010-06-03 Richard Guenther <rguenther@suse.de>
10081
10082 PR middle-end/44291
10083 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
10084 (set_user_assembler_libfunc): Likewise.
10085
10086 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
10087
10088 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
10089 defaults.h.
10090 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
10091 to defaults.h
10092 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
10093 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
10094 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
10095 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
10096 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
10097 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
10098 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
10099 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
10100 * defaults.h: Updated for above mentioned changes.
10101
10102 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
10103
10104 * c-common.c: Remove header include of tm_p.h.
10105 * Makefile.in (c-common.o): Remove TM_P_H dependency.
10106
10107 2010-06-02 Jakub Jelinek <jakub@redhat.com>
10108
10109 * tree.h (struct tree_decl_map): New type.
10110 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
10111 (tree_decl_map_hash): New prototype.
10112 (debug_expr_for_decl, value_expr_for_decl): Change into
10113 tree_decl_map hashtab from tree_map.
10114 (init_ttree): Adjust initialization.
10115 (tree_decl_map_hash): New function.
10116 (decl_debug_expr_lookup, decl_debug_expr_insert,
10117 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
10118
10119 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10120
10121 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
10122 linker emulations.
10123 * configure: Regenerate.
10124 * config.in: Regenerate.
10125
10126 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
10127 (X86_64_EMULATION): Define.
10128 (TARGET_LD_EMULATION): Use them.
10129
10130 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
10131 (SPARC64_EMULATION): Define.
10132 (LINK_ARCH_SPEC): Use them.
10133
10134 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
10135
10136 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
10137 smallest_mode_for_size for computing the precision types of new
10138 graphite IVs. Do not call lang_hooks.types.type_for_size.
10139
10140 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
10141
10142 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
10143 information.
10144 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
10145
10146 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
10147
10148 PR middle-end/44363
10149 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
10150 return false instead.
10151
10152 2010-06-02 Jan Hubicka <jh@suse.cz>
10153
10154 PR middle-end/44295
10155 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
10156 create new cgraph node to check callee.
10157
10158 2010-06-02 Richard Guenther <rguenther@suse.de>
10159
10160 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
10161
10162 2010-06-02 Richard Guenther <rguenther@suse.de>
10163
10164 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
10165 (lto_wrapper_cleanup): ... this. Do not exit.
10166 (fatal): Adjust. Exit here.
10167 (fatal_perror): Likewise.
10168 (fatal_signal): New function.
10169 (main): Set up signal handlers to cleanup temporary files.
10170 * Makefile.in (lto-wrapper.o): Adjust dependencies.
10171
10172 2010-06-02 Richard Guenther <rguenther@suse.de>
10173
10174 PR tree-optimization/44377
10175 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
10176
10177 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10178
10179 * config/s390/2097.md (z10_fhex): Remove insn reservation.
10180 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
10181 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
10182 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
10183 instruction.
10184 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
10185
10186 2010-06-02 Jan Hubicka <jh@suse.cz>
10187
10188 * bitmap.c (bitmap_descriptor): Add search_iter.
10189 (bitmap_find_bit): Increment it.
10190 (print_statistics): Print it.
10191
10192 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
10193
10194 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
10195 instead of gimple_build_call_vec. Delete unnecessary local variable.
10196
10197 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
10198
10199 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
10200 change from yesterday.
10201
10202 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
10203
10204 * c-ada-spec.c: Clean up redundant includes.
10205
10206 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
10207
10208 * gimplify.c: Do not include except.h and optabs.h.
10209 (gimplify_body): Do not initialize RTL profiling.
10210 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
10211 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
10212 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
10213 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
10214 langhooks.h.
10215
10216 * tree-pretty-print.h: Include pretty-print.h.
10217 * gimple-pretty-print.h: Include pretty-print.h.
10218
10219 * tree-pretty-print.c: Do not include diagnostic.h.
10220 * tree-vrp.c: Likewise.
10221 * tree-tailcall.c: Likewise
10222 * tree-scalar-evolution.c: Likewise
10223 * tree-ssa-dse.c: Likewise
10224 * tree-chrec.c: Likewise
10225 * tree-ssa-sccvn.c: Likewise
10226 * tree-ssa-copyrename.c: Likewise
10227 * tree-nomudflap.c: Likewise
10228 * tree-call-cdce.c: Likewise
10229 * tree-stdarg.c: Likewise
10230 * tree-ssa-math-opts.c: Likewise
10231 * tree-nrv.c: Likewise
10232 * tree-ssa-sink.c: Likewise
10233 * tree-browser.c: Likewise
10234 * tree-ssa-loop-ivcanon.c: Likewise
10235 * tree-ssa-loop.c: Likewise
10236 * tree-parloops.c: Likewise
10237 * tree-ssa-address.c: Likewise
10238 * tree-ssa-ifcombine.c: Likewise
10239 * tree-if-conv.c: Likewise
10240 * tree-data-ref.c: Likewise
10241 * tree-affine.c: Likewise
10242 * tree-ssa-phiopt.c: Likewise
10243 * tree-ssa-coalesce.c: Likewise
10244 * tree-ssa-pre.c: Likewise
10245 * tree-ssa-live.c: Likewise
10246 * tree-predcom.c: Likewise
10247 * tree-ssa-forwprop.c: Likewise
10248 * tree-ssa-dce.c: Likewise
10249 * tree-ssa-ter.c: Likewise
10250 * tree-ssa-loop-prefetch.c: Likewise
10251 * tree-optimize.c: Likewise
10252 * tree-ssa-phiprop.c: Likewise
10253 * tree-object-size.c: Likewise
10254 * tree-outof-ssa.c: Likewise
10255 * tree-ssa-structalias.c: Likewise
10256 * tree-switch-conversion.c: Likewise
10257 * tree-ssa-reassoc.c: Likewise
10258 * tree-ssa-operands.c: Likewise
10259 * tree-vectorizer.c: Likewise
10260 * tree-vect-data-refs.c: Likewise
10261 * tree-vect-generic.c: Likewise
10262 * tree-vect-stmts.c: Likewise
10263 * tree-vect-patterns.c: Likewise
10264 * tree-vect-slp.c: Likewise
10265 * tree-vect-loop.c: Likewise
10266 * tree-ssa-loop-ivopts.c: Likewise
10267 * tree-ssa-loop-im.c: Likewise
10268 * tree-ssa-loop-niter.c: Likewise
10269 * tree-ssa-loop-unswitch.c: Likewise
10270 * tree-ssa-loop-manip.c: Likewise
10271 * tree-ssa-loop-ch.c: Likewise
10272 * tree-dump.c: Likewise
10273 * tree-complex.c: Likewise
10274
10275 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
10276 * tree-ssa-uninit.c: Likewise
10277 * tree-ssa-threadupdate.c: Likewise
10278 * tree-ssa-uncprop.c: Likewise
10279 * tree-ssa-ccp.c: Likewise
10280 * tree-ssa-dom.c: Likewise
10281 * tree-ssa-propagate.c: Likewise
10282 * tree-ssa-alias.c: Likewise
10283 * tree-dfa.c: Likewise
10284 * tree-cfgcleanup.c: Likewise
10285 * tree-sra.c: Likewise
10286 * tree-ssa-copy.c: Likewise
10287 * tree-ssa.c: Likewise
10288 * tree-profile.c: Likewise
10289 * tree-cfg.c: Likewise
10290 * tree-ssa-threadedge.c: Likewise
10291 * tree-vect-loop-manip.c: Likewise
10292
10293 * tree-inline.c: Do not include diagnostic.h and expr.h.
10294 Include rtl.h.
10295 (copy_decl_for_dup_finish): Do not use NULL_RTX.
10296
10297 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
10298 * tree-loop-distribution.c: Likewise.
10299
10300 2010-06-01 Jan Hubicka <jh@suse.cz>
10301
10302 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
10303
10304 2010-06-01 Jan Hubicka <jh@suse.cz>
10305
10306 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
10307 remove return value.
10308 (split_bbs_on_noreturn_calls) .... here.
10309 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
10310 * tree-flow.h (fixup_noreturn_call): New.
10311
10312 2010-06-01 Jan Hubicka <jh@suse.cz>
10313
10314 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
10315
10316 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
10317
10318 * tree.h (build_nt_call_list): Delete.
10319 * tree.c (build_nt_call_list): Delete.
10320
10321 2010-06-01 Jan Hubicka <jh@suse.cz>
10322
10323 * fwprop.c: Make emit-rtl.h include last.
10324 * rtlanal.c: Include emit-rtl.h.
10325 * genautomata.c: Output emit-rtl include into insn-automata.c
10326 * df-scan.c: Include emit-rtl.h.
10327 * haifa-sched.c: Indlude emit-rtl.h.
10328 * mode-switching.c: Indlude emit-rtl.h.
10329 * graph.c: Indlude emit-rtl.h.
10330 * sel-sched.c: Include emit-rtl.h.
10331 * sel-sched-ir.c: Include emit-rtl.h.
10332 * ira-build.c: Include emit-rtl.h.
10333 * emit-rtl.c (first_insn, last_insn): Remove defines.
10334 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
10335 Move to emit-rtl.h.
10336 (set_new_first_and_last_insn, get_last_insn_anywhere,
10337 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
10338 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
10339 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
10340 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
10341 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
10342 Use accessor functions.
10343 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
10344 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
10345 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
10346 mem_expr_equal_p): Move here from rtl.h.
10347 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
10348 Move here from emit-rtl.c; make inline.
10349 * cfglayout.h: Include emit-rtl.h.
10350 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
10351 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
10352 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
10353 mem_expr_equal_p, get_insns, set_first-insn,
10354 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
10355 * reg-stack.c: Include emit-rtl.h.
10356 * dce.c: Likewise.
10357
10358 2010-06-01 Jan Hubicka <jh@suse.cz>
10359
10360 * cgraph.h (tree_function_versioning): Update prototype.
10361 (cgraph_function_versioning): Update prototype.
10362 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
10363 bitmap.
10364 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
10365 (cgraph_materialize_clone, save_inline_function_body): Update use of
10366 tree_function_versioning.
10367 * tree-inline.c (copy_bb): Look for previous copied block to link
10368 after; fix debug output.
10369 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
10370 (copy_body): Likewise.
10371 (expand_call_inline): Update use of copy_body.
10372 (tree_function_versioning): Update use of copy body; accept
10373 blocks_to_copy and new_entry.
10374
10375 2010-06-01 Jan Hubicka <jh@suse.cz>
10376
10377 * gegenrtl.c: Remove unnecesary prototypes.
10378 (gendecl): Remove.
10379 (gendef): Produce static inline.
10380 (gencode): Remove.
10381 (main): Do not decode parameters; generate header only.
10382 * Makefile.in (genrtl.c): Remove.
10383
10384 2010-06-01 Jan Hubicka <jh@suse.cz>
10385
10386 * tree-switch-conversion.c (build_one_array): Make it readonly.
10387
10388 2010-06-01 Richard Guenther <rguenther@suse.de>
10389
10390 * optabs.c (init_optabs): Guard all accesses to reinit.
10391 * ipa-pure-const.c (propagate): Fix another typo.
10392 * opts.c (common_handle_option): Split assignment to bool.
10393 * c-opts.c (c_common_handle_option): Likewise.
10394
10395 2010-06-01 Arnaud Charlet <charlet@adacore.com>
10396 Matthew Gingell <gingell@adacore.com>
10397
10398 * doc/invoke.texi: Mention -fdump-ada-spec.
10399 * tree-dump.c (dump_files): Add ada-spec.
10400 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
10401 * tree-pass.h (tree_dump_index): Add TDI_ada.
10402 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
10403 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
10404 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
10405 * c-decl.c: Include c-ada-spec.h.
10406 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
10407 functions.
10408 (c_write_global_declarations): Add handling of -fdump-ada-spec.
10409 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
10410 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
10411 * c-ada-spec.h, c-ada-spec.c: New files.
10412
10413 2010-06-01 Richard Guenther <rguenther@suse.de>
10414
10415 PR lto/43853
10416 * ipa-pure-const.c (get_function_state): Hand back varying state
10417 if we do not have one.
10418 (has_function_state): New function.
10419 (duplicate_node_data): Adjust.
10420 (remove_node_data): Likewise.
10421 (pure_const_write_summary): Likewise.
10422 (propagate): Likewise. Fix typo.
10423
10424 2010-06-01 Jan Hubicka <jh@suse.cz>
10425
10426 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
10427 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
10428 (execute_all_ipa_transforms): Do not play with the states.
10429
10430 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
10431
10432 * config/arm/t-linux-androideabi: New.
10433 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
10434
10435 2010-06-01 Jan Hubicka <jh@suse.cz>
10436
10437 * tree-inline.c (estimate_num_insns): For stdarg functions look
10438 into call statement to count cost of argument passing.
10439
10440 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
10441
10442 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
10443 argument for fprintf.
10444 (ix86_output_addr_diff_elt): Likewise.
10445 (x86_function_profiler): Likewise.
10446 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
10447 (LPREFIX): Likewise.
10448 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10449
10450 2010-05-31 Jakub Jelinek <jakub@redhat.com>
10451
10452 PR target/44338
10453 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
10454 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
10455 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
10456 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
10457 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
10458 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
10459 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
10460 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
10461 TARGET_FUSED_MADD.
10462
10463 2010-05-31 Jan Hubicka <jh@suse.cz>
10464
10465 * tree.h (tree_range_check_failed): Declare noreturn.
10466
10467 2010-05-31 Jan Hubicka <jh@suse.cz>
10468
10469 * gimple.c (gimple_call_builtin_p): New function.
10470 * gimple.h (gimple_call_builtin_p): Declare.
10471 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
10472 to exit.
10473 (execute_warn_function_return): BUILT_IN_RETURN is return.
10474 (split_critical_edges): Return edges are not critical.
10475 (is_ctrl_altering_stmt): Builtin_in_return is altering.
10476 (gimple_verify_flow_info): Handle built_in_return.
10477 (execute_warn_function_return): Handle built_in_return.
10478 * ipa-pure-const.c (check_call): Ignore builtin_return.
10479
10480 2010-05-31 Jakub Jelinek <jakub@redhat.com>
10481
10482 PR middle-end/44337
10483 * expr.c (expand_assignment): Don't store anything for out-of-bounds
10484 array accesses with non-MEM.
10485
10486 PR tree-optimization/44182
10487 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
10488 newly needs to end a bb is followed by debug stmts, instead return
10489 true from the function at the end.
10490 (maybe_move_debug_stmts_to_successors): New function.
10491 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
10492
10493 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
10494
10495 PR target/44161
10496 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
10497
10498 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
10499
10500 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
10501 for nested functions in non-optimized compilation.
10502
10503 2010-05-31 Richard Guenther <rguenther@suse.de>
10504
10505 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
10506
10507 2010-05-30 Jan Hubicka <jh@suse.cz>
10508
10509 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
10510
10511 2010-05-30 Richard Guenther <rguenther@suse.de>
10512
10513 PR lto/42975
10514 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
10515 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
10516 no longer needed.
10517
10518 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
10519
10520 * config/darwin.c (output_objc_section_asm_op): Add comment.
10521 (name_needs_quotes): Add '_' to list of valid comment chars.
10522 (machopic_output_function_base_name): Remove unneeded quotes.
10523 (darwin_encode_section_info): Adjust asm whitespace.
10524 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
10525 (ASM_OUTPUT_LOCAL): Ditto.
10526 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
10527 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
10528 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
10529
10530 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
10531
10532 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
10533 RS6000_OUTPUT_BASENAME unconditionally.
10534 (rs6000_output_function_epilogue): Likewise.
10535
10536 2010-05-30 Jan Hubicka <jh@suse.cz>
10537
10538 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
10539 nodes.
10540
10541 2010-05-30 Richard Guenther <rguenther@suse.de>
10542
10543 * tree-cfg.c (verify_gimple_assign_single): Implement
10544 verification for COND_EXPR rhs.
10545
10546 2010-05-30 Jan Hubicka <jh@suse.cz>
10547
10548 * cgraph.h (cgraph_dump_file): Declare.
10549 * cgraphunit.c (cgraph_dump_file): Export.
10550 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
10551
10552 2010-05-30 Jan Hubicka <jh@suse.cz>
10553
10554 * dwarf2out.c (reference_to_unused,
10555 premark_types_used_by_global_vars_helper): Avoid creation of new
10556 varpool nodes.
10557
10558 2010-05-30 Jan Hubicka <jh@suse.cz>
10559
10560 * cgraph.h (cgraph_node_cannot_return,
10561 cgraph_edge_cannot_lead_to_return): New functions.
10562 * cgraph.c (cgraph_node_cannot_return,
10563 cgraph_edge_cannot_lead_to_return): Use them.
10564 * ipa-pure-const.c (pure_const_names): New static var.
10565 (check_call): Handle calls not leading to return.
10566 (pure_const_read_summary): Dump info read.
10567 (propagate): Dump info about propagation process; ignore side effects
10568 of functions not leading to exit; fix handling of pure functions.
10569
10570 2010-05-30 Jan Hubicka <jh@suse.cz>
10571
10572 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
10573 for tail call epilogues.
10574
10575 2010-05-30 Jan Hubicka <jh@suse.cz>
10576
10577 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
10578 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
10579 dump files.
10580
10581 2010-05-29 Jan Hubicka <jh@suse.cz>
10582
10583 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
10584 node; remove references in node we no longer keep in cgrpah but need
10585 body of.
10586
10587 2010-05-29 Jan Hubicka <jh@suse.cz>
10588
10589 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
10590
10591 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10592
10593 PR target/44165
10594 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
10595
10596 2010-05-29 Jan Hubicka <jh@suse.cz>
10597
10598 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
10599 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
10600 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
10601 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
10602 debug_names_replaced_by, debug_update_ssa): Likewise.
10603 * sbitmap.c (debug_sbitmap): Likewise.
10604 * genrecog.c (debug_decision, debug_decision_list): Likewise.
10605 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
10606 debug_tree_chain): Likewise.
10607 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
10608 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
10609 * optabs.c (debug_optab_libfuncs): Likewise.
10610 (verify_loop_closed_ssa): Likewise.
10611 * value-prof.c (verify_histograms): Likewise.
10612 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
10613 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
10614 * cfghooks.c (verify_flow_info): Likewise.
10615 * fold-const.c (debug_fold_checksum): Likewise.
10616 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
10617 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
10618 Likewise.
10619 * omega.c (debug_omega_problem): Likewise.
10620 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
10621 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
10622 * dominance.c (verify_dominators, debug_dominance_info,
10623 debug_dominance_tree): Likewise.
10624 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
10625 * df_regno_debug, df_ref_debug,
10626 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
10627 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
10628 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
10629 * sel-sched.c (debug_state): Likewise.
10630 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
10631 Likewise.
10632 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
10633 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
10634 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
10635 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
10636 Likewise.
10637 * c-pretty-print.c (debug_c_tree): Likewise.
10638 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
10639 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
10640 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
10641 * ebitmap.c (debug_ebitmap): Likewise.
10642 * function.c (debug_find_var_in_block_tree): Likewise.
10643 * print-rtl.c (debug_rtx): Likewise.
10644 (debug_rtx_count): Likewise.
10645 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
10646 * stor-layout.c (debug_rli): Likewise.
10647 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
10648 * tree-data-ref.c (debug_data_references,
10649 debug_data_dependence_relations, debug_data_reference,
10650 debug_data_dependence_relation, debug_rdg_vertex,
10651 debug_rdg_component, debug_rdg): Likewise.
10652 * tree-affine.c (debug_aff): Likewise.
10653 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
10654 Likewise.
10655 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
10656 * emit-rtl.c (verify_rtl_sharing): Likewise.
10657 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
10658 debug_value_expressions): Likewise.
10659 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
10660 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
10661 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
10662 * cfglayout.c (verify_insn_chain): Likewise.
10663 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
10664 debug_clast_stmt, debug_generated_program): Likewise.
10665 * ggc-page.c (debug_print_page_list): Likewise.
10666 * tree-ssa-ter.c (debug_ter): Likewise.
10667 * graphite-dependences.c (debug_pddr): Likewise.
10668 * sched-deps.c (debug_ds): Likewise.
10669 * tree-ssa.c (verify_ssa): Likewise.
10670 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
10671 debug_scattering_functions, debug_iteration_domains, debug_pdr,
10672 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
10673 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
10674 * tree-inline.c (debug_find_tree): Likewise.
10675 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
10676 debug_ppl_powerset_matrix): Likewise.
10677 * var-tracking.c (debug_dv): Likewise.
10678 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
10679 * cfgloop.c (verify_loop_structure): Likewise.
10680 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
10681 * c-common.c (verify_sequence_points): Likewise.
10682 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
10683 debug_candidates, debug_rgn_dependencies): Likewise.
10684 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
10685 * debug_constraint_graph, debug_solution_for_var,
10686 debug_sa_points_to_info): Likewise.
10687 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
10688 Likewie.
10689 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
10690 debug_loops, debug_loop, debug_loop_num): Likewise.
10691 * passes.c (debug_pass): Likewise.
10692 (dump_properties): Likewise; add cfglayout property.
10693 (debug_properties): Likewise.
10694 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
10695 * varpool.c (debug_varpool): Likewise.
10696 * regcprop.c (debug_value_data): Likewise.
10697 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
10698 debug_immediate_uses_for): Likewise.
10699
10700 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
10701
10702 PR bootstrap/44315
10703 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
10704 Filter out insn-flags.h.
10705
10706 2010-05-29 Jan Hubicka <jh@suse.cz>
10707
10708 * cgraph.h (struct varpool_node_set_def,
10709 struct cgraph_node_set_def): Remove unused AUX pointer.
10710 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
10711 VEC_empty macro.
10712
10713 2010-05-29 Jan Hubicka <jh@suse.cz>
10714
10715 PR middle-end/44324
10716 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
10717
10718 2010-05-29 Richard Guenther <rguenther@suse.de>
10719
10720 * lto-streamer.c (cached_bp): New global variable.
10721 (bitpack_create): Return the cached bitpack, if available.
10722 (bitpack_delete): Clear and cache the bitpack, if appropriate.
10723 (bp_pack_value): Remove redundant asserts.
10724
10725 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
10726
10727 PR middle-end/44306
10728 * tree-if-conv.c (is_true_predicate): New.
10729 (is_predicated): Use is_true_predicate.
10730 (add_to_predicate_list): Same. Do not use unshare_expr.
10731 (add_to_dst_predicate_list): Same.
10732
10733 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
10734
10735 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
10736 field on edges.
10737 (predicate_bbs): Same.
10738 (clean_predicate_lists): Same.
10739 (find_phi_replacement_condition): Do not AND the predicate from
10740 edge->aux.
10741
10742 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
10743
10744 PR bootstrap/44315
10745 * Makefile.in (build/gencondmd.o): Add a missing `\'.
10746
10747 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10748
10749 PR target/44261
10750 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
10751 (negdf2): Adjust expander pattern and use negdf2_slow.
10752 (negsf2): Likewise.
10753
10754 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
10755
10756 * basic-block.h (struct control_flow_graph): Move last_label_uid field
10757 up.
10758 * df.h (struct df_base_ref): Move regno field up.
10759 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
10760 * expr.h (struct separate_ops): Move location field up.
10761 * optabs.h (struct optab_d): Move libcall_basename field down.
10762 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
10763 * config/i386/i386.h (struct machine_function): Convert call_abi field
10764 into a bitfield. Move cfa field to the end of the structure.
10765
10766 2010-05-29 Jan Hubicka <jh@suse.cz>
10767
10768 * varpool.c (varpool_get_node): Fix lookup.
10769
10770 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10771
10772 * config/spu/spu-protos.h: Do not include rtl.h. Protect
10773 RTL specific prototypes with #ifdef RTX_CODE.
10774 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
10775 * config/spu/t-spu-elf: Fix dependencies.
10776
10777 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
10778
10779 2010-05-29 Mike Stump <mikestump@comcast.net>
10780
10781 PR bootstrap/44315
10782 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
10783 TM_H when building to avoid dependency loops.
10784
10785 2010-05-29 Jan Hubicka <jh@suse.cz>
10786
10787 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
10788 refs and body; not the whole node for masters of materialized clones.
10789
10790 2010-05-29 Mike Stump <mikestump@comcast.net>
10791
10792 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
10793
10794 2010-05-29 Jan Hubicka <jh@suse.cz>
10795
10796 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
10797 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
10798 use of clone_function_name.
10799 * cgraph.h (cgraph_create_virtual_clone,
10800 cgraph_function_versioning): update prototypes.
10801 (clone_function_name): Declare.
10802 * ipa-cp.c (ipcp_insert_stage): Update call of
10803 cgraph_create_virtual_clone.
10804 * omp-low.c (create_omp_child_function_name): Use
10805 cgraph_create_virtual_clone.
10806 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
10807 (cgraph_function_versioning): Take SUFFIX argument; produce new name
10808 and make decl local.
10809
10810 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10811
10812 * vec.h: Include statistics.h
10813 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
10814 with VEC_H.
10815
10816 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10817
10818 * c-lex.c: Do not include c-tree.h.
10819 * c-pretty-print.c: Likewise.
10820 * c-opts.c: Likewise.
10821 * c-gimplify.c: Likewise.
10822 * c-common.c: Likewise.
10823 * c-dump.c: Likewise. Include c-common.h.
10824
10825 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10826
10827 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
10828 before including diagnostic-core.h.
10829 (c_cpp_error): New prototype moved from c-tree.h.
10830 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
10831 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
10832 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
10833 (c_cpp_error): Prototype moved to c-common.h.
10834 * Makefile.in: Update dependency for C_COMMON_H.
10835
10836 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10837
10838 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
10839 * c-common.c (c_register_addr_space): Remove here.
10840 * c-decl.c (c_register_addr_space): Re-add here.
10841
10842 2010-05-28 Mike Stump <mikestump@comcast.net>
10843
10844 * config/darwin-c.c: Remove c-tree.h include.
10845
10846 2010-05-28 Joseph Myers <joseph@codesourcery.com>
10847
10848 * gcc.c: Include diagnostic.h.
10849 (error_count): Remove. All users changed to use errorcount.
10850 (programname): Remove. All users changed to use progname.
10851 (fancy_abort, internal_error, fatal_error, error, warning, inform,
10852 fnotice): Remove.
10853 (execute): Don't include "Internal error" and bug reporting
10854 information in argument of internal_error call.
10855 (process_command): Don't increment error_count after calling
10856 perror_with_name.
10857 (input_filename): Rename to gcc_input_filename. All users
10858 changed.
10859 (main): Call diagnostic_initialize. Register delete_temp_files
10860 with atexit. Use seen_error to test for errors.
10861 * gcc.h: Include diagnostic-core.h.
10862 (fatal_error, error, warning): Remove.
10863 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
10864 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
10865 (gcc.o): Update dependencies.
10866
10867 2010-05-28 Jeff Law <law@redhat.com>
10868
10869 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
10870 functions.
10871 * ira.h (ira_bad_reload_regno): Declare
10872 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
10873
10874 * ira-color.c (update_curr_costs): Free updated hard reg costs.
10875 (ira_reassign_conflict_allocnos): Remove bogus asserts.
10876 (allocno_reload_assign): Likewise.
10877
10878 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
10879
10880 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
10881 build1_stat.
10882
10883 2010-05-28 Richard Guenther <rguenther@suse.de>
10884
10885 PR lto/44312
10886 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
10887 Stream fixed-point constants mode.
10888 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
10889 and TYPE_PRECISION.
10890 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
10891 Stream fixed-point constants mode.
10892 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
10893 and TYPE_PRECISION.
10894
10895 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
10896
10897 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
10898 only place it was called from.
10899 (number_of_latch_executions): Do not return chrec_dont_know when the
10900 may_be_zero is a runtime condition: instead, return a COND_EXPR
10901 including the may_be_zero condition.
10902 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
10903 of nb_iterations.
10904 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
10905 COND_EXPRs.
10906
10907 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
10908
10909 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
10910 generate COND_EXPRs for degenerate_phi_result.
10911
10912 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
10913
10914 PR middle-end/44293
10915 * tree-if-conv.c (if_convertible_loop_p): Check the
10916 if-convertibility of phi nodes in non predicated BBs.
10917
10918 2010-05-28 Joseph Myers <joseph@codesourcery.com>
10919
10920 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
10921
10922 2010-05-28 Joseph Myers <joseph@codesourcery.com>
10923
10924 PR driver/15303
10925 * gcc.c (inform, warning, inform): New functions.
10926 (fatal_ice): Rename to internal_error; change cmsgid parameter to
10927 gmsgid. All callers changed.
10928 (notice): Rename to fnotice; add parameter fp. All callers changed.
10929 (fatal_error): Rename to fatal_signal. All users changed.
10930 (fatal): Rename to fatal_error; change cmsgid parameter to
10931 gmsgid. All callers changed.
10932 (process_command): Use warning instead of error for warnings.
10933 (end_going_arg): Don't use _() around argument of error.
10934 (do_spec_1): Use inform for message from %n specs. Use warning
10935 instead of error for warnings.
10936 (main): Use inform for comparison messages. Use warning for
10937 message about unused linker input.
10938 (error): Increment error_count. Print "error: ".
10939 * gcc.h (fatal): Change to fatal_error.
10940 (warning): Declare.
10941 * config/darwin-driver.c (darwin_default_min_version): Use warning
10942 instead of fprintf for warnings.
10943 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
10944
10945 2010-05-28 Julian Brown <julian@codesourcery.com>
10946
10947 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
10948 (*thumb2_addsi3_compare0_scratch): New.
10949 * config/arm/constraints.md (Pv): New.
10950 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
10951 for ARM mode only.
10952 (*addsi3_compare0_scratch): Likewise.
10953
10954 2010-05-28 Jan Hubicka <jh@suse.cz>
10955
10956 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
10957 check.
10958 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
10959 only on local statics.
10960
10961 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
10962
10963 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
10964
10965 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
10966
10967 PR bootstrap/44314
10968 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
10969 (OPTION_GLIBC): Define.
10970
10971 2010-05-28 Jakub Jelinek <jakub@redhat.com>
10972
10973 PR debug/41048
10974 * dwarf2out.c (double_int_type_size_in_bits): New function.
10975 (round_up_to_align): Change first argument and return value to
10976 double_int.
10977 (field_byte_offset): Work internally on double_ints.
10978
10979 PR target/43636
10980 * builtins.c (expand_movstr): Use a temporary pseudo instead
10981 of target even when target is not NULL and not const0_rtx, but
10982 fails movstr predicate.
10983 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
10984
10985 2010-05-28 Joseph Myers <joseph@codesourcery.com>
10986
10987 * final.c (rest_of_clean_state): Use %m in errors instead of
10988 strerror (errno).
10989 * gengtype.c (read_input_list, close_output_files): Use xstrerror
10990 instead of strerror.
10991 * toplev.c (process_options): Use %m in errors instead of strerror
10992 (errno).
10993 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
10994 (errno).
10995
10996 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
10997
10998 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
10999 (ix86_canonical_va_list_type): Make static. Add declaration.
11000 (ix86_enum_va_list): Make static. Reindent.
11001 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
11002 (ix86_canonical_va_list_type): Ditto.
11003 (ix86_enum_va_list): Ditto.
11004
11005 2010-05-28 Richard Guenther <rguenther@suse.de>
11006
11007 * lto-wrapper.c (run_gcc): With -save-temps generate a
11008 user-visible ltrans filename. Fixup ltrans unit numbering.
11009
11010 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
11011
11012 * c-common.c (c_common_nodes_and_builtins): Replace use
11013 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
11014 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
11015 to ix86_enum_va_list.
11016 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
11017 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
11018 (TARGET_ENUM_VA_LIST_P): Add hook description.
11019 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
11020 * target.h (gcc_target): Add enum_va_list hook.
11021
11022 PR bootstrap/44299
11023 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
11024 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
11025 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
11026
11027 2010-05-28 Alan Modra <amodra@gmail.com>
11028
11029 PR target/44266
11030 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
11031 emit_library_call machinery to set up __tls_get_addr calls.
11032
11033 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11034
11035 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
11036
11037 2010-05-28 Dodji Seketeli <dodji@redhat.com>
11038
11039 Revert fix for PR c++/44188
11040 * c-common.c (is_typedef_decl): Revert the moving of this
11041 definition ...
11042 * tree.c (is_typedef_decl): ... here.
11043 (typdef_variant_p): Revert the moving of this definition
11044 here from gcc/cp/tree.c.
11045 * c-common.h (is_typedef_decl): Revert the moving of this
11046 declaration ...
11047 * tree.h (is_typedef_decl): ... here.
11048 (typedef_variant_p): Revert the moving of this declaration here
11049 from gcc/cp/cp-tree.h
11050 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
11051 (gen_tagged_type_die): Revert the splitting out of ...
11052 (gen_type_die_with_usage): ... this function. Revert the anonymous
11053 tagged type handling.
11054 (gen_typedef_die): Revert emitting DW_TAG_typedef for
11055 typedefs naming anonymous tagged types.
11056
11057 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
11058
11059 * config/rs6000/rs6000-modes.def (PSImode): Delete.
11060
11061 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
11062
11063 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
11064 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
11065 throughout.
11066 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
11067 "xer" to "ca".
11068 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
11069 XER_REGS to CA_REGS throughout.
11070 * config/rs6000/rs6000.h: Same.
11071 (ADDITIONAL_REGISTER_NAMES): Add "xer".
11072 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
11073 that mode_iterator "P" is the size for arithmetic carries as well.
11074 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
11075
11076 2010-05-28 Jakub Jelinek <jakub@redhat.com>
11077
11078 PR bootstrap/44255
11079 * combine.c (struct rtx_subst_pair): Define unconditionally.
11080 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
11081 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
11082 Call make_compound_operation on pair->to.
11083 (propagate_for_debug): Don't call make_compound_operation here.
11084 Always use simplify_replace_fn_rtx.
11085
11086 2010-05-27 Sterling Augustine <sterling@tensilica.com>
11087
11088 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
11089 * config/xtensa/xtensa.c (override_options): Check
11090 TARGET_FORCE_NO_PIC and set flag_pic.
11091 * config/xtensa/xtensa.opt: Document -mforce-no-pic
11092
11093 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
11094
11095 PR bootstrap/44299
11096 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
11097 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
11098
11099 2010-05-27 Joseph Myers <joseph@codesourcery.com>
11100
11101 * diagnostic-core.h: New. Contents moved from diagnostic.h and
11102 toplev.h.
11103 * diagnostic.c: Don't include toplev.h.
11104 (progname): Define. Moved from toplev.c.
11105 (seen_error): New function.
11106 * diagnostic.h: Include diagnostic-core.h.
11107 (diagnostic_t, emit_diagnostic): Don't declare here.
11108 * toplev.c (progname): Move to toplev.c.
11109 (emit_debug_global_declarations, compile_file, finalize,
11110 do_compile, toplev_main): Use seen_error.
11111 * toplev.h: Include diagnostic-core.h.
11112 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
11113 internal_error, warning, warning_at, error, error_n, error_at,
11114 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
11115 verbatim, fnotice, progname): Move to diagnostic-core.h.
11116 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
11117 (expand_builtin_expect): Use seen_error.
11118 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
11119 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
11120 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
11121 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
11122 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
11123 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
11124 errorcount for errors.
11125 * c-opts.c (c_common_finish): Use seen_error.
11126 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
11127 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
11128 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
11129 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
11130 (get_coverage_counts): Use seen_error.
11131 * dwarf2out.c (dwarf2out_finish): Use seen_error.
11132 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
11133 gimplify_body): Use seen_error.
11134 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
11135 * ipa-pure-const.c (gate_pure_const): Use seen_error.
11136 * ipa-reference.c (gate_reference): Use seen_error.
11137 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
11138 * lambda-code.c: Include diagnostic-core.h instead of
11139 diagnostic.h.
11140 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
11141 * lto-compress.c: Include diagnostic-core.h instead of
11142 diagnostic.h.
11143 * lto-section-in.c: Include diagnostic-core.h instead of
11144 diagnostic.h.
11145 * lto-streamer-out.c: Include diagnostic-core.h instead of
11146 diagnostic.h.
11147 * lto-streamer.c: Include diagnostic-core.h instead of
11148 diagnostic.h.
11149 (gate_lto_out): Use seen_error.
11150 * matrix-reorg.c: Include diagnostic-core.h instead of
11151 diagnostic.h.
11152 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
11153 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
11154 (gate_expand_omp, lower_omp_1): Use seen_error.
11155 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
11156 (rest_of_decl_compilation, rest_of_type_compilation,
11157 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
11158 * tree-cfg.c (label_to_block_fn): Use seen_error.
11159 * tree-inline.c (optimize_inline_calls): Use seen_error.
11160 * tree-mudflap.c (mudflap_finish_file): Use
11161 seen_error.
11162 * tree-optimize.c (gate_all_optimizations,
11163 gate_all_early_local_passes, gate_all_early_optimizations): Use
11164 seen_error.
11165 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
11166 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
11167 (varpool_remove_unreferenced_decls,
11168 varpool_assemble_pending_decls): Use seen_error.
11169 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
11170 (TOPLEV_H, DIAGNOSTIC_H): Update.
11171 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
11172 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
11173 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
11174 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
11175 coverage.o, lambda-code.o): Update dependencies.
11176
11177 2010-05-25 Dodji Seketeli <dodji@redhat.com>
11178
11179 PR c++/44188
11180 * c-common.c (is_typedef_decl): Move this definition ...
11181 * tree.c (is_typedef_decl): ... here.
11182 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11183 * c-common.h (is_typedef_decl): Move this declaration ...
11184 * tree.h (is_typedef_decl): ... here.
11185 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11186 * dwarf2out.c (is_naming_typedef_decl): New function.
11187 (gen_tagged_type_die): Split out of ...
11188 (gen_type_die_with_usage): ... this function. When an anonymous
11189 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11190 is emitted for the typedef.
11191 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11192 anonymous tagged types.
11193
11194 2010-05-27 Jason Merrill <jason@redhat.com>
11195
11196 * print-tree.c (debug_vec_tree): New fn.
11197 (print_vec_tree): New fn.
11198 * tree.h: Declare them.
11199 * gdbinit.in (pvt): New command.
11200
11201 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
11202
11203 * gdbinit.in (pdd): New command.
11204
11205 2010-05-27 Jan Hubicka <jh@suse.cz>
11206
11207 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
11208 (update_caller_keys): Return early if there are no callers;
11209 only update fibheap when decresing the key.
11210 (update_callee_keys): Avoid recursion.
11211 (decide_inlining_of_small_functions): When badness does not match;
11212 re-insert into fibheap.
11213
11214 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
11215
11216 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
11217 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
11218 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
11219 (ALL_HOST_OBJS): Now a union of the above two.
11220 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
11221 all files in ALL_HOST_FRONTEND_OBJS.
11222 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
11223
11224 * c-common.c: Pretend to be a backend file by undefining
11225 IN_GCC_FRONTEND (still need rtl.h here).
11226
11227 2010-05-27 Jan Hubicka <jh@suse.cz>
11228
11229 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
11230 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
11231
11232 2010-05-27 Jan Hubicka <jh@suse.cz>
11233
11234 * sched-ebb.c: Rename struct deps to struct deps_desc.
11235 * ddg.c: Likewise.
11236 * sel-sched-ir.c: Likewise.
11237 * sched-deps.c: Likewise.
11238 * sched-int.h: Likewise.
11239 * sched-rgn.c: Likewise.
11240
11241 2010-05-27 Jon Beniston <jon@beniston.com>
11242
11243 PR 43726
11244 * config/lm32/lm32.h: Remove definition of
11245 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
11246
11247 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
11248
11249 PR lto/44230
11250 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
11251
11252 2010-05-27 Richard Guenther <rguenther@suse.de>
11253
11254 PR tree-optimization/44284
11255 * tree-vect-stmts.c (vectorizable_assignment): Handle
11256 sign-changing conversions as simple copy.
11257
11258 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11259
11260 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
11261 Bionic C library.
11262 (__gthread_active_p): Check for pthread_create if compiling against
11263 Bionic C library.
11264
11265 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11266
11267 Support compilation for Android platform. Reimplement -mandroid.
11268
11269 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
11270 (*android*): Set ANDROID_DEFAULT.
11271 (arm*-*-linux*): Include linux-android.h.
11272 (arm*-*-eabi*): Don't include previous -mandroid implementation.
11273 * config/arm/eabi.h: Remove, move Android-specific parts ...
11274 * config/linux-android.h: ... here. New file.
11275 * config/arm/eabi.opt: Rename to ...
11276 * config/linux-android.opt: ... this.
11277 (mandroid): Allow -mno-android option. Initialize based on
11278 ANDROID_DEFAULT.
11279 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
11280 Move logic to corresponding LINUX_TARGET_* macros.
11281 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
11282 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
11283 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
11284 Android definitions.
11285 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
11286 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
11287 Document.
11288
11289 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11290
11291 Add support for Bionic C library
11292
11293 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
11294 macro.
11295 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
11296 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
11297
11298 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
11299 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
11300 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
11301 to support multiple C libraries. Handle Bionic.
11302 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
11303 (BIONIC_DYNAMIC_LINKER64): Define.
11304 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
11305 Update.
11306 (TARGET_HAS_SINCOS): Enable for Bionic.
11307
11308 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
11309 the last option specified on command line take effect.
11310 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
11311 (mbionic): New.
11312 (mglibc, muclibc): Update.
11313
11314 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
11315 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
11316 DEFAULT_LIBC.
11317
11318 * doc/invoke.texi (-mglibc, -muclibc): Update.
11319 (-mbionic): Document.
11320
11321 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11322
11323 * c-common.h (c_register_addr_space): Add prototype.
11324 (ADDR_SPACE_KEYWORD): Remove.
11325 * c-common.c (c_register_addr_space): New function.
11326 (c_addr_space_name): Reimplement.
11327 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
11328
11329 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
11330 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
11331
11332 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
11333 Remove TARGET_ADDR_SPACE_KEYWORDS.
11334
11335 2010-05-27 Joseph Myers <joseph@codesourcery.com>
11336
11337 * input.c: New file.
11338 * input.h (main_input_filename): Move declaration to toplev.h.
11339 * toplev.c (input_location, line_table): Move to input.c
11340 * toplev.h (main_input_filename): Move declaration from input.h.
11341 * tree.c (expand_location): Move to input.c.
11342 * Makefile.in (OBJS-common): Add input.o.
11343 (input.o): Add dependencies.
11344
11345 2010-05-27 Richard Guenther <rguenther@suse.de>
11346
11347 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
11348 for non-existant files.
11349 (fork_execute): Mark args_name file as deleted.
11350
11351 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
11352
11353 PR bootstrp/44287
11354 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
11355 (narrow_signed_type): Likewise.
11356
11357 2010-05-26 Jan Hubicka <jh@suse.cz>
11358
11359 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
11360 edge only when checking is enabled; check using former_clone_of;
11361 check inline clones too.
11362 (cgraph_materialize_clone): Record former_clone_of pointer.
11363 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
11364 combining redirections; dump args_to_skip bitmap
11365 (cgraph_materialize_all_clones): Do no redirection here.
11366 * ipa-inline.c (inline_transform): Do redirection here.
11367 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
11368 cheking only).
11369
11370 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11371
11372 * config/avr/avr-c.c: Do not include regs.h.
11373 Include cpplib.h for cpp_define and tree.h for c-common.h.
11374 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
11375 * config/avr/t-avr: Fix dependencies for avr-c.o.
11376
11377 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11378
11379 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
11380 string instead of SYMBOL_REF rtx.
11381 * rtl.h (set_stack_check_libfunc): Move prototype from here...
11382 * libfuncs.h: ...to here. Adjust for explow.c change.
11383
11384 2010-05-26 Joseph Myers <joseph@codesourcery.com>
11385
11386 * pretty-print.c: Don't include ggc.h.
11387 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
11388 (identifier_to_locale): Use them for allocation.
11389 * pretty-print.h (identifier_to_locale_alloc,
11390 identifier_to_locale_free): Declare.
11391 * toplev.c (alloc_for_identifier_to_locale): New.
11392 (general_init): Set identifier_to_locale_alloc and
11393 identifier_to_locale_free.
11394 * Makefile.in (pretty-print.o): Update dependencies.
11395
11396 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
11397
11398 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
11399 pointer types if they have different alignment or mode.
11400
11401 2010-05-26 Anatoly Sokolov <aesok@post.ru>
11402
11403 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11404 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11405 * config/sparc/sparc-protos.h (function_value): Remove declaration.
11406 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
11407 sparc_function_value_regno_p): New functions.
11408 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11409 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11410 (function_value): Rename to...
11411 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
11412 argument to 'outgoing'.
11413 (function_arg_record_value, function_arg_union_value,
11414 function_arg_vector_value): Update comment.
11415
11416 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
11417
11418 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
11419 (fde_needed_for_eh_p): New predicate.
11420 (output_call_frame_info): Use it throughout to decide whether FDEs
11421 are needed for EH purpose.
11422 (dwarf2out_begin_prologue): Reorder assignments.
11423
11424 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11425
11426 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
11427 special case loop->header.
11428 (is_predicated): New.
11429 (if_convertible_loop_p): Call it.
11430
11431 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11432
11433 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
11434 iterator in parameter. Do not generate code during the analysis.
11435 (tree_if_convert_cond_stmt): Removed.
11436 (tree_if_convert_stmt): Removed.
11437 (predicate_bbs): New.
11438 (if_convertible_loop_p): Call predicate_bbs.
11439 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
11440 now contains all the analysis part.
11441
11442 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11443
11444 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
11445 statements in the analysis part.
11446 (tree_if_convert_stmt): Update comment.
11447 (remove_conditions_and_labels): New.
11448 (combine_blocks): Call remove_conditions_and_labels.
11449 (tree_if_conversion): Update comment.
11450
11451 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11452
11453 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
11454 than 2 predecessors or more than 2 successors.
11455
11456 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11457
11458 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
11459 of loops in which the data dependence analysis fails.
11460
11461 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11462
11463 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
11464 CDI_POST_DOMINATORS.
11465 (tree_if_conversion): Same.
11466
11467 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11468
11469 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
11470
11471 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11472
11473 * tree-if-conv.c: Update copyright years. Fix comments.
11474 Fix indentation.
11475
11476 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
11477
11478 * builtin-types.def (BT_INT128): New primitive type.
11479 (BT_UINT128): Likewise.
11480 * c-common.c (c_common_r): Add __int128 keyword.
11481 (c_common_type_for_size): Handle __int128.
11482 (c_common_type_for_mode): Likewise.
11483 (c_common_signed_or_unsigned_type): Likewise.
11484 (c_common_nodes_and_builtins): Add builtin type
11485 if target supports 128-bit integer scalar.
11486 * c-common.h (enum rid): Add RID_INT128.
11487 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
11488 if target supports 128-bit integer scalar.
11489 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
11490 (finish_declspecs): Likewise.
11491 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
11492 (c_token_starts_declspecs): Likewise.
11493 (c_parser_declspecs): Likewise.
11494 (c_parser_attributes): Likewise.
11495 (c_parser_objc_selector): Likewise.
11496 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
11497 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
11498 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
11499 * tree.c (make_or_reuse_type): Likewise.
11500 (make_unsigned_type): Likewise.
11501 (build_common_tree_nodes_2): Likewise.
11502 * tree.h (enum integer_type_kind): Add itk_int128 and
11503 itk_unsigned_int128.
11504 (int128_integer_type_node): New define.
11505 (int128_unsigned_type_node): New define.
11506 * doc/extend.texi: Add documentation about __int128 type.
11507
11508 2010-05-26 Richard Guenther <rguenther@suse.de>
11509
11510 * tree-ssa-sccvn.c (copy_nary): Adjust.
11511 (copy_phis): Rename to ...
11512 (copy_phi): ... this. Adjust.
11513 (copy_references): Rename to ...
11514 (copy_reference): ... this. Adjust.
11515 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
11516 result into the valid table.
11517
11518 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11519
11520 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
11521 insn-config.h, insn-codes.h, recog.h, and optabs.h.
11522
11523 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11524
11525 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
11526
11527 2010-05-26 Richard Guenther <rguenther@suse.de>
11528
11529 * opts.c (common_handle_option): Handle OPT_Ofast.
11530
11531 2010-05-26 Joseph Myers <joseph@codesourcery.com>
11532
11533 * diagnostic.c: Don't include opts.h.
11534 (permissive_error_option): Define.
11535 (diagnostic_initialize): Take n_opts parameter. Allocate memory
11536 for classify_diagnostic. Don't use memset for
11537 classify_diagnostic. Initialize new and recently added fields.
11538 (diagnostic_classify_diagnostic): Use context->n_opts instead of
11539 N_OPTS.
11540 (diagnostic_report_diagnostic): Pass context parameter to
11541 diagnostic_report_warnings_p. Use option_enabled and option_name
11542 hooks from context.
11543 (emit_diagnostic): Use permissive_error_option.
11544 (permerror): Likewise.
11545 * diagnostic.h: Don't include options.h.
11546 (struct diagnostic_context): Add n_opts, opt_permissive,
11547 inhibit_warnings, warn_system_headers, option_enabled and
11548 option_name fields. Change classify_diagnostic to a pointer.
11549 * opts-diagnostic.h: New file.
11550 * opts.c: Include opts-diagnostic.h.
11551 (common_handle_option): Set global_dc fields for -Wfatal-errors,
11552 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
11553 (option_name): New function.
11554 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
11555 (c_common_handle_option): Set global_dc->permissive for
11556 -fpermissive.
11557 * c-common.c (c_cpp_error): Save and restore
11558 global_dc->warn_system_headers, not variable warn_system_headers.
11559 * toplev.c: Include opts-diagnostic.h.
11560 (general_init): Update call to diagnostic_initialize. Set
11561 global_dc->show_column, global_dc->option_enabled and
11562 global_dc->option_name.
11563 (process_options): Don't set global_dc fields here.
11564 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
11565 (diagnostic.o, opts.o, toplev.o): Update dependencies.
11566
11567 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11568
11569 * config/picochip/picochip.md (movsi): Split a movsi from a
11570 const after reload.
11571
11572 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11573
11574 * ggc-zone.c: Update copyright year.
11575 (poison_region): Mark memory for Valgrind as undefined before
11576 memset () call and inaccessible afterwards.
11577 (ggc_pch_total_size): Change type of i to int.
11578
11579 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11580
11581 * ggc-common.c (ggc_free_overhead): Allow empty slot.
11582
11583 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11584
11585 * ggc-common.c: Update copyright year.
11586 (ggc_rlimit_bound): Remove prototype. Compile only if
11587 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
11588 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
11589 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
11590 (ggc_min_heapsize_heuristic): Likewise.
11591
11592 2010-05-26 Richard Guenther <rguenther@suse.de>
11593
11594 PR rtl-optimization/44164
11595 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
11596 no-common access-path disambiguation.
11597 (indirect_ref_may_alias_decl_p): Adjust.
11598 (indirect_refs_may_alias_p): Likewise.
11599 (refs_may_alias_p_1): Likewise.
11600
11601 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11602
11603 * c-typeck.c: Do not include expr.h.
11604
11605 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11606
11607 * rtl.h (decl_default_tls_model): Move prototype from here...
11608 * output.h: ...to here.
11609 * c-decl.c: Do not include rtl.h.
11610 * c-pragma.c: Likewise.
11611 * c-parser.c: Likewise.
11612 * c-gimplify.c: Likewise. And also not hard-reg-set.
11613 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
11614 FIXME note for it. Add a FIXME note for expr.h.
11615 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
11616 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
11617 defined.
11618
11619 2010-05-26 Jakub Jelinek <jakub@redhat.com>
11620
11621 PR target/44199
11622 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
11623 or total_size is larger than red zone size for non-V4 ABI, emit a
11624 stack_tie resp. frame_tie insn before stack pointer restore.
11625 * config/rs6000/rs6000.md (frame_tie): New insn.
11626
11627 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
11628
11629 * function.h (struct function): Add can_throw_non_call_exceptions bit.
11630 * lto-streamer-in.c (input_function): Stream it in.
11631 * lto-streamer-out.c (output_function): Stream it out.
11632 * function.c (allocate_struct_function): Set it.
11633 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
11634 for flag_non_call_exceptions.
11635 * cfgbuild.c (control_flow_insn_p): Likewise.
11636 (make_edges): Likewise.
11637 * cfgexpand.c (expand_stack_alignment): Likewise.
11638 * combine.c (distribute_notes): Likewise.
11639 * cse.c (cse_extended_basic_block): Likewise.
11640 * except.c (insn_could_throw_p): Likewise.
11641 * gcse.c (simple_mem): Likewise.
11642 * ipa-pure-const.c (check_call): Likewise.
11643 (check_stmt ): Likewise.
11644 * lower-subreg.c (lower-subreg.c): Likewise.
11645 * optabs.c (emit_libcall_block): Likewise.
11646 (prepare_cmp_insn): Likewise.
11647 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
11648 * postreload.c (rest_of_handle_postreload): Likewise.
11649 * reload1.c (reload_as_needed): Likewise.
11650 (emit_input_reload_insns): Likewise.
11651 (emit_output_reload_insns): Likewise.
11652 (fixup_abnormal_edges): Likewise.
11653 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
11654 * store-motion.c (find_moveable_store): Likewise.
11655 * tree-eh.c (stmt_could_throw_p): Likewise.
11656 (tree_could_throw_p): Likewise.
11657 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11658 * config/arm/arm.c (arm_expand_prologue): Likewise.
11659 (thumb1_expand_prologue): Likewise.
11660 * config/rx/rx.md (cbranchsf4): Likewise.
11661 (cmpsf): Likewise.
11662 * config/s390/s390.c (s390_emit_prologue): Likewise.
11663 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
11664 (inline_forbidden_into_p): New predicate.
11665 (expand_call_inline): Use it to forbid inlining.
11666 (tree_can_inline_p): Likewise.
11667
11668 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
11669
11670 * config/i386/i386-c.c: Do not include rtl.h.
11671 * config/i386/t-i386: Update dependencies.
11672
11673 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
11674
11675 * attribs.c: Do not include rtl.h.
11676 * Makefile.in: Update dependencies.
11677
11678 2010-05-25 Anatoly Sokolov <aesok@post.ru>
11679
11680 * double-int.h (double_int_and): New.
11681 * combine.c (try_combine): Clean up, use double_int_* and
11682 immed_double_int_const functions.
11683
11684 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11685
11686 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
11687 stderr to /dev/null instead of grep -q.
11688 * configure: Regenerate.
11689
11690 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
11691
11692 * Makefile.in (EXCEPT_H): Fix typo.
11693
11694 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
11695
11696 * ira-build.c (update_conflict_hard_reg_costs): New.
11697 (ira_build): Call update_conflict_hard_reg_costs.
11698
11699 2010-05-25 Jakub Jelinek <jakub@redhat.com>
11700
11701 PR debug/41371
11702 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
11703 ENABLE_CHECKING.
11704 (intersect_loc_chains): Walk the s2var's loc_chain together
11705 with s1node chain as long as the locations are equal, don't
11706 call find_loc_in_1pdv in that case.
11707
11708 PR debug/42801
11709 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
11710 (copy_bind_expr): ... instead of here.
11711 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
11712 if the block hasn't been remapped.
11713 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
11714 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
11715
11716 2010-05-25 Richard Guenther <rguenther@suse.de>
11717
11718 PR middle-end/44069
11719 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
11720 out-of-bounds array accesses.
11721
11722 2010-05-25 Richard Guenther <rguenther@suse.de>
11723
11724 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
11725 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
11726 (run_gcc): Re-organize to make cleanup easier.
11727
11728 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11729
11730 * config/s390/s390.c (optimization_options): Fix and move the
11731 flag_prefetch_loop_arrays override ...
11732 (override_options): ... here.
11733
11734 2010-05-25 Joseph Myers <joseph@codesourcery.com>
11735
11736 * diagnostic.c: Don't include plugin.h.
11737 (diagnostic_report_diagnostic): Don't handle plugins specially
11738 here. Pass context to internal_error callback.
11739 * diagnostic.h (struct diagnostic_context): Add context parameter
11740 to internal_error callback.
11741 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
11742 * plugin.h (struct diagnostic_context): Declare.
11743 (warn_if_plugins, plugins_internal_error_function): Declare.
11744 * toplev.c (general_init): Set global_dc->internal_error.
11745 * Makefile.in (diagnostic.o): Update dependencies.
11746
11747 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
11748
11749 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
11750 * config/rs6000/t-darwin64: New.
11751 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
11752 build crt2.
11753
11754 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
11755
11756 PR 44203
11757 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
11758 match the original (and intended) behaviour before r159557. This
11759 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
11760 in two ways.
11761
11762 2010-05-25 Richard Guenther <rguenther@suse.de>
11763
11764 * doc/invoke.texi: Document -Ofast.
11765 * target.h (struct gcc_target): Add handle_ofast.
11766 * target-def.h (TARGET_HANDLE_OFAST): Add.
11767 (TARGET_INITIALIZER): Adjust.
11768 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
11769 * common.opt (Ofast): Add.
11770
11771 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
11772
11773 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
11774 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
11775
11776 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
11777
11778 PR target/43610
11779 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
11780 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
11781 false_rtx. Use false_rtx to compute the correct *ptest for reversed
11782 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
11783
11784 2010-05-25 Jakub Jelinek <jakub@redhat.com>
11785
11786 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
11787 DW_OP_minus with negated offset instead of DW_OP_plus.
11788 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
11789
11790 2010-05-25 Wei Guozhi <carrot@google.com>
11791
11792 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
11793 tst instruction and a new alternative.
11794 * config/arm/constraints.md (Pu): New constraint.
11795
11796 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
11797
11798 * function.c (assign_stack_local_1): Initialize variable
11799 to avoid warning when bootstrapping at -O3.
11800
11801 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
11802
11803 * configure.ac (all_lang_makefiles): Remove everything related to it.
11804 * configure: Regenerate.
11805 * Makefile.in: Fix reference to ada Make-lang.in.
11806 Remove support for LANG_MAKEFILES.
11807
11808 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
11809 Sandra Loosemore <sandra@codesourcery.com>
11810
11811 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
11812 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
11813 description. Add arm_neon_fp16_ok.
11814 (Add Options): Add arm_neon and arm_neon_fp16.
11815
11816 2010-05-24 Joseph Myers <joseph@codesourcery.com>
11817
11818 * diagnostic.c: Don't include flags.h.
11819 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
11820 context parameters. Check flags in the context passed as a parameter.
11821 (diagnostic_build_prefix): Add context parameter. Check
11822 show_column flag in context.
11823 (diagnostic_action_after_output): Check fatal_errors flag in context.
11824 (diagnostic_report_current_module): Check show_column flag in context.
11825 (default_diagnostic_starter): Update call to
11826 diagnostic_build_prefix.
11827 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
11828 (emit_diagnostic): Pass context to permissive_error_kind.
11829 (permerror): Pass context to permissive_error_kind.
11830 * diagnostic.h (struct diagnostic_context): Add show_column,
11831 pedantic_errors, permissive and fatal_errors fields.
11832 (diagnostic_build_prefix): Update prototype.
11833 * langhooks.c
11834 * toplev.c (process_options): Set flags in global_dc from
11835 flag_show_column, flag_pedantic_errors, flag_permissive,
11836 flag_fatal_errors.
11837 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
11838 to diagnostic_build_prefix.
11839 * Makefile.in (diagnostic.o): Update dependencies.
11840
11841 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
11842
11843 * config/i386/ia32intrin.h (__crc32q): Define only if
11844 __SSE4_2__ is defined.
11845
11846 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
11847
11848 PR target/44132
11849 PR middle-end/43602
11850 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
11851 DECL_VISIBILITY_SPECIFIED.
11852 (emutls_decl): Set DECL_PRESERVE_P and copy
11853 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
11854 (emutls_finalize_control_var): New callback.
11855 (emutls_finish): Finalize emutls control variables.
11856 * toplev.c (compile_file): Move the call to emutls_finish ()
11857 before varpool_assemble_pending_decls ().
11858
11859 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
11860
11861 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
11862 added to the preprocessor condition.
11863
11864 2010-05-24 Paul Brook <paul@codesourcery.com>
11865
11866 * gengtype-lex.l: Add HARD_REG_SET.
11867 * expr.c (expand_expr_real_1): Record writes to hard registers.
11868 * function.c (rtl_data): Add asm_clobbers.
11869 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
11870 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
11871 Use crtl->asm_clobbers.
11872
11873 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11874
11875 * doc/makefile.texi (Makefile): Mention stages 'profile'
11876 and 'feedback' for profiledbootstrap.
11877
11878 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
11879
11880 PR target/44245
11881 * config/i386/i386.c (def_builtin): Properly check
11882 OPTION_MASK_ISA_64BIT.
11883
11884 2010-05-23 Joseph Myers <joseph@codesourcery.com>
11885
11886 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
11887 typedefs with different but compatible types. Allow duplicate
11888 typedefs with the same type except for pedantic non-C1X, but give
11889 warning for variably modified types.
11890 * c-typeck.c (tagged_types_tu_compatible_p,
11891 function_types_compatible_p, type_lists_compatible_p,
11892 comptypes_internal): Add parameter different_types_p; set
11893 *different_types_p for different but compatible types. All
11894 callers changed.
11895 (comptypes_check_different_types): New.
11896 * c-tree.h (comptypes_check_different_types): Declare.
11897
11898 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
11899
11900 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
11901 * jump.c: Include basic-block.h.
11902 * profile.c: Likewise.
11903 * tree-profile.c: Likewise.
11904 * coverage.c: Likewise.
11905 * basic-block.h (optimize_function_for_size_p): Move to function.h.
11906 (optimize_function_for_speed_p): Likewise.
11907 * function.h (optimize_function_for_size_p,
11908 optimize_function_for_speed_p): Moved here from basic-block.h.
11909 * Makefile.in: Update dependencies.
11910
11911 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11912
11913 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
11914 before calling make; allow override through $MAKE.
11915 * doc/invoke.texi (Optimize Options): Document override.
11916
11917 2010-05-23 Anatoly Sokolov <aesok@post.ru>
11918
11919 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
11920 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11921 (rs6000_mode_dependent_address_ptr): Make static.
11922 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11923 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
11924 Remove.
11925
11926 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
11927
11928 PR target/43869
11929 * config/i386/i386.c: Make sure that the correct regparm is passed.
11930
11931 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
11932
11933 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
11934 * sbitmap.c: ...to here to internalize sbitmap element access.
11935 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
11936 Explain why basic-block.h is included.
11937 * function.h: Include tm.h for CUMULATIVE_ARGS.
11938 * Makefile.in: Update dependencies.
11939
11940 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
11941
11942 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
11943 New core types.
11944 * sbitmap.h (struct sbitmap_def): Do not typedef here.
11945 * sbitmap.c: Include sbitmap.h.
11946 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
11947 hard-reg-set.h. Split everything related to regsets out from here...
11948 * regset.h: ...to here. New file.
11949 * df.h: Include regset.h and sbitmap.h.
11950 * tree-flow.h: Likewise.
11951 * cfgloop.h: Likewise.
11952 * except.h: Do not include sbitmap.h. Include hashtab.h.
11953 * cgraph.h: Include vec.h and function.h.
11954 * reload.h (struct insn_chain): Change types of live_throughout
11955 and dead_or_set from regset_head to bitmap_head.
11956 (compute_use_by_pseudos): Be defined also if regset.h is not included.
11957 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
11958 spilled_regs from regset_head to bitmap_head to avoid dependency
11959 in regset.h.
11960 * sel-sched-ir.h: Include regset.h.
11961 * reload.c: Include df.h before reload.h.
11962 * caller-save.c: Likewise.
11963 * reload1.c: Likewise.
11964 * ira.c: Likewise.
11965 (mark_elimination): Update type of r to bitmap, consistent with
11966 DF_LR_IN.
11967 * dominance.c: Include bitmap.h.
11968 * modulo-sched.c: Include df.h.
11969 * cfganal.c: Include bitmap.h and sbitmap.h.
11970 * cfgbuild.c: Include sbitmap.h.
11971 * lcm.c: Include sbitmap.h.
11972 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
11973 * domwalk.c: Include sbitmap.h, exclude ggc.h.
11974 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
11975 * cselib.c: Include bitmap.h.
11976 * tree-optimize.c: Include regset.h.
11977 * stmt.c: Include bitmap.h.
11978 * Makefile.in: Update dependencies.
11979
11980 2010-05-22 Jan Hubicka <jh@suse.cz>
11981
11982 * cgraph.h (struct varpool_node): Add same_comdat_group.
11983 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
11984 pointer.
11985 (output_varpool): Update call of lto_output_varpool_node.
11986 (input_varpool): Read same_comdat_group pointer.
11987 (input_varpool_1): Fixup same_comdat_group pointer.
11988 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
11989 group is needed, all are.
11990 * varpool.c (varpool_remove_node): Remove node from same comdat group
11991 linklist too.
11992 (varpool_analyze_pending_decls): Walk same comdat groups.
11993
11994 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
11995
11996 * rtl.h (union rtunion_def): Remove rt_bit member.
11997 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
11998 * print-rtl (print_rtx): Do not print the member.
11999 * gengtype.c (adjust_field_rtx_def): Do not handle it.
12000 * gengenrtl.c (type_from_format): Likewise.
12001 (accessor_from_format): Likewise.
12002
12003 2010-05-22 Joseph Myers <joseph@codesourcery.com>
12004
12005 * dbgcnt.c: Include toplev.h instead of errors.h.
12006 * ira-emit.c: Don't include errors.h.
12007 * ira.c: Include toplev.h instead of errors.h.
12008 * lto-compress.c: Include toplev.h instead of errors.h.
12009 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
12010 ira.o, dbgcnt.o): Update dependencies.
12011
12012 2010-05-22 Richard Guenther <rguenther@suse.de>
12013
12014 * gimple.c (gimple_types_compatible_p): Check type qualifications
12015 before merging pointer to complete and pointer to incomplete type.
12016 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
12017 we use our own resolution algorithm. The gold linker plugin
12018 doesn't do the job we want it to do here.
12019
12020 2010-05-22 Anatoly Sokolov <aesok@post.ru>
12021
12022 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12023 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12024 (sparc_mode_dependent_address_p): New function.
12025
12026 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
12027
12028 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
12029
12030 * timevar.c: Do not include any core headers.
12031 (timevar_print): De-i18n-ize.
12032 (print_time): Likewise.
12033 * timevar.h (timevar_push, timevar_pop): Make inline functions.
12034
12035 2010-05-21 Joseph Myers <joseph@codesourcery.com>
12036
12037 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
12038 langhooks-def.h.
12039 (diagnostic_initialize): Initialize x_data not last_function.
12040 (diagnostic_report_current_function): Move to tree-diagnostic.c.
12041 (default_diagnostic_starter): Call
12042 diagnostic_report_current_module not
12043 diagnostic_report_current_function.
12044 (diagnostic_report_diagnostic): Initialize x_data not
12045 abstract_origin.
12046 (verbatim): Likewise.
12047 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
12048 x_data.
12049 (struct diagnostic_context): Change last_function to x_data.
12050 (diagnostic_auxiliary_data): Replace with
12051 diagnostic_context_auxiliary_data and
12052 diagnostic_info_auxiliary_data.
12053 (diagnostic_last_function_changed, diagnostic_set_last_function,
12054 diagnostic_report_current_function): Move to tree-diagnostic.h.
12055 (print_declaration, dump_generic_node, print_generic_stmt,
12056 print_generic_stmt_indented, print_generic_expr,
12057 print_generic_decl, debug_c_tree, dump_omp_clauses,
12058 print_call_name, debug_generic_expr, debug_generic_stmt,
12059 debug_tree_chain, default_tree_printer): Move to
12060 tree-pretty-print.h.
12061 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
12062 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
12063 gimple-pretty-print.h.
12064 * pretty-print.c: Don't include tree.h
12065 (pp_base_format): Don't handle %K here.
12066 (pp_base_tree_identifier): Move to tree-pretty-print.c.
12067 * pretty-print.h (text_info): Change abstract_origin to x_data.
12068 (pp_tree_identifier, pp_unsupported_tree,
12069 pp_base_tree_identifier): Move to tree-pretty-print.h.
12070 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
12071 tree-pretty-print.h: New files.
12072 * tree-pretty-print.c: Include tree-pretty-print.h.
12073 (percent_K_format): New. Moved from pretty-print.c.
12074 (pp_base_tree_identifier): Move from pretty-print.c.
12075 * c-objc-common.c: Include tree-pretty-print.h.
12076 (c_tree_printer): Handle %K here.
12077 * langhooks.c: Include tree-diagnostic.h.
12078 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
12079 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
12080 (default_tree_printer): Handle %K using percent_K_format.
12081 (general_init): Use default_tree_diagnostic_starter.
12082 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
12083 (free_lang_data): Use default_tree_diagnostic_starter.
12084 * c-pretty-print.c: Include tree-pretty-print.h.
12085 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12086 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12087 * dwarf2out.c: Include tree-pretty-print.h.
12088 * except.c: Include tree-pretty-print.h.
12089 * gimple-pretty-print.c: Include tree-pretty-print.h and
12090 gimple-pretty-print.h.
12091 * gimplify.c: Include tree-pretty-print.h.
12092 * graphite-poly.c: Include tree-pretty-print.h and
12093 gimple-pretty-print.h.
12094 * ipa-cp.c: Include tree-pretty-print.h.
12095 * ipa-inline.c: Include gimple-pretty-print.h.
12096 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12097 * ipa-pure-const.c: Include gimple-pretty-print.h.
12098 * ipa-struct-reorg.c: Include tree-pretty-print.h and
12099 gimple-pretty-print.h.
12100 * ipa-type-escape.c: Include tree-pretty-print.h.
12101 * print-rtl.c: Include tree-pretty-print.h.
12102 * print-tree.c: Include gimple-pretty-print.h.
12103 * sese.c: Include tree-pretty-print.h.
12104 * tree-affine.c: Include tree-pretty-print.h.
12105 * tree-browser.c: Include tree-pretty-print.h.
12106 * tree-call-cdce.c: Include gimple-pretty-print.h.
12107 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12108 * tree-chrec.c: Include tree-pretty-print.h.
12109 * tree-data-ref.c: Include tree-pretty-print.h and
12110 gimple-pretty-print.h.
12111 * tree-dfa.c: Include tree-pretty-print.h.
12112 * tree-if-conv.c: Include tree-pretty-print.h and
12113 gimple-pretty-print.h.
12114 * tree-inline.c: Include tree-pretty-print.h.
12115 * tree-into-ssa.c: Include tree-pretty-print.h and
12116 gimple-pretty-print.h.
12117 * tree-nrv.c: Include tree-pretty-print.h.
12118 * tree-object-size.c: Include tree-pretty-print.h and
12119 gimple-pretty-print.h.
12120 * tree-outof-ssa.c: Include tree-pretty-print.h and
12121 gimple-pretty-print.h.
12122 * tree-parloops.c: Include tree-pretty-print.h and
12123 gimple-pretty-print.h.
12124 * tree-predcom.c: Include tree-pretty-print.h and
12125 gimple-pretty-print.h.
12126 * tree-scalar-evolution.c: Include tree-pretty-print.h and
12127 gimple-pretty-print.h.
12128 * tree-sra.c: Include tree-pretty-print.h.
12129 * tree-ssa-address.c: Include tree-pretty-print.h.
12130 * tree-ssa-alias.c: Include tree-pretty-print.h.
12131 * tree-ssa-ccp.c: Include tree-pretty-print.h and
12132 gimple-pretty-print.h.
12133 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
12134 * tree-ssa-copy.c: Include tree-pretty-print.h and
12135 gimple-pretty-print.h.
12136 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
12137 * tree-ssa-dce.c: Include tree-pretty-print.h and
12138 gimple-pretty-print.h.
12139 * tree-ssa-dom.c: Include tree-pretty-print.h and
12140 gimple-pretty-print.h.
12141 * tree-ssa-dse.c: Include gimple-pretty-print.h.
12142 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
12143 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
12144 * tree-ssa-live.c: Include tree-pretty-print.h and
12145 gimple-pretty-print.h.
12146 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
12147 gimple-pretty-print.h.
12148 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
12149 gimple-pretty-print.h.
12150 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
12151 gimple-pretty-print.h.
12152 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
12153 gimple-pretty-print.h.
12154 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
12155 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
12156 * tree-ssa-operands.c: Include tree-pretty-print.h and
12157 gimple-pretty-print.h.
12158 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
12159 gimple-pretty-print.h.
12160 * tree-ssa-pre.c: Include tree-pretty-print.h and
12161 gimple-pretty-print.h.
12162 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
12163 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
12164 gimple-pretty-print.h.
12165 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
12166 gimple-pretty-print.h.
12167 * tree-ssa-sink.c: Include gimple-pretty-print.h.
12168 * tree-ssa-ter.c: Include tree-pretty-print.h and
12169 gimple-pretty-print.h.
12170 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
12171 * tree-ssa.c: Include tree-pretty-print.h and
12172 gimple-pretty-print.h.
12173 * tree-stdarg.c: Include gimple-pretty-print.h.
12174 * tree-switch-conversion.c: Include gimple-pretty-print.h.
12175 * tree-tailcall.c: Include tree-pretty-print.h and
12176 gimple-pretty-print.h.
12177 * tree-vect-data-refs.c: Include tree-pretty-print.h and
12178 gimple-pretty-print.h.
12179 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
12180 gimple-pretty-print.h.
12181 * tree-vect-loop.c: Include tree-pretty-print.h and
12182 gimple-pretty-print.h.
12183 * tree-vect-patterns.c: Include gimple-pretty-print.h.
12184 * tree-vect-slp.c: Include tree-pretty-print.h and
12185 gimple-pretty-print.h.
12186 * tree-vect-stmts.c: Include tree-pretty-print.h and
12187 gimple-pretty-print.h.
12188 * tree-vectorizer.c: Include tree-pretty-print.h.
12189 * tree-vrp.c: Include tree-pretty-print.h and
12190 gimple-pretty-print.h.
12191 * value-prof.c: Include tree-pretty-print.h and
12192 gimple-pretty-print.h.
12193 * var-tracking.c: Include tree-pretty-print.h.
12194 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
12195 (tree-diagnostic.o): New dependencies.
12196 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
12197 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
12198 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
12199 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
12200 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
12201 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
12202 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
12203 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
12204 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
12205 tree-ssa-address.o, tree-ssa-loop-niter.o,
12206 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
12207 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
12208 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
12209 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
12210 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
12211 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
12212 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
12213 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
12214 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
12215 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
12216 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
12217 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
12218 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
12219 tree-switch-conversion.o, var-tracking.o, value-prof.o,
12220 cfgexpand.o, pretty-print.o): Update dependencies.
12221
12222 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
12223
12224 * tree-ssa-structalias.c: Remove tm_p.h from include.
12225
12226 2010-05-21 Jeff Law <law@redhat.com>
12227
12228 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
12229
12230 2010-05-21 Jason Merrill <jason@redhat.com>
12231
12232 * tree-eh.c (cleanup_is_dead_in): New.
12233 (lower_try_finally): Don't generate a dead cleanup region.
12234 (lower_cleanup): Likewise.
12235
12236 2010-05-21 Jakub Jelinek <jakub@redhat.com>
12237
12238 PR debug/44223
12239 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
12240 unchain each use from the cyclic next_regno_use chain first.
12241
12242 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
12243
12244 * real: Do not include gmp.h, mpfr.h, and mpc.h.
12245 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
12246 (real_value_negate, real_value_abs): New prototypes.
12247 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
12248 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
12249 new include file for interface between MPFR and REAL_VALUE_TYPE.
12250 * real.c: Include realmpfr.h.
12251 (real_arithmetic2): Remove legacy function.
12252 (real_value_negate): New.
12253 (real_value_abs): New.
12254 (mfpr_from_real, real_from_mpfr): Move from here...
12255 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
12256 * builtins.c: Include realmpfr.h.
12257 * fold-const.c: Include realmpfr.h.
12258 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
12259 (fold_negate_const): Likewise.
12260 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
12261 * toplev.c: Include realmpfr.h.
12262 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
12263 and real_value_negate.
12264 * fixed-value.c (check_real_for_fixed_mode): Likewise.
12265 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
12266 (vfp3_const_double_index): Likewise.
12267 (arm_print_operand): Likewise.
12268 * Makefile.in: Update dependencies.
12269
12270 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12271
12272 * config/s390/s390.c (override_options): Increase the default
12273 of max-completely-peel-times.
12274
12275 2010-05-21 Julian Brown <julian@codesourcery.com>
12276 Mark Mitchell <mark@codesourcery.com>
12277
12278 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
12279 sibling calls for Thumb-1.
12280 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
12281 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
12282 Thumb-2.
12283 (*call_insn, *call_value_insn): Don't use for Thumb-2.
12284 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
12285 for Thumb-2.
12286 (return): New expander.
12287 (*arm_return): New name for ARM return insn.
12288 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
12289
12290 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
12291
12292 * config.gcc (sparc64-*-rtems*): New target.
12293
12294 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
12295
12296 * tree.c (build_function_decl_skip_args): Fix grammar.
12297 (build_function_type_list_1): Fix typos, adjust formatting.
12298
12299 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
12300
12301 * tree.h: Include real.h and fixed-value.h as basic datatypes.
12302 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
12303 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
12304 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
12305 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
12306 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
12307 tree-pretty-print.c, tree-loop-distribution.c,
12308 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
12309 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
12310 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
12311 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
12312 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
12313 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
12314 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
12315 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
12316 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
12317 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
12318 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
12319 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
12320 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
12321 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
12322 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
12323 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
12324 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
12325 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
12326 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
12327 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
12328 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
12329 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
12330 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
12331 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
12332 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
12333 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
12334 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
12335 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
12336 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
12337 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
12338 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
12339 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
12340 config/score/score7.c, config/score/score.c, config/arm/arm.c,
12341 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
12342 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
12343 config/bfin/bfin.c: Clean up redundant includes.
12344 * Makefile.in: Update accordingly.
12345
12346 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
12347
12348 PR middle-end/44204
12349 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
12350 statement has no arguments.
12351
12352 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
12353
12354 PR/44139
12355 * varasm.c (emutls_decl): Merge attributes to new decl.
12356
12357 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
12358
12359 PR middle-end/44101
12360 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
12361 around the uniquized constructor if its type requires a conversion.
12362
12363 2010-05-21 Jakub Jelinek <jakub@redhat.com>
12364
12365 PR debug/44205
12366 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
12367 at -O0 goto_locus of any of the incoming edges differs from
12368 goto_locus of outgoing edge, or gimple_location of any of the
12369 labels differs.
12370
12371 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
12372
12373 * ira.c (ira_non_ordered_class_hard_regs): Define.
12374 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
12375 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
12376 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
12377 cost of unaligned hard regs when allocating multi-reg pseudos.
12378
12379 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
12380
12381 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
12382 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
12383 for TARGET_NO_FLOAT.
12384 * config/mips/mips.c (mips_file_start): Expand conditional expression
12385 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
12386 (mips_override_options): Move -mno-float override -msoft-float and
12387 -mhard-float.
12388 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
12389 Condition(TARGET_SUPPORTS_NO_FLOAT).
12390 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
12391 __mips_no_float here.
12392 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
12393 (TARGET_SUPPORTS_NO_FLOAT): Define.
12394 * config/mips/sdemtk.opt: Delete.
12395
12396 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
12397
12398 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
12399
12400 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
12401
12402 PR target/43733
12403 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
12404 * configure: Regenerate.
12405 * config.in: Regenerate.
12406 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
12407 instead of sahf only for 64bit targets.
12408
12409 2010-05-20 Jakub Jelinek <jakub@redhat.com>
12410
12411 PR debug/44178
12412 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
12413 setup_ref_regs for DEBUG_INSNs.
12414
12415 2010-05-20 Jan Hubicka <jh@suse.cz>
12416
12417 PR middle-end/44197
12418 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
12419
12420 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
12421
12422 PR bootstrap/43870
12423 * df-scan.c (df_ref_compare): Stabilize sort.
12424
12425 2010-05-20 Jakub Jelinek <jakub@redhat.com>
12426
12427 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
12428 argument. Don't use DW_OP_piece if offset is non-zero,
12429 put offset into second DW_OP_bit_piece argument.
12430 (dw_sra_loc_expr): Adjust callers. For memory expressions
12431 compute offset.
12432
12433 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
12434
12435 PR target/44202
12436 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
12437 settings for 16-bit-constant "addo" alternative.
12438
12439 2010-05-19 James E. Wilson <wilson@codesourcery.com>
12440
12441 * config/mips/mips-dsp.md (add<DSPV:mode>3,
12442 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
12443
12444 PR target/43764
12445 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
12446 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
12447 Use it.
12448
12449 2010-05-19 Joseph Myers <joseph@codesourcery.com>
12450
12451 * diagnostic.c (FLOAT, FFS): Don't undefine.
12452 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
12453 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
12454 include ordering.
12455
12456 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
12457
12458 * combine.c (propagate_for_debug): Call make_compound_operation
12459 on the source value.
12460 (try_combine): When implementing a split chosen by find_split_point,
12461 either copy i2src or set it to null. Assert that i2src is not null
12462 before substituting into CALL_INSN_FUNCTION_USAGE.
12463
12464 2010-05-19 Anatoly Sokolov <aesok@post.ru>
12465
12466 * double-int.h (double_int_ior): New function.
12467 * tree.h (build_int_cst_wide_type): Remove.
12468 * tree.c (build_int_cst_wide_type): Remove.
12469 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
12470 of build_int_cst_wide_type.
12471 * stor-layout.c (set_sizetype): (Ditto.).
12472 * dojump.c (do_jump): Use build_int_cstu instead of
12473 build_int_cst_wide_type.
12474
12475 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
12476
12477 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
12478 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
12479 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
12480 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
12481 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
12482 propagate the 'data' argument to copy_tree_r.
12483 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
12484 Propagate 'data' argument to walk_tree.
12485 (copy_if_shared): New function.
12486 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
12487 (unmark_visited): New function.
12488 (unshare_body): Call copy_if_shared instead of doing it manually.
12489 (unvisit_body): Call unmark_visited instead of doing it manually.
12490
12491 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
12492
12493 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
12494 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
12495 * hooks.c: Likewise.
12496 * target-def.h (TARGET_FOLD_BUILTIN): Define to
12497 hook_tree_tree_int_treep_bool_null.
12498 * target.h (struct gcc_target): Update signature of fold_builtin
12499 field.
12500 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
12501 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
12502 instead of the call expression.
12503 (fold_builtin_call_array): Pass n and argarray directly.
12504 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
12505 consing a list.
12506 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
12507 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
12508 `i' and use it in place of `arity'.
12509 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
12510 Dereference `args' directly.
12511 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
12512
12513 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12514
12515 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12516 3dnow, sse3, sse2.
12517 (Directives): Document optional dg-require-effective-target
12518 selector.
12519
12520 2010-05-19 Richard Guenther <rguenther@suse.de>
12521
12522 PR lto/44196
12523 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
12524
12525 2010-05-19 Richard Guenther <rguenther@suse.de>
12526
12527 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
12528 * common.opt (fwhopr=): New.
12529 * opts.c (common_handle_option): Handle OPT_fwhopr.
12530 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
12531 * collect2.c (main): Match -fwhopr*.
12532 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
12533 Execute ltrans stage in parallel when jobs is bigger than 1.
12534
12535 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12536
12537 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12538 pentiumpro on Solaris 8/x86 with Sun as.
12539 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
12540 hidden alias bug.
12541 (gcc_cv_as_ix86_quad): Check for .quad directive.
12542 * configure: Regenerate.
12543 * config.in: Regenerate.
12544 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
12545
12546 2010-05-19 Martin Jambor <mjambor@suse.cz>
12547
12548 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
12549 also for indirect edges. Actual printing moved...
12550 (ipa_print_node_jump_functions_for_edge): ...here.
12551 (ipa_compute_jump_functions): Renamed to
12552 ipa_compute_jump_functions_for_edge and made static.
12553 (ipa_compute_jump_functions): New function.
12554 (make_edge_direct_to_target): Check if the number of arguments on
12555 the newly direct edge is the same as the number of parametrs of
12556 the callee.
12557 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
12558 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
12559 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12560 analysis functions unconditionally, call the new
12561 ipa_analyze_params_uses on the node instead of every edge.
12562
12563 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
12564
12565 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
12566 to tree.
12567 (dump_mem_ref): Adopt debug code to handle a tree as step. This
12568 also checks for a constant int vs. non-constant but
12569 loop-invariant steps.
12570 (find_or_create_group): Change the sort algorithm to only consider
12571 steps that are constant ints.
12572 (idx_analyze_ref): Adopt code to handle a tree instead of a
12573 HOST_WIDE_INT for step.
12574 (gather_memory_references_ref): Handle tree instead of int and be
12575 prepared to see a NULL_TREE.
12576 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
12577 prefetches if the step cannot be calculated at compile time.
12578 (issue_prefetch_ref): Issue prefetches for non-constant but
12579 loop-invariant steps.
12580
12581 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
12582
12583 Revert:
12584 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
12585
12586 * tree.h (build_call_list): Remove.
12587 * tree.c (build_call_list): Remove.
12588
12589 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
12590
12591 * tree.h (build_call_list): Remove.
12592 * tree.c (build_call_list): Remove.
12593
12594 2010-05-18 Jan Hubicka <jh@suse.cz>
12595
12596 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
12597
12598 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
12599
12600 PR rtl-optimization/43332
12601 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
12602
12603 2010-05-18 Anatoly Sokolov <aesok@post.ru>
12604
12605 * tree.h (build_int_cstu): Implement as static inline.
12606 * tree.c (build_int_cstu): Remove function.
12607 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
12608 sign extended.
12609
12610 2010-05-18 Richard Guenther <rguenther@suse.de>
12611
12612 PR lto/44143
12613 * lto-wrapper.c (verbose): New variable. Initialize from -v.
12614 (debug): Initialize from -save-temps.
12615 (collect_execute): Print command-line when verbose.
12616 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
12617 for ltrans invocation. Produce -dumpbase flag again.
12618 (process_args): Remove.
12619 (main): Simplify.
12620 * collect2.c (maybe_run_lto_and_relink): Only pass object
12621 files to lto-wrapper.
12622 * gcc.c (LINK_COMMAND_SPEC): Likewise.
12623
12624 2010-05-18 Jan Hubicka <jh@suse.cz>
12625
12626 * opts.c (decode_options): Do not disable whopr at ipa_cp.
12627 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
12628
12629 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
12630
12631 PR lto/44184
12632 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
12633 in a GIMPLE_ASM.
12634 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
12635 in a GIMPLE_ASM.
12636
12637 2010-05-18 Jakub Jelinek <jakub@redhat.com>
12638
12639 PR debug/41371
12640 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
12641 rtx_equal_p inline.
12642
12643 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
12644
12645 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
12646 lto-macho as lto_binary_reader.
12647
12648 * darwin.c (darwin_asm_named_section): Do not add assembler comment
12649 after .section directive; just print it before the directive instead.
12650
12651 2010-05-17 Jan Hubicka <jh@suse.cz>
12652
12653 * cgraph.c (cgraph_create_virtual_clone): Only check
12654 versionable_function_p when not in wpa and checking is enabled.
12655 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
12656 there are no more functions to materialize.
12657
12658 2010-05-17 Jan Hubicka <jh@suse.cz>
12659
12660 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
12661 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
12662 New functions.
12663 (output_cgraph): Call output_cgraph_opt_summary.
12664 (input_cgrpah): Call input_cgraph_opt_summary.
12665 (output_cgraph_opt_summary_p, output_node_opt_summary,
12666 input_node_opt_summary, input_cgraph_opt_section): New functions.
12667 * lto-section-in.c (lto_section_name): Add cgraphopt.
12668 * tree-inline.c (tree_function_versioning): Handle parm_num.
12669 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
12670 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
12671
12672 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
12673
12674 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
12675 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
12676 the insn to prefetch ratio heuristic to loops with known trip count.
12677
12678 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
12679
12680 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
12681 (schedule_prefetches): Do not generate a prefetch if the unroll factor
12682 is far from what is required by the prefetch.
12683
12684 2010-05-17 Jan Hubicka <jh@suse.cz>
12685
12686 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
12687 (ipcp_estimate_growth): Likewise.
12688 (ipcp_const_param_count): Likewise.
12689 (ipcp_insert_stage): Likewise.
12690 * ipa-prop.c (visit_load_for_mod_analysis): New function.
12691 (visit_store_addr_for_mod_analysis): Set used flag.
12692 (ipa_detect_param_modifications): Set used flag for SSE params;
12693 update use of walk_stmt_load_store_addr_ops.
12694 (ipa_print_node_params): Print used flag.
12695 (ipa_write_node_info): Stream used flag.
12696 (ipa_read_node_info): Likewise.
12697 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
12698 (ipa_is_param_used): New function.
12699 (lto_ipa_fixup_call_notes): Remove unused declaration.
12700
12701 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12702
12703 PR target/44074
12704 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
12705 * configure: Regenerate.
12706 * config.in: Regenerate.
12707 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
12708 !HAVE_AS_IX86_REP_LOCK_PREFIX.
12709 Don't emit whitespace.
12710 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
12711 (*rep_movsi): Likewise.
12712 (*rep_movsi_rex64): Likewise.
12713 (*rep_movqi): Likewise.
12714 (*rep_movqi_rex64): Likewise.
12715 (*rep_stosdi_rex64): Likewise.
12716 (*rep_stossi): Likewise.
12717 (*rep_stossi_rex64): Likewise.
12718 (*rep_stosqi): Likewise.
12719 (*rep_stosqi_rex64): Likewise.
12720 (*cmpstrnqi_nz_1): Use {%;} after repz.
12721 (*cmpstrnqi_nz_rex_1): Likewise.
12722 (*cmpstrnqi_1): Likewise.
12723 (*cmpstrnqi_rex_1): Likewise.
12724 (*strlenqi_1): Use {%;} after repnz.
12725 (*strlenqi_rex_1): Likewise.
12726 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
12727 (*sync_compare_and_swap<mode>): Likewise.
12728 (sync_double_compare_and_swap<mode>): Likewise.
12729 (*sync_double_compare_and_swapdi_pic): Likewise.
12730 (sync_old_add<mode>): Likewise.
12731 (sync_add<mode>): Likewise.
12732 (sync_sub<mode>): Likewise.
12733 (sync_<code><mode>): Likewise.
12734
12735 2010-05-17 Martin Jambor <mjambor@suse.cz>
12736
12737 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
12738 otr_token and polymorphic.
12739 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
12740 (cgraph_clone_edge): Copy the above fields.
12741 * tree.c (get_binfo_at_offset): New function.
12742 * tree.h (get_binfo_at_offset): Declare.
12743 * ipa-prop.h (enum jump_func_type): Added known_type jump function
12744 type, reordered items, updated comments.
12745 (union jump_func_value): Added base_type field, reordered fields.
12746 (enum ipa_lattice_type): Moved down in the file.
12747 (struct ipa_param_descriptor): New field polymorphic.
12748 (ipa_is_param_polymorphic): New function.
12749 * ipa-prop.c: Include gimple.h and gimple-fold.h.
12750 (ipa_print_node_jump_functions): Print known type jump functions.
12751 (compute_complex_pass_through): Renamed to...
12752 (compute_complex_assign_jump_func): this.
12753 (compute_complex_ancestor_jump_func): New function.
12754 (compute_known_type_jump_func): Likewise.
12755 (compute_scalar_jump_functions): Create known type and complex ancestor
12756 jump functions.
12757 (ipa_note_param_call): New parameter polymorphic, set the corresponding
12758 flag in the call note accordingly.
12759 (ipa_analyze_call_uses): Renamed to...
12760 (ipa_analyze_indirect_call_uses): this. New parameter target, define
12761 variable var only in the block where it is used.
12762 (ipa_analyze_virtual_call_uses): New function.
12763 (ipa_analyze_call_uses): Likewise.
12764 (combine_known_type_and_ancestor_jfs): Likewise.
12765 (update_jump_functions_after_inlining): Implemented handling of a
12766 number of new jump function types combination.
12767 (print_edge_addition_message): Removed.
12768 (make_edge_direct_to_target): New function.
12769 (try_make_edge_direct_simple_call): Likewise.
12770 (try_make_edge_direct_virtual_call): Likewise.
12771 (update_call_notes_after_inlining): Renamed to...
12772 (update_indirect_edges_after_inlining): this. Moved edge creation for
12773 indirect calls to try_make_edge_direct_simple_call, also calls
12774 try_make_edge_direct_virtual_call for virtual calls.
12775 (ipa_print_node_params): Changed the header message.
12776 (ipa_write_jump_function): Stream also known type jump functions.
12777 (ipa_read_jump_function): Likewise.
12778 (ipa_write_indirect_edge_info): Stream new fields in
12779 cgraph_indirect_call_info.
12780 (ipa_read_indirect_edge_info): Likewise.
12781 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
12782 GIMPLE_FOLD_H.
12783
12784 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12785
12786 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
12787
12788 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
12789
12790 * tree.h (CALL_EXPR_ARGS): Delete.
12791 (call_expr_arglist): Delete.
12792 * tree.c (call_expr_arglist): Delete.
12793 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
12794 targetm.fold_builtin.
12795 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
12796 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
12797 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
12798 arglist parameter. Use CALL_EXPR_ARG.
12799 (picochip_expand_builtin_3op): Likewise.
12800 (picochip_expand_builtin_2opvoid): Likewise.
12801 (picochip_expand_array_get): Likewise.
12802 (picochip_expand_array_put): Likewise.
12803 (picochip_expand_array_testport): Likewise.
12804 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
12805 rather than arglist.
12806 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
12807 CALL_EXPR_ARGS.
12808 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
12809 than TREE_VALUE and TREE_CHAIN.
12810 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
12811 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
12812 the arglist.
12813
12814 2010-05-17 Jakub Jelinek <jakub@redhat.com>
12815
12816 PR bootstrap/42347
12817 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
12818 to have no fallthru edge.
12819
12820 PR middle-end/44102
12821 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
12822 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
12823 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
12824 add BARRIER after previous bb if needed.
12825
12826 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
12827
12828 * tree.c (build_function_type_list_1): Remove bogus assert condition.
12829
12830 2010-05-17 Alan Modra <amodra@gmail.com>
12831
12832 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
12833 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
12834 with copy_reg rtx param.
12835 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
12836 Correct cases where code for ABI_V4 did not initialise the reg
12837 used to access frame. Also leave frame_reg_rtx as sp for large
12838 frames that save no regs.
12839
12840 2010-05-17 Martin Jambor <mjambor@suse.cz>
12841
12842 PR middle-end/44133
12843 * tree-sra.c (create_access_replacement): New parameter rename, mark
12844 the replaement for renaming only when it is true.
12845 (get_access_replacement): Pass true in the rename parameter of
12846 create_access_replacement.
12847 (get_unrenamed_access_replacement): New function.
12848 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
12849 replacement declaration from it.
12850
12851 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
12852
12853 * function.c (try_fit_stack_local, add_frame_space): New static
12854 functions.
12855 (assign_stack_local_1): Use them. Look for opportunities to use
12856 space previously wasted on alignment.
12857 * function.h (struct frame_space): New.
12858 (struct rtl_data): Add FRAME_SPACE_LIST member.
12859 * reload1.c (something_was_spilled): New static variable.
12860 (alter_reg): Set it.
12861 (reload): Test it in addition to testing if the frame size changed.
12862
12863 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
12864
12865 * config/s390/s390.c: Define sane prefetch settings and activate
12866 flag_prefetch_loop_arrays on -O3.
12867 * config/s390/s390.h: Declare that read can use write prefetch.
12868
12869 2010-05-17 Jakub Jelinek <jakub@redhat.com>
12870
12871 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
12872 build.
12873
12874 2010-05-16 Jan Hubicka <jh@suse.cz>
12875
12876 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
12877 function body; do not check stdarg field of struct function.
12878
12879 2010-05-16 Jan Hubicka <jh@suse.cz>
12880
12881 * cgraph.c (dump_cgraph_node): Dump versionable flag.
12882 * cgraph.h (cgraph_local_info): Add versionable flag.
12883 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
12884 (ipcp_versionable_function_p): Use it.
12885 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12886 versionable flag.
12887
12888 2010-05-16 Jan Hubicka <jh@suse.cz>
12889
12890 * cgraph.c (cgraph_clone_node): Take decl argument and insert
12891 clone into hash when it is different from orig.
12892 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
12893 * cgraph.h (cgraph_clone_node): Update prototype.
12894 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
12895 (lto_cgraph_encoder_delete): Delete body map.
12896 (lto_cgraph_encoder_size): Move to header.
12897 (lto_cgraph_encoder_encode_body_p,
12898 lto_set_cgraph_encoder_encode_body): New.
12899 (lto_output_node): Do not take written_decls argument; output clone_of
12900 pointer.
12901 (add_node_to): Add include_body_argument; call
12902 lto_set_cgraph_encoder_encode_body on master of the clone.
12903 (add_references): Update use of add_node_to.
12904 (compute_ltrans_boundary): Likewise.
12905 (output_cgraph): Do not create written_decls bitmap.
12906 (input_node): Take nodes argument; stream in clone_of correctly.
12907 (input_cgraph_1): Update use of input_node.
12908 * lto-streamer-out.c (lto_output): Use encoder info to decide
12909 what bodies to output.
12910 * ipa-inline.c (cgraph_clone_inlined_nodes,
12911 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
12912 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
12913 (lto_cgraph_encoder_size): Define here.
12914 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
12915 Declare.
12916
12917 2010-05-16 Richard Guenther <rguenther@suse.de>
12918
12919 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
12920 -fipa-type-escape.
12921 * ipa-type-escape.c (gate_type_escape_vars): Run when
12922 -fipa-struct-reorg runs.
12923 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
12924 * common.opt (fipa-type-escape): Remove.
12925
12926 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
12927
12928 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
12929 (decode_options): Likewise.
12930 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
12931
12932 2010-05-16 Jan Hubicka <jh@suse.cz>
12933
12934 * ipa.c (function_and_variable_visibility): Also bring local all
12935 aliases.
12936
12937 2010-05-16 Richard Guenther <rguenther@suse.de>
12938
12939 * alias.c (nonoverlapping_memrefs_p): Remove use of
12940 IPA type-escape information.
12941
12942 2010-05-16 Joseph Myers <joseph@codesourcery.com>
12943
12944 * c-common.c (c_common_reswords): Add _Static_assert for C.
12945 * c-parser.c (c_token_starts_declaration,
12946 c_parser_next_token_starts_declaration,
12947 c_parser_static_assert_declaration_no_semi,
12948 c_parser_static_assert_declaration): New.
12949 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
12950 Handle static assertions if static_assert_ok.
12951 (c_parser_external_declaration, c_parser_declaration_or_fndef,
12952 c_parser_compound_statement_nostart, c_parser_label,
12953 c_parser_for_statement, c_parser_objc_methodprotolist,
12954 c_parser_omp_for_loop): All callers of
12955 c_parser_declaration_or_fndef changed.
12956 (c_parser_struct_declaration): Handle static assertions.
12957 (c_parser_compound_statement_nostart): Use
12958 c_parser_next_token_starts_declaration and
12959 c_token_starts_declaration to detect start of declarations.
12960 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
12961 Likewise.
12962
12963 2010-05-16 Anatoly Sokolov <aesok@post.ru>
12964
12965 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12966 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12967 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12968 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12969 (mmix_function_outgoing_value): Rename to...
12970 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
12971 (mmix_function_value_regno_p): Make static.
12972 (mmix_libcall_value): New function.
12973 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
12974 mmix_function_value_regno_p): Remove declaration.
12975
12976 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
12977
12978 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
12979 BUILT_IN_ALLOCA if stack checking is enabled.
12980
12981 2010-05-16 Richard Guenther <rguenther@suse.de>
12982
12983 * var-tracking.c (vars_copy_1): Inline ...
12984 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
12985 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
12986 (variable_merge_over_cur): Adjust. Merge asserts.
12987 (variable_merge_over_src): Likewise.
12988 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
12989 (variable_post_merge_new_vals): Merge asserts.
12990 (variable_post_merge_perm_vals): Likewise.
12991 (find_mem_expr_in_1pdv): Likewise.
12992 (dataflow_set_different_value): Remove.
12993 (onepart_variable_different_p): Merge asserts.
12994 (variable_different_p): Likewise.
12995 (dataflow_set_different_1): Inline ...
12996 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
12997 (emit_notes_for_differences_1): Merge asserts.
12998
12999 2010-05-16 Richard Guenther <rguenther@suse.de>
13000
13001 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
13002 * optabs.c (libfunc_decl_hash): Likewise.
13003 * varasm.c (emutls_decl): Likewise.
13004
13005 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
13006
13007 * c-decl.c: Don't include gimple.h.
13008 (merge_decls): Do not copy gimple_body.
13009
13010 2010-05-15 Jason Merrill <jason@redhat.com>
13011
13012 * c.opt: Add -fnothrow-opt.
13013
13014 2010-05-15 Jan Hubicka <jh@suse.cz>
13015
13016 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
13017 analyzed.
13018 * passes.c (ipa_write_summaries): Write all analyzed nodes.
13019
13020 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
13021
13022 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
13023 * Makefile.in: Add it.
13024 Fix all other Makefile dependencies for changes below.
13025 * tree.h: Include it instead of defining VEC primitives here.
13026 * gimple.h: Likewise.
13027 * rtl.h: Likewise.
13028 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
13029 * except.h: Include vecir.h, break dependence on tree.h.
13030
13031 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
13032 Move from here...
13033 * tree-iterator.c: ...to here.
13034 * tree-iterator.h: Fix file introduction comment. Add extern markers.
13035
13036 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
13037 tm_p.h.
13038 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
13039 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
13040 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
13041 tree-mudflap.h, and target.h.
13042 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
13043 predict.h, tree-inline.h, gimple.h, and langhooks.h.
13044 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
13045 Add FIXME for why gimple.h is still included (should be unnecessary
13046 since GCC 4.5 gimplification unit-at-a-time).
13047 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
13048 * c-pragma.c: Add FIXME for why function.h needs to be included just
13049 for cfun, at front-end level.
13050 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
13051 Do not include ggc.h, but include vecprim.h for VEC(char).
13052 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
13053 Explain why target.h is included.
13054 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
13055 Explain why gimple.h is included.
13056 * c-ppoutput.c: Do not include tm.h.
13057 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
13058 * c-parses.c: Explain why rtl.h is included, and that this (and only
13059 this) is also why tm.h must be included.
13060 Do not include except.h.
13061 * c-lang.c: Do not include ggc.h.
13062
13063 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
13064
13065 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
13066
13067 2010-05-15 Joseph Myers <joseph@codesourcery.com>
13068
13069 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
13070 unions by default if those structs and unions have no tags. Do
13071 not condition anonymous struct and unions handling on flag_iso.
13072 Allow anonymous structs and unions for C1X.
13073 (finish_struct): Do not diagnose lack of named fields when
13074 anonymous structs and unions present for C1X. Accept flexible
13075 array members in structure with anonymous structs or unions but no
13076 directly named fields.
13077 * doc/extend.texi (Unnamed Fields): Update.
13078
13079 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
13080
13081 * gimple.h (compare_field_offset): Rename into...
13082 (gimple_compare_field_offset): ...this.
13083 * gimple.c (compare_field_offset): Rename into...
13084 (gimple_compare_field_offset): ...this. Compare the full access if
13085 the offset is self-referential.
13086 (gimple_types_compatible_p): Adjust for above renaming.
13087 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
13088 DECL_NONADDRESSABLE_P flag of fields before merging them.
13089
13090 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
13091
13092 * tree.h (ctor_to_list): Delete.
13093 * tree.c (ctor_to_list): Delete.
13094
13095 2010-05-15 Jan Hubicka <jh@suse.cz>
13096
13097 * ipa-reference.c: Include toplev.h
13098 (is_proper_for_analysis): Only add to all_module_statics
13099 if it is allocated.
13100 (write_node_summary_p, stream_out_bitmap,
13101 ipa_reference_write_optimization_summary,
13102 ipa_reference_read_optimization_summary): New.
13103 (struct ipa_opt_pass_d pass_ipa_reference): Add
13104 optimization summary streaming.
13105 * lto-cgraph.c (referenced_from_this_partition_p,
13106 reachable_from_this_partition_p): New functions.
13107 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13108 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
13109 * opts.c (decode_options): Enable ipa_reference.
13110 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
13111 * lto-streamer.h (referenced_from_this_partition_p,
13112 reachable_from_this_partition_p): Declare.
13113
13114 2010-05-15 Richard Guenther <rguenther@suse.de>
13115
13116 PR tree-optimization/44038
13117 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
13118 taking the address of a V_C_E of a constant.
13119
13120 2010-05-14 Jan Hubicka <jh@suse.cz>
13121
13122 * tree.h (memory_identifier_string): Remove.
13123 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
13124 (ipa_reference_global_vars_info_d): Remove statics_not_read and
13125 statics_not_written.
13126 (ipa_reference_optimization_summary_d): New structure.
13127 (ipa_reference_optimization_summary_t): New type and vector.
13128 (ipa_reference_vars_info_d): Embedd structures instead of using
13129 pointers.
13130 (reference_vars_to_consider): Remove out of GGC space.
13131 (module_statics_escape): Remove.
13132 (global_info_obstack): Rename to ...
13133 (optimization_summary_obstack): ... this one.
13134 (initialization_status_t): Remove.
13135 (memory_identifier_string): Remove.
13136 (get_reference_vars_info): Fix indenting.
13137 (set_reference_vars_info): Likewise.
13138 (get_reference_optimization_summary): New.
13139 (set_reference_optimization_summary): New.
13140 (get_global_reference_vars_info): Remove.
13141 (ipa_reference_get_read_global): Remove.
13142 (ipa_reference_get_written_global): Remove.
13143 (ipa_reference_get_not_read_global): Update.
13144 (ipa_reference_get_not_written_global): Update.
13145 (is_proper_for_analysis): Outlaw addressable.
13146 (propagate_bits): Update for new datastructures.
13147 (analyze_variable): Remove.
13148 (init_function_info): Update for new datastructures.
13149 (clean_function_local_data): Remove.
13150 (clean_function): Remove.
13151 (copy_global_bitmap): Use optimizations_summary_obstack.
13152 (duplicate_node_data): Duplicate optimization summary only.
13153 (remove_node_data): Remove optimization summary only.
13154 (generate_summary): Do not analyze variables; do not compute
13155 module_statics_escape; do not prune solutions by it.
13156 (read_write_all_from_decl): Fix typos in comments.
13157 (propagate): Doscover readonly and nonaddressable first;
13158 update for new datastructures; share global bitmaps.
13159 * ipa-reference.h (ipa_reference_get_read_global,
13160 ipa_reference_get_written_global): Remove.
13161 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
13162 * Makefile.in: Remove ipa-refereference from GT files.
13163
13164 2010-05-14 Jakub Jelinek <jakub@redhat.com>
13165
13166 PR debug/44112
13167 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
13168 for all SYMBOL_REF_DECLs.
13169
13170 2010-05-14 Jan Hubicka <jh@suse.cz>
13171
13172 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
13173 (varpool_all_refs_explicit_p): New inline function.
13174 * ipa-reference.c: Update comment.
13175 (module_statics_written): Remove.
13176 (get_static_decl): Remove.
13177 (ipa_init): Do not initialize module_statics_written.
13178 (analyze_function): Likewise.
13179 (generate_summary): Likewise; do not compute module_statics_readonly
13180 and do not update variable flags.
13181 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
13182 * ipa.c: Inlucde flags.h
13183 (cgraph_local_node_p): New.
13184 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
13185 promote functions to local.
13186 (ipa_discover_readonly_nonaddressable_vars): New function.
13187 (function_and_variable_visibility): Use cgraph_local_node_p.
13188 * varpool.c (varpool_finalize_decl): Set force_output for
13189 DECL_PRESERVE_P vars.
13190
13191 2010-05-14 Jan Hubicka <jh@suse.cz>
13192
13193 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
13194
13195 2010-05-14 Richard Guenther <rguenther@suse.de>
13196
13197 PR tree-optimization/44119
13198 * tree-ssa-pre.c (eliminate): Properly mark replacement of
13199 a PHI node necessary.
13200
13201 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
13202
13203 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
13204
13205 2010-05-14 Jason Merrill <jason@redhat.com>
13206
13207 PR c++/44127
13208 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
13209 (gimple_call_set_nothrow): New.
13210 * gimple.c (gimple_build_call_from_tree): Call it.
13211 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
13212
13213 PR c++/44127
13214 * gimplify.c (gimplify_seq_add_stmt): No longer static.
13215 * gimple.h: Declare it.
13216 * gimple.c (gimple_build_eh_filter): No ops.
13217
13218 2010-05-14 Jan Hubicka <jh@suse.cz>
13219
13220 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
13221 nodes already in queue.
13222 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
13223 re-enqueueing node.
13224
13225 2010-05-14 Jakub Jelinek <jakub@redhat.com>
13226
13227 PR debug/44136
13228 * cfgexpand.c (expand_debug_expr): If non-memory op0
13229 has BLKmode, return NULL.
13230
13231 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
13232
13233 * config.gcc: Add support for --with-cpu option for bdver1.
13234 * config/i386/i386.h (TARGET_BDVER1): New macro.
13235 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
13236 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
13237 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
13238 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
13239 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
13240 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
13241 (processor_type): Add PROCESSOR_BDVER1.
13242 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
13243 processor_type in config/i386/i386.h.
13244 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
13245 movaps <reg, reg> instead of movapd <reg, reg> when replacing
13246 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
13247 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
13248 to emit packed xor instead of packed double/packed integer
13249 xor for SSE and AVX when moving a zero value.
13250 * config/i386/sse.md: Add check for
13251 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
13252 movapd/movdqa for SSE and AVX.
13253 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
13254 single logical operations i.e and, or and xor instead of packed double
13255 logical operations for SSE and AVX.
13256 * config/i386/i386-c.c (ix86_target_macros_internal):
13257 Add PROCESSOR_BDVER1.
13258 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
13259 (has_fma4, has_xop): New.
13260 * config/i386/i386.c (bdver1_cost): New variable.
13261 (m_BDVER1): New macro.
13262 (m_AMD_MULTIPLE): Add m_BDVER1.
13263 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
13264 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
13265 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
13266 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
13267 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
13268 x86_tune_sse_partial_reg_dependency,
13269 x86_tune_sse_unaligned_load_optimal,
13270 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
13271 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
13272 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
13273 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
13274 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
13275 Enable/disable for bdver1.
13276 (processor_target_table): Add bdver1_cost.
13277 (cpu_names): Add bdver1.
13278 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
13279 processor_alias_table.
13280 (ix86_expand_vector_move_misalign): Change.
13281 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
13282 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
13283 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
13284 of movupd/movdqu for SSE and AVX.
13285 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
13286 (ix86_tune_adjust_cost): Add code for bdver1.
13287 (standard_sse_constant_opcode): Add check for
13288 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
13289 of packed double xor for SSE and AVX.
13290
13291 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
13292
13293 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
13294 result to unsigned.
13295
13296 2010-05-14 Tristan Gingold <gingold@adacore.com>
13297
13298 * toplev.c (default_debug_hooks): Remove this variable.
13299 (process_options): Remove assignments to default_debug_hooks.
13300
13301 2010-05-14 Martin Jambor <mjambor@suse.cz>
13302
13303 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
13304 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
13305 * langhooks.h (struct lang_hooks_for_decls): Removed field
13306 fold_obj_type_ref.
13307 * tree.c (free_lang_data): Remove assignment to
13308 lang_hooks.fold_obj_type_ref.
13309 * tree.def (OBJ_TYPE_REF): Update comment.
13310
13311 2010-05-14 Richard Guenther <rguenther@suse.de>
13312
13313 PR tree-optimization/44124
13314 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
13315
13316 2010-05-14 Alan Modra <amodra@gmail.com>
13317
13318 PR target/44075
13319 * config/rs6000/rs6000.c (struct machine_function): Reorder
13320 fields for better packing. Add lr_save_state.
13321 (rs6000_ra_ever_killed): Return lr_save_state if set.
13322 (rs6000_emit_eh_reg_restore): Set lr_save_state.
13323
13324 2010-05-13 Jan Hubicka <jh@suse.cz>
13325
13326 * varpool.c (decide_is_variable_needed): Drop code checking
13327 TREE_SYMBOL_REFERENCED.
13328
13329 2010-05-13 Jan Hubicka <jh@suse.cz>
13330
13331 * final.c (output_addr_const): Do not call mark_decl_referenced.
13332 * cgraphunit.c (process_function_and_variable_attributes): Use
13333 mark_needed_node dirrectly.
13334 (assemble_thunk): Do not call mark_decl_referenced.
13335
13336 2010-05-13 Anatoly Sokolov <aesok@post.ru>
13337
13338 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
13339
13340 2010-05-13 Jeff Law <law@redhat.com>
13341
13342 * ira-conflicts.c (print_allocno_conflicts): New function broken out
13343 from...
13344 (print_conflicts): Call print_allocno_conflicts.
13345
13346 2010-05-13 Jakub Jelinek <jakub@redhat.com>
13347
13348 PR debug/44104
13349 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
13350 if it is NULL.
13351
13352 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
13353
13354 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
13355 t-mingw-w64 or t-mingw-w32 for multilib configuration.
13356 * config/i386/t-mingw-w32: New.
13357 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
13358
13359 2010-05-13 Martin Jambor <mjambor@suse.cz>
13360
13361 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
13362 gimple-fold.c).
13363 * gimple-fold.c (get_base_binfo_for_type): New function.
13364 (gimple_get_relevant_ref_binfo): Likewise.
13365 (gimple_fold_obj_type_ref_known_binfo): Likewise.
13366 (gimple_fold_obj_type_ref): Likewise.
13367 (fold_gimple_call): Simplify condition for folding virtual calls
13368 and call gimple_fold_obj_type_ref.
13369 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
13370 (gimple_fold_obj_type_ref_known_binfo): Likewise.
13371
13372 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
13373
13374 * config/rs6000/rs6000-protos.h
13375 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
13376 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
13377 (rs6000_debug_mode_dependent_address)
13378 (rs6000_mode_dependent_address_ptr): Likewise.
13379
13380 2010-05-13 Jakub Jelinek <jakub@redhat.com>
13381
13382 PR debug/43983
13383 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
13384 by SRA.
13385 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
13386 * tree-sra.c (create_access_replacement): Call unshare_expr before
13387 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
13388 * dwarf2out.c: Include tree-flow.h.
13389 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
13390 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
13391 Handle DW_OP_bit_piece.
13392 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
13393 construct_piece_list, adjust_piece_list): New functions.
13394 (add_var_loc_to_decl): Handle SRA optimized variables.
13395 Adjust for var_loc_note to loc field renaming.
13396 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
13397 in VAR_LOCATION note.
13398 (new_loc_descr_op_bit_piece): New function.
13399 (dw_sra_loc_expr): New function.
13400 (dw_loc_list): Use it. Don't handle the last range after the
13401 loop, handle it inside of the loop. Adjust for var_loc_note
13402 to loc field renaming.
13403 (add_location_or_const_value_attribute): Only special case
13404 single entry loc lists if loc is NOTE_P. Adjust for
13405 var_loc_note to loc field renaming.
13406 (dwarf2out_var_location): Don't set newloc->var_loc_note
13407 and newloc->next here.
13408
13409 2010-05-12 Jan Hubicka <jh@suse.cz>
13410
13411 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
13412 flag.
13413 * cgraph.h (cgraph_only_called_directly_p,
13414 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
13415 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
13416 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
13417 (assemble
13418 * ipa.c (cgraph_remove_unreachable_nodes): Use
13419 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
13420 flags.
13421 * tree-inline.c (copy_bb): Check address_taken flag.
13422 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
13423 externally_visible flag.
13424
13425 2010-05-12 Jason Merrill <jason@redhat.com>
13426
13427 PR bootstrap/44048
13428 PR target/44099
13429 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
13430 * sdbout.c (plain_type_1): Likewise.
13431 * dwarf2out.c (is_base_type): Likewise.
13432 (gen_type_die_with_usage): Likewise. Generate
13433 DW_TAG_unspecified_type for any LANG_TYPE.
13434
13435 2010-05-12 Jan Hubicka <jh@suse.cz>
13436
13437 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
13438 indrect edges too.
13439 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
13440 (cgraph_clone_edge): Update.
13441 (cgraph_node_remove_callees): Remove indirect calls too.
13442 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
13443 (cgraph_create_indirect_edge): Update prototype.
13444 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
13445 is_proper_for_analysis.
13446 (add_new_function, visited_nodes, function_insertion_hook_holder,
13447 get_local_reference_vars_info, mark_address_taken, mark_address,
13448 mark_load, mark_store, check_asm_memory_clobber, check_call,
13449 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
13450 (ipa_init): Do not initialize visited_nodes;
13451 function_insertion_hook_holder.
13452 (analyze_variable): Rewrite.
13453 (analyze_function): Rewrite.
13454 (copy_local_bitmap): Remove.
13455 (duplicate_node_dat): Do not duplicate local info.
13456 (generate_summary): Simplify to only walk cgraph.
13457 (write_node_summary_p, ipa_reference_write_summary,
13458 ipa_reference_read_summary): Remove.
13459 (propagate): Do not remove function insertion;
13460 generate summary.
13461 (pass_ipa_reference): NULLify summary handling fields.
13462 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
13463 (input_edge): Input ecf_flags.
13464 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
13465 (update_indirect_edges_after_inlining): Ignore edges with unknown
13466 param.
13467
13468 2010-05-12 Sriraman Tallam <tmsriram@google.com>
13469
13470 * implicit-zee.c: New file.
13471 * tree-pass.h (pass_implicit_zee): Declare.
13472 * passes.c (init_optimization_passes): Add zee pass.
13473 * common.opt (fzee): New flag.
13474 * timevar.def (TV_ZEE): Define.
13475 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
13476 and beyond.
13477 * Makefile.in (implicit-zee.o): Add new build file.
13478
13479 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
13480 Nathan Froyd <froydnj@codesourcery.com>
13481
13482 * c-common.c (sync_resolve_params): Remove write-only variable.
13483
13484 2010-05-12 Anatoly Sokolov <aesok@post.ru>
13485
13486 * target.h (struct gcc_target): Add mode_dependent_address_p field.
13487 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
13488 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
13489 * targhooks.c (default_mode_dependent_address_p): New function.
13490 * targhooks.h (default_mode_dependent_address_p): Declare function.
13491 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
13492 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
13493 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
13494 target hook. Change return type to bool.
13495 * recog.h (mode_dependent_address_p): Change return type to bool.
13496
13497 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
13498 Nathan Froyd <froydnj@codesourcery.com>
13499
13500 * tree-mudflap.c (build_function_type_0, build_function_type_1,
13501 build_function_type_2, build_function_type_3): Remove.
13502 (mudflap_init): Use build_function_type_list.
13503
13504 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
13505 Nathan Froyd <froydnj@codesourcery.com>
13506
13507 * coverage.c (build_fn_info_value): Call build_constructor instead of
13508 build_constructor_from_list.
13509 (build_ctr_info_value): Likewise.
13510 (build_gcov_info): Likewise.
13511
13512 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
13513
13514 * tree.c (build_constructor): Compute TREE_CONSTANT for the
13515 resultant constructor.
13516 (build_constructor_single): Don't set TREE_CONSTANT.
13517 (build_constructor_from_list): Don't compute TREE_CONSTANT.
13518
13519 2010-05-12 Jan Hubicka <jh@suse.cz>
13520
13521 * cgraph.h (struct varpool_node): Add aux.
13522 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
13523 * varpool.c (varpool_remove_node): Do not remove initializer.
13524 (varpool_reset_queue): Export.
13525 (varpool_finalize_decl): Volatile vars are forced to be output.
13526 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
13527 replaced decl.
13528 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
13529 process_references, varpool_can_remove_if_no_refs): New functions.
13530 (cgraph_remove_unreachable_nodes): Handle variables too.
13531
13532 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
13533
13534 PR target/44088
13535 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
13536
13537 2010-05-12 Jakub Jelinek <jakub@redhat.com>
13538
13539 PR middle-end/44085
13540 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
13541 change value of ORT_TASK.
13542 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
13543 (omp_notice_threadprivate_variable): New function.
13544 (omp_notice_variable): Call it for threadprivate variables.
13545 If enclosing ctx is a task, print enclosing task rather than
13546 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
13547 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
13548 if task has untied clause.
13549
13550 PR debug/42278
13551 * dwarf2out.c (base_type_die): Don't add name attribute here.
13552 (modified_type_die): Instead of sizetype use
13553 its underlying original type. If a DW_TAG_base_type doesn't
13554 have name added, add __unknown__.
13555 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
13556 always call force_type_die instead.
13557
13558 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
13559
13560 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
13561 for __stack_chk_guard.
13562
13563 2010-05-11 Jakub Jelinek <jakub@redhat.com>
13564
13565 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
13566 don't call start_source_file debug hook here...
13567 (finish_options): ... but here, after outputting predefined and
13568 command line defines and undefs.
13569
13570 PR middle-end/44071
13571 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
13572 no fallthru edge.
13573 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
13574 optimizing away empty bb with no successors, move over its
13575 footer chain to fallthru predecessor.
13576 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
13577 (rtl_split_edge): For asm goto call patch_jump_insn even if
13578 splitting fallthru edge.
13579
13580 PR c++/44059
13581 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
13582 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
13583 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
13584 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
13585 on DW.ref.* decls.
13586
13587 PR c++/44062
13588 * c-parser.c (c_parser_expression): Mark LHS of a comma
13589 expression as read if it is a decl, handled component or
13590 COMPOUND_EXPR with that on the RHS.
13591 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
13592 if it is a decl or handled component.
13593
13594 2010-05-11 Jan Hubicka <jh@suse.cz>
13595
13596 * lto-symtab.c (lto_symtab_free): New function.
13597 * lto-streamer.h (lto_symtab_free): Declare.
13598
13599 2010-05-11 Jan Hubicka <jh@suse.cz>
13600
13601 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
13602 that if function is needed it is reachable.
13603 (lto_output_node): See if it the function is reachable or referenced.
13604 (output_cgraph): Update call of lto_output_node.
13605 * lto-streamer.h (reachable_from_other_partition_p): Declare.
13606
13607 2010-05-11 Jan Hubicka <jh@suse.cz>
13608
13609 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
13610 Mark as used.
13611
13612 2010-05-11 Jan Hubicka <jh@suse.cz>
13613
13614 PR tree-optimize/44063
13615 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
13616 queue.
13617 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
13618 limits.
13619 (estimate_function_body_sizes): Compute sizes even when disregarding.
13620
13621 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
13622
13623 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
13624
13625 2010-05-11 Jan Hubicka <jh@suse.cz>
13626
13627 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
13628 into every boundary.
13629
13630 2010-05-11 Jan Hubicka <jh@suse.cz>
13631
13632 * matrix-reorg.c (matrix_reorg): Rebuild edges.
13633
13634 2010-05-11 Jan Hubicka <jh@suse.cz>
13635
13636 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
13637 lto_streamer_cache_delete): Put nodes into heap.
13638 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
13639 heap.
13640
13641 2010-05-11 Jan Hubicka <jh@suse.cz>
13642
13643 * cgraphbuild.c (cgraph_rebuild_references): New.
13644 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
13645 out extern inlines.
13646 * cgraph.h (cgraph_rebuild_references): Declare.
13647 * tree-inline.c (tree_function_versioning): Use it.
13648 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
13649
13650 2010-05-11 Jan Hubicka <jh@suse.cz>
13651
13652 * cgraph.c: Include ipa-utils.h
13653 (cgraph_create_virtual_clone): Update references.
13654 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
13655
13656 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
13657
13658 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
13659 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
13660 cache size.
13661
13662 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
13663
13664 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
13665
13666 2010-05-11 Jakub Jelinek <jakub@redhat.com>
13667
13668 * gcc.c (execute): For -### don't quote arguments that
13669 contain just alphanumerics and _/-. characters.
13670 * doc/invoke.texi: Document that change for -###.
13671
13672 PR debug/44023
13673 * df-problems.c (struct dead_debug): Add to_rescan field.
13674 (dead_debug_init): Clear to_rescan field.
13675 (dead_debug_finish): Rescan all debug insns in to_rescan
13676 bitmap and free the bitmap.
13677 (dead_debug_insert_before): Instead of rescanning debug insns
13678 immediately queue their rescanning until dead_debug_finish.
13679 (df_note_bb_compute): After dead_debug_add do continue instead
13680 of break.
13681
13682 2010-05-10 Jakub Jelinek <jakub@redhat.com>
13683
13684 PR debug/44028
13685 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
13686 clear also INSN_REG_USE_LIST.
13687
13688 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13689
13690 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
13691
13692 2010-05-10 Jan Hubicka <jh@suse.cz>
13693
13694 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
13695 commited change.
13696
13697 2010-05-10 Jan Hubicka <jh@suse.cz>
13698
13699 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
13700 Allocate encoders.
13701 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
13702 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
13703 (lto_streamer_cache_create): Init alloc pool.
13704 (lto_streamer_cache_delete): Free alloc pool.
13705 * lto-streamer.h: Include alloc pool.
13706 (lto_streamer_cache_d): Use alloc pool.
13707 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
13708
13709 2010-05-10 Jan Hubicka <jh@suse.cz>
13710
13711 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
13712 * cgraphbuild.c: Include except.h
13713 (record_type_list, record_eh_tables): New function.
13714 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
13715
13716 2010-05-10 Jan Hubicka <jh@suse.cz>
13717
13718 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
13719 __frame_dummy_init_array_entry, force_to_data): Attribute as used
13720 rather than unused.
13721
13722 2010-05-10 Michael Matz <matz@suse.de>
13723
13724 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
13725 (can_reassociate_p): Use FLOAT_TYPE_P.
13726 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
13727 (vect_force_simple_reduction): ... this.
13728 * tree-parloops.c (gather_scalar_reductions): Use
13729 vect_force_simple_reduction.
13730 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
13731 vect_is_simple_reduction, add modify argument, if true rewrite
13732 "a-b" into "a+(-b)".
13733 (vect_is_simple_reduction, vect_force_simple_reduction): New
13734 functions.
13735 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
13736
13737 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
13738 Vladimir Makarov <vmakarov@redhat.com>
13739
13740 PR rtl-optimization/44012
13741 * ira-build.c (remove_unnecessary_allocnos): Nullify
13742 regno_allocno_map of the removed allocno.
13743
13744 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13745
13746 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
13747 to /dev/null.
13748 * configure: Regenerate.
13749
13750 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13751
13752 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
13753 unused.
13754 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
13755 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
13756 support in Sun ld.
13757 * configure: Regenerate.
13758
13759 2010-05-10 Richard Guenther <rguenther@suse.de>
13760
13761 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
13762 marked if the entry identifier is marked.
13763
13764 2010-05-10 Richard Guenther <rguenther@suse.de>
13765
13766 * c-common.c (struct c_common_attributes): Add fnspec attribute.
13767 (handle_fnspec_attribute): New function.
13768 * gimple.h (gimple_call_return_flags): Declare.
13769 (gimple_call_arg_flags): Likewise.
13770 * gimple.c (gimple_call_arg_flags): New function.
13771 (gimple_call_return_flags): Likewise.
13772 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
13773 New argument flags.
13774 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
13775 return value flags.
13776 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
13777 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
13778 main work to ...
13779 (make_heapvar_for): ... this new function.
13780 (handle_rhs_call): Handle fnspec attribute argument specifiers.
13781 (handle_lhs_call): Likewise.
13782 (find_func_aliases): Adjust.
13783
13784 2010-05-10 Richard Guenther <rguenther@suse.de>
13785
13786 PR tree-optimization/44050
13787 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
13788
13789 2010-05-10 Wei Guozhi <carrot@google.com>
13790
13791 PR target/42879
13792 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
13793
13794 2010-05-09 Joseph Myers <joseph@codesourcery.com>
13795
13796 PR c/10676
13797 * c-typeck.c (lookup_field): Take a type directly. Update
13798 recursive calls.
13799 (build_component_ref): Update call to lookup_field.
13800 (set_init_label): Use lookup_field to find initialized field.
13801 Handle returned list of fields like a sequence of designators.
13802
13803 2010-05-09 Richard Guenther <rguenther@suse.de>
13804
13805 PR middle-end/44024
13806 * fold-const.c (tree_single_nonzero_warnv_p): Properly
13807 handle &FUNCTION_DECL.
13808
13809 2010-05-09 Joseph Myers <joseph@codesourcery.com>
13810
13811 PR c/4784
13812 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
13813 structures and unions recursively.
13814 (detect_field_duplicates): Move duplicate detection with a hash to
13815 detect_field_duplicates_hash. Always use a hash if anonymous
13816 structures or unions are present.
13817 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
13818 give errors.
13819
13820 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
13821
13822 PR target/44046
13823 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
13824 detect Atom, Core 2 and Core i7.
13825
13826 2010-05-09 Richard Guenther <rguenther@suse.de>
13827
13828 * gcc.c (store_arg): Handle temporary file deletion for
13829 joined arguments.
13830
13831 2010-05-09 Richard Guenther <rguenther@suse.de>
13832
13833 PR middle-end/44043
13834 * ipa-inline.c (estimate_function_body_sizes): Return after
13835 disregarding inline limits.
13836
13837 2010-05-09 Richard Guenther <rguenther@suse.de>
13838
13839 * gcc.c (store_arg): Revert last change.
13840
13841 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
13842
13843 PR middle-end/28685
13844 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
13845 (optimize_ops_list): Call it.
13846
13847 2010-05-08 Richard Guenther <rguenther@suse.de>
13848
13849 PR tree-optimization/44030
13850 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
13851 NECESSARY flag if we propagate from a inserted expression.
13852
13853 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
13854
13855 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
13856 domain types as equal if they are both PLACEHOLDER_EXPRs.
13857
13858 2010-05-08 Richard Guenther <rguenther@suse.de>
13859
13860 * lto-wrapper.c (run_gcc): Remove linker output from
13861 command line for LTRANS invocation.
13862
13863 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
13864
13865 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13866 lto-macho as lto_binary_reader.
13867 * target.h (struct gcc_target): New hooks lto_start and lto_end.
13868 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
13869 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
13870 in lto_start and lto_end calls.
13871 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
13872 magic numbers.
13873 (scan_prog_file): Update is_elf_or_coff call.
13874 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
13875
13876 * collect2.c (main): Fix enum comparison.
13877
13878 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
13879 Add prototypes.
13880 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
13881 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
13882 and TARGET_ASM_LTO_END.
13883 * darwin.c: Include obstack.h and lto-streamer.h.
13884 (lto_section_names_offset, lto_section_names_obstack,
13885 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
13886 global variables.
13887 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
13888 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
13889 to a temporary file.
13890 (darwin_asm_lto_end): New function. Restore asm_out_file.
13891 (darwin_asm_named_section): For LTO sections, replace the name with
13892 the offset of the section name in a string table, and build this
13893 table.
13894 (darwin_file_start): Initialize global vars for LTO support.
13895 (darwin_file_end): If output to asm_out_file was redirected, append it
13896 to the proper asm_out_file here. Add the section names section.
13897
13898 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
13899
13900 * c-pragma.c (pending_weak_d, pending_weak): New.
13901 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
13902 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
13903 handle_pragma_weak): Update the uses of pending_weaks.
13904
13905 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13906
13907 PR documentation/44016
13908 * doc/standards.texi (Standards): Link to unversioned
13909 cxx0x_status.html page.
13910
13911 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
13912
13913 PR target/43708
13914 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
13915 in addition to TREE_USED, to avoid "set but unused" warnings.
13916
13917 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
13918
13919 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
13920 (is_loop_prefetching_profitable): Do not insert prefetches
13921 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
13922 times the prefetch ahead distance.
13923
13924 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
13925
13926 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
13927 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
13928 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
13929 the unroll_factor.
13930
13931 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
13932
13933 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
13934 a diagnostic info when the insn-to-mem ratio is too small.
13935
13936 2010-05-07 Richard Guenther <rguenther@suse.de>
13937
13938 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
13939 the linker plugin.
13940 (store_arg): Queue temp_filename for deletion instead of
13941 the whole argument.
13942
13943 2010-05-07 Richard Guenther <rguenther@suse.de>
13944
13945 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
13946 (run_gcc): Handle LTRANS phase invocation.
13947 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
13948
13949 2010-05-07 Jakub Jelinek <jakub@redhat.com>
13950
13951 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
13952 this is also meaningful on PARM_DECLs and RESULT_DECLs.
13953
13954 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13955
13956 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
13957
13958 2010-05-07 Richard Guenther <rguenther@suse.de>
13959
13960 PR tree-optimization/44020
13961 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
13962 code when PRE is not yet initialized.
13963
13964 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13965
13966 * config/mips/dbxmdebug.h: Remove.
13967 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
13968
13969 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
13970
13971 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
13972 with null pointer and also warn about ordered comparison of zero with
13973 pointer if -Wextra.
13974
13975 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13976
13977 * graphite-blocking.c
13978 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
13979 * graphite-clast-to-gimple.c
13980 (clast_to_gcc_expression): Same.
13981 (precision_for_value): Same.
13982 (precision_for_interval): Same.
13983 (gcc_type_for_interval): Same.
13984 (graphite_create_new_guard): Same.
13985 (compute_bounds_for_level): Same.
13986 (graphite_create_new_loop_guard): Same.
13987 * graphite-interchange.c
13988 (build_linearized_memory_access): Same.
13989 (pdr_stride_in_loop): Same.
13990 (memory_strides_in_loop_1): Same.
13991 (memory_strides_in_loop): Same.
13992 (extend_scattering): Same.
13993 (psct_scattering_dim_for_loop_depth): Same.
13994 (pbb_number_of_iterations): Same.
13995 * graphite-poly.h
13996 (debug_iteration_domains): Same.
13997 * graphite-ppl.c
13998 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13999 (ppl_set_inhomogeneous_gmp): Same.
14000 (ppl_strip_loop): Same.
14001 (ppl_lexico_compare_linear_expressions): Same.
14002 (ppl_read_polyhedron_matrix): Same.
14003 (ppl_max_for_le_pointset): Same.
14004 * graphite-ppl.h
14005 (ppl_read_polyhedron_matrix): Same.
14006 (tree_int_to_gmp): Same.
14007 (gmp_cst_to_tree): Same.
14008 (ppl_set_inhomogeneous): Same.
14009 (ppl_set_inhomogeneous_tree): Same.
14010 (ppl_set_coef): Same.
14011 (ppl_set_coef_tree): Same.
14012 * graphite-sese-to-poly.c
14013 (build_pbb_scattering_polyhedrons): Same.
14014 (build_scop_scattering): Same.
14015 (scan_tree_for_params_right_scev): Same.
14016 (scan_tree_for_params): Same.
14017 (find_params_in_bb): Same.
14018 (find_scop_parameters): Same.
14019 (add_upper_bounds_from_estimated_nit): Same.
14020 (build_loop_iteration_domains): Same.
14021 (add_condition_to_domain): Same.
14022 (pdr_add_memory_accesses): Same.
14023
14024 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14025
14026 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
14027 CLooG's value_* macros to their respective mpz_* counterparts.
14028 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
14029 (graphite_create_new_loop_guard): Same.
14030 * graphite-interchange.c (build_linearized_memory_access): Same.
14031 (pdr_stride_in_loop): Same.
14032 (memory_strides_in_loop_1): Same.
14033 (1st_interchange_profitable_p): Same.
14034 * graphite-poly.c (extend_scattering): Same.
14035 (psct_scattering_dim_for_loop_depth): Same.
14036 (pbb_number_of_iterations): Same.
14037 (pbb_number_of_iterations_at_time): Same.
14038 * graphite-poly.h (new_1st_loop): Same.
14039 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
14040 (oppose_constraint): Same.
14041 (insert_constraint_into_matrix): Same.
14042 (ppl_set_inhomogeneous_gmp): Same.
14043 (ppl_set_coef_gmp): Same.
14044 (ppl_strip_loop): Same.
14045 (ppl_lexico_compare_linear_expressions): Same.
14046 (ppl_max_for_le_pointset): Same.
14047 (ppl_min_for_le_pointset): Same.
14048 (ppl_build_realtion): Same.
14049 * graphite-ppl.h (gmp_cst_to_tree): Same.
14050 (ppl_set_inhomogeneous): Same.
14051 (ppl_set_inhomogeneous_tree): Same.
14052 (ppl_set_coef): Same.
14053 (ppl_set_coef_tree): Same.
14054 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14055 (build_scop_scattering): Same.
14056 (add_value_to_dim): Same.
14057 (scan_tree_for_params_right_scev): Same.
14058 (scan_tree_for_params_int): Same.
14059 (scan_tree_for_params): Same.
14060 (find_params_in_bb): Same.
14061 (find_scop_parameters): Same.
14062 (add_upper_bounds_from_estimated_nit): Same.
14063 (build_loop_iteration_domains): Same.
14064 (create_linear_expr_from_tree): Same.
14065 (add_condition_to_domain): Same.
14066 (pdr_add_memory_accesses): Same.
14067
14068 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
14069 Jason Merrill <jason@redhat.com>
14070
14071 * c-common.c (c_common_reswords): Add nullptr.
14072 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
14073 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
14074 (gen_type_die_with_usage): Likewise.
14075 * dbxout.c (dbxout_type): Likewise.
14076 * sdbout.c (plain_type_1): Likewise.
14077
14078 2010-05-06 Jason Merrill <jason@redhat.com>
14079
14080 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
14081 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
14082 ret appropriately.
14083 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
14084
14085 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
14086 stripping WITH_SIZE_EXPR.
14087 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
14088 change.
14089
14090 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14091
14092 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
14093 list of obsolete configurations.
14094 Disabled check for obsolete configurations.
14095 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
14096 Removed support for previous versions.
14097 * config/mips/iris.h: Removed.
14098 * config/mips/iris5.h: Removed.
14099 * config/mips/iris6.h: Merged old iris.h contents.
14100 (TARGET_IRIX): Removed.
14101 (DRIVER_SELF_SPECS): Removed mabi=32.
14102 (IDENT_ASM_OP): Removed undef.
14103 (STARTFILE_SPEC): Removed mabi=32.
14104 (ENDFILE_SPEC): Likewise.
14105 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
14106 (MACHINE_TYPE): Update for IRIX 6.5.
14107 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
14108 TARGET_IRIX by TARGET_IRIX6.
14109 (mips_file_start): Likewise.
14110 (mips_output_external): Remove IRIX 5/6 O32 support.
14111 (mips_output_function_prologue): Likewise.
14112 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
14113 TARGET_IRIX6.
14114 (TARGET_CPU_CPP_BUILTINS): Likewise.
14115 (TARGET_IRIX): Removed.
14116 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
14117 (MULTILIB_DIRNAMES): Removed 32.
14118 (MULTILIB_OSDIRNAMES): Removed ../lib.
14119 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
14120 (Specific, mips-sgi-irix5): Document removal.
14121 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
14122 Remove references to older IRIX 6 releases and the O32 ABI.
14123
14124 2010-05-06 Jakub Jelinek <jakub@redhat.com>
14125
14126 PR bootstrap/43994
14127 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
14128 instead of DF_REF_REAL_REG.
14129
14130 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
14131
14132 PR target/43888
14133 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
14134 handling to still return true for x64 targets.
14135
14136 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
14137
14138 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
14139
14140 2010-05-06 Jan Hubicka <jh@suse.cz>
14141
14142 PR tree-optimization/43791
14143 * ipa-inline.c (update_caller_keys): Remove bogus
14144 disregard_inline_limits check.
14145
14146 2010-05-06 Michael Matz <matz@suse.de>
14147
14148 PR tree-optimization/43984
14149 * tree-ssa-pre.c (inserted_phi_names): Remove.
14150 (inserted_exprs): Change to bitmap.
14151 (create_expression_by_pieces): Set bits, don't append to vector.
14152 (insert_into_preds_of_block): Don't handle inserted_phi_names.
14153 (eliminate): Don't look at inserted_phi_names, remove deleted
14154 insns from inserted_exprs.
14155 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
14156 (init_pre, fini_pre): Allocate and free bitmaps.
14157 (execute_pre): Insert insns on edges before elimination.
14158
14159 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
14160
14161 * tree.c (initializer_zerop): Handle STRING_CST.
14162
14163 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
14164
14165 PR 40989
14166 * doc/invoke.texi (Wimplicit): Document as C only.
14167 * opts.c (common_handle_option): Add argument kind.
14168 (handle_option): Rename as read_cmdline_option. Factor out code to...
14169 (handle_option): ... here. New.
14170 (handle_options): Rename as read_cmdline_options.
14171 (decode_options): Update call.
14172 (set_option): Use option index instead of option pointer. Classify
14173 diagnostics correctly.
14174 (enable_warning_as_error): Call handle_option.
14175 * opts.h (set_option): Update declaration.
14176 (handle_option): Declare.
14177 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
14178 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
14179 * c-opts.c (set_Wimplicit): Delete.
14180 (c_family_lang_mask): New static constant.
14181 (c_common_handle_option): Add argument kind. Use handle_option
14182 instead of set_Wimplicit.
14183 (c_common_post_options): warn_implicit and warn_implicit_int
14184 are disabled by default.
14185 * c-common.c (warn_implicit): Do not define here.
14186 * c-common.h (warn_implicit): Do not declare here.
14187 (c_common_handle_option): Update declaration.
14188 * lto-opts.c (lto_reissue_options): Update call to set_option.
14189
14190 2010-05-06 Richard Guenther <rguenther@suse.de>
14191
14192 PR tree-optimization/43571
14193 * domwalk.c (walk_dominator_tree): Walk the dominator
14194 sons in more optimal order.
14195
14196 2010-05-06 Richard Guenther <rguenther@suse.de>
14197
14198 PR tree-optimization/43934
14199 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
14200 (stmt_cost): Likewise.
14201 (extract_true_false_args_from_phi): New helper.
14202 (determine_max_movement): For PHI nodes verify we can hoist them
14203 and compute their cost.
14204 (determine_invariantness_stmt): Handle PHI nodes.
14205 (move_computations_stmt): Likewise. Hoist PHI nodes in
14206 if-converted form using COND_EXPRs.
14207 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
14208 (tree_ssa_lim): Likewise.
14209 * tree-flow.h (tree_ssa_lim): Adjust prototype.
14210 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
14211
14212 2010-05-06 Richard Guenther <rguenther@suse.de>
14213
14214 PR tree-optimization/43987
14215 * tree-ssa-structalias.c (could_have_pointers): For possibly
14216 address-taken variables force pointers to be recorded.
14217 (create_variable_info_for_1): Likewise.
14218 (push_fields_onto_fieldstack): Pass in wheter all fields
14219 must have pointers.
14220 (find_func_aliases): Query types instead of vars whether
14221 they contain pointers where appropriate.
14222
14223 2010-05-06 Jan Hubicka <jh@suse.cz>
14224
14225 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
14226 (record_reference, mark_address, mark_load, mark_store): Record
14227 references.
14228 (record_references_in_initializer): Update call of record_references.
14229 (rebuild_cgraph_edges): Remove all references before rebuiding.
14230 * cgraph.c (cgraph_create_node): Clear ref list.
14231 (cgraph_remove_node): Remove references.
14232 (dump_cgraph_node): Dump references.
14233 (cgraph_clone_node): Clone references.
14234 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
14235 (struct cgraph_node, varpool_node): Add ref_lst.
14236 * ipa-ref.c: New file.
14237 * ipa-ref.h: New file.
14238 * ipa-ref-inline.h: New file.
14239 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
14240 (referenced_from_other_partition_p): New function.
14241 (lto_output_varpool_node): Take set arugment; call
14242 referenced_from_other_partition.
14243 (lto_output_ref): New.
14244 (add_references): New.
14245 (output_refs): New.
14246 (output_cgraph): Compute boundary based on references; output refs.
14247 (output_varpool): Accept cgraph_node_set argument.
14248 (input_ref): New.
14249 (input_refs): New.
14250 (input_cgraph): Call input_refs.
14251 * lto-section-in.c (lto_section_name): Add refs.
14252 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
14253 (ipa-ref.o): New file.
14254 * varpool.c (varpool_node): Clear ipa ref list.
14255 (varpool_remove_node): Remove references.
14256 (dump_varpool_node): Dump references.
14257 (varpool_assemble_decl): Only compile finalized ones.
14258 (varpool_extra_name_alias): Initialize ref list.
14259 * lto-streamer.c (lto-get_section_name): Add .refs section.
14260 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
14261 (referenced_from_other_partition_p): Declared.
14262
14263 2010-05-06 Ira Rosen <irar@il.ibm.com>
14264
14265 PR tree-optimization/43901
14266 * tree-vect-stmts.c (vectorizable_call): Assert that vector
14267 type is not NULL if it's transformation phase, and return
14268 FALSE if it's analysis.
14269 (vectorizable_conversion, vectorizable_operation,
14270 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
14271
14272 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
14273
14274 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14275 Delete.
14276 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14277 New define.
14278 * config/mips/mips-protos.h
14279 (mips_small_register_classes_for_mode_p): Delete prototype.
14280
14281 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
14282
14283 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
14284 * config/arm/arm.c (multiple_operation_profitable_p,
14285 compute_offset_order): New static functions.
14286 (load_multiple_sequence, store_multiple_sequence): Use them.
14287 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
14288 memory offsets, not register numbers.
14289 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
14290
14291 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
14292
14293 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
14294 (get_pending_sizes, put_pending_size, put_pending_sizes):
14295 Update the uses of pending_sizes.
14296 * c-decl.c (store_parm_decls): Likewise.
14297 * c-tree.h (struct c_arg_info): Likewise.
14298 * tree.h: Update the prototype for get_pending_sizes and
14299 put_pending_sizes.
14300
14301 2010-05-05 Jason Merrill <jason@redhat.com>
14302
14303 PR debug/43370
14304 * c-common.c (handle_aligned_attribute): Respect
14305 ATTR_FLAG_TYPE_IN_PLACE.
14306
14307 PR testsuite/43758
14308 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
14309 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14310 (TARGET_INITIALIZER): Use it.
14311 * c-common.c (attribute_takes_identifier_p): Call it.
14312 * c-common.h: Update prototype.
14313 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
14314 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14315
14316 2010-05-05 Jakub Jelinek <jakub@redhat.com>
14317
14318 PR debug/43950
14319 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
14320 DW_ID_down_case for Fortran compilation units.
14321
14322 2010-05-05 Jan Hubicka <jh@suse.cz>
14323
14324 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
14325 handle aliases.
14326
14327 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
14328
14329 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
14330 a variable-sized RESULT_DECL.
14331
14332 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
14333
14334 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
14335
14336 2010-05-05 Jason Merrill <jason@redhat.com>
14337
14338 PR c++/43787
14339 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
14340 returns GS_OK.
14341 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
14342
14343 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
14344 Jakub Jelinek <jakub@redhat.com>
14345
14346 PR debug/43478
14347 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
14348 (dead_debug_init, dead_debug_finish): New functions.
14349 (dead_debug_add, dead_debug_insert_before): Likewise.
14350 (df_note_bb_compute): Initialize a dead_debug object, add dead
14351 debug uses to it, insert debug bind insns before death insns,
14352 reset debug insns that refer to pending uses at the end.
14353 * rtl.h (make_debug_expr_from_rtl): New prototype.
14354 * varasm.c (make_debug_expr_from_rtl): New function.
14355
14356 2010-05-05 Jan Hubicka <jh@suse.cz>
14357
14358 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
14359 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
14360 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
14361 lto_varpool_encoder_deref, lto_varpool_encoder_size,
14362 lto_varpool_encoder_encode_initializer_p,
14363 lto_set_varpool_encoder_encode_initializer): New functions.
14364 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
14365 call output_varpool.
14366 (input_varpool_node): Do not always set analyzed.
14367 (input_cgraph_1): Return vector of cgraph nodes.
14368 (input_varpool_1): Return vector of varpools.
14369 (input_cgraph): Free the vectors.
14370 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14371 output only initializers needed.
14372 (lto_output): Only call output_cgraph.
14373 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
14374 * lto-section-out.c (lto_new_out_decl_state): Initialize
14375 state->varpool_node_encoder.
14376 * lto-streamer.h (lto_varpool_encoder_d): New.
14377 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
14378 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
14379 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
14380 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
14381 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
14382 Declare.
14383 (output_varpool, input_varpool): Remove declarations.
14384
14385 2010-05-05 Jan Hubicka <jh@suse.cz>
14386
14387 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
14388 with body can prevail.
14389
14390 2010-05-05 Jan Hubicka <jh@suse.cz>
14391
14392 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
14393 size.
14394
14395 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14396
14397 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
14398
14399 * gengtype.h (erro_at_line): Constify pos argument.
14400
14401 * gengtype.c: Include hashtab.h.
14402 (enum gc_used): Document GC_MAYBE_POINTED_TO.
14403 (error_at_line): Constify pos argument.
14404 (do_typedef): Initialize p->opt field.
14405 (get_file_gtfilename): Fix comment typo.
14406 (struct walk_type_data): Constify line field.
14407 (get_output_file_for_structure): New function.
14408 (write_local_func_for_structure): Constify orig_s argument.
14409 Use get_output_file_for_structure.
14410 (write_func_for_structure): Use get_output_file_for_structure.
14411 (INDENT): New define.
14412 (dump_pair, dump_type, dump_type_list, dump_typekind)
14413 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
14414 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
14415 functions.
14416 (seen_types): New variable.
14417 (main): New variable do_dump. Process "-d" command line option.
14418 Call dump_everything if dump requested.
14419
14420 2010-05-05 Jakub Jelinek <jakub@redhat.com>
14421
14422 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
14423 in a temporary instead of invoking the macro multiple times.
14424 (track_expr_p): Likewise.
14425
14426 2010-05-04 Neil Vachharajani <nvachhar@google.com>
14427
14428 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
14429 per new semantics.
14430 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
14431 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
14432 conditions for printing notes.
14433 * common.opt (-Wcoverage-mismatch): Allow negative, default to
14434 true, update documentation.
14435 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
14436
14437 2010-05-04 Jakub Jelinek <jakub@redhat.com>
14438
14439 PR c/43981
14440 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
14441 on dimen.
14442
14443 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
14444
14445 PR target/43799
14446 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
14447 (*sse_prologue_save_insn1): Likewise.
14448 (SSE prologue save splitter): Likewise.
14449
14450 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
14451
14452 * tree.c (free_lang_data_in_one_sizepos): New inline function.
14453 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
14454 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
14455 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
14456 all decls. Call it on DECL_FIELD_OFFSET of fields.
14457 (find_decls_types_r): Follow DECL_VALUE_EXPR.
14458 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
14459
14460 2010-05-04 Martin Jambor <mjambor@suse.cz>
14461
14462 * tree-sra.c (build_access_from_expr_1): The first parameter type
14463 changed to simple tree.
14464 (build_access_from_expr): Likewise, gsi parameter was eliminated.
14465 (scan_assign_result): Renamed to assignment_mod_result, enum elements
14466 renamed as well.
14467 (build_accesses_from_assign): Removed all parameters except for a
14468 simple gimple statement. Now returns a simple bool.
14469 (scan_function): All non-analysis parts moved to separate functions
14470 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
14471 parameters and updated both callers.
14472 (sra_modify_expr): Removed parameter data.
14473 (sra_modify_function_body): New function.
14474 (perform_intra_sra): Call sra_modify_function_body to modify the
14475 function body.
14476 (replace_removed_params_ssa_names): Parameter data changed into
14477 adjustments vector.
14478 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
14479 changed the parameter dont_convert to convert with the opposite
14480 meaning.
14481 (sra_ipa_modify_assign): Parameter data changed into adjustments
14482 vector, return value changed to bool.
14483 (ipa_sra_modify_function_body): New function.
14484 (sra_ipa_reset_debug_stmts): Updated a comment.
14485 (modify_function): Use ipa_sra_modify_function_body to modify function
14486 body.
14487
14488 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
14489
14490 PR middle-end/43671
14491 * alias.c (true_dependence): Handle the same VALUE in x and mem.
14492 (canon_true_dependence): Likewise.
14493 (write_dependence_p): Likewise.
14494
14495 2010-05-04 Jan Hubicka <jh@suse.cz>
14496
14497 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
14498 * cgraphbuild.c: Include ipa-utils.h
14499 (record_reference_ctx): New struct.
14500 (record_reference): Simplify to work on initializers; not statements.
14501 (mark_address, mark_load, mark_store): New.
14502 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
14503 walk PHI nodes too.
14504 (record_references_in_initializer): Update use of record_reference.
14505 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
14506 walk PHI nodes too.
14507
14508 2010-05-04 Jan Hubicka <jh@suse.cz>
14509
14510 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
14511 node will be removed anyway.
14512 (lto_varpool_replace_node): Allow also unanalyzed nodes;
14513 relink aliases of node into prevailing node.
14514 * varpool.c (varpool_remove_node): Remove aliases properly;
14515 when removing node, remove all its aliases too; remove DECL_INITIAL
14516 of removed node; ggc_free the varpool node.
14517
14518 2010-05-04 Richard Guenther <rguenther@suse.de>
14519
14520 PR tree-optimization/43879
14521 * tree-ssa-structalias.c (alias_get_name): Use
14522 DECL_ASSEMBLER_NAME if available.
14523 (create_function_info_for): Return the varinfo node.
14524 (ipa_pta_execute): Associate same-body aliases and extra names
14525 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
14526
14527 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
14528
14529 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
14530
14531 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
14532
14533 PR bootstrap/43964
14534 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
14535 only if HONOR_REG_ALLOC_ORDER is not defined.
14536
14537 2010-05-04 Richard Guenther <rguenther@suse.de>
14538
14539 PR tree-optimization/43949
14540 * tree-vrp.c (extract_range_from_binary_expr): Only handle
14541 TRUNC_MOD_EXPR.
14542
14543 2010-04-26 Jason Merrill <jason@redhat.com>
14544
14545 * c.opt (-fstrict-enums): New.
14546 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
14547
14548 2010-05-03 David Ung <davidu@mips.com>
14549 James E. Wilson <wilson@codesourcery.com>
14550
14551 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
14552 emit the trap instruction before the divide for TUNE_74K.
14553
14554 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
14555
14556 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
14557 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
14558 based on the above, for new target hook.
14559
14560 * hooks.c (hook_bool_mode_true): New generic hook.
14561 * hooks.h (hook_bool_mode_true): Add prototype.
14562
14563 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
14564 target hook.
14565 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
14566 target hook, set to hook_bool_mode_false.
14567 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
14568 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
14569 with targetm.small_register_classes_for_mode_p.
14570 (find_reusable_reload): Likewise.
14571 (combine_reloads): Likewise.
14572 * reload1.c (reload_as_needed): Likewise.
14573 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
14574 * ifcvt.c (noce_process_if_block, check_cond_move_block,
14575 dead_or_predicable): Likewise.
14576 * regmove.c (optimize_reg_copy_1): Likewise.
14577 * calls.c (prepare_call_address): Likewise.
14578 (precompute_register_parameters): Likewise.
14579
14580 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
14581 hook definition.
14582 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
14583 implementation of the hook that considers all register classes
14584 small except for SH64.
14585 (sh_override_options): Use the new hook.
14586 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
14587 Add prototype.
14588
14589 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
14590 hook definition.
14591 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
14592 implementation of the hook that considers all register classes
14593 small for THUMB1.
14594 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
14595 Add prototype.
14596
14597 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
14598 hook definition.
14599 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
14600 implementation of the hook that considers all register classes
14601 small for MIPS16.
14602 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
14603 Add prototype.
14604
14605 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
14606 hook definition.
14607 * config/m32c/m32c.h: Likewise.
14608 * config/pdp11/pdp11.h: Likewise.
14609 * config/avr/avr.h: Likewise.
14610 * config/xtensa/xtensa.h: Likewise.
14611 * config/m68hc11/m68hc11.h: Likewise.
14612 * config/mn10300/mn10300.h: Likewise.
14613 * config/mcore/mcore.h: Likewise.
14614 * config/h8300/h8300.h: Likewise.
14615 * config/bfin/bfin.h: Likewise.
14616
14617 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
14618 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
14619
14620 2010-05-03 Anatoly Sokolov <aesok@post.ru>
14621
14622 * double-int.h (tree_to_double_int): Remove macro.
14623 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
14624 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
14625 (tree_to_double_int): New function.
14626 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
14627 Move ...
14628 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
14629
14630 2010-05-03 Richard Guenther <rguenther@suse.de>
14631
14632 PR tree-optimization/43971
14633 * tree-ssa-structalias.c (get_constraint_for_1): Fix
14634 constraints in the !flag_delete_null_pointer_checks case.
14635
14636 2010-05-03 Jakub Jelinek <jakub@redhat.com>
14637
14638 PR debug/43972
14639 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
14640 result mode matches original rtl mode.
14641
14642 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
14643
14644 PR target/43888
14645 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
14646
14647 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
14648
14649 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
14650 when processing flag options.
14651
14652 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
14653
14654 * gcov-iov.c (main): Change format string placeholder
14655 from %#08x to 0x%08x.
14656 * genchecksum.c (dosum): Change format string placeholder
14657 from %#02x to 0x%02x.
14658
14659 2010-05-02 Richard Guenther <rguenther@suse.de>
14660
14661 PR tree-optimization/43879
14662 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
14663
14664 2010-05-02 Bruno Haible <bruno@clisp.org>
14665
14666 * doc/extend.texi (Function Attributes): Fix a typo.
14667
14668 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
14669
14670 Revert:
14671 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
14672 placeholder from 0x%x to %#x.
14673 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14674 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
14675 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
14676 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
14677 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
14678 * config/i386/i386.c (ix86_target_string): Ditto.
14679 * config/i386/i386.c (output_pic_addr_const): Ditto.
14680 (print_operand): Ditto.
14681
14682 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
14683
14684 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
14685 placeholder from 0x%x to %#x.
14686 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
14687 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
14688 (ASM_OUTPUT_DEBUG_DATA): Ditto.
14689 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
14690 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
14691 * optc-gen.awk: Ditto.
14692 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
14693 (HOST_WIDE_INT_PRINT_HEX): Ditto.
14694 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
14695 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14696
14697 2010-05-01 Anatoly Sokolov <aesok@post.ru>
14698
14699 * target.h (struct calls): Add function_value_regno_p field.
14700 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
14701 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
14702 * targhooks.c (default_function_value_regno_p): New function.
14703 * targhooks.h (default_function_value_regno_p): Declare function.
14704 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
14705 * builtins.c. (apply_result_size): (Ditto.).
14706 * combine.c. (likely_spilled_retval_p): (Ditto.).
14707 * mode-switching.c. Include 'target.h'.
14708 (create_pre_exit): Use function_value_regno_p hook.
14709 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
14710 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
14711 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
14712
14713 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
14714 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
14715 (ix86_function_value_regno_p): Declare as static, change argument
14716 type to const unsigned int.
14717 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
14718
14719 2010-05-01 Richard Guenther <rguenther@suse.de>
14720
14721 PR tree-optimization/43949
14722 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
14723 types.
14724 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
14725
14726 2010-05-01 Anatoly Sokolov <aesok@post.ru>
14727
14728 * rtl.h (CONST_DOUBLE_P): Define.
14729 (rtx_to_double_int): Declare.
14730 * emit-rtl.c (rtx_to_double_int): New function.
14731 * dwarf2out.c (insert_double): New function.
14732 (loc_descriptor, add_const_value_attribute): Clean up, use
14733 rtx_to_double_int and insert_double functions.
14734
14735 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
14736
14737 * doc/extend.texi (Inline): Add missing return keyword to examples.
14738 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
14739 "command-line".
14740
14741 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
14742
14743 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
14744 the variable part of the offset as well. Use highest_pow2_factor for
14745 all alignment checks.
14746
14747 2010-04-30 Richard Guenther <rguenther@suse.de>
14748
14749 PR tree-optimization/43879
14750 * tree-ssa-structalias.c (type_could_have_pointers): Functions
14751 can have pointers.
14752
14753 2010-04-30 Jan Hubicka <jh@suse.cz>
14754
14755 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
14756 varpool.
14757 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
14758
14759 2010-04-30 Jan Hubicka <jh@suse.cz>
14760
14761 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
14762 New.
14763 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
14764 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
14765 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
14766 cgraph_node_set_needs_ltrans_p): Remove.
14767
14768 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
14769
14770 * sdbout.c: Include vec.h, do not include varray.h.
14771 (deferred_global_decls, sdbout_global_decl,
14772 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
14773 * toplev.c: Do not include varray.h.
14774 (dump_memory_report): Do not dump VARRAY statistics.
14775 * gengtype.c (open_base_file): Ignore varray.h.
14776 * Makefile.in: Update for abovementioned changes.
14777 Remove all traces of varray.c and varray.h.
14778 * varray.c: Remove file.
14779 * varray.h: Remove file.
14780
14781 2010-04-30 Jan Hubicka <jh@suse.cz>
14782
14783 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
14784 references.
14785
14786 2010-04-30 Jan Hubicka <jh@suse.cz>
14787
14788 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
14789 needed.
14790
14791 2010-04-30 Richard Guenther <rguenther@suse.de>
14792
14793 * tree-ssa-structalias.c (get_constraint_for_1): Generate
14794 constraints for CONSTRUCTOR.
14795
14796 2010-04-30 Richard Guenther <rguenther@suse.de>
14797
14798 PR lto/43946
14799 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
14800 first after all lowering passes.
14801
14802 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
14803
14804 * toplev.c: Include varray.h for statistics dumping.
14805 * tree.h: Do not declare varray_head_tag.
14806 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
14807 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
14808 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
14809 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
14810 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
14811 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
14812 c-common.c, c-common.h, reg-stack.c, basic-block.h,
14813 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
14814 include varray.h.
14815 * Makefile.in: Update for abovementioned changes.
14816
14817 2010-04-30 Jakub Jelinek <jakub@redhat.com>
14818
14819 PR debug/43942
14820 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
14821
14822 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
14823
14824 * config/picochip/picochip.c (picochip_legitimize_address): Define.
14825 Use this function to do machine-specific conversion.
14826 (picochip_legitimize_reload_address): Likewise.
14827 (picochip_legitimate_address_p): Check valid base register only if
14828 strict.
14829 (picochip_check_conditional_copy): Check for modw only if opnd is
14830 register.
14831 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
14832 to call the function in c.
14833 * config/picochip/picochip-protos.h
14834 (picochip_legitimize_reload_address): Define.
14835 * config/picochip/picochip.md (supported_compare1): Define.
14836
14837 2010-04-30 Jan Hubicka <jh@suse.cz>
14838
14839 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
14840 (cgraph_global_info): Remove inlined.
14841 (LTO_cgraph_tag_names): Remove.
14842 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
14843 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
14844 simplify cgraph tags and document.
14845 (lto_output_node): Use only LTO_cgraph_unavail_node and
14846 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
14847 for_functions_valid, global info, process and output flags.
14848 (input_overwrite_node): Initialize estimated stack size and
14849 estimated growth. Do not read flags we no longer store.
14850 (input_node): Likewise do not read info no longer stored.
14851 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
14852 flag.
14853
14854 2010-04-30 Richard Guenther <rguenther@suse.de>
14855
14856 PR tree-optimization/43879
14857 * tree-ssa-structalias.c (get_constraint_for_1): Properly
14858 handle non-zero initializers.
14859
14860 2010-04-30 Richard Guenther <rguenther@suse.de>
14861
14862 * builtins.c (fold_builtin_1): Delete free (0).
14863
14864 2010-04-29 Jan Hubicka <jh@suse.cz>
14865
14866 * gengtype.c (open_base_files): Add lto-streamer.h
14867 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
14868 (pass_ipa_cp): GGC collect.
14869 * toplev. (compile_file): Do not output symbols.
14870 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
14871 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
14872 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
14873 * lto-section-in.c: Include ggc.h
14874 (lto_new_in_decl_state): Alloc in GGC.
14875 (lto_delete_in_decl_state): Likewise.
14876 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
14877 Collect.
14878
14879 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
14880
14881 PR target/42895
14882 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
14883 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
14884 (HONOR_REG_ALLOC_ORDER): Describe new macro.
14885 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
14886 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
14887 account only if HONOR_REG_ALLOC_ORDER is not defined.
14888 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
14889 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
14890
14891 2010-04-29 Jon Grant <04@jguk.org>
14892
14893 * collect2.c (vflag): Change type from int to bool.
14894 (debug): Likewise.
14895 (helpflag): New global bool.
14896 (main): Set vflag and debug with boolean, not integer truth values.
14897 Accept new "--help" option and output usage text if found.
14898 * collect2.h (vflag): Update prototype.
14899 (debug): Likewise.
14900
14901 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
14902
14903 PR bootstrap/43936
14904 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
14905
14906 2010-04-29 Richard Guenther <rguenther@suse.de>
14907
14908 PR bootstrap/43935
14909 * plugin.h (invoke_plugin_callbacks): Annotate arguments
14910 with ATTRIBUTE_UNUSED.
14911
14912 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
14913
14914 PR target/43921
14915 * config/i386/i386.c (get_some_local_dynamic_name): Replace
14916 INSN_P with NONDEBUG_INSN_P.
14917 (distance_non_agu_define): Likewise.
14918 (distance_agu_use): Likewise.
14919
14920 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
14921
14922 From Dominique d'Humieres <dominiq@lps.ens.fr>
14923 PR bootstrap/43858
14924 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
14925 test_set.
14926
14927 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
14928
14929 * plugin.h (invoke_plugin_callbacks): New inline function.
14930 * plugin.c (flag_plugin_added): New global flag.
14931 (add_new_plugin): Initialize above flag.
14932 (invoke_plugin_callbacks): Rename to ...
14933 (invoke_plugin_callbacks_full): ... this.
14934
14935 2010-04-28 Jan Hubicka <jh@suse.cz>
14936
14937 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
14938 (lto_varpool_replace_node): New.
14939 (lto_symtab_resolve_symbols): Resolve varpool nodes.
14940 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
14941 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
14942 * cgraph.h (varpool_node_ptr): New type.
14943 (varpool_node_ptr): New vector.
14944 (varpool_node_set_def): New structure.
14945 (varpool_node_set): New type.
14946 (varpool_node_set): New vector.
14947 (varpool_node_set_element_def): New structure.
14948 (varpool_node_set_element, const_varpool_node_set_element): New types.
14949 (varpool_node_set_iterator): New type.
14950 (varpool_node): Add prev pointers, add used_from_other_partition,
14951 in_other_partition.
14952 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
14953 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
14954 varpool_get_node, varpool_remove_node): Declare.
14955 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
14956 varpool_node_set_size): New inlines.
14957 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
14958 * tree-pass.h (varpool_node_set_def): Forward declare.
14959 (ipa_opt_pass_d): Summary writting takes vnode sets too.
14960 (ipa_write_optimization_summaries): Update prototype.
14961 * ipa-cp.c (ipcp_write_summary): Update.
14962 * ipa-reference.c (ipa_reference_write_summary): Update.
14963 * lto-cgraph.c (lto_output_varpool_node): New static function.
14964 (output_varpool): New function.
14965 (input_varpool_node): New static function.
14966 (input_varpool_1): New function.
14967 (input_cgraph): Input varpool.
14968 * ipa-pure-const.c (pure_const_write_summary): Update.
14969 * lto-streamer-out.c (lto_output): Update, output varpool too.
14970 (write_global_stream): Kill WPA hack.
14971 (produce_asm_for_decls): Update.
14972 (output_alias_pair_p): Handle variables.
14973 (output_unreferenced_globals): Output only needed partition of varpool.
14974 * ipa-inline.c (inline_write_summary): Update.
14975 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
14976 cgraph.
14977 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
14978 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
14979 varpool_node_set_new, varpool_node_set_add,
14980 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
14981 debug_varpool_node_set): New functions.
14982 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
14983 (execute_one_pass): Process new decls too.
14984 (ipa_write_summaries_2): Pass around vsets.
14985 (ipa_write_summaries_1): Likewise.
14986 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
14987 to add.
14988 (ipa_write_optimization_summaries_1): Pass around vsets.
14989 (ipa_write_optimization_summaries): Likewise.
14990 * varpool.c (varpool_get_node): New.
14991 (varpool_node): Update doubly linked lists.
14992 (varpool_remove_node): New.
14993 (dump_varpool_node): More dumping.
14994 (varpool_enqueue_needed_node): Update doubly linked lists.
14995 (decide_is_variable_needed): Kill ltrans hack.
14996 (varpool_finalize_decl): Kill lto hack.
14997 (varpool_assemble_decl): Skip decls in other partitions.
14998 (varpool_assemble_pending_decls): Update doubly linkes lists.
14999 (varpool_empty_needed_queue): Likewise.
15000 (varpool_extra_name_alias): Likewise.
15001 * lto-streamer.c (lto_get_section_name): Add vars section.
15002 * lto-streamer.h (lto_section_type): Update.
15003 (output_varpool, input_varpool): Declare.
15004
15005 2010-04-28 Mike Stump <mikestump@comcast.net>
15006
15007 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
15008
15009 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
15010
15011 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
15012 record or union type with RECORD_OR_UNION_TYPE_P predicate.
15013 (lto_input_ts_type_tree_pointers): Likewise.
15014 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
15015 (lto_output_ts_type_tree_pointers): Likewise.
15016
15017 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
15018
15019 Uniquization of constants at the Tree level
15020 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
15021 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
15022 bit to the end.
15023 (tree_output_constant_def): Declare.
15024 * gimplify.c (gimplify_init_constructor): When using block copy, first
15025 uniquize the constant constructor on the RHS.
15026 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
15027 DECL_IN_CONSTANT_POOL flag.
15028 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
15029 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
15030 constant pool.
15031 (assemble_variable): Deal with symbols belonging to the tree constant
15032 pool.
15033 (get_constant_section): Add ALIGN parameter and simplify.
15034 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
15035 (assemble_constant_contents): Use the expression of the VAR_DECL.
15036 (output_constant_def_contents): Use the alignment of the VAR_DECL.
15037 (tree_output_constant_def): New global function.
15038 (mark_constant): Use the expression of the VAR_DECL.
15039 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
15040 its expression.
15041 (output_object_block): Likewise and assemble the expression.
15042
15043 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
15044
15045 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
15046 hash_tree, eq_tree): New tree hash table.
15047 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
15048 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
15049 lto_orig_address_remove): Reimplement.
15050
15051 2010-04-28 Xinliang David Li <davidxl@google.com>
15052
15053 PR c/42643
15054 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
15055 (compute_uninit_opnds_pos): New function.
15056 (is_non_loop_exit_postdominating): New function.
15057 (compute_control_dep_chain): New function.
15058 (find_pdom): New function.
15059 (convert_control_dep_chain_into_preds): New function.
15060 (find_predicates): New function.
15061 (find_control_equiv_block): New function.
15062 (collect_phi_def_edges): New function.
15063 (find_def_preds): New function.
15064 (find_dom): New function.
15065 (dump_predicates): New function.
15066 (get_cmp_code): New function.
15067 (is_value_included_in): New function.
15068 (find_matching_predicate_in_rest_chains): New function.
15069 (use_pred_not_overlap_with_undef_path_pred): New function.
15070 (is_use_properly_guarded): New function.
15071 (normalize_cond_1): New function.
15072 (is_and_or_or): New function.
15073 (normalize_cond): New function.
15074 (is_gcond_subset_of): New function.
15075 (is_subset_of_any): New function.
15076 (is_or_set_subset_of): New function.
15077 (is_and_set_subset_of): New function.
15078 (is_norm_cond_subset_of): New function.
15079 (is_pred_expr_subset_of): New function.
15080 (is_pred_chain_subset_of): New function.
15081 (is_included_in): New function.
15082 (is_superset_of): New function.
15083 (find_uninit_use): New function.
15084 (warn_uninitialized_phi): New function.
15085 (compute_possibly_undefined_names): New function.
15086 (ssa_undefined_value_p): New function.
15087 (execute_late_warn_uninitialized): New function.
15088 * tree-ssa.c (ssa_undefined_value_p): Removed.
15089 (warn_uninit): Changed to extern.
15090 (warn_uninitialized_phi): Removed.
15091 (warn_uninitialized_vars): Changed to extern.
15092 (execute_late_warn_uninitialized): Removed
15093 * tree-flow.h: Add new prototypes.
15094 * timevar.def: Add new time variable.
15095 * Makefile.in: Add new build file.
15096
15097 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
15098
15099 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
15100 type if available.
15101
15102 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15103
15104 PR target/22224
15105 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
15106
15107 2010-04-28 Martin Jambor <mjambor@suse.cz>
15108
15109 * cgraph.h (struct cgraph_node): New field indirect_calls.
15110 (struct cgraph_indirect_call_info): New type.
15111 (struct cgraph_edge): Removed field indirect_call. New fields
15112 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
15113 (cgraph_create_indirect_edge): Declare.
15114 (cgraph_make_edge_direct): Likewise.
15115 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
15116 * ipa-prop.h (struct ipa_param_call_note): Removed.
15117 (struct ipa_node_params): Removed field param_calls.
15118 (ipa_create_all_structures_for_iinln): Declare.
15119 * cgraph.c: Described indirect edges and uids in initial comment.
15120 (cgraph_add_edge_to_call_site_hash): New function.
15121 (cgraph_edge): Search also among the indirect edges, use
15122 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
15123 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
15124 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
15125 site hash.
15126 (initialize_inline_failed): Assign a reason to indirect edges.
15127 (cgraph_create_edge_1): New function.
15128 (cgraph_create_edge): Moved some functionality to
15129 cgraph_create_edge_1.
15130 (cgraph_create_indirect_edge): New function.
15131 (cgraph_edge_remove_callee): Add an assert checking for
15132 non-indirectness.
15133 (cgraph_edge_remove_caller): Special-case indirect edges.
15134 (cgraph_remove_edge): Likewise.
15135 (cgraph_set_edge_callee): New function.
15136 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
15137 (cgraph_make_edge_direct): New function.
15138 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
15139 the declaration of the call statement matches.
15140 (cgraph_node_remove_callees): Special-case indirect edges.
15141 (cgraph_clone_edge): Likewise.
15142 (cgraph_clone_node): Clone also the indirect edges.
15143 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
15144 indirect_call, dump count of indirect_calls edges.
15145 * ipa-prop.c (iinlining_processed_edges): New variable.
15146 (ipa_note_param_call): Create indirect edges instead of
15147 creating notes. New parameter node.
15148 (ipa_analyze_call_uses): New parameter node, pass it on to
15149 ipa_note_param_call.
15150 (ipa_analyze_stmt_uses): Likewise.
15151 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
15152 (print_edge_addition_message): Work on edges rather than on notes.
15153 (update_call_notes_after_inlining): Likewise, renamed to
15154 update_indirect_edges_after_inlining.
15155 (ipa_create_all_structures_for_iinln): New function.
15156 (ipa_free_node_params_substructures): Do not free notes.
15157 (ipa_edge_duplication_hook): Propagate bits within
15158 iinlining_processed_edges bitmap.
15159 (ipa_node_duplication_hook): Do not duplicate notes.
15160 (free_all_ipa_structures_after_ipa_cp): Renamed to
15161 ipa_free_all_structures_after_ipa_cp.
15162 (free_all_ipa_structures_after_iinln): Renamed to
15163 ipa_free_all_structures_after_iinln.
15164 (ipa_write_param_call_note): Removed.
15165 (ipa_read_param_call_note): Removed.
15166 (ipa_write_indirect_edge_info): New function.
15167 (ipa_read_indirect_edge_info): Likewise.
15168 (ipa_write_node_info): Do not stream notes, do stream information
15169 in indirect edges.
15170 (ipa_read_node_info): Likewise.
15171 (lto_ipa_fixup_call_notes): Removed.
15172 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
15173 * ipa-inline.c (pass_ipa_inline): Likewise.
15174 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
15175 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
15176 * tree-inline.c (copy_bb): Removed an unnecessary double check for
15177 is_gimple_call.
15178 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
15179 edges.
15180 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
15181 (output_cgraph): Stream also indirect edges.
15182 (lto_output_edge): Added capability to stream indirect edges.
15183 (input_edge): Likewise.
15184 (input_cgraph_1): Likewise.
15185 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
15186 of indirect edges.
15187
15188 2010-04-28 Richard Guenther <rguenther@suse.de>
15189
15190 PR tree-optimization/43879
15191 PR tree-optimization/43909
15192 * tree-ssa-structalias.c (struct variable_info): Add
15193 only_restrict_pointers flag.
15194 (new_var_info): Initialize it. Increment stats.total_vars here.
15195 (create_function_info_for): Do not increment stats.total_vars here.
15196 (get_function_part_constraint): Fix build with C++.
15197 (insert_into_field_list): Remove.
15198 (push_fields_onto_fieldstack): Properly merge fields.
15199 (create_variable_info_for): Split and simplify.
15200 (create_variable_info_for_1): New piece.
15201 (intra_create_variable_infos): Properly make restrict constraints
15202 from parameters.
15203
15204 2010-04-28 Richard Guenther <rguenther@suse.de>
15205
15206 PR c++/43880
15207 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
15208
15209 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
15210 Jan Hubicka <hubicka@ucw.cz>
15211
15212 * doc/invoke.texi (-Wsuggest-attribute=const,
15213 -Wsuggest-attribute=pure): Document.
15214 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
15215 (function_always_visible_to_compiler_p,
15216 suggest_attribute, warn_function_pure, warn_function_const):
15217 New functions.
15218 (check_call): Improve debug info.
15219 (analyze_function): Do not check availability.
15220 (add_new_function): Check availability.
15221 (propagate): Output warnings.
15222 (skip_function_for_local_pure_const): New function.
15223 (local_pure_const): Use it; output warnings.
15224 * common.opt (Wsuggest-attribute=const,
15225 Wsuggest-attribute=pure): New.
15226
15227 2010-04-27 Jakub Jelinek <jakub@redhat.com>
15228
15229 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
15230 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
15231 or DW_CFA_def_cfa_offset{,_sf}.
15232
15233 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
15234
15235 * tree.h: Fix truncated long macros.
15236
15237 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
15238
15239 * collect2.c (TARGET_64BIT): Redefine to target's default.
15240 * tlink.c: Likewise.
15241 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
15242 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
15243 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
15244 for underscoring __USER_LABEL_PREFIX__.
15245 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
15246 (SUB_LINK_ENTRY32): New.
15247 (SUB_LINK_ENTRY64): New.
15248 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
15249 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
15250 (SUB_LINK_ENTRY64): New.
15251 (SUB_LINK_ENTRY): New.
15252 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
15253 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
15254 x64 target is choosen.
15255 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
15256 * configure: Regenerated.
15257 * configure.ac (leading-mingw64-underscores): Option added.
15258
15259 2010-04-27 Jan Hubicka <jh@suse.cz>
15260
15261 * doc/invoke.texi (-fipa-profile): Document.
15262 * opts.c (decode_options): Enable ipa-profile at -O1.
15263 * timevar.def (TV_IPA_PROFILE): Define.
15264 * common.opt (fipa-profile): Add.
15265 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
15266 flag for clones.
15267 (cgraph_propagate_frequency): Handle only local ones.
15268 * tree-pass.h (pass_ipa_profile): Declare.
15269 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
15270 (pass_ipa_profile): Use TV_IPA_PROFILE.
15271 * ipa.c (ipa_profile): New function.
15272 (gate_ipa_profile): Likewise.
15273 (pass_ipa_profile): New global variable.
15274 * passes.c (pass_ipa_profile): New.
15275
15276 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
15277
15278 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
15279
15280 2010-04-27 Martin Jambor <mjambor@suse.cz>
15281
15282 PR middle-end/43812
15283 * ipa.c (dissolve_same_comdat_group_list): New function.
15284 (function_and_variable_visibility): Call
15285 dissolve_same_comdat_group_list when comdat group contains external or
15286 newly local nodes.
15287 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
15288 lists are circular and that they contain only DECL_ONE_ONLY nodes.
15289
15290 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
15291
15292 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
15293 (const_hash_1) <VECTOR_CST>: New case.
15294 (compare_constant) <VECTOR_CST>: Likewise.
15295 <ADDR_EXPR>: Deal with LABEL_REFs.
15296 (copy_constant) <VECTOR_CST>: New case.
15297
15298 2010-04-27 Jan Hubicka <jh@suse.cz>
15299
15300 * cgraph.c (cgraph_propagate_frequency): New function.
15301 * cgraph.h (cgraph_propagate_frequency): Declare.
15302 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
15303 cgraph_propagate_frequency.
15304
15305 2010-04-27 Jakub Jelinek <jakub@redhat.com>
15306
15307 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
15308
15309 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
15310
15311 PR target/40657
15312 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
15313 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
15314 here to determine which regs to push and how much stack to reserve.
15315
15316 2010-04-27 Jie Zhang <jie@codesourcery.com>
15317
15318 * doc/gimple.texi (gimple_statement_with_ops): Remove
15319 addresses_taken field.
15320 (gimple_statement_with_memory_ops): Likewise.
15321
15322 2010-04-27 Jan Hubicka <jh@suse.cz>
15323
15324 * tree-inline.c (eni_inlining_weights): Remove.
15325 (estimate_num_insns): Special case more builtins.
15326
15327 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
15328
15329 PR c/32207
15330 * c-typeck.c (build_binary_op): Move forward check for comparison
15331 pointer with null pointer constant and adjust the diagnostic message.
15332
15333 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
15334
15335 PR lto/42776
15336 * configure.ac (gcc_cv_as_section_has_align): Set if installed
15337 binutils supports extended .section directive needed by LTO, or
15338 warn if older binutils found.
15339 (LTO_BINARY_READER): New AC_SUBST'd variable.
15340 (LTO_USE_LIBELF): Likewise.
15341 * gcc/config.gcc (lto_binary_reader): New target-specific configure
15342 variable.
15343 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
15344 (LTO_USE_LIBELF): Likewise.
15345 * configure: Regenerate.
15346
15347 * collect2.c (is_elf): Rename from this ...
15348 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
15349 object files in addition to ELF-formatted ones.
15350 (scan_prog_file): Caller updated. Also allow for LTO info marker
15351 symbol to be prefixed or not by an extra underscore.
15352
15353 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
15354 * config/i386/winnt.c: Also #include lto-streamer.h
15355 (i386_pe_asm_named_section): Specify 1-byte section alignment for
15356 LTO named sections.
15357 (i386_pe_asm_output_aligned_decl_common): Add comment.
15358 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
15359
15360 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
15361
15362 PR target/43889
15363 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
15364 Add missing earlyclobber for second alternative.
15365
15366 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
15367
15368 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
15369 bits for artificial defs at the top of the block.
15370 * fwprop.c (single_def_use_enter_block): Don't call it.
15371
15372 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
15373
15374 PR 43715
15375 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
15376 instead of "$gcc_cv_objdump -T".
15377 Use "-undefined dynamic_lookup" on darwin.
15378 * gcc/configure: Regenerate.
15379
15380 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15381
15382 PR c/43893
15383 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
15384
15385 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
15386
15387 * c-parser.c (struct c_token): Move location field up.
15388 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
15389 (struct c_declspecs): Convert typespec_word, storage_class, and
15390 default_int_p into bitfields.
15391 (struct c_declarator): Move loc field up.
15392
15393 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
15394
15395 * cfgloop.h (struct loop): Move can_be_parallel field up.
15396 * ipa-prop.h (struct ip_node_params): Move bitfields up.
15397 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
15398 down.
15399 (struct iv_cand): Convert pos field into a bitfield.
15400 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
15401 field up.
15402 (struct _stmt_vec_info): Shuffle fields for better packing.
15403
15404 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
15405
15406 * varasm.c (IN_NAMED_SECTION): Remove guard.
15407 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
15408 (IN_NAMED_SECTION_P): ...this.
15409 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
15410 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
15411
15412 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
15413
15414 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
15415 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
15416 of shadowing it. Fix comments.
15417
15418 2010-04-26 Jan Hubicka <jh@suse.cz>
15419
15420 * cgraph.c (cgraph_create_node): Set node frequency to normal.
15421 (cgraph_clone_node): Copy function frequency.
15422 * cgraph.h (node_frequency): New enum
15423 (struct cgraph_node): Add.
15424 * final.c (rest_of_clean_state): Update.
15425 * lto-cgraph.c (lto_output_node): Output node frequency.
15426 (input_overwrite_node): Input node frequency.
15427 * tre-ssa-loop-ivopts (computation_cost): Update.
15428 * lto-streamer-out.c (output_function): Do not output function
15429 frequency.
15430 * predict.c (maybe_hot_frequency_p): Update and handle functions
15431 executed once.
15432 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
15433 attribute lookup.
15434 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
15435 (compute_function_frequency): Set noreturn functions to be executed
15436 once.
15437 (choose_function_section): Update.
15438 * lto-streamer-in.c (input_function): Do not input function frequency.
15439 * function.c (allocate_struct_function): Do not initialize function
15440 frequency.
15441 * function.h (function_frequency): Remove.
15442 (struct function): Remove function frequency.
15443 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
15444 (try_update): Update.
15445 * tree-inline.c (initialize_cfun): Do not update function frequency.
15446 * passes.c (pass_init_dump_file): Update.
15447 * i386.c (ix86_compute_frame_layout): Update.
15448 (ix86_pad_returns): Update.
15449
15450 2010-04-26 Jie Zhang <jie@codesourcery.com>
15451
15452 PR tree-optimization/43833
15453 * tree-vrp.c (range_int_cst_p): New.
15454 (range_int_cst_singleton_p): New.
15455 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
15456 when both operands are constants. Use range_int_cst_p in
15457 BIT_IOR_EXPR case.
15458
15459 2010-04-26 Jan Hubicka <jh@suse.cz>
15460
15461 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
15462
15463 2010-04-26 Richard Guenther <rguenther@suse.de>
15464
15465 PR lto/43080
15466 * gimple.c (gimple_decl_printable_name): Deal gracefully
15467 with a NULL DECL_NAME.
15468
15469 2010-04-26 Richard Guenther <rguenther@suse.de>
15470
15471 PR lto/42425
15472 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
15473 if emitting debug information and it is either a function
15474 or a namespace decl.
15475
15476 2010-04-26 Ira Rosen <irar@il.ibm.com>
15477
15478 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
15479 determine if the statement is vectorizable, and a macro to access it.
15480 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15481 Skip statements that can't be vectorized. If the analysis fails,
15482 mark the statement as unvectorizable if vectorizing basic block.
15483 (vect_compute_data_refs_alignment): Likewise.
15484 (vect_verify_datarefs_alignment): Skip statements marked as
15485 unvectorizable. Add print.
15486 (vect_analyze_group_access): Skip statements that can't be
15487 vectorized. If the analysis fails, mark the statement as
15488 unvectorizable if vectorizing basic block.
15489 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
15490 * tree-vect-stmts.c (vectorizable_store): Fix the number of
15491 generated stmts for SLP.
15492 (new_stmt_vec_info): Initialize the new field.
15493 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
15494 statements marked as unvectorizable.
15495
15496 2010-04-25 Joseph Myers <joseph@codesourcery.com>
15497
15498 * c-common.c (flag_isoc1x): New.
15499 (flag_isoc99): Update comment.
15500 * c-common.h (flag_isoc1x): New.
15501 (flag_isoc99): Update comment.
15502 * c-cppbuiltin.c (builtin_define_float_constants): Also define
15503 __<type>_DECIMAL_DIG__.
15504 * c-opts.c (set_std_c1x): New.
15505 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
15506 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
15507 * c.opt (-std=c1x, -std=gnu1x): New options.
15508 * doc/cpp.texi: Mention -std=c1x.
15509 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
15510 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
15511 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
15512 * doc/standards.texi: Mention C1X.
15513 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
15514 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
15515 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
15516 Define for C1X.
15517
15518 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
15519
15520 * config/i386/gmon-sol2.c (_mcleanup): Change format string
15521 placeholder from 0x%x to %#x.
15522 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15523 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15524 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15525 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15526 * config/i386/i386.c (ix86_target_string): Ditto.
15527 (output_pic_addr_const): Ditto.
15528 (print_operand): Ditto.
15529
15530 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
15531
15532 * combine.c (find_split_point): Add third argument. Use it
15533 to find nested multiply-accumulate instructions. Adjust calls.
15534 (try_combine): Adjust call to find_split_point.
15535
15536 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
15537
15538 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
15539
15540 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
15541
15542 PR tree-optimization/41442
15543 * fold-const.c (merge_truthop_with_opposite_arm): New function.
15544 (fold_binary_loc): Call it.
15545
15546 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15547
15548 * toplev.c (general_init): Set default for fdiagnostics-show-option.
15549 * opts.c (common_handle_option): Allow disabling it.
15550 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
15551
15552 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
15553
15554 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
15555 between modes if both types are integral.
15556
15557 2010-04-23 Richard Guenther <rguenther@suse.de>
15558
15559 PR tree-optimization/43572
15560 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
15561
15562 2010-04-23 Richard Guenther <rguenther@suse.de>
15563
15564 PR lto/43455
15565 * tree-inline.c (tree_can_inline_p): Also check compatibility
15566 of return types.
15567
15568 2010-04-23 Martin Jambor <mjambor@suse.cz>
15569
15570 PR tree-optimization/43846
15571 * tree-sra.c (struct access): New flag grp_assignment_read.
15572 (build_accesses_from_assign): Set grp_assignment_read.
15573 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
15574 (enum mark_read_status): New type.
15575 (analyze_access_subtree): Propagate grp_assignment_read, create
15576 accesses also if both direct_read and root->grp_assignment_read.
15577
15578 2010-04-23 Martin Jambor <mjambor@suse.cz>
15579
15580 PR middle-end/43835
15581 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
15582 function does not have type attributes.
15583
15584 2010-04-23 Richard Guenther <rguenther@suse.de>
15585
15586 PR lto/42653
15587 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
15588 of FUNCTION_DECLs.
15589
15590 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15591
15592 * sese.h (create_if_region_on_edge): Remove.
15593
15594 * sese.c (create_if_region_on_edge): Make static.
15595
15596 * tree-inline.c: Do not include ggc.h.
15597
15598 * expr.c: Do not include ggc.h.
15599
15600 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
15601 dependencies.
15602
15603 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
15604
15605 PR target/43744
15606 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15607 in the middle of insns for casesi_worker_2.
15608
15609 2010-04-22 David Edelsohn <edelsohn@gnu.org>
15610
15611 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
15612
15613 2010-04-22 Ira Rosen <irar@il.ibm.com>
15614
15615 PR tree-optimization/43842
15616 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
15617 loop unrolling in update of exit phis. Fix comment.
15618 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
15619 least two reduction statements in the loop before starting SLP
15620 analysis.
15621
15622 2010-04-22 Nick Clifton <nickc@redhat.com>
15623
15624 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
15625
15626 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
15627
15628 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
15629 to simplify a + ~a.
15630
15631 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15632
15633 * tree-parloops.c (loop_parallel_p): New argument
15634 parloop_obstack. Pass it down.
15635 (parallelize_loops): New variable parloop_obstack. Initialize it,
15636 pass it down, free it.
15637
15638 * tree-loop-linear.c (linear_transform_loops): Pass down
15639 lambda_obstack.
15640
15641 * tree-data-ref.h (lambda_compute_access_matrices): New argument
15642 of type struct obstack *.
15643
15644 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
15645 scratch_obstack. Initialize it, pass down, free it.
15646
15647 * lambda.h (lambda_loop_new): Remove.
15648 (lambda_matrix_new, lambda_matrix_inverse)
15649 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
15650 argument of type struct obstack *.
15651
15652 * lambda-trans.c (lambda_trans_matrix_new): New argument
15653 lambda_obstack. Pass it down, use obstack allocation for ret.
15654 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
15655 it down.
15656
15657 * lambda-mat.c (lambda_matrix_get_column)
15658 (lambda_matrix_project_to_null): Remove.
15659 (lambda_matrix_new): New argument lambda_obstack. Use obstack
15660 allocation for mat.
15661 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
15662 lambda_obstack.
15663
15664 * lambda-code.c (lambda_loop_new): New function.
15665 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
15666 (lambda_compute_auxillary_space, lambda_compute_target_space)
15667 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
15668 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
15669 (build_access_matrix): New argument lambda_obstack. Use obstack
15670 allocation for am.
15671 (lambda_compute_step_signs, lambda_compute_access_matrices): New
15672 argument lambda_obstack. Pass it down.
15673
15674 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
15675
15676 * optabs.h (expand_widening_mult): Declare.
15677
15678 2010-04-22 Richard Guenther <rguenther@suse.de>
15679
15680 PR tree-optimization/43845
15681 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
15682 lookup the CALL_EXPR function and arguments.
15683
15684 2010-04-22 Nick Clifton <nickc@redhat.com>
15685
15686 * config/stormy16/stormy16.c
15687 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
15688 * config/stormy16/stormy16.h: Tidy up formatting.
15689 (DONT_USE_BUILTIN_SETJMP): Remove definition.
15690 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
15691 (ineqbranchsi): Delete pattern.
15692 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
15693 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
15694 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
15695 stormy16-lib2-ucmpsi2.c.
15696
15697 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
15698
15699 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
15700 df_simulate_find_noclobber_defs as appropriate. Keep track of an
15701 extra set merge_set_noclobber, and use it to relax the final test
15702 slightly.
15703 * df.h (df_simulate_find_noclobber_defs): Declare.
15704 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
15705 conditional defs.
15706 (df_simulate_find_noclobber_defs): New function.
15707
15708 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
15709
15710 * config/i386/i386.md: Use {} around multi-line preparation statements.
15711
15712 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15713
15714 * c-tree.h (push_init_level, pop_init_level, set_init_index)
15715 (process_init_element): New argument of type struct obstack *.
15716
15717 * c-typeck.c (push_init_level, pop_init_level, set_designator)
15718 (set_init_index, set_init_label, set_nonincremental_init)
15719 (set_nonincremental_init_from_string, find_init_member)
15720 (output_init_element, output_pending_init_elements)
15721 (process_init_element): New argument braced_init_obstack. Pass it
15722 down.
15723 (push_range_stack, add_pending_init): New argument
15724 braced_init_obstack. Use obstack allocation.
15725
15726 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
15727 braced_init_obstack. Pass it down.
15728 (c_parser_braced_init): New variables ret, braced_init_obstack.
15729 Initialize obstack, pass it down and finally free it.
15730
15731 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
15732
15733 PR middle-end/29274
15734 * tree-pass.h (pass_optimize_widening_mul): Declare.
15735 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
15736 gate_optimize_widening_mul): New static functions.
15737 (pass_optimize_widening_mul): New.
15738 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
15739 <case MULT_EXPR>: Remove support for widening multiplies.
15740 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
15741 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
15742 simplify_gen_unary rather than directly building extensions.
15743 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
15744 WIDEN_MULT_EXPR.
15745 * expmed.c (expand_widening_mult): New function.
15746 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
15747
15748 2010-04-21 Jan Hubicka <jh@suse.cz>
15749
15750 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
15751 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
15752 * lto-wpa-fixup.c: Remove.
15753 * Makefile.in (lto-wpa-fixup.o): Remove.
15754 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
15755 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
15756 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
15757
15758 2010-04-21 Jan Hubicka <jh@suse.cz>
15759
15760 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
15761 add write_optimization_summary, read_optimization_summary.
15762 (ipa_write_summaries_of_cgraph_node_set): Remove.
15763 (ipa_write_optimization_summaries): Declare.
15764 (ipa_read_optimization_summaries): Declare.
15765 * ipa-cp.c (pass_ipa_cp): Update.
15766 * ipa-reference.c (pass_ipa_reference): Update.
15767 * ipa-pure-const.c (pass_ipa_pure_const): Update.
15768 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
15769 Update.
15770 * ipa-inline.c (pass_ipa_inline): Update.
15771 * ipa.c (pass_ipa_whole_program): Update.
15772 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
15773 * passes.c (ipa_write_summaries_1): Do not test wpa.
15774 (ipa_write_optimization_summaries_1): New.
15775 (ipa_write_optimization_summaries): New.
15776 (ipa_read_summaries): Do not test ltrans.
15777 (ipa_read_optimization_summaries_1): New.
15778 (ipa_read_optimization_summaries): New.
15779
15780 2010-04-21 Jan Hubicka <jh@suse.cz>
15781
15782 * lto-cgraph.c (lto_output_node): Do not output comdat groups
15783 for boundary nodes.
15784 (output_cgraph): Do not arrange comdat groups for boundary nodes.
15785
15786 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15787
15788 PR debug/40040
15789 * dwarf2out.c (add_name_and_src_coords_attributes): Add
15790 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
15791
15792 2010-04-21 Jan Hubicka <jh@suse.cz>
15793
15794 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
15795
15796 2010-04-21 Jan Hubicka <jh@suse.cz>
15797
15798 * varpool.c (decide_is_variable_needed): Variable is always needed
15799 during ltrans.
15800
15801 2010-04-21 Jan Hubicka <jh@suse.cz>
15802
15803 * opts.c (decode_options): Enable pure-const pass for whopr.
15804
15805 2010-04-21 Jan Hubicka <jh@suse.cz>
15806
15807 * cgraph.c (dump_cgraph_node): Dump also assembler name.
15808 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
15809 at WPA dumping.
15810 (cgraph_decide_inlining): Do not expect callee to be removed in all
15811 cases.
15812
15813 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
15814
15815 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
15816
15817 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
15818
15819 * config/i386/i386.md (x86_shrd): Add athlon_decode and
15820 amdfam10_decode attributes.
15821
15822 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15823
15824 PR middle-end/43570
15825 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
15826 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
15827 (lower_copyprivate_clauses): Use private var in outer
15828 context instead of original var. Make sure the types
15829 are correct for VLAs.
15830
15831 2010-04-21 Richard Guenther <rguenther@suse.de>
15832
15833 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
15834 to non-pointer objects.
15835
15836 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15837
15838 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
15839 last chain entry if it starts with the still current label.
15840 (add_location_or_const_value_attribute): Check that
15841 loc_list->first->next is NULL instead of comparing ->first with ->last.
15842 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
15843 to add_var_loc_to_decl.
15844
15845 * dwarf2out.c (output_call_frame_info): For dw_cie_version
15846 >= 4 add also address size and segment size fields into CIE header.
15847
15848 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
15849 long as address size is the same as sizeof (void *) and
15850 segment size is 0.
15851 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
15852 address size or segment size is unexpected, return DW_EH_PE_omit.
15853 (classify_object_over_fdes): If get_cie_encoding returned
15854 DW_EH_PE_omit, return -1.
15855 (init_object): If classify_object_over_fdes returned -1,
15856 pretend there were no FDEs at all.
15857
15858 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
15859
15860 * config/i386/i386.md (bswap<mode>2): Macroize expander from
15861 bswap{si,di}2 using SWI48 mode iterator.
15862 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
15863 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
15864 set modrm attribute of bswap insn to 0 and remove length attribute.
15865 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
15866 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
15867 set mode attribute to <MODE> and remove length attribute.
15868
15869 2010-04-20 James E. Wilson <wilson@codesourcery.com>
15870
15871 PR rtl-optimization/43520
15872 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
15873 zero available registers.
15874
15875 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15876
15877 * builtins.c (fold_builtin_cproj): Fold more cases.
15878
15879 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15880
15881 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
15882 (fold_builtin_1): Fold builtin cproj.
15883 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
15884 Use ATTR_CONST_NOTHROW_LIST.
15885
15886 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
15887
15888 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
15889 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
15890 ffsi2_no_cmove for !TARGET_CMOVE.
15891 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
15892 (ffssi2): Remove expander.
15893 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
15894 mode iterator.
15895 (ctz<mode>2): Ditto from ctz{si,di}2.
15896 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
15897 mode iterator.
15898 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
15899 mode iterator.
15900
15901 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15902
15903 * dwarf2out.c (AT_linkage_name): Define.
15904 (clone_as_declaration): Handle DW_AT_linkage_name.
15905 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
15906 of DW_AT_MIPS_linkage_name.
15907 (move_linkage_attr): Likewise.
15908 (dwarf2out_finish): Likewise.
15909
15910 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
15911
15912 PR middle-end/41952
15913 * fold-const.c (fold_comparison): New folding rule.
15914
15915 2010-04-20 Anatoly Sokolov <aesok@post.ru>
15916
15917 * double-int.h (double_int_setbit): Declare.
15918 * double-int.c (double_int_setbit): New function.
15919 * rtl.h (immed_double_int_const): Declare.
15920 * emit-rtl.c (immed_double_int_const): New function.
15921 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
15922 and immed_double_int_const functions.
15923 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
15924 expand_copysign_bit): (Ditto.).
15925 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
15926 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
15927 * dojump.c (prefer_and_bit_test): (Ditto.).
15928 * expr.c (convert_modes, reduce_to_bit_field_precision,
15929 const_vector_from_tree): (Ditto.).
15930 * expmed.c (mask_rtx, lshift_value): (Ditto.).
15931
15932 2010-04-20 Jan Hubicka <jh@suse.cz>
15933
15934 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
15935 (dump_cgraph_node): Dump new flags.
15936 * cgraph.h (struct cgraph_node): Add flags
15937 reachable_from_other_partition and in_other_partition.
15938 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
15939 other partition can not be removed.
15940 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
15941 the other partition must be output; silence sanity checking on
15942 leaking functions bodies from other paritition.
15943 * lto-cgraph.c (reachable_from_other_partition_p): New function.
15944 (lto_output_node): Output new flags; do not sanity check that inline
15945 clones are output; drop lto_forced_extern_inline_p code; do not mock
15946 visibility flags at partition boundaries.
15947 (add_node_to): New function.
15948 (output_cgraph): Use it to sort functions so masters appear before
15949 clones.
15950 (input_overwrite_node): Input new flags.
15951 * passes.c (ipa_write_summaries): Do not call
15952 lto_new_extern_inline_states.
15953 * lto-section-out.c (forced_extern_inline,
15954 lto_new_extern_inline_states lto_delete_extern_inline_states,
15955 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
15956 * lto-streamer.h (lto_new_extern_inline_states,
15957 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
15958 lto_forced_extern_inline_p): Kill.
15959
15960 2010-04-20 Richard Guenther <rguenther@suse.de>
15961
15962 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
15963 from vars that can have pointers.
15964 (process_constraint): Dump useless constraints.
15965
15966 2010-04-20 Richard Guenther <rguenther@suse.de>
15967
15968 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
15969 (dump_sa_points_to_info): Remove asserts.
15970 (init_base_vars): nothing_id isn't an escape point nor does it
15971 have pointers.
15972
15973 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15974
15975 * tree.h (TYPE_REF_IS_RVALUE): Define.
15976 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
15977 should_move_die_to_comdat, prune_unused_types_walk): Handle
15978 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
15979 (modified_type_die, gen_reference_type_die): Emit
15980 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
15981 if TYPE_REF_IS_RVALUE and -gdwarf-4.
15982
15983 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15984
15985 PR target/43635
15986 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
15987 calls for -fpic -m31 if they have been sibcall optimized.
15988
15989 2010-04-19 James E. Wilson <wilson@codesourcery.com>
15990
15991 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
15992 ar.lc fixed and call-used.
15993
15994 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
15995
15996 2010-04-19 Jan Hubicka <jh@suse.cz>
15997
15998 * opts.c (decode_options): Disable whpr incompatible passes.
15999 * lto/lto.c (lto_1_to_1_map): Skip clones.
16000 (read_cgraph_and_symbols): Do not mark everything as needed.
16001 (do_whole_program_analysis): Do map only after optimizing;
16002 set proper cgraph_state; use passmanager.
16003
16004 2010-04-19 DJ Delorie <dj@redhat.com>
16005
16006 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
16007 POINTER_PLUS_EXPR and fix them.
16008
16009 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
16010
16011 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
16012 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
16013 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
16014 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
16015 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
16016 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
16017 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
16018 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
16019 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
16020 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
16021 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
16022
16023 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
16024
16025 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
16026 (check_cond_move_block): Likewise.
16027 (cond_move_process_if_block): Likewise.
16028 (noce_find_if_block): Improve formatting.
16029 (find_if_header): Pass 0 to memset and tweak conditions.
16030 (cond_exec_find_if_block): Fix long lines and tweak conditions.
16031
16032 2010-04-19 Jakub Jelinek <jakub@redhat.com>
16033
16034 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
16035 for -gdwarf-4.
16036
16037 PR middle-end/43337
16038 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
16039 with non-local decl doesn't need chain.
16040
16041 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
16042
16043 * ira-color.c (allocno_reload_assign): Avoid accumulating
16044 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
16045
16046 2010-04-19 Martin Jambor <mjambor@suse.cz>
16047
16048 * gimple.h (create_tmp_reg): Declare.
16049 * gimplify.c (create_tmp_reg): New function.
16050 (gimplify_return_expr): Use create_tmp_reg.
16051 (gimplify_omp_atomic): Likewise.
16052 (gimple_regimplify_operands): Likewise.
16053 * tree-dfa.c (make_rename_temp): Likewise.
16054 * tree-predcom.c (predcom_tmp_var): Likewise.
16055 (reassociate_to_the_same_stmt): Likewise.
16056 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
16057 (get_replaced_param_substitute): Likewise.
16058 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16059 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
16060 * tree-ssa-pre.c (get_representative_for): Likewise.
16061 (create_expression_by_pieces): Likewise.
16062 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
16063 (create_tailcall_accumulator): Likewise.
16064
16065 2010-04-19 Martin Jambor <mjambor@suse.cz>
16066
16067 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
16068 new_stmt.
16069 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
16070
16071 2010-04-19 Richard Guenther <rguenther@suse.de>
16072
16073 PR tree-optimization/43796
16074 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
16075 from SCEV in the lattice.
16076 (vrp_visit_phi_node): Dump change.
16077
16078 2010-04-19 Richard Guenther <rguenther@suse.de>
16079
16080 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
16081 * configure: Re-generated.
16082
16083 2010-04-19 Richard Guenther <rguenther@suse.de>
16084
16085 PR tree-optimization/43783
16086 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
16087 constant ARRAY_REF operands two and three if possible.
16088
16089 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
16090
16091 PR target/43766
16092 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
16093
16094 2010-04-19 Jie Zhang <jie@codesourcery.com>
16095
16096 PR target/43662
16097 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
16098
16099 2010-04-19 Ira Rosen <irar@il.ibm.com>
16100
16101 PR tree-optimization/37027
16102 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
16103 and macro to access it.
16104 (vectorizable_reduction): Add argument.
16105 (vect_get_slp_defs): Likewise.
16106 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
16107 statements for possible use in SLP.
16108 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
16109 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
16110 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
16111 add new argument.
16112 (vectorizable_reduction): Likewise.
16113 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
16114 vect_get_slp_defs.
16115 (vectorizable_type_demotion, vectorizable_type_promotion,
16116 vectorizable_store): Likewise.
16117 (vect_analyze_stmt): Update call to vectorizable_reduction.
16118 (vect_transform_stmt): Likewise.
16119 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
16120 (vect_build_slp_tree): Fix indentation. Check that there are no loads
16121 from different interleaving chains in same node.
16122 (vect_slp_rearrange_stmts): New function.
16123 (vect_supported_load_permutation_p): Allow load permutations for
16124 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
16125 inside SLP nodes if necessary.
16126 (vect_analyze_slp_instance): Handle reductions.
16127 (vect_analyze_slp): Try to build SLP instances originating from groups
16128 of reductions.
16129 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
16130 (vect_get_constant_vectors): Create initial vectors for reductions
16131 according to reduction code. Add new argument.
16132 (vect_get_slp_defs): Add new argument, pass it to
16133 vect_get_constant_vectors.
16134 (vect_schedule_slp_instance): Remove SLP tree root statements.
16135
16136 2010-04-19 Jakub Jelinek <jakub@redhat.com>
16137
16138 * tree.h (ENUM_IS_SCOPED): Define.
16139 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
16140 for ENUM_IS_SCOPED enums.
16141
16142 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
16143
16144 * fold-const.c (fold_comparison): Use ssizetype.
16145 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16146 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
16147 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
16148 * tree-object-size.c (compute_object_sizes): Use size_type_node.
16149
16150 * tree.h (initialize_sizetypes): Remove parameter.
16151 (build_common_tree_nodes): Remove second parameter.
16152 * stor-layout.c (initialize_sizetypes): Remove parameter.
16153 Always create an unsigned type.
16154 (set_sizetype): Assert that the passed type is unsigned and simplify.
16155 * tree.c (build_common_tree_nodes): Remove second parameter.
16156 Adjust call to initialize_sizetypes.
16157 * c-decl.c (c_init_decl_processing): Remove second argument in call to
16158 build_common_tree_nodes.
16159
16160 2010-04-18 Matthias Klose <doko@ubuntu.com>
16161
16162 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
16163
16164 2010-04-18 Ira Rosen <irar@il.ibm.com>
16165
16166 PR tree-optimization/43771
16167 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
16168 load permutation doesn't have gaps.
16169
16170 2010-04-18 Jan Hubicka <jh@suse.cz>
16171
16172 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
16173 (sse_prologue_save_insn expander): Use new pattern.
16174 (sse_prologue_save_insn1): New pattern and splitter.
16175 (sse_prologue_save_insn): Update to deal also with 64bit aligned
16176 blocks.
16177 * i386.c (setup_incoming_varargs_64): Do not compute jump
16178 destination here.
16179 (ix86_gimplify_va_arg): Update alignment needed.
16180 (ix86_local_alignment): Do not align all local arrays to 128bit.
16181
16182 2010-04-17 Jan Hubicka <jh@suse.cz>
16183
16184 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
16185
16186 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
16187
16188 * arm.md (negdi2): Remove redundant code to force values into a
16189 register.
16190
16191 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
16192
16193 * arm/bpabi.S: Add EABI alignment attributes to objects.
16194 * arm/bpabi-v6m.S: Likewise.
16195 * arm/crti.asm: Likewise.
16196 * arm/crtn.asm: Likewise.
16197 * arm/lib1funcs.asm: Likewise.
16198 * arm/libunwind.S: Likewise.
16199
16200 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
16201
16202 * arm-protos.h (tune_params): New structure.
16203 * arm.c (current_tune): New variable.
16204 (arm_constant_limit): Delete.
16205 (struct processors): Add pointer to the tune parameters.
16206 (arm_slowmul_tune): New tuning option.
16207 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
16208 (all_cores): Adjust to pick up the tuning model.
16209 (arm_constant_limit): New function.
16210 (arm_override_options): Select the appropriate tuning model. Delete
16211 initialization of arm_const_limit.
16212 (arm_split_constant): Use the new constant-limit model.
16213 (arm_rtx_costs): Pick up the current tuning model.
16214 * arm.md (is_strongarm, is_xscale): Delete.
16215 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
16216 for Xscale variant architectures.
16217 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
16218
16219 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16220
16221 * config/arm/arm.c (arm_gen_constant): Remove unused variable
16222 can_shift.
16223 (arm_rtx_costs_1): Remove unused variable extra_cost.
16224 (arm_unwind_emit_set): Use variable offset.
16225 (thumb1_output_casesi): Remove unused variable flags.
16226
16227 2010-04-16 Jeff Law <law@redhat.com>
16228
16229 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
16230 needing assignment rather than doing a two-phase assignment. Remove
16231 unused variable 'm'.
16232
16233 2010-04-16 Jakub Jelinek <jakub@redhat.com>
16234
16235 PR bootstrap/43767
16236 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
16237
16238 2010-04-16 Doug Kwan <dougkwan@google.com>
16239
16240 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
16241 (next_operand_entry_id): New static variable.
16242 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
16243 (add_to_ops_vec): Assigned unique ID to operand entry.
16244 (struct oecount_s): New field ID.
16245 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
16246 (undistribute_ops_list): Assign unique IDs to oecounts.
16247 (init_reassoc): reset next_operand_entry_id.
16248
16249 2010-04-16 Doug Kwan <dougkwan@google.com>
16250
16251 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
16252 missing left parenthesis.
16253
16254 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
16255
16256 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
16257 *btdi_rex64 using SWI48 mode iterator.
16258 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
16259 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
16260 *jcc_btdi_mask_rex64.
16261
16262 2010-04-16 Anatoly Sokolov <aesok@post.ru>
16263
16264 * double-int.h (tree_to_double_int): Convert to macro.
16265 * double-int.c (tree_to_double_int): Remove.
16266
16267 2010-04-16 Jakub Jelinek <jakub@redhat.com>
16268
16269 PR debug/43762
16270 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
16271 with want_address 2 and in case a single element list might be
16272 possible, call it again with want_address 0.
16273
16274 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16275
16276 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
16277 case 'W' print operands for HI mode.
16278 * config/h8300/h8300.h (Y0, Y2) : New constraints.
16279 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
16280 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
16281 * config/h8300/predicate.md (bit_register_indirect_operand): New.
16282
16283 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
16284
16285 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
16286 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
16287 #xx:3 and #xx:4 mode.
16288
16289 * config/h8300/h8300.md (inverted load with HImode dest): Add
16290 support for H8300SX.
16291
16292 * config/h8300/predicate.md (bit_operand): Allow immediate values that
16293 satisfy 'U' constraint.
16294
16295 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16296
16297 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
16298 * configure: Regenerate.
16299 * config.in: Regenerate.
16300 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
16301 works.
16302
16303 2010-04-16 Richard Guenther <rguenther@suse.de>
16304
16305 * tree.h (struct tree_decl_minimal): Move pt_uid ...
16306 (struct tree_decl_common): ... here.
16307 (DECL_PT_UID): Adjust.
16308 (SET_DECL_PT_UID): Likewise.
16309 (DECL_PT_UID_SET_P): Likewise.
16310
16311 2010-04-16 Richard Guenther <rguenther@suse.de>
16312
16313 PR tree-optimization/43572
16314 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
16315 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
16316 * tree-flow.h (is_call_clobbered): Remove.
16317 * tree-flow-inline.h (is_call_clobbered): Likewise.
16318 * tree-dfa.c (dump_variable): Do not dump call clobber state.
16319 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
16320 (execute_return_slot_opt): Adjust.
16321 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
16322 check for call clobbered vars here.
16323 (find_tail_calls): Move tailcall verification to the
16324 proper place.
16325
16326 2010-04-16 Diego Novillo <dnovillo@google.com>
16327
16328 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
16329
16330 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
16331
16332 PR target/40603
16333 * config/arm/arm.md (cbranchqi4): New pattern.
16334 * config/arm/predicates.md (const0_operand,
16335 cbranchqi4_comparison_operator): New predicates.
16336
16337 2010-04-16 Richard Guenther <rguenther@suse.de>
16338
16339 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
16340 (dump_gimple_stmt): Likewise.
16341
16342 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
16343
16344 * recog.h (struct recog_data): New field is_operator.
16345 (struct insn_operand_data): New field is_operator.
16346 * recog.c (extract_insn): Set recog_data.is_operator.
16347 * genoutput.c (output_operand_data): Emit code to set the
16348 is_operator field.
16349 * reload.c (find_reloads): Use it rather than testing for an
16350 empty constraint string.
16351
16352 PR target/41514
16353 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
16354 If the previous insn is a cbranchsi4_insn with the same arguments,
16355 omit the compare instruction.
16356
16357 * config/arm/arm.md (addsi3_cbranch): If destination is a high
16358 register, inputs must be low registers and we need a low register
16359 scratch. Handle alternative 2 like alternative 3.
16360
16361 2010-04-16 Jakub Jelinek <jakub@redhat.com>
16362
16363 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
16364 don't call get_addr on both. If one expression is a VALUE and
16365 the other a REG, check VALUE's locs if the REG isn't among them.
16366
16367 2010-04-16 Christian Bruel <christian.bruel@st.com>
16368
16369 * config/sh/sh.h (sh_frame_pointer_required): New function.
16370 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
16371 (flag_omit_frame_pointer) Set.
16372 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
16373 (rounded_frame_size): Adjust size with outgoing_args_size.
16374 (sh_set_return_address): Must return from stack pointer.
16375 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
16376 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
16377 (ACCUMULATE_OUTGOING_ARGS): Define.
16378 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
16379 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
16380
16381 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
16382
16383 PR target/43471
16384 * config/sh/sh.c (sh_legitimize_reload_address): Use
16385 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
16386 Remove a unneeded check for offset_base.
16387
16388 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
16389
16390 * configure: Regenerated.
16391
16392 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16393
16394 * config/s390/s390.c (s390_call_save_register_used): Switch back
16395 to HARD_REGNO_NREGS.
16396
16397 2010-04-15 Richard Guenther <rguenther@suse.de>
16398
16399 * alias.c (alias_set_subset_of): Handle alias-set zero
16400 child properly.
16401
16402 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
16403 Julian Brown <julian@codesourcery.com>
16404
16405 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
16406 alternatives according to use of high and low regs.
16407 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16408 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
16409 optimizing for size on Thumb-2.
16410
16411 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
16412
16413 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
16414
16415 2010-04-15 Richard Guenther <rguenther@suse.de>
16416
16417 * tree-ssa-structalias.c (struct variable_info): Add
16418 is_fn_info flag.
16419 (new_var_info): Initialize it.
16420 (dump_constraints): Support printing last added constraints.
16421 (debug_constraints): Adjust.
16422 (dump_constraint_graph): Likewise.
16423 (make_heapvar_for): Check for NULL cfun.
16424 (get_function_part_constraint): New function.
16425 (get_fi_for_callee): Likewise.
16426 (find_func_aliases): Properly implement IPA PTA constraints.
16427 (process_ipa_clobber): New function.
16428 (find_func_clobbers): Likewise.
16429 (insert_into_field_list_sorted): Remove.
16430 (create_function_info_for): Properly allocate vars for IPA mode.
16431 Do not use insert_into_field_list_sorted.
16432 (create_variable_info_for): Properly generate constraints for
16433 global vars in IPA mode.
16434 (dump_solution_for_var): Always dump the solution.
16435 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
16436 (find_what_var_points_to): Adjust.
16437 (pt_solution_set): Change.
16438 (pt_solution_ior_into): New function.
16439 (pt_solution_empty_p): Export.
16440 (pt_solution_includes_global): Adjust.
16441 (pt_solution_includes_1): Likewise.
16442 (pt_solutions_intersect_1): Likewise.
16443 (dump_sa_points_to_info): Check some invariants.
16444 (solve_constraints): Move constraint dumping ...
16445 (compute_points_to_sets): ... here.
16446 (ipa_pta_execute): ... and here.
16447 (compute_may_aliases): Do not re-compute points-to info
16448 locally if IPA info is available.
16449 (ipa_escaped_pt): New global var.
16450 (ipa_pta_execute): Properly implement IPA PTA.
16451 * tree-into-ssa.c (dump_decl_set): Support dumping
16452 decls not in referenced-vars.
16453 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
16454 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
16455 (dump_points_to_solution): Likewise.
16456 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
16457 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
16458 (remap_gimple_stmt): Reset call clobber/use information if necessary.
16459 (copy_decl_to_var): Copy DECL_PT_UID.
16460 (copy_result_decl_to_var): Likewise.
16461 * tree.c (make_node_stat): Initialize DECL_PT_UID.
16462 (copy_node_stat): Copy it.
16463 * tree.h (DECL_PT_UID): New macro.
16464 (SET_DECL_PT_UID): Likewise.
16465 (DECL_PT_UID_SET_P): Likewise.
16466 (struct tree_decl_minimal): Add pt_uid member.
16467 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
16468 (pt_solution_empty_p): Declare.
16469 (pt_solution_set): Adjust.
16470 (ipa_escaped_pt): Declare.
16471 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
16472 * gimple-pretty-print.c (pp_points_to_solution): New function.
16473 (dump_gimple_call): Dump call clobber/use information.
16474 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
16475 * tree-pass.h (TDF_ALIAS): New dump option.
16476 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
16477 * doc/invoke.texi (-fipa-pta): Update documentation.
16478
16479 2010-04-15 Richard Guenther <rguenther@suse.de>
16480
16481 * Makefile.in (OBJS-common): Add gimple-fold.o.
16482 (gimple-fold.o): New rule.
16483 * tree.h (maybe_fold_offset_to_reference,
16484 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
16485 prototypes ...
16486 * gimple.h: ... here.
16487 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
16488 may_propagate_address_into_dereference): Move prototypes ...
16489 * gimple.h: ... here.
16490 * tree-ssa-ccp.c (get_symbol_constant_value,
16491 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
16492 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
16493 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
16494 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
16495 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
16496 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
16497 gimplify_and_update_call_from_tree): Move ...
16498 * gimple-fold.c: ... here. New file.
16499 (ccp_fold_builtin): Rename to ...
16500 (gimple_fold_builtin): ... this.
16501 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
16502
16503 2010-04-15 Richard Guenther <rguenther@suse.de>
16504
16505 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
16506 fit_double_type, force_fit_type_double, add_double_with_sign,
16507 neg_double, mul_double_with_sign, lshift_double, rshift_double,
16508 lrotate_double, rrotate_double, div_and_round_double): Move ...
16509 * double-int.c: ... here.
16510 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
16511 add_double, neg_double, mul_double_with_sign, mul_double,
16512 lshift_double, rshift_double, lrotate_double, rrotate_double,
16513 div_and_round_double): Move prototypes ...
16514 * double-int.h: ... here.
16515
16516 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
16517
16518 PR target/43742
16519 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
16520 matching constraints to ensure inputs match the output.
16521
16522 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
16523
16524 PR target/43742
16525 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
16526 in an input-only operand.
16527
16528 2010-04-15 Anatoly Sokolov <aesok@post.ru>
16529
16530 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
16531 (double_int_not, double_int_lshift, double_int_rshift): Declare.
16532 (double_int_negative_p): Convert to static inline function.
16533 * double-int.c (double_int_lshift, double_int_lshift): New functions.
16534 (double_int_negative_p): Remove.
16535 * tree.h (lshift_double, rshift_double):
16536 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
16537 * fold-const.c (fold_convert_const_int_from_real,
16538 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
16539 (lshift_double): Change type of arith argument to bool.
16540 (rshift_double): Change type of arith argument to bool. Correct
16541 comment.
16542 * expmed.c (mask_rtx, lshift_value): (Ditto.).
16543
16544 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
16545
16546 PR target/21803
16547 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
16548 at the start and end of the then/else blocks, and omit them from the
16549 conversion.
16550 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
16551 argument; all callers changed. Pass zero to old_insns_match_p instead.
16552 (flow_find_head_matching_sequence): New function.
16553 (old_insns_match_p): Check REG_EH_REGION notes for calls.
16554 * basic-block.h (flow_find_cross_jump,
16555 flow_find_head_matching_sequence): Declare functions.
16556
16557 2010-04-14 Jason Merrill <jason@redhat.com>
16558
16559 PR c++/36625
16560 * c-common.c (attribute_takes_identifier_p): New fn.
16561 * c-common.h: Declare it.
16562
16563 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16564
16565 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
16566 splitter condition.
16567 (*udivmod<mode>4): Ditto.
16568
16569 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16570
16571 * config/i386/i386.md (maxmin_int): Rename code attribute from
16572 maxminiprefix and update all users.
16573 (maxmin_float): Ditto from maxminfprefix.
16574 (logic): Ditto from logicprefix.
16575 (absneg_mnemonic): Ditto from absnegprefix.
16576 * config/i386/mmx.md: Update all users of maxminiprefix,
16577 maxminfprefix and logicprefix for rename.
16578 * config/i386/sse.md: Ditto.
16579 * config/i386/sync.md (sync_<code><mode>): Update for
16580 logicprefix rename.
16581
16582 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
16583
16584 PR 42966
16585 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
16586 warnings converted to errors.
16587
16588 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16589
16590 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
16591 used insn_type variable.
16592 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
16593 to avoid set-but-not-used warning.
16594
16595 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16596
16597 * df-core.c (df_ref_debug): Change format string placeholder
16598 from 0x%x to %#x.
16599 * dwarf2asm.c (dw2_asm_output_data_raw,
16600 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
16601 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
16602 * dwarf2out.c (output_cfi, output_cfi_directive,
16603 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
16604 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
16605 Ditto.
16606 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
16607 * print-rtl.c (print_rtx): Ditto.
16608
16609 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16610
16611 PR middle-end/42694
16612 * builtins.c (expand_builtin_pow_root): New function to expand pow
16613 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
16614 series of sqrt and cbrt calls under -ffast-math.
16615 (expand_builtin_pow): Call it.
16616
16617 2010-04-14 Michael Matz <matz@suse.de>
16618
16619 PR tree-optimization/42963
16620 * tree-cfg.c (touched_switch_bbs): New static variable.
16621 (group_case_labels_stmt): New function broken out from ...
16622 (group_case_labels): ... here, use the above.
16623 (start_recording_case_labels): Allocate touched_switch_bbs.
16624 (end_recording_case_labels): Deallocate it, call
16625 group_case_labels_stmt.
16626 (gimple_redirect_edge_and_branch): Remember index of affected BB.
16627
16628 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16629
16630 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
16631 from insn template.
16632
16633 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16634
16635 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
16636
16637 2010-04-13 Jan Hubicka <jh@suse.cz>
16638
16639 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
16640 of optimized out static functions.
16641 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
16642 cost computation. Also sanity check for overflows.
16643 (update_caller_keys): Update cgraph_edge_badness call; properly
16644 update fibheap and sanity check that it is up to date.
16645 (add_new_edges_to_heap): Update cgraph_edge_badness.
16646 (cgraph_decide_inlining_of_small_function): Likewise;
16647 add sanity checking that badness in heap is up to date;
16648 improve dumping of reason; Update badness of calls to the
16649 offline copy of function currently inlined; dump badness
16650 of functions not inlined because of unit growth limits.
16651
16652 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
16653
16654 PR middle-end/32628
16655 * c-common.c (pointer_int_sum): Disregard overflow that occured only
16656 because of sign-extension change when converting to sizetype here...
16657 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
16658
16659 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
16660 the folding to constants. Remove redundant final conversion.
16661 (fold_binary) <associate>: Do not associate if the re-association of
16662 constants alone overflows.
16663 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
16664 to the end of the list.
16665 (multiple_of_p) <COND_EXPR>: New case.
16666
16667 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
16668
16669 * opt-functions.awk (opt_sanitized_name): New.
16670 (opt_enum): New.
16671 * optc-gen.awk: Use it
16672 * opth-gen.awk: Use it.
16673
16674 2010-04-13 Martin Jambor <mjambor@suse.cz>
16675
16676 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
16677 (sra_modify_assign): Delete stmts loading dead data even if racc has no
16678 children. Call replace_uses_with_default_def_ssa_name to handle
16679 SSA_NAES on lhs.
16680
16681 2010-04-13 Michael Matz <matz@suse.de>
16682
16683 PR middle-end/43730
16684 * builtins.c (expand_builtin_interclass_mathfn): Also create
16685 a register if the predicate doesn't match.
16686
16687 2010-04-13 Diego Novillo <dnovillo@google.com>
16688
16689 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
16690 * c-pch.c: Include timevar.h.
16691 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
16692 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
16693 * ggc-common.c: Include timevar.h.
16694 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
16695 * timevar.def (TV_PCH_SAVE): Define.
16696 (TV_PCH_CPP_SAVE): Define.
16697 (TV_PCH_PTR_REALLOC): Define.
16698 (TV_PCH_PTR_SORT): Define.
16699 (TV_PCH_RESTORE): Define.
16700 (TV_PCH_CPP_RESTORE): Define.
16701
16702 2010-04-13 Michael Matz <matz@suse.de>
16703
16704 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
16705 into MINUS_EXPRs.
16706 (can_reassociate_p): New function.
16707 (break_up_subtract_bb, reassociate_bb): Use it.
16708
16709 2010-04-13 Richard Guenther <rguenther@suse.de>
16710
16711 PR bootstrap/43737
16712 * builtins.c (c_readstr): Fix assert.
16713
16714 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
16715
16716 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
16717 when generating cltd insn.
16718
16719 (*ashl<mode>3_1): Remove special handling for register operand 2.
16720 (*ashlsi3_1_zext): Ditto.
16721 (*ashlhi3_1): Ditto.
16722 (*ashlhi3_1_lea): Ditto.
16723 (*ashlqi3_1): Ditto.
16724 (*ashlqi3_1_lea): Ditto.
16725 (*<shiftrt_insn><mode>3_1): Ditto.
16726 (*<shiftrt_insn>si3_1_zext): Ditto.
16727 (*<shiftrt_insn>qi3_1_slp): Ditto.
16728 (*<rotate_insn><mode>3_1): Ditto.
16729 (*<rotate_insn>si3_1_zext): Ditto.
16730 (*<rotate_insn>qi3_1_slp): Ditto.
16731
16732 2010-04-13 Richard Guenther <rguenther@suse.de>
16733
16734 * tree-ssa-structalias.c (callused_id): Remove.
16735 (call_stmt_vars): New.
16736 (get_call_vi): Likewise.
16737 (lookup_call_use_vi): Likewise.
16738 (lookup_call_clobber_vi): Likewise.
16739 (get_call_use_vi): Likewise.
16740 (get_call_clobber_vi): Likewise.
16741 (make_transitive_closure_constraints): Likewise.
16742 (handle_const_call): Adjust to do per-call call-used handling.
16743 (handle_pure_call): Likewise.
16744 (find_what_var_points_to): Remove general callused handling.
16745 (init_base_vars): Likewise.
16746 (init_alias_vars): Initialize call_stmt_vars.
16747 (compute_points_to_sets): Process call-used and call-clobbered
16748 vars for call statements.
16749 (delete_points_to_sets): Free call_stmt_vars.
16750
16751 2010-04-13 Richard Guenther <rguenther@suse.de>
16752
16753 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16754 Only add RW dependence for dependence distance zero.
16755 Adjust maximal vectorization factor according to dependences.
16756 Move alignment handling ...
16757 (vect_find_same_alignment_drs): ... here. New function.
16758 (vect_analyze_data_ref_dependences): Adjust.
16759 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
16760 (vect_analyze_data_refs): Adjust minimal vectorization factor
16761 according to data references.
16762 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
16763 dependences before determining the vectorization factor.
16764 Analyze alignment after determining the vectorization factor.
16765 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
16766 dependences before alignment.
16767 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
16768 Adjust prototype.
16769 (vect_analyze_data_refs): Likewise.
16770 (MAX_VECTORIZATION_FACTOR): New define.
16771
16772 2010-04-13 Duncan Sands <baldrick@free.fr>
16773
16774 * except.h (lang_eh_type_covers): Remove.
16775 * except.c (lang_eh_type_covers): Likewise.
16776
16777 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16778 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16779
16780 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
16781 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
16782 UNITS_PER_LONG where it is ABI relevant.
16783 (s390_return_addr_rtx): Likewise.
16784 (s390_back_chain_rtx): Likewise.
16785 (s390_frame_area): Likewise.
16786 (s390_frame_info): Likewise.
16787 (s390_initial_elimination_offset): Likewise.
16788 (save_gprs): Likewise.
16789 (s390_emit_prologue): Likewise.
16790 (s390_emit_epilogue): Likewise.
16791 (s390_function_arg_advance): Likewise.
16792 (s390_function_arg): Likewise.
16793 (s390_va_start): Likewise.
16794 (s390_gimplify_va_arg): Likewise.
16795 (s390_function_profiler): Likewise.
16796 (s390_optimize_prologue): Likewise.
16797 (s390_rtx_costs): Likewise.
16798 (s390_secondary_reload): Likewise.
16799 (s390_promote_function_mode): Likewise.
16800 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
16801 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
16802 registers available.
16803 (s390_unwind_word_mode): New function.
16804 (s390_function_value): Split 64 bit values into register pair if
16805 used as return value.
16806 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
16807 function call parameters. Handle parallels.
16808 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
16809 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
16810 (DWARF_CIE_DATA_ALIGNMENT): New macro.
16811 (s390_expand_setmem): Remove unused variable src_addr.
16812 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
16813 deal with 64 bit registers.
16814 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
16815 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
16816 (UNITS_PER_LONG): New macro.
16817 * libjava/include/s390-signal.h: Define extended ucontext
16818 structure containing the upper halfs of the 64 bit registers.
16819
16820 2010-04-13 Simon Baldwin <simonb@google.com>
16821
16822 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
16823
16824 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
16825
16826 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
16827 rvalue on the RHS if the LHS is of a non-renamable type.
16828 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
16829
16830 2010-04-13 Matthias Klose <doko@ubuntu.com>
16831
16832 * gcc.c (cc1_options): Handle -iplugindir before processing
16833 the cc1 spec. Only add -iplugindir once.
16834 (cpp_unique_options): Add -iplugindir option if -fplugin* options
16835 found.
16836 * common.opt (iplugindir): Remove `Separate' property, initialize.
16837 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
16838 option.
16839 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
16840 (distclean): Remove plugin dir.
16841 * doc/invoke.texi: Document -iplugindir.
16842
16843 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
16844
16845 * doc/plugins.texi (Loading Plugins): Document short
16846 -fplugin=foo option.
16847 (Plugin API): Mention default_plugin_dir_name function.
16848
16849 * gcc.c (find_file_spec_function): Add new declaration.
16850 (static_spec_func): Use it for "find-file".
16851 (find_file_spec_function): Add new function.
16852 (cc1_options): Add -iplugindir option if -fplugin* options found.
16853
16854 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
16855
16856 * plugin.c (add_new_plugin): Updated comment, and handle short
16857 plugin name.
16858 (default_plugin_dir_name): Added new function.
16859
16860 * common.opt (iplugindir): New option to set the plugin directory.
16861
16862 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
16863
16864 * config/i386/i386.md (any_rotate): New code iterator.
16865 (rotate_insn): New code attribute.
16866 (rotate): Ditto.
16867 (SWIM124): New mode iterator.
16868 (<rotate_insn>ti3): New expander.
16869 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
16870 any_rotate code iterator.
16871 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
16872 using any_rotate code iterator and SWIM124 mode iterator.
16873 (ix86_rotlti3): New insn_and_split pattern.
16874 (ix86_rotrti3): Ditto.
16875 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
16876 ix86_rotl{di,ti}3 patterns.
16877 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
16878 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
16879 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
16880 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
16881 code iterator and SWI mode iterator.
16882 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
16883 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
16884 code iterator.
16885 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
16886 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
16887 (bswap rotatert splitter): Add splitter.
16888 (bswap splitter): Macroize splitter using any_rotate code iterator.
16889 Add insn predicate to split only for TARGET_USE_XCHGB or when
16890 optimizing function for size.
16891
16892 2010-04-12 Steve Ellcey <sje@cup.hp.com>
16893
16894 * config/pa/pa.c (emit_move_sequence): Remove use of
16895 deleted variable flag_argument_noalias.
16896
16897 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16898
16899 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
16900 configurations.
16901 Add to unsupported targets list.
16902 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
16903 sparc*-sun-solaris2.[567]* from target lists.
16904 * configure: Regenerate.
16905 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
16906 removal.
16907 Remove Solaris 7 patch references.
16908 (Specific, sparc-sun-solaris2.7): Removed.
16909 (sparc-sun-solaris2*): Update Solaris 7 example.
16910 (sparc64-*-solaris2*): Likewise.
16911
16912 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16913
16914 * config.build (alpha*-dec-osf4*): Remove.
16915 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
16916 of obsolete configurations.
16917 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
16918 support.
16919 * config/alpha/t-osf4: Renamed to ...
16920 * config/alpha/t-osf5: ... this.
16921 * config/alpha/osf.h: Renamed to ...
16922 * config/alpha/osf5.h: ... this.
16923 Merged old osf5.h contents.
16924 Update comments.
16925 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
16926 (EXTRA_SPECS): Removed.
16927 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
16928 reflect removal of Tru64 UNIX V4.0/V5.0 support.
16929 Document that.
16930
16931 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16932
16933 * doc/contrib.texi (Contributors, Rainer Orth): Update.
16934
16935 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
16936
16937 PR/43702
16938 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
16939 __thiscall convention.
16940
16941 2010-04-12 Steve Ellcey <sje@cup.hp.com>
16942
16943 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
16944 orig_base.
16945 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
16946
16947 2010-04-12 Steve Ellcey <sje@cup.hp.com>
16948
16949 * function.c (assign_parms_initialize_all): Add unused attribute
16950 to fntype.
16951
16952 2010-04-12 Richard Guenther <rguenther@suse.de>
16953
16954 * gsstruct.def (GSS_CALL): New.
16955 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
16956 * gimple.h: Include tree-ssa-alias.h.
16957 (struct gimple_statement_call): New.
16958 (union gimple_statement_struct_d): Add gimple_call member.
16959 (gimple_call_reset_alias_info): Declare.
16960 (gimple_call_use_set): New function.
16961 (gimple_call_clobber_set): Likewise.
16962 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
16963 * gimple.c (gimple_call_reset_alias_info): New function.
16964 (gimple_build_call_1): Call it.
16965 * lto-streamer-in.c (input_gimple_stmt): Likewise.
16966 * tree-inline.c (remap_gimple_stmt): Likewise.
16967 (expand_call_inline): Remove callused handling.
16968 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
16969 * tree-dfa.c (dump_variable): Likewise.
16970 * tree-parloops.c (parallelize_loops): Likewise.
16971 * tree-ssa.c (init_tree_ssa): Likewise.
16972 (delete_tree_ssa): Likewise.
16973 * tree-flow-inline.h (is_call_used): Remove.
16974 * tree-flow.h (struct gimple_df): Remove callused member.
16975 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
16976 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
16977 (ref_maybe_used_by_call_p_1): Simplify.
16978 (call_may_clobber_ref_p_1): Likewise.
16979 * tree-ssa-structalias.c (compute_points_to_sets): Set
16980 the call stmt used and clobbered sets.
16981 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
16982 (find_tail_calls): Verify the tail call.
16983
16984 2010-04-12 Richard Guenther <rguenther@suse.de>
16985
16986 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
16987 single-iteration always-inline inlining.
16988 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
16989 (cgraph_decide_inlining): Do not handle always-inline specially.
16990 (try_inline): Remove always-inline cycle detection special case.
16991 Do not recurse on always-inlines.
16992 (cgraph_early_inlining): Do not iterate if not optimizing.
16993 (cgraph_gate_early_inlining): remove.
16994 (pass_early_inline): Run unconditionally.
16995 (gate_cgraph_decide_inlining): New function.
16996 (pass_ipa_inline): Use it. Do not run the IPA inliner if
16997 not inlining or optimizing.
16998 (cgraph_decide_inlining_of_small_functions): Also consider
16999 always-inline functions.
17000 (cgraph_default_inline_p): Return true for nodes which should
17001 disregard inline limits.
17002 (estimate_function_body_sizes): Assume zero size and time for
17003 nodes which are marked as disregarding inline limits.
17004 (cgraph_decide_recursive_inlining): Do not perform recursive
17005 inlining on always-inline nodes.
17006
17007 2010-04-12 Jakub Jelinek <jakub@redhat.com>
17008
17009 PR bootstrap/43699
17010 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
17011 for exprs satisfying handled_component_p.
17012
17013 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
17014
17015 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
17016 non-constant aggregate elements.
17017
17018 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
17019 is a real initialization.
17020
17021 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
17022
17023 PR c/36774
17024 * c-decl.c (start_function): Move forward check for nested function.
17025
17026 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
17027
17028 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
17029 * config/sh/sh.c: Include reload.h.
17030 (sh_legitimize_reload_address): New.
17031 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
17032 sh_legitimize_reload_address.
17033
17034 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17035
17036 * config/sh/sh.md (*movqi_pop): New insn pattern.
17037 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
17038
17039 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
17040
17041 * config/i386/i386.md (any_shiftrt): New code iterator.
17042 (shiftrt_insn): New code attribute.
17043 (shiftrt): Ditto.
17044 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
17045 using any_shiftrt code iterator.
17046 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
17047 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
17048 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
17049 pattern from corresponding peephole2 patterns.
17050 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
17051 using any_shiftrt code iterator.
17052 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
17053 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
17054 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
17055 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
17056 *{ashr,lshr}<mode>3_cmp_zext.
17057 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
17058
17059 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
17060
17061 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
17062 scratch register.
17063 (*lshr<mode>3_cconly): Ditto.
17064
17065 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
17066
17067 * config/i386/i386.md (lshr<mode>3): Macroize expander from
17068 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17069 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
17070 pattern from *lshr{di,ti}3_1 and corresponding splitters using
17071 DWI mode iterator.
17072 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17073 from corresponding peephole2 patterns.
17074 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
17075 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
17076 and *lshrdi3_1_rex64 using SWI mode iterator.
17077 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
17078 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
17079 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
17080 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
17081 and *lshrdi3_cmp_rex64 using SWI mode iterator.
17082 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
17083 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
17084 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
17085 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
17086 SWI mode iterator.
17087
17088 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
17089
17090 * config/i386/i386.md (ashr<mode>3): Macroize expander from
17091 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17092 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
17093 pattern from *ashr{di,ti}3_1 and corresponding splitters using
17094 DWI mode iterator.
17095 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17096 from corresponding peephole2 patterns.
17097 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
17098 (ashrsi3_cvt): Rename from ashrsi3_31.
17099 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
17100 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
17101 and x86_64_shift_adj_3 using SWI48 mode iterator.
17102 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
17103 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
17104 and *ashrdi3_1_rex64 using SWI mode iterator.
17105 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
17106 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
17107 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
17108 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
17109 and *ashrdi3_cmp_rex64 using SWI mode iterator.
17110 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
17111 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
17112 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
17113 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
17114 SWI mode iterator.
17115 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
17116 * config/i386/i386.c (ix86_split_ashr): Update for renamed
17117 x86_shift<mode>_adj_3 expanders.
17118
17119 2010-04-10 Wei Guozhi <carrot@google.com>
17120
17121 PR target/42601
17122 * config/arm/arm.c (arm_pic_static_addr): New function.
17123 (legitimize_pic_address): Call arm_pic_static_addr when it detects
17124 a static symbol.
17125 (arm_output_addr_const_extra): Output expression for new pattern.
17126 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
17127
17128 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
17129
17130 * ira-costs.c (record_reg_classes): Ignore alternatives that are
17131 not enabled.
17132
17133 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
17134 * web.c: Include "insn-config.h" and "recog.h".
17135 (union_match_dups): New function.
17136 (web_main): Call it.
17137 (union_defs): Don't try to recognize match_dups.
17138
17139 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
17140 if doing so would replace the entire pattern.
17141
17142 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
17143
17144 PR target/43707
17145 PR target/43709
17146 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
17147 and splitter pattern. Change splitter operand 1 predicate to
17148 nonmemory_operand.
17149
17150 2010-04-09 Martin Jambor <mjambor@suse.cz>
17151
17152 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
17153 lattices are addresses of CONST_DECLs with the same initial value.
17154 (ipcp_print_all_lattices): Print values of CONST_DECLs.
17155 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
17156
17157 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
17158 Bernd Schmidt <bernds@codesourcery.com>
17159
17160 * loop-invariant.c (replace_uses): New static function.
17161 (move_invariant_reg): Use it to ensure we can replace the uses.
17162
17163 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
17164
17165 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
17166 function template.
17167 (picochip_override_options): Enable section anchors only above -O1.
17168 (picochip_reorg): Fixed a couple of build warnings.
17169
17170 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17171
17172 * configure.ac (plugin -rdynamic test): Log result.
17173 * configure: Regenerate.
17174 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
17175 (RDYNAMIC_SPEC): Define.
17176 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
17177
17178 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17179
17180 * configure.ac: Determine Sun ld version numbers.
17181 (comdat_group): Restrict GNU ld version checks to gld.
17182 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
17183 (enable_comdat): Support --enable-comdat.
17184 * configure: Regenerate.
17185 * doc/install.texi (Configuration): Document --enable-comdat.
17186
17187 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17188
17189 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
17190 * config/sol2-gld.h: ... here.
17191 * config.gcc (sparc*-*-solaris2*): Reflect this.
17192 (i[34567]86-*-solaris2*): Use it.
17193
17194 2010-04-09 Steve Ellcey <sje@cup.hp.com>
17195
17196 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
17197 setup_clocks_p.
17198 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
17199
17200 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17201
17202 PR 42965
17203 * diagnostic.c (diagnostic_initialize): Initialize
17204 some_warnings_are_errors.
17205 (diagnostic_finish): New.
17206 (diagnostic_action_after_output): Call it before exiting.
17207 (diagnostic_report_diagnostic): Do not print message here. Set
17208 some_warnings_are_errors.
17209 * diagnostic.h (diagnostic_context): Delete
17210 issue_warnings_are_errors_message. Add some_warnings_are_errors.
17211 (diagnostic_finish): Declare.
17212 * toplev.c (toplev_main): Call it before exit.
17213
17214 2010-04-09 Jason Merrill <jason@redhat.com>
17215
17216 PR c++/42623
17217 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
17218 for incomplete type.
17219
17220 PR c++/41788
17221 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
17222 based on a warning flag.
17223
17224 2010-04-09 Richard Guenther <rguenther@suse.de>
17225
17226 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
17227
17228 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
17229
17230 PR bootstrap/43684
17231 * varasm.c (default_assemble_visibility): Wrap vars that are
17232 set, but unused, by targets without GAS.
17233 * config/rs6000/rs6000.c (paired_emit_vector_compare):
17234 Remove set, but unused, vars.
17235 (rs6000_legitimize_tls_address): Likewise.
17236 (altivec_expand_dst_builtin): Likewise.
17237 * config/darwin.c (machopic_classify_symbol): Likewise.
17238 (machopic_indirection_name): Likewise.
17239
17240 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
17241
17242 * config/i386/i386.md (DWI): New mode iterator.
17243 (S): New mode attribute.
17244 (shift_operand): Ditto.
17245 (shift_immediate_operand): Ditto.
17246 (ashl_input_operand): Ditto.
17247 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
17248 using SDWIM mode iterator.
17249 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
17250 pattern from *ashl{di,ti}3_1 and corresponding splitters using
17251 DWI mode iterator.
17252 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
17253 from corresponding peephole2 patterns.
17254 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
17255 and x86_64_shift_adj_1 using SWI48 mode iterator.
17256 (x86_shift<mode>_adj_2): Ditto.
17257 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
17258 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
17259 using SWI48 mode iterator.
17260 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
17261 *ashldi3_cmp_rex64 using SWI mode iterator.
17262 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
17263 *ashldi3_cconly_rex64 using SWI mode iterator.
17264 * config/i386/i386.c (ix86_split_ashl): Update for renamed
17265 x86_shift<mode>_adj_{1,2}.
17266 (ix86_split_ashr): Ditto.
17267 (ix86_split_lshr): Ditto.
17268
17269 2010-04-09 Richard Guenther <rguenther@suse.de>
17270
17271 * target.h (builtin_conversion): Pass in input and output types.
17272 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
17273 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
17274 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
17275 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
17276
17277 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
17278 Handle AVX modes.
17279 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
17280
17281 2010-04-09 Richard Guenther <rguenther@suse.de>
17282
17283 PR target/43152
17284 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
17285
17286 2010-04-09 Richard Guenther <rguenther@suse.de>
17287
17288 * tree-vectorizer.h (struct _stmt_vec_info): Document
17289 that vectype is the type of the LHS.
17290 (supportable_widening_operation, supportable_narrowing_operation):
17291 Get both input and output vector types as arguments.
17292 (vect_is_simple_use_1): Declare.
17293 (get_same_sized_vectype): Likewise.
17294 * tree-vect-loop.c (vect_determine_vectorization_factor):
17295 Set STMT_VINFO_VECTYPE to the vector type of the def.
17296 (vectorizable_reduction): Adjust.
17297 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
17298 Adjust. Specify the output vector type.
17299 (vect_pattern_recog_1): Adjust.
17300 * tree-vect-stmts.c (get_same_sized_vectype): New function.
17301 (vectorizable_call): Adjust.
17302 (vectorizable_conversion): Likewise.
17303 (vectorizable_operation): Likewise.
17304 (vectorizable_type_demotion): Likewise.
17305 (vectorizable_type_promotion): Likewise.
17306 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
17307 the def.
17308 (vect_is_simple_use_1): New function.
17309 (supportable_widening_operation): Get both input and output
17310 vector types.
17311 (supportable_narrowing_operation): Likewise.
17312 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
17313
17314 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
17315
17316 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
17317 __thiscall and _thiscall as predefined macros.
17318 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
17319 thiscall attribute handling.
17320 (ix86_comp_type_attributes): Likewise.
17321 (ix86_function_regparm): Likewise.
17322 (ix86_return_pops_args): Likewise.
17323 (init_cumulative_args): Likewise.
17324 (find_drap_reg): Likewise.
17325 (ix86_static_chain): Likewise.
17326 (x86_this_parameter): Likewise.
17327 (x86_output_mi_thunk): Likewise.
17328 (ix86_attribute_table): Add description for thiscall attribute.
17329 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
17330 * doc/extend.texi: Add documentation for thiscall.
17331
17332 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17333
17334 PR c++/28584
17335 * c.opt (Wint-to-pointer-cast): Available in C++.
17336 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
17337
17338 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
17339
17340 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
17341 * calls.c (expand_call): Pass the function type to aggregate_value_p.
17342 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
17343 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
17344 function type instead. Reorder and simplify checks.
17345
17346 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
17347
17348 2010-04-08 Jing Yu <jingyu@google.com>
17349 Zdenek Dvorak <ook@ucw.cz>
17350
17351 PR tree-optimization/42720
17352 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
17353 loop unswitch conditions here from ...
17354 (tree_unswitch_single_loop): ... here.
17355
17356 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
17357
17358 * tree-if-conv.c: Fix comments and simplify logic.
17359
17360 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
17361
17362 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
17363 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
17364 (main_tree_if_conversion): Update call to tree_if_conversion.
17365
17366 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17367
17368 PR 42485
17369 * doc/invoke.texi (-b,-V): Delete.
17370 * doc/tm.texi: Do not mention -b.
17371 * gcc.c (display_help): Delete -b and -V.
17372 (process_command): Delete -b and -V.
17373 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
17374
17375 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
17376 Wolfgang Gellerich <gellerich@de.ibm.com>
17377
17378 Implement target hook for loop unrolling
17379 * target.h (loop_unroll_adjust): Add a new target hook function.
17380 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
17381 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
17382 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
17383 (s390_loop_unroll_adjust): Implement the new target hook for s390.
17384 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
17385 target hook.
17386 (decide_unroll_stupid): Likewise.
17387
17388 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17389
17390 PR target/43643
17391 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
17392
17393 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17394
17395 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
17396 (Specific, *-*-solaris2*): Likewise.
17397 Don't prefer Sun as over GNU as.
17398
17399 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
17400
17401 * config/s390/s390.c (override_options): Adjust the z10 defaults
17402 for max-unroll-times, max-completely-peeled-insns
17403 and max-completely-peel-times.
17404
17405 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17406
17407 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
17408 instructions for z10.
17409 (s390_expand_setmem): Likewise.
17410 (s390_expand_cmpmem): Likewise.
17411
17412 2010-04-08 Richard Guenther <rguenther@suse.de>
17413
17414 PR tree-optimization/43679
17415 * tree-ssa-pre.c (eliminate): Only propagate copies.
17416
17417 2010-04-08 Jakub Jelinek <jakub@redhat.com>
17418
17419 PR bootstrap/43681
17420 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
17421 set but not used variable warning.
17422
17423 2010-04-08 Wei Guozhi <carrot@google.com>
17424
17425 PR target/41653
17426 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
17427 (arm_size_rtx_costs): Call the new function when optimized for size.
17428
17429 2010-04-08 Jakub Jelinek <jakub@redhat.com>
17430
17431 PR debug/43670
17432 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
17433 op0 is not a MEM, just return NULL instead of assertion
17434 failure.
17435 (discover_nonconstant_array_refs): Don't walk debug stmts.
17436
17437 2010-04-08 Doug Kwan <dougkwan@google.com>
17438
17439 * configure.ac: Recognize gold and do not use its version number
17440 to test ld features.
17441 * configure: Regenerate.
17442
17443 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
17444
17445 PR middle-end/40815
17446 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
17447 (negate_value): Move code to push elements to broken_up_substracts ...
17448 (eliminate_plus_minus_pair): ... here. Push operands that have no
17449 negative pair to plus_negates.
17450 (repropagate_negates, init_reassoc, fini_reassoc): Update.
17451
17452 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17453
17454 * doc/install.texi (Configuration): Move description of
17455 --enable-lto, --with-libelf*, --enable-gold from Java section to
17456 general section.
17457
17458 * doc/generic.texi (Working with declarations)
17459 (Function Properties, C and C++ Trees): Fix typos.
17460 * doc/sourcebuild.texi (Top Level): Likewise.
17461
17462 2010-04-07 Jakub Jelinek <jakub@redhat.com>
17463
17464 PR c/18624
17465 * tree.h (DECL_READ_P): Define.
17466 (struct tree_decl_common): Add decl_read_flag.
17467 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
17468 a set but not used warning.
17469 (merge_decls): Merge DECL_READ_P flag.
17470 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
17471 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
17472 * c-common.c (handle_used_attribute, handle_unused_attribute):
17473 Likewise.
17474 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
17475 New prototypes.
17476 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
17477 New functions.
17478 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
17479 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
17480 c_parser_binary_expression, c_parser_cast_expression,
17481 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
17482 Call default_function_array_read_conversion instead of
17483 default_function_array_conversion where needed.
17484 (c_parser_unary_expression, c_parser_conditional_expression,
17485 c_parser_postfix_expression_after_primary, c_parser_initelt):
17486 Likewise. Call mark_exp_read where needed.
17487 (c_parser_statement_after_labels, c_parser_asm_operands,
17488 c_parser_typeof_specifier, c_parser_sizeof_expression,
17489 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
17490 where needed.
17491 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
17492 New.
17493 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
17494 (warn_unused_but_set_parameter): Default to warn_unused
17495 && extra_warnings.
17496 * doc/invoke.texi: Document -Wunused-but-set-variable and
17497 -Wunused-but-set-parameter.
17498
17499 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
17500 used count variable.
17501 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
17502 when operandN variables aren't used in the body of the expander
17503 or splitter.
17504 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
17505 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
17506 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
17507 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
17508 FOR_EACH_IMM_USE_ON_STMT): Likewise.
17509 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
17510 * tree.c (PROCESS_ARG): Likewise.
17511
17512 2010-04-07 Simon Baldwin <simonb@google.com>
17513
17514 * diagnostic.h (diagnostic_override_option_index): New macro to
17515 set a diagnostic's option_index.
17516 * c-tree.h (c_cpp_error): Add warning reason argument.
17517 * opts.c (_warning_as_error_callback): New.
17518 (register_warning_as_error_callback): Store callback for
17519 warnings enabled via enable_warning_as_error.
17520 (enable_warning_as_error): Call callback, minor code tidy.
17521 * opts.h (register_warning_as_error_callback): Declare.
17522 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
17523 response to -Werror=.
17524 (c_common_init_options): Register warning_as_error_callback in opts.c.
17525 * common.opt: Add -Wno-cpp option.
17526 * c-common.c (struct reason_option_codes_t): Map cpp warning
17527 reason codes to gcc option indexes.
17528 * (c_option_controlling_cpp_error): New function, lookup the gcc
17529 option index for a cpp warning reason code.
17530 * (c_cpp_error): Add warning reason argument, call
17531 c_option_controlling_cpp_error for diagnostic_override_option_index.
17532 * doc/invoke.texi: Document -Wno-cpp.
17533
17534 2010-04-07 Richard Guenther <rguenther@suse.de>
17535
17536 * ipa-reference.c (mark_load): Use get_base_address.
17537 (mark_store): Likewise.
17538
17539 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
17540 inserting GIMPLE_NOPs into the IL.
17541 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17542 Explicitly strip handled components and indirect references.
17543
17544 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
17545 folding address expressions.
17546 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
17547 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
17548 operand_equal_p to compare decls.
17549 (ptr_deref_may_alias_decl_p): Likewise.
17550 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
17551 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
17552 Handle reversed comparison ops.
17553 * tree-sra.c (asm_visit_addr): Use get_base_address.
17554 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
17555 * ipa-reference.c (mark_address): Use get_base_address.
17556
17557 2010-04-07 Richard Guenther <rguenther@suse.de>
17558
17559 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
17560 Propagate constants everywhere.
17561
17562 2010-04-07 Jakub Jelinek <jakub@redhat.com>
17563
17564 PR debug/43516
17565 * tree.c (MAX_INT_CACHED_PREC): Define.
17566 (nonstandard_integer_type_cache): New array.
17567 (build_nonstandard_integer_type): Cache results for precision
17568 <= MAX_INT_CACHED_PREC.
17569
17570 2010-04-07 Richard Guenther <rguenther@suse.de>
17571
17572 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
17573 -fargument-noalias-global, -fargument-noalias-anything): Remove.
17574 * common.opt: Likewise.
17575 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
17576 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
17577 (nonoverlapping_memrefs_p): Likewise.
17578 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
17579 * opts.c (common_handle_option): Handle OPT_fargument_alias,
17580 OPT_fargument_noalias, OPT_fargument_noalias_anything and
17581 OPT_fargument_noalias_global for backward compatibility.
17582
17583 2010-04-07 Richard Guenther <rguenther@suse.de>
17584
17585 PR tree-optimization/43270
17586 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
17587 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
17588 * tree-ssa-pre.c (phi_translate_1): Adjust.
17589 (fully_constant_expression): Split out vn_reference handling to ...
17590 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
17591 Fold reads from constant strings.
17592 (vn_reference_lookup): Handle fully constant references.
17593 (vn_reference_lookup_pieces): Likewise.
17594 * Makefile.in (expmed.o-warn): Add -Wno-error.
17595
17596 2010-04-07 Martin Jambor <mjambor@suse.cz>
17597
17598 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
17599
17600 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
17601
17602 PR driver/41594
17603 * gcc.c: Add -static-libstdc++ to list of recognized options.
17604
17605 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17606
17607 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
17608
17609 2010-04-07 Richard Guenther <rguenther@suse.de>
17610
17611 PR middle-end/42617
17612 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
17613 bases build simple mem attributes to retain points-to information.
17614
17615 2010-04-07 Richard Guenther <rguenther@suse.de>
17616
17617 PR middle-end/42617
17618 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
17619 preserve points-to related information.
17620
17621 2010-04-07 Richard Guenther <rguenther@suse.de>
17622
17623 PR middle-end/42617
17624 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
17625 discard plain indirect references.
17626 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
17627 * tree.c (tree_nop_conversion): Likewise.
17628
17629 2010-04-07 Dodji Seketeli <dodji@redhat.com>
17630
17631 PR debug/43628
17632 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
17633
17634 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
17635
17636 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
17637 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
17638
17639 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
17640
17641 * tree-if-conv.c: Fix indentation and comments.
17642
17643 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
17644
17645 * tree-if-conv.c: Sort static functions in topological order.
17646
17647 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
17648
17649 * tree-if-conv.c: Fix indentation and comments.
17650
17651 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17652
17653 PR middle-end/43519
17654 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
17655 lang_hooks.types.type_for_size instead of
17656 build_nonstandard_integer_type.
17657 When converting an unsigned type to signed, double its precision.
17658 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
17659 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
17660 (graphite_create_new_loop_guard): When ub + 1 wraps around,
17661 use lb <= ub.
17662
17663 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17664
17665 PR middle-end/43519
17666 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
17667 POINTER_PLUS_EXPR for pointer types.
17668
17669 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17670
17671 PR middle-end/43519
17672 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
17673 * graphite-clast-to-gimple.c: Include langhooks.h.
17674 (max_signed_precision_type): New.
17675 (max_precision_type): Takes two types as arguments.
17676 (precision_for_value): New.
17677 (precision_for_interval): New.
17678 (gcc_type_for_interval): New.
17679 (gcc_type_for_value): New.
17680 (gcc_type_for_clast_term): New.
17681 (gcc_type_for_clast_red): New.
17682 (gcc_type_for_clast_bin): New.
17683 (gcc_type_for_clast_expr): Split up into several functions.
17684 (gcc_type_for_clast_eq): Rewritten.
17685 (compute_bounds_for_level): New.
17686 (compute_type_for_level_1): New.
17687 (compute_type_for_level): New.
17688 (gcc_type_for_cloog_iv): Removed.
17689 (gcc_type_for_iv_of_clast_loop): Rewritten.
17690 (graphite_create_new_loop): Compute the lower and upper bound types
17691 with gcc_type_for_clast_expr.
17692 (graphite_create_new_loop_guard): Same.
17693 (find_cloog_iv_in_expr): Removed.
17694 (compute_cloog_iv_types_1): Removed.
17695 (compute_cloog_iv_types): Removed.
17696 (gloog): Do not call compute_cloog_iv_types.
17697 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
17698 GBB_CLOOG_IV_TYPES.
17699 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
17700 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
17701 (GBB_CLOOG_IV_TYPES): Removed.
17702
17703 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17704
17705 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
17706 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
17707 (detect_commutative_reduction): Same.
17708
17709 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17710
17711 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
17712 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
17713 argument.
17714 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
17715 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
17716 (rewrite_commutative_reductions_out_of_ssa): Same.
17717 * passes.c (execute_function_todo): Call verify_ssa for every pass
17718 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
17719 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
17720 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
17721 with an extra argument.
17722 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
17723 verify_ssa only when the extra argument is true.
17724 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
17725 with an extra argument.
17726 (tree_transform_and_unroll_loop): Same.
17727
17728 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17729
17730 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
17731 for all the passes of the LNO having LOOP_CLOSED_SSA.
17732 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
17733 * tree-loop-distribution.c (pass_loop_distribution): Same.
17734 * tree-pass.h (TODO_verify_loops): Removed.
17735 * tree-ssa-loop.c (pass_tree_loop_init): Same.
17736 (pass_lim): Same.
17737 (pass_tree_unswitch): Same.
17738 (pass_predcom): Same.
17739 (pass_vectorize): Same.
17740 (pass_linear_transform): Same.
17741 (pass_graphite_transforms): Same.
17742 (pass_iv_canon): Same.
17743 (pass_complete_unroll): Same.
17744 (pass_complete_unrolli): Same.
17745 (pass_parallelize_loops): Same.
17746 (pass_loop_prefetch): Same.
17747 (pass_iv_optimize): Same.
17748
17749 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
17750
17751 PR middle-end/32824
17752 * passes.c (init_optimization_passes): Move pass_lim before
17753 pass_copy_prop and pass_dce_loop.
17754
17755 2010-04-06 Jakub Jelinek <jakub@redhat.com>
17756
17757 PR target/43667
17758 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
17759 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
17760 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
17761 MULTI_* defines for 4 argument vpermil2p* builtins.
17762
17763 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
17764
17765 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
17766 * config/i386/i386.c (x86_maybe_negate_const_int): New.
17767 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
17768 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
17769 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
17770 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
17771 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
17772 Use x86_maybe_negate_const_int to output insn mnemonic.
17773 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
17774 check from instruction predicate. Update comments.
17775 * config/i386/sync.md (sync_add<mode>): Use
17776 x86_maybe_negate_const_int to output insn mnemonic.
17777
17778 2010-04-06 Jan Hubicka <jh@suse.cz>
17779
17780 PR tree-optimization/42906
17781 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
17782 IGNORE_SELF argument. Set visited_control_parents for fully
17783 processed BBs.
17784 (find_obviously_necessary_stmts): Update call of
17785 mark_control_dependent_edges_necessary.
17786 (propagate_necessity): Likewise. Handle PHI edges more curefully.
17787
17788 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
17789
17790 * config/i386/i386.md: Remove comment about 'e' and 'E'
17791 operand modifier.
17792
17793 2010-04-06 Richard Guenther <rguenther@suse.de>
17794
17795 PR tree-optimization/43627
17796 * tree-vrp.c (extract_range_from_unary_expr): Widenings
17797 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
17798 not varying.
17799
17800 2010-04-06 Jakub Jelinek <jakub@redhat.com>
17801
17802 * BASE-VER: Change to 4.6.0.
17803
17804 PR target/43638
17805 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
17806 handling.
17807
17808 2010-04-06 Richard Guenther <rguenther@suse.de>
17809
17810 PR middle-end/43661
17811 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
17812
17813 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17814
17815 * doc/invoke.texi (Optimize Options): Document that LTO
17816 won't remove object access purely due to incompatible
17817 declarations.
17818
17819 2010-04-04 Matthias Klose <doko@ubuntu.com>
17820
17821 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
17822 Initialize variable.
17823
17824 2010-04-03 Richard Guenther <rguenther@suse.de>
17825
17826 PR middle-end/42509
17827 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
17828 require a non-NULL MEM_OFFSET.
17829
17830 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
17831
17832 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
17833 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
17834 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
17835 config/alpha/predicates.md, config/arm/arm.md,
17836 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
17837 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
17838 config/darwin9.h, config/darwin.c, config/darwin.h,
17839 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
17840 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
17841 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
17842 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
17843 config/mips/mips.md, config/mn10300/mn10300.c,
17844 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
17845 config/rs6000/aix.h, config/rs6000/dfp.md,
17846 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
17847 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
17848 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
17849 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
17850 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
17851 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
17852 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
17853 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
17854 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
17855 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
17856 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
17857 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
17858 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
17859 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
17860 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
17861 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
17862 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
17863 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
17864 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
17865 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
17866 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
17867 opt-functions.awk, opth-gen.awk, params.def, passes.c,
17868 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
17869 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
17870 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
17871 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
17872 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
17873 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17874 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
17875 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
17876 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
17877 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
17878 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
17879 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
17880 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
17881 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
17882
17883 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17884
17885 PR other/43620
17886 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
17887 * aclocal.m4: Regenerate.
17888
17889 2010-04-02 Richard Guenther <rguenther@suse.de>
17890
17891 PR tree-optimization/43629
17892 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
17893 if we have seen a constant value.
17894
17895 2010-04-02 Joseph Myers <joseph@codesourcery.com>
17896
17897 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
17898
17899 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
17900
17901 PR target/43469
17902 * arm.c (legitimize_tls_address): Adjust call to
17903 gen_tls_load_dot_plus_four.
17904 (arm_note_pic_base): New function.
17905 (arm_cannot_copy_insn_p): Use it.
17906 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
17907 constraint.
17908
17909 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17910
17911 PR bootstrap/43531
17912
17913 Revert:
17914 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17915
17916 * Makefile.in ($(out_object_file)): Depend on
17917 gt-$(basename $(notdir $(out_file))).h.
17918
17919 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
17920
17921 * config.gcc (lm32-*-rtems*): Add t-lm32.
17922
17923 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
17924
17925 * config.gcc: Add lm32-*-rtems*.
17926 * config/lm32/rtems.h: New file.
17927
17928 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
17929
17930 PR target/42609
17931 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
17932
17933 2010-04-01 Jakub Jelinek <jakub@redhat.com>
17934
17935 * dwarf2out.c (output_compilation_unit_header): For
17936 -gdwarf-4 use version 4 instead of version 3.
17937 (output_line_info): For version 4 and above emit additional
17938 maximum ops per insn header field.
17939 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
17940
17941 * dwarf2out.c (is_c_family, is_java): Remove.
17942 (lower_bound_default): New function.
17943 (add_bound_info, gen_descr_array_type_die): Use it.
17944
17945 2010-04-01 Dodji Seketeli <dodji@redhat.com>
17946
17947 PR debug/43325
17948 * dwarf2out.c (gen_variable_die): Allow debug info for variable
17949 re-declaration when it happens in a function.
17950
17951 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
17952
17953 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
17954 (cgraph_remove_function_insertion_hook): Same.
17955 (cgraph_call_function_insertion_hooks): Same.
17956
17957 2010-04-01 Richard Guenther <rguenther@suse.de>
17958
17959 PR middle-end/43614
17960 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
17961 and TREE_THIS_VOLATILE.
17962 (copy_ref_info): Likewise.
17963 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
17964 * tree.c (build6_stat): Ignore side-effects of all but arg5
17965 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
17966 TARGET_MEM_REF.
17967
17968 2010-04-01 Richard Guenther <rguenther@suse.de>
17969
17970 PR tree-optimization/43607
17971 * ipa-type-escape.c (check_call): Do not access non-existing
17972 arguments.
17973
17974 2010-04-01 Richard Guenther <rguenther@suse.de>
17975
17976 PR middle-end/43602
17977 Revert
17978 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
17979 Jack Howarth <howarth@bromo.med.uc.edu>
17980
17981 * tree-profile.c (tree_init_ic_make_global_vars): Make static
17982 variables TLS.
17983
17984 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17985
17986 * doc/install.texi (Prerequisites): Document libelf usability on
17987 IRIX 5/6 and Solaris 2.
17988 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
17989 Update GNU as, GNU ld requirements.
17990 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
17991 Document Sun Studio compiler download.
17992 Update and simplify as, ld recommendations.
17993 (Specific, *-*-solaris2.7): Note obsoletion, removal.
17994
17995 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17996
17997 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
17998 with_tune_32 to pentium4.
17999
18000 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
18001
18002 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
18003
18004 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18005
18006 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
18007 obsoletion, removal.
18008 Update IDO URL.
18009 Document GNU as requirement.
18010 Update configure requirements.
18011 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
18012 Recomment IRIX 6.5.18+.
18013 Document IDF/IDL requirement.
18014 Document GNU as requirement.
18015 Document GNU ld bootstrap failure.
18016 Remove freeware.sgi.com reference.
18017
18018 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18019
18020 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
18021 UNIX V4.0, V5.0 obsoletion, removal.
18022 Remove --with-gc=simple reference.
18023 Update VM requirements during bootstrap.
18024 Remove -oldas bootstrap description.
18025 Update binutils reference.
18026 Remove comparison failure note.
18027
18028 2010-03-31 Richard Guenther <rguenther@suse.de>
18029 Zdenek Dvorak <ook@ucw.cz>
18030 Sebastian Pop <sebastian.pop@amd.com>
18031
18032 PR middle-end/43464
18033 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
18034 with multiple arguments.
18035 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
18036
18037 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
18038
18039 * graphite-dependences.c (print_pddr): Call print_pdr with an
18040 extra argument.
18041 * graphite-poly.c (debug_pdr): Add an extra argument for the
18042 verbosity level.
18043 (print_pdr): Same.
18044 (print_pbb_domain): Same.
18045 (print_pbb): Same.
18046 (print_scop_context): Same.
18047 (print_scop): Same.
18048 (print_cloog): Same.
18049 (debug_pbb_domain): Same.
18050 (debug_pbb): Same.
18051 (print_pdrs): Same.
18052 (debug_pdrs): Same.
18053 (debug_scop_context): Same.
18054 (debug_scop): Same.
18055 (debug_cloog): Same.
18056 (print_scop_params): Same.
18057 (debug_scop_params): Same.
18058 (print_iteration_domain): Same.
18059 (print_iteration_domains): Same.
18060 (debug_iteration_domain): Same.
18061 (debug_iteration_domains): Same.
18062 (print_scattering_function): Same.
18063 (print_scattering_functions): Same.
18064 (debug_scattering_function): Same.
18065 (debug_scattering_functions): Same.
18066 * graphite-poly.h (debug_pdr): Update declaration.
18067 (print_pdr): Same.
18068 (print_pbb_domain): Same.
18069 (print_pbb): Same.
18070 (print_scop_context): Same.
18071 (print_scop): Same.
18072 (print_cloog): Same.
18073 (debug_pbb_domain): Same.
18074 (debug_pbb): Same.
18075 (print_pdrs): Same.
18076 (debug_pdrs): Same.
18077 (debug_scop_context): Same.
18078 (debug_scop): Same.
18079 (debug_cloog): Same.
18080 (print_scop_params): Same.
18081 (debug_scop_params): Same.
18082 (print_iteration_domain): Same.
18083 (print_iteration_domains): Same.
18084 (debug_iteration_domain): Same.
18085 (debug_iteration_domains): Same.
18086 (print_scattering_function): Same.
18087 (print_scattering_functions): Same.
18088 (debug_scattering_function): Same.
18089 (debug_scattering_functions): Same.
18090
18091 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
18092
18093 * graphite-poly.c (print_scattering_function_1): New.
18094 (print_scattering_function): Call it.
18095 (print_scop_params): Remove spaces at the end of lines.
18096 (print_cloog): New.
18097 (debug_cloog): New.
18098 * graphite-poly.h (print_cloog): Declared.
18099 (debug_cloog): Declared.
18100
18101 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
18102
18103 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
18104 in loop->header.
18105 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
18106 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
18107 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
18108 to switch between adding the IV bump in loop->latch or in loop->header.
18109
18110 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
18111
18112 * graphite-poly.c (print_scattering_function): Pretty print following
18113 the scoplib format.
18114 (print_pdr): Same.
18115 (print_pbb_domain): Same.
18116 (dump_gbb_cases): Same.
18117 (dump_gbb_conditions): Same.
18118 (print_pdrs): Same.
18119 (print_pbb): Same.
18120 (print_scop_params): Same.
18121 (print_scop_context): Same.
18122 (print_scop): Same.
18123 (print_pbb_body): New.
18124 (lst_indent_to): New.
18125 (print_lst): Start new lines with a #.
18126 * graphite-poly.h (pbb_bb): New.
18127 (pbb_index): Use pbb_bb.
18128 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
18129 disjuncts.
18130 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
18131
18132 2010-03-31 Jakub Jelinek <jakub@redhat.com>
18133
18134 * dwarf2out.c (size_of_die): For -gdwarf-4 use
18135 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
18136 and 0 instead of 1 for dw_val_class_flag.
18137 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
18138 dw_val_class_range_list, dw_val_class_loc_list,
18139 dw_val_class_lineptr and dw_val_class_macptr, use
18140 DW_FORM_flag_present for dw_val_class_flag and
18141 DW_FORM_exprloc for dw_val_class_loc.
18142 (output_die): For -gdwarf-4 print dw_val_class_loc
18143 size as uleb128 instead of 1 or 2 bytes and don't print
18144 anything for dw_val_class_flag.
18145
18146 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
18147 instead of cselib_lookup following by tweaking locs->setting_insn.
18148
18149 PR bootstrap/43596
18150 * cselib.c (cselib_process_insn): Clear cselib_current_insn
18151 even before returning from label, setjmp call or volatile asm
18152 handling.
18153
18154 2010-03-31 Richard Guenther <rguenther@suse.de>
18155
18156 PR middle-end/43600
18157 * cgraphunit.c (cgraph_output_in_order): Do not allocate
18158 temporary data on stack.
18159
18160 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18161
18162 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
18163 (PUSHSECTION_ASM_OP): Remove.
18164 (POPSECTION_ASM_OP): Remove.
18165 (PUSHSECTION_FORMAT): Remove.
18166 * config/sol2.h (PUSHSECTION_FORMAT): Define.
18167 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
18168 * config/sol2.c (solaris_output_init_fini): Use it.
18169
18170 2010-03-31 Jie Zhang <jie@codesourcery.com>
18171
18172 PR 43574
18173 * opt-functions.awk (var_type_struct): Use signed char type
18174 for simple variables.
18175
18176 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18177
18178 * config/sol2.c: Include output.h.
18179 (solaris_assemble_visibility): New function.
18180 * config/t-sol2 (sol2.o): Add output.h dependency.
18181 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
18182 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
18183 Redefine.
18184
18185 2010-03-31 Jakub Jelinek <jakub@redhat.com>
18186
18187 PR target/43580
18188 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
18189 V2SImode or XFmode on PRE_DEC.
18190
18191 PR debug/43557
18192 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
18193 BLKmode.
18194
18195 2010-03-31 Jie Zhang <jie@codesourcery.com>
18196
18197 PR 43562
18198 * reload.h (caller_save_initialized_p): Declare.
18199 * toplev.c (backend_init_target): Don't call
18200 init_caller_save but set caller_save_initialized_p to false.
18201 * caller-save.c (caller_save_initialized_p): Define.
18202 (init_caller_save): Check caller_save_initialized_p.
18203 * ira.c (ira): Call init_caller_save if flag_caller_saves.
18204
18205 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18206
18207 PR target/39048
18208 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
18209 and soft-fp/t-softfp to tmake_file.
18210 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
18211 (LIBGCC2_TF_CEXT): Define.
18212 (TF_SIZE): Define.
18213
18214 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
18215
18216 PR debug/42977
18217 * cselib.c (n_useless_values): Document handling of debug locs.
18218 (n_useless_debug_values, n_debug_values): New variables.
18219 (new_elt_loc_list): Don't add to debug values, keep count.
18220 (promote_debug_loc): New.
18221 (cselib_reset_table): Zero new variables.
18222 (entry_and_rtx_equal_p): Promote debug locs.
18223 (discard_useless_locs): Increment n_useless_debug_values for
18224 debug values.
18225 (remove_useless_values): Adjust n_useless_values and n_debug_values
18226 with n_useless_debug_values.
18227 (add_mem_for_addr): Promote debug locs.
18228 (cselib_lookup_mem): Likewise.
18229 (cselib_lookup_addr): Renamed to...
18230 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
18231 (cselib_log_lookup): ... this. Turn into...
18232 (cselib_lookup_addr): ... new wrapper.
18233 (cselib_lookup_from_insn): New.
18234 (cselib_invalidate_regno): Increment n_useless_debug_values for
18235 debug values.
18236 (cselib_invalidate_mem): Likewise.
18237 (cselib_process_insn): Take n_deleted and n_debug_values into
18238 account to guard remove_useless_value call.
18239 (cselib_finish): Zero n_useless_debug_values.
18240 * cselib.h (cselib_lookup_from_insn): Declare.
18241 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
18242 (sched_analyze_2): Likewise.
18243
18244 2010-03-30 Jakub Jelinek <jakub@redhat.com>
18245
18246 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
18247 functions.
18248 (adjust_mems): Replace narrowing SUBREG of expression containing
18249 just PLUS, MINUS, MULT and ASHIFT of registers and constants
18250 with operations in the narrower mode.
18251
18252 PR debug/43593
18253 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
18254 regs_invalidated_by_call instead all call_used_reg_set registers.
18255
18256 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
18257
18258 PR middle-end/43430
18259 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
18260 pointer comparisons with types_compatible_p.
18261 * tree-vect-stmts.c (vectorizable_call): Same.
18262 (vectorizable_condition): Same.
18263
18264 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18265
18266 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
18267 stack check if the mask would be zero.
18268
18269 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
18270 Jack Howarth <howarth@bromo.med.uc.edu>
18271
18272 * tree-profile.c (tree_init_ic_make_global_vars): Make static
18273 variables TLS.
18274
18275 2010-03-30 Joseph Myers <joseph@codesourcery.com>
18276
18277 PR other/25232
18278 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
18279 and __unordtf2.
18280 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
18281 Include ___unordxf2 and ___unordtf2.
18282 * config/i386/libgcc-glibc.ver: Do not define inheritance from
18283 GCC_4.4.0 here.
18284
18285 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
18286
18287 * config/lm32/t-lm32: New file.
18288 * config.gcc: Use the above file when targetting lm32.
18289
18290 2010-03-28 Duncan Sands <baldrick@free.fr>
18291
18292 * Makefile.in (PLUGIN_HEADERS): Add except.h.
18293
18294 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
18295
18296 PR middle-end/43431
18297 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
18298 Improve vectorization cost model diagnostic.
18299
18300 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
18301
18302 PR middle-end/43436
18303 * tree-vect-data-refs.c (vect_analyze_data_refs): When
18304 compute_data_dependences_for_loop returns false, early exit
18305 and output an extra diagnostic for the failed data reference
18306 analysis.
18307
18308 2010-03-29 Richard Guenther <rguenther@suse.de>
18309
18310 PR tree-optimization/43560
18311 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
18312 (can_sm_ref_p): Treat stores to readonly locations as trapping.
18313
18314 2010-03-29 Jie Zhang <jie@codesourcery.com>
18315
18316 PR 43564
18317 * toplev.c (process_options): Set optimization_default_node
18318 and optimization_current_node.
18319 * opts.c (decode_options): Don't set optimization_default_node
18320 and optimization_current_node.
18321
18322 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
18323
18324 * config/rtems.h: Abandon -qrtems_debug.
18325
18326 2010-03-28 Jan Hubicka <jh@suse.cz>
18327
18328 PR tree-optimization/43505
18329 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
18330 map should not be copied.
18331
18332 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18333
18334 PR middle-end/41674
18335 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
18336 cdtors, set DECL_PRESERVE_P.
18337 * ipa.c (cgraph_externally_visible_p): Return true if declaration
18338 should be preseved.
18339
18340 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
18341
18342 PR tree-optimization/43528
18343 * stor-layout.c (place_field): Check that constant fits into
18344 unsigned HWI when skipping calculation of MS bitfield layout.
18345
18346 2010-03-27 Jan Hubicka <jh@suse.cz>
18347
18348 PR middle-end/43391
18349 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
18350 notice_global_symbol work.
18351
18352 2010-03-27 Jakub Jelinek <jakub@redhat.com>
18353
18354 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
18355 instead of dwarf2out_decl.
18356 (struct var_loc_node): Remove section_label field.
18357 (dwarf2out_function_decl): New function.
18358 (dwarf2out_var_location): Don't set section_label field.
18359 (dwarf2out_begin_function): Don't empty decl_loc_table here.
18360
18361 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18362
18363 PR tree-optimization/43544
18364 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18365 First argument for builtin vectorized function hook is now a
18366 tree to be able to distinguish between machine specific and
18367 standard builtins.
18368 * targhooks.c (default_builtin_vectorized_function): Ditto.
18369 * targhooks.h (default_builtin_vectorized_function): Ditto.
18370 * target.h (struct gcc_target): Ditto.
18371 * tree-vect-stmts.c (vectorizable_function): Ditto.
18372 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
18373 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
18374 Ditto.
18375
18376 2010-03-26 Joseph Myers <joseph@codesourcery.com>
18377
18378 PR c/43381
18379 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
18380 nested binding iff it is a FUNCTION_DECL.
18381 (store_parm_decls_newstyle): Pass nested=true to bind for
18382 FUNCTION_DECLs amongst parameters.
18383
18384 2010-03-26 Jakub Jelinek <jakub@redhat.com>
18385
18386 * var-tracking.c (vt_expand_loc_callback): Don't run
18387 cselib_expand_value_rtx_cb in dummy mode if
18388 cselib_dummy_expand_value_rtx_cb returned false.
18389
18390 * var-tracking.c (emit_note_insn_var_location): For one part
18391 notes with offset 0, don't add EXPR_LIST around the location.
18392 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
18393 add_location_or_const_value_attribute): Adjust for that change.
18394
18395 PR debug/43540
18396 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
18397 into first operand and location into second.
18398 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
18399 dw_cfi_oprnd_loc for DW_CFA_expression.
18400 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
18401 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
18402 assume first argument is regnum and second argument is location.
18403
18404 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
18405
18406 PR target/42113
18407 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
18408 of scratch register to DImode. Split to DImode comparison operator.
18409 Use SImode subreg of scratch register in the multiplication.
18410 (*cmp_sadd_sidi): Ditto.
18411 (*cmp_ssub_si): Ditto.
18412 (*cmp_ssub_sidi): Ditto.
18413
18414 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
18415
18416 PR target/43524
18417 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
18418 Remove invalid assert and wrong comment.
18419
18420 2010-03-26 Jakub Jelinek <jakub@redhat.com>
18421
18422 PR debug/43516
18423 * flags.h (final_insns_dump_p): New extern.
18424 * final.c (final_insns_dump_p): New variable.
18425 (rest_of_clean_state): Set it before -fdump-final-insns=
18426 dumping, clear afterwards.
18427 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
18428 MEM_ALIAS_SET on MEMs.
18429
18430 2010-03-26 David S. Miller <davem@davemloft.net>
18431
18432 * configure.ac: Fix sparc GOTDATA_OP bug check.
18433 * configure: Rebuild.
18434
18435 2010-03-26 Alan Modra <amodra@gmail.com>
18436
18437 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
18438
18439 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18440
18441 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
18442 TLS_SECTION_ASM_FLAG.
18443
18444 2010-03-25 Jakub Jelinek <jakub@redhat.com>
18445
18446 PR bootstrap/43511
18447 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
18448 Clear first_function_block_is_cold.
18449
18450 PR c/43385
18451 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
18452 argument if the argument is truth_value_p.
18453
18454 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18455
18456 * config/rs6000/constraints.md: Update copyright year for my changes.
18457
18458 PR target/43484
18459 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
18460 used in reg+reg addressing, swap registers.
18461
18462 2010-03-24 Jakub Jelinek <jakub@redhat.com>
18463
18464 PR debug/43293
18465 * target.h (struct gcc_target): Add code_end hook.
18466 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
18467 if not yet defined.
18468 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
18469 * toplev.c (compile_file): Call targetm.asm_out.code_end
18470 hook before unwind info/debug info output.
18471 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
18472 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
18473 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
18474 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
18475 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
18476 * config/i386/i386.c (ix86_file_end): Renamed to...
18477 (ix86_code_end): ... this. Make static. Don't call
18478 file_end_indicate_exec_stack. Emit unwind info using
18479 final_start_function/final_end_function.
18480 (darwin_x86_file_end): Remove.
18481 (TARGET_ASM_CODE_END): Define.
18482 * config/i386/i386.h (TARGET_ASM_FILE_END,
18483 NEED_INDICATE_EXEC_STACK): Don't define.
18484 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
18485 (TARGET_ASM_FILE_END): Define to darwin_file_end.
18486 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
18487 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
18488
18489 PR target/43498
18490 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
18491 at the beginning and final_end_function at the end.
18492 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18493
18494 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18495
18496 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
18497 and Sun as TLS syntax.
18498 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
18499 * configure: Regenerate.
18500 * config.in: Regenerate.
18501 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
18502 (default_elf_asm_named_section): Use it.
18503 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
18504 (i386_output_dwarf_dtprel): Likewise.
18505 (output_addr_const_extra): Likewise.
18506 (output_pic_addr_const): Lowercase @GOTTPOFF.
18507 (output_addr_const_extra): Likewise.
18508 (output_pic_addr_const): Lowercase @GOTNTPOFF.
18509 (output_addr_const_extra): Likewise.
18510 (output_pic_addr_const): Lowercase @INDNTPOFF.
18511 (output_addr_const_extra): Likewise.
18512 (output_pic_addr_const): Lowercase @NTPOFF.
18513 (output_addr_const_extra): Likewise.
18514 (output_pic_addr_const): Lowercase @TPOFF.
18515 (output_addr_const_extra): Likewise.
18516 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
18517 (*tls_global_dynamic_64): Likewise.
18518 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
18519 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
18520
18521 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
18522 (ASM_OUTPUT_TLS_COMMON): Use it.
18523 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
18524
18525 PR target/38118
18526 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
18527 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18528 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
18529 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
18530 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
18531 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
18532
18533 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18534
18535 * config/i386/i386.c (override_options): Don't accept
18536 -mtls-dialect=sun any longer.
18537 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
18538 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
18539 (*tls_local_dynamic_base_32_sun): Likewise.
18540 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
18541
18542 2010-03-24 Jakub Jelinek <jakub@redhat.com>
18543
18544 PR debug/43508
18545 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18546 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
18547
18548 PR debug/43479
18549 * ira.c (adjust_cleared_regs): New function.
18550 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
18551
18552 PR debug/19192
18553 PR debug/43479
18554 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
18555 from gimple_block.
18556 * expr.c (expand_expr_real): Restore previous
18557 curr_insn_source_location and curr_insn_block after
18558 expand_expr_real_1 call.
18559 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
18560 instead of expand_expr_real_1.
18561
18562 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
18563
18564 PR rtl-optimization/43413
18565 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
18566 hard regs too.
18567
18568 2010-03-22 James E. Wilson <wilson@codesourcery.com>
18569
18570 PR target/43348
18571 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
18572 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
18573
18574 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
18575
18576 * config/i386/i386.c (ix86_target_string): Add -mfma.
18577 Fix a typo in comment.
18578
18579 2010-03-22 Mike Stump <mikestump@comcast.net>
18580
18581 PR target/23071
18582 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
18583 Don't overly align based upon packed packed fields.
18584
18585 2010-03-22 Jason Merrill <jason@redhat.com>
18586
18587 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
18588 Use () rather than [], and move before the element type.
18589
18590 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18591
18592 * doc/configfiles.texi (Configuration Files): Removed
18593 fixinc/Makefile*, intl/Makefile.*.
18594 * doc/makefile.texi: Fixed markup. Abstract from version
18595 control system used.
18596 (Makefile): Removed obsolete gcc/java/parse.y example.
18597 * doc/sourcebuild.texi: Likewise.
18598 (Top Level): Added config, gnattools, libdecnumber, libgcc,
18599 libgomp, libssp. Removed fastjar.
18600 (Miscellaneous Docs): Clarify location.
18601 Added COPYING3, COPYING3.LIB.
18602 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
18603
18604 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18605
18606 PR target/38085
18607 * config/i386/i386.c (x86_function_profiler)
18608 [!NO_PROFILE_COUNTERS]: Fix typo.
18609 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
18610 instead of callq.
18611
18612 2010-03-22 Janis Johnson <janis187@us.ibm.com>
18613 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18614
18615 * doc/sourcebuild.texi (Test Directives): Split into six
18616 subsections, with most of the current text in new subsections
18617 Directives, Selectors, and Final Actions.
18618 (Directives): Split list of test directives into multiple
18619 subsubsections.
18620 (Selectors): Describe use and syntax of selectors.
18621 (Effective-Target Keywords): Describe all existing keywords.
18622 (Add Options): Describe features for dg-add-options.
18623 (Require Support): Describe variants of dg-require-support.
18624 (Final Actions): Describe commands to use in dg-final.
18625
18626 2010-03-22 Michael Matz <matz@suse.de>
18627
18628 PR middle-end/43475
18629 * recog.c (validate_replace_rtx_group): Replace also in
18630 REG_EQUAL and REG_EQUIV notes.
18631
18632 2010-03-22 Richard Guenther <rguenther@suse.de>
18633
18634 PR tree-optimization/43390
18635 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
18636 sure vector extracts are type correct.
18637
18638 2010-03-22 Richard Guenther <rguenther@suse.de>
18639
18640 PR middle-end/40106
18641 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
18642 x * sqrt (x) even when optimizing for size if the target
18643 has native support for sqrt.
18644
18645 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18646
18647 * varasm.c (make_decl_rtl_for_debug): Also clear
18648 flag_mudflap for the duration of make_decl_rtl call.
18649
18650 PR debug/43443
18651 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
18652 locs from preserved VALUEs.
18653
18654 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18655
18656 PR middle-end/42718
18657 * pa.md (movmemsi): Set align to one if zero.
18658 (movmemdi): Likewise.
18659
18660 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
18661
18662 PR target/42321
18663 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
18664 with their corresponding prologue pushes.
18665
18666 2010-03-20 Andrew Pinski <pinskia@gmail.com>
18667
18668 PR target/43156
18669 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
18670 at the begining or end.
18671 (spu_expand_epilogue): Likewise.
18672
18673 2010-03-20 Richard Guenther <rguenther@suse.de>
18674
18675 PR rtl-optimization/43438
18676 * combine.c (make_extraction): Properly zero-/sign-extend an
18677 extraction of the low part of a CONST_INT. Also handle
18678 CONST_DOUBLE.
18679
18680 2010-03-19 Mike Stump <mikestump@comcast.net>
18681
18682 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
18683 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
18684 (override_options): Use SUBTARGET32_DEFAULT_CPU.
18685
18686 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
18687
18688 PR c/43211
18689 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
18690 an error.
18691
18692 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
18693
18694 PR rtl-optimization/42258
18695 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
18696 use that may match DEF.
18697
18698 PR target/40697
18699 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
18700 the cost of loading the constant rather than assuming
18701 COSTS_N_INSNS (1).
18702 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
18703 outer code is AND, do the same tests as the andsi3 expander and
18704 return COSTS_N_INSNS (1) if and is cheap.
18705
18706 * optabs.c (avoid_expensive_constant): Fix formatting.
18707
18708 2010-03-19 Michael Matz <matz@suse.de>
18709
18710 PR c++/43116
18711 * attribs.c (decl_attributes): When rebuilding a function pointer
18712 type use the same qualifiers as the original pointer type.
18713
18714 2010-03-19 Martin Jambor <mjambor@suse.cz>
18715
18716 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
18717 and is_gimple_ip_invariant_address.
18718
18719 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18720
18721 Revert
18722 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18723
18724 * config/arm/arm.c (arm_override_options): Turn off
18725 flag_dwarf2_cfi_asm for AAPCS variants.
18726
18727 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18728
18729 PR target/43399
18730 * config/arm/arm.c (emit_multi_reg_push): Update comments.
18731 Use PRE_MODIFY instead of PRE_DEC.
18732 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
18733 (vfp_emit_fstmd): Likewise.
18734
18735 2010-03-19 Michael Matz <matz@suse.de>
18736
18737 PR target/43305
18738 * builtins.c (expand_builtin_interclass_mathfn,
18739 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
18740 if that fails.
18741
18742 2010-03-19 Richard Guenther <rguenther@suse.de>
18743
18744 PR tree-optimization/43415
18745 * tree-ssa-pre.c (phi_translate): Split out worker to ...
18746 (phi_translate_1): ... this.
18747 (phi_translate): Move all caching here. Cache all NARY
18748 and REFERENCE translations.
18749
18750 2010-03-19 David S. Miller <davem@davemloft.net>
18751
18752 With help from Eric Botcazou.
18753 * config/sparc/sparc.c: Include dwarf2out.h.
18754 (emit_pic_helper): Delete.
18755 (pic_helper_symbol_name): Delete.
18756 (pic_helper_emitted_p): Delete.
18757 (pic_helper_needed): New.
18758 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
18759 (get_pc_thunk_name): New.
18760 (load_pic_register): Remove 'delay_pic_helper' arg. Use
18761 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
18762 Set pic_helper_needed to true. Don't call emit_pic_helper.
18763 (sparc_expand_prologue): Update load_pic_register call.
18764 (sparc_output_mi_thunk): Likewise.
18765 (sparc_file_end): Emit a hidden comdat symbol for the PIC
18766 thunk if possible. Output CFI information as needed.
18767
18768 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18769 Jack Howarth <howarth@bromo.med.uc.edu>
18770
18771 PR target/36399
18772 * config/i386/i386.h: Fix ABI on darwin x86-32.
18773
18774 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
18775
18776 * tree.h: Declare make_decl_rtl_for_debug.
18777 * varasm.c (make_decl_rtl_for_debug): New.
18778 * dwarf2out.c (rtl_for_decl_location): Call it.
18779 * cfgexpand.c (expand_debug_expr): Call it.
18780
18781 2010-03-18 Jakub Jelinek <jakub@redhat.com>
18782
18783 PR bootstrap/43399
18784 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
18785 mem_mode.
18786
18787 PR bootstrap/43403
18788 * var-tracking.c (vt_init_cfa_base): Do nothing if
18789 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
18790
18791 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
18792
18793 PR debug/42873
18794 * var-tracking.c (canonicalize_vars_star): New.
18795 (dataflow_post_merge_adjust): Use it.
18796
18797 2010-03-18 Jakub Jelinek <jakub@redhat.com>
18798
18799 PR debug/43058
18800 * var-tracking.c (non_suitable_const): New function.
18801 (add_uses): For DEBUG_INSNs with constants, don't record any
18802 value, instead just the constant value itself.
18803 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
18804 is not VAR_LOC_UNKNOWN_P, set var to the constant.
18805 (emit_notes_in_bb): Likewise.
18806 (emit_note_insn_var_location): For onepart variables if
18807 cur_loc is a VOIDmode constant, use DECL_MODE.
18808
18809 2010-03-18 Martin Jambor <mjambor@suse.cz>
18810
18811 PR middle-end/42450
18812 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
18813 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
18814 all non-clones. Moved call redirection...
18815 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
18816 (cgraph_materialize_all_clones): Dispose of all
18817 combined_args_to_skip bitmaps.
18818 (verify_cgraph_node): Do not check for edges pointing to wrong
18819 nodes in inline clones.
18820 * tree-inline.c (copy_bb): Call
18821 cgraph_redirect_edge_call_stmt_to_callee.
18822 * ipa.c (cgraph_remove_unreachable_nodes): Call
18823 cgraph_node_remove_callees even when there are used clones.
18824
18825 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
18826
18827 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
18828
18829 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
18830
18831 PR target/43383
18832 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
18833 for 32bit.
18834
18835 2010-03-18 Michael Matz <matz@suse.de>
18836
18837 PR middle-end/43419
18838 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
18839 into sqrt(x) if we need to preserve signed zeros.
18840
18841 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
18842 Eric Botcazou <ebotcazou@adacore.com>
18843
18844 PR rtl-optimization/43360
18845 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
18846 note if we don't know its invariant status.
18847
18848 2010-03-18 Michael Matz <matz@suse.de>
18849
18850 PR tree-optimization/43402
18851 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
18852 PHI chains of ssa names registered for update.
18853
18854 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
18855
18856 PR target/42427
18857 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
18858 non-offsettable and pre_modify update addressing.
18859 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
18860 and "2" alternatives "#".
18861 (*movdd_softfloat32): Make all alternatives "#";
18862 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
18863 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
18864 (*movdf_softfloat32): Make all alternatives "#";
18865 (movdi): Use the new DIFD mode iterator to create a common splitter
18866 for movdi, movdf and movdd patterns.
18867
18868 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
18869
18870 * common.opt (dumpdir): Remove redundant tab.
18871
18872 2010-03-17 Martin Jambor <mjambor@suse.cz>
18873
18874 PR tree-optimization/43347
18875 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
18876 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
18877
18878 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
18879
18880 PR rtl-optimization/42216
18881 * regrename.c (create_new_chain): New function, broken out from...
18882 (scan_rtx_reg): ... here. Call it. Handle the case where we are
18883 appending a use to an empty chain.
18884 (build_def_use): Remove previous changes that convert OP_INOUT to
18885 OP_OUT operands; instead detect the case where an OP_INOUT operand
18886 uses a previously untracked register and create an empty chain for it.
18887
18888 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18889
18890 * doc/extend.texi (Function Attributes): Rewrite unfinished
18891 sentence in ms_abi documentation.
18892
18893 2010-03-17 Alan Modra <amodra@gmail.com>
18894
18895 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
18896 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
18897 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
18898 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
18899
18900 2010-03-16 Richard Henderson <rth@redhat.com>
18901
18902 PR middle-end/43365
18903 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
18904 (lower_try_finally): Save and restore eh_seq around the expansion
18905 of the try-finally.
18906
18907 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
18908
18909 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
18910 statements before splitting block.
18911
18912 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18913
18914 * doc/sourcebuild.texi (Testsuites): Fix markup.
18915 Use pathnames relative to gcc/testsuite.
18916 (Test Directives): Move description of how timeout is determined.
18917 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
18918 (C Tests): Correct gcc.misc-tests directory.
18919 Framework tests now live in gcc.test-framework.
18920
18921 2010-03-16 Richard Guenther <rguenther@suse.de>
18922
18923 PR middle-end/43379
18924 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
18925 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
18926
18927 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
18928 Alexandre Oliva <aoliva@redhat.com>
18929
18930 PR tree-optimization/42917
18931 * lambda-code.c (remove_iv): Skip debug statements.
18932 (lambda_loopnest_to_gcc_loopnest): Likewise.
18933 (not_interesting_stmt): Debug statements are not interesting.
18934
18935 2010-03-16 Jakub Jelinek <jakub@redhat.com>
18936
18937 PR debug/43051
18938 PR debug/43092
18939 * cselib.c (cselib_preserve_constants,
18940 cfa_base_preserved_val): New static variables.
18941 (preserve_only_constants): New function.
18942 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
18943 clear its REG_VALUES. If cselib_preserve_constants, don't
18944 empty the whole hash table, but preserve there VALUEs with constants,
18945 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
18946 (cselib_preserve_cfa_base_value): New function.
18947 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
18948 (cselib_init): Change argument to int bitfield. Set
18949 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
18950 is in it.
18951 (cselib_finish): Clear cselib_preserve_constants and
18952 cfa_base_preserved_val.
18953 * cselib.h (enum cselib_record_what): New enum.
18954 (cselib_init): Change argument to int.
18955 (cselib_preserve_cfa_base_value): New prototype.
18956 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
18957 * dse.c (dse_step1): Likewise.
18958 * cfgcleanup.c (thread_jump): Likewise.
18959 * sched-deps.c (sched_analyze): Likewise.
18960 * gcse.c (local_cprop_pass): Likewise.
18961 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
18962 If FN is non-NULL, call the callback always and whenever it returns
18963 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
18964 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
18965 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
18966 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
18967 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
18968 * var-tracking.c: Include recog.h.
18969 (bb_stack_adjust_offset): Remove.
18970 (vt_stack_adjustments): Don't call it, instead just gather the
18971 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
18972 (adjust_stack_reference): Remove.
18973 (compute_cfa_pointer): New function.
18974 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
18975 (struct adjust_mem_data): New type.
18976 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
18977 functions.
18978 (get_address_mode): New function.
18979 (replace_expr_with_values): Use it.
18980 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
18981 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
18982 (adjust_sets): Remove.
18983 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
18984 Use get_address_mode.
18985 (get_adjusted_src): Remove.
18986 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
18987 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
18988 (add_with_sets): Don't call adjust_sets.
18989 (fp_setter, vt_init_cfa_base): New functions.
18990 (vt_initialize): Change return type to bool. Move most of pool etc.
18991 initialization to the beginning of the function from end. Pass
18992 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
18993 If !frame_pointer_needed, call vt_stack_adjustment before mos
18994 vector is filled, call vt_init_cfa_base if argp/framep has been
18995 eliminated to sp. If frame_pointer_needed and argp/framep has
18996 been eliminated to hard frame pointer, set
18997 hard_frame_pointer_adjustment and call vt_init_cfa_base after
18998 encountering fp setter in the prologue. For MO_ADJUST, call
18999 log_op_type before pusing the op into mos vector, not afterwards.
19000 Call adjust_insn before cselib_process_insn/add_with_sets,
19001 call cancel_changes (0) afterwards.
19002 (variable_tracking_main_1): Adjust for vt_initialize calling
19003 vt_stack_adjustments and returning whether it succeeded or not.
19004
19005 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
19006
19007 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
19008 debug statements.
19009
19010 2010-03-15 Jakub Jelinek <jakub@redhat.com>
19011
19012 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
19013 has been set.
19014 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
19015 drap_reg has not been set.
19016
19017 2010-03-15 Michael Matz <matz@suse.de>
19018
19019 PR middle-end/43300
19020 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
19021 use it to expand block copies.
19022 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19023 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
19024 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
19025
19026 2010-03-15 Richard Guenther <rguenther@suse.de>
19027
19028 PR tree-optimization/43367
19029 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
19030 elimination check.
19031
19032 2010-03-15 Richard Guenther <rguenther@suse.de>
19033
19034 PR tree-optimization/43317
19035 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
19036
19037 2010-03-15 Martin Jambor <mjambor@suse.cz>
19038
19039 PR tree-optimization/43141
19040 * tree-sra.c (create_abstract_origin): New function.
19041 (modify_function): Call create_abstract_origin.
19042
19043 2010-03-15 Chris Demetriou <cgd@google.com>
19044
19045 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
19046 wasn't copied.
19047
19048 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19049
19050 PR middle-end/43354
19051 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
19052 call insert_out_of_ssa_copy for default definitions.
19053
19054 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19055
19056 * graphite-clast-to-gimple.c (my_long_long): Defined.
19057 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
19058 * graphite-sese-to-poly.c (my_long_long): Defined.
19059 (scop_ivs_can_be_represented): Use it.
19060
19061 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19062
19063 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
19064 graphite-max-bbs-per-function, and loop-block-tile-size.
19065 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
19066 with "maximum".
19067 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
19068
19069 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19070
19071 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
19072 forward declaration.
19073 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
19074 (add_upper_bounds_from_estimated_nit): New.
19075 (build_loop_iteration_domains): Use it.
19076
19077 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19078
19079 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
19080
19081 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19082
19083 PR middle-end/43306
19084 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
19085 should be an INTEGER_CST. Also handle CASE_CONVERT.
19086
19087 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19088
19089 * graphite.c (graphite_initialize): To bound the number of bbs per
19090 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
19091 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
19092 * doc/invoke.texi: Document it.
19093
19094 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19095
19096 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
19097 * graphite-sese-to-poly.h (build_poly_scop): Same.
19098
19099 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19100
19101 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
19102 the number of parameters in the scop. Use as an upper bound
19103 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
19104 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
19105 * doc/invoke.texi: Document it.
19106
19107 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
19108
19109 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
19110 * doc/c-tree.texi: Remove.
19111 * doc/generic.texi: Merge c-tree.texi here.
19112 * doc/gccint.texi (Trees): Remove menu entry.
19113 (c-tree.texi): Remove @include.
19114 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
19115 * doc/languages.texi (Reading RTL): Ditto.
19116
19117 2010-03-12 Steve Ellcey <sje@cup.hp.com>
19118
19119 PR target/42869
19120 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
19121
19122 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19123
19124 PR middle-end/42431
19125 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
19126 code added to work around reload clobbering CONST insns.
19127
19128 2010-03-12 Jakub Jelinek <jakub@redhat.com>
19129
19130 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
19131 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
19132 (cselib_preserve_only_values): Remove retain argument, don't
19133 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
19134 * cselib.h (cselib_preserve_only_values): Remove retain argument.
19135 * var-tracking.c (micro_operation): Move insn field before union.
19136 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
19137 (struct variable_tracking_info_def): Remove n_mos field, change
19138 mos into a vector of micro_operations.
19139 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
19140 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
19141 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
19142 changing into a vector.
19143 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
19144 come before all other uops generated by add_stores.
19145 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
19146 argument removal.
19147 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
19148 a vector. Run just one pass over the bbs instead of separate counting
19149 and computation phase.
19150 (vt_finalize): Free VTI (bb)->mos vector instead of array.
19151
19152 PR debug/43329
19153 * tree-inline.c (remap_decls): Put old_var rather than origin_var
19154 into *nonlocalized_list vector.
19155 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
19156 even if origin is non-NULL.
19157 (gen_variable_die): Likewise.
19158 (process_scope_var): Don't change origin.
19159 (gen_decl_die): Likewise.
19160 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
19161 before adding new edges instead of after it, fix moving over
19162 debug stmts.
19163
19164 2010-03-11 David S. Miller <davem@davemloft.net>
19165
19166 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
19167 of four.
19168 * configure: Rebuild.
19169
19170 2010-03-11 Martin Jambor <mjambor@suse.cz>
19171
19172 PR tree-optimization/43257
19173 * tree.c (assign_assembler_name_if_neeeded): New function.
19174 (free_lang_data_in_cgraph): Assembler name assignment moved to the
19175 above new function.
19176 * tree.h (assign_assembler_name_if_neeeded): Declare.
19177 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
19178 the function if needed.
19179
19180 2010-03-11 Chris Demetriou <cgd@google.com>
19181
19182 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
19183 include/stdint-gcc.h, and include/stdint.h world-readable.
19184
19185 2010-03-11 Richard Guenther <rguenther@suse.de>
19186
19187 PR tree-optimization/43255
19188 * tree-vrp.c (process_assert_insertions_for): Do not insert
19189 asserts for trivial conditions.
19190
19191 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19192
19193 PR tree-optimization/43280
19194 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
19195 generation. Move calculation of size out of the if branch.
19196 (find_bswap): Modify compare number generation.
19197
19198 2010-03-11 Richard Guenther <rguenther@suse.de>
19199
19200 PR lto/43200
19201 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
19202 (input_gimple_stmt): Fixup handled component types during
19203 operand read. Also fix up decls in ADDR_EXPRs.
19204
19205 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
19206
19207 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
19208 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
19209
19210 2010-03-10 Jan Hubicka <jh@suse.cz>
19211
19212 PR c/43288
19213 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
19214 * varasm.c (get_variable_section): Don't do that here...
19215 (make_decl_rtl): ... and here.
19216 (do_assemble_alias): Produce decl RTL.
19217 (assemble_alias): Likewise.
19218
19219 2010-03-10 Jakub Jelinek <jakub@redhat.com>
19220
19221 PR debug/43290
19222 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
19223 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
19224 of fde->vdrap_reg.
19225 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
19226 (based_loc_descr): Only express drap or vdrap regno based expressions
19227 using DW_OP_fbreg when not optimizing.
19228 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
19229 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
19230 REG_CFA_SET_VDRAP note.
19231
19232 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
19233
19234 PR tree-optimization/43236
19235 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
19236 error in calculation of base address in reverse iteration case.
19237 (generate_builtin): Take number of latch executions if the statement
19238 is in the latch.
19239
19240 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
19241
19242 PR middle-end/42859
19243 * tree-eh.c: Include pointer-set.h.
19244 (lower_eh_dispatch): Filter out duplicate case labels and
19245 remove the unneeded edge when the label is unused. Return
19246 true when some edges are removed.
19247 (execute_lower_eh_dispatch): When any lowering resulted in
19248 removing an edge, also delete unreachable blocks.
19249
19250 2010-03-10 Jakub Jelinek <jakub@redhat.com>
19251
19252 PR bootstrap/43287
19253 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19254 UNSPEC_MACHOPIC_OFFSET.
19255
19256 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
19257
19258 PR target/43294
19259 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
19260 (m68k_delegitimize_address): New function.
19261
19262 2010-03-09 Jakub Jelinek <jakub@redhat.com>
19263
19264 PR debug/43299
19265 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
19266
19267 PR debug/43299
19268 * var-tracking.c (adjust_sets): New function.
19269 (count_with_sets, add_with_sets): Use it.
19270 (get_adjusted_src): New inline function.
19271 (add_stores): Use it.
19272
19273 PR debug/43304
19274 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
19275 call cselib_dummy_expand_value_rtx_cb instead of
19276 cselib_expand_value_rtx_cb.
19277
19278 PR debug/43293
19279 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
19280 * config/i386/i386.c: Include debug.h and dwarf2out.h.
19281 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
19282 and .cfi_endproc around the pic thunks.
19283 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
19284 all queued unwind info register saves are saved before the call.
19285 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
19286 considered as sp-=4 for unwind info and the pop as sp+=4 which
19287 also clobbers dest, but doesn't actually restore it.
19288
19289 PR debug/43290
19290 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
19291 RTX_FRAME_RELATED_P.
19292
19293 2010-03-09 Jie Zhang <jie@codesourcery.com>
19294
19295 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
19296 whitespaces in output template.
19297
19298 2010-03-09 Jie Zhang <jie@codesourcery.com>
19299
19300 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
19301 out array boundary.
19302
19303 2010-03-08 Jakub Jelinek <jakub@redhat.com>
19304
19305 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
19306 builtins.exp in a separate job.
19307
19308 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19309
19310 * graphite-sese-to-poly.c (add_param_constraints): Use
19311 lower_bound_in_type and upper_bound_in_type.
19312
19313 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19314
19315 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
19316 instead of unsigned_type_node.
19317
19318 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19319 Reza Yazdani <reza.yazdani@amd.com>
19320
19321 PR middle-end/43065
19322 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
19323 on pointer type parameters.
19324
19325 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
19326
19327 PR middle-end/42644
19328 PR middle-end/42130
19329 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
19330 handle conversions from pointer to integers.
19331 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
19332 induction variable, to be able to work with code generated by CLooG.
19333 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
19334 (build_poly_scop): Bail out if we cannot codegen a loop.
19335
19336 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
19337
19338 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
19339 code generation with gloog_error.
19340
19341 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19342
19343 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
19344 Call fold_convert on all the returned values.
19345 (expand_scalar_variables_expr): Pass to
19346 expand_scalar_variables_ssa_name the type of the resulting expression.
19347
19348 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19349
19350 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
19351 ppl_min_for_le_pointset.
19352 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
19353 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
19354
19355 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19356
19357 * graphite-dependences.c (map_into_dep_poly): Removed.
19358 (dependence_polyhedron_1): Use combine_context_id_scat.
19359
19360 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19361
19362 * graphite-poly.h (struct poly_scattering): Add layout documentation.
19363 (struct poly_bb): Same.
19364 (combine_context_id_scat): New.
19365
19366 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19367
19368 PR middle-end/42326
19369 * sese.c (name_defined_in_loop_p): Return false for default
19370 definitions.
19371
19372 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19373
19374 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
19375 and clean up the logic.
19376
19377 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19378
19379 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
19380 early return.
19381
19382 2010-03-08 Jakub Jelinek <jakub@redhat.com>
19383
19384 * var-tracking.c (remove_cselib_value_chains): Define only for
19385 ENABLE_CHECKING.
19386 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
19387 delete_slot_part, emit_notes_for_differences_1): Don't call
19388 remove_cselib_value_chains here.
19389 (set_slot_part, emit_notes_for_differences_2): Don't call
19390 add_cselib_value_chains here.
19391 (preserved_values): New vector.
19392 (preserve_value): New function.
19393 (add_uses, add_stores, vt_add_function_parameters): Use it
19394 instead of cselib_preserve_value.
19395 (changed_values_stack): New vector.
19396 (check_changed_vars_0): New function.
19397 (check_changed_vars_1, check_changed_vars_2): Use it.
19398 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
19399 changed_values_stack VALUEs.
19400 (vt_emit_notes): For all preserved_values call
19401 add_cselib_value_chains. If ENABLE_CHECKING call
19402 remove_cselib_value_chains before verifying value_chains is empty.
19403 Initialize and free changed_values_stack.
19404 (vt_initialize): Initialize preserved_values.
19405 (vt_finalize): Free preserved_values.
19406
19407 2010-03-08 Richard Guenther <rguenther@suse.de>
19408
19409 PR tree-optimization/43269
19410 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
19411 region detection.
19412
19413 2010-03-08 Martin Jambor <mjambor@suse.cz>
19414
19415 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
19416 (ipa_is_param_called): Removed.
19417 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
19418 (ipa_print_node_params): Do not print the called flag.
19419 (ipa_write_node_info): Do not stream the called flag.
19420 (ipa_read_node_info): Likewise.
19421
19422 2010-03-07 Jakub Jelinek <jakub@redhat.com>
19423
19424 PR debug/43176
19425 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
19426 * cselib.c (struct expand_value_data): Add dummy field.
19427 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
19428 dummy to false.
19429 (cselib_dummy_expand_value_rtx_cb): New function.
19430 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
19431 any rtl.
19432 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
19433 * var-tracking.c: Include pointer-set.h.
19434 (variable): Change n_var_parts to char from int. Add
19435 cur_loc_changed and in_changed_variables fields.
19436 (variable_canonicalize): Remove.
19437 (shared_var_p): New inline function.
19438 (unshare_variable): Maintain cur_loc_changed and
19439 in_changed_variables fields. If var was in changed_variables,
19440 replace it there with new_var. Just copy cur_loc instead of
19441 resetting it to something else.
19442 (variable_union): Don't recompute cur_loc. Use shared_var_p.
19443 (dataflow_set_union): Don't call variable_canonicalize.
19444 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
19445 of their DEBUG_EXPR_TREE_DECLs.
19446 (canonicalize_loc_order_check): Verify that cur_loc is NULL
19447 and in_changed_variables and cur_loc_changed is false.
19448 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
19449 and cur_loc_changed. Don't update cur_loc here.
19450 (variable_merge_over_src): Don't call variable_canonicalize.
19451 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
19452 removing loc that is equal to cur_loc, clear cur_loc,
19453 set cur_loc_changed and ensure variable_was_changed is called.
19454 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
19455 compare pointers in cur_loc check, if it is equal to loc,
19456 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
19457 (variable_different_p): Remove compare_current_location argument,
19458 don't compare cur_loc.
19459 (dataflow_set_different_1): Adjust variable_different_p caller.
19460 (variable_was_changed): If dv had some var in changed_variables
19461 already, reset in_changed_variables flag for it and propagate
19462 cur_loc_changed over to the new variable. On empty var
19463 always set cur_loc_changed. Set in_changed_variables on whatever
19464 var is added to changed_variables.
19465 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
19466 Use shared_var_p. When removing loc that is equal to cur_loc,
19467 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
19468 end, don't set it to something else, just call variable_was_changed.
19469 (delete_slot_part): Use shared_var_p. When cur_loc equals to
19470 loc being removed, clear cur_loc and set cur_loc_changed.
19471 Set cur_loc_changed if all locations have been removed.
19472 (struct expand_loc_callback_data): New type.
19473 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
19474 allocated. Always create SUBREGs if simplify_subreg failed.
19475 Prefer to use cur_loc, when that fails and still in
19476 changed_variables (and seen first time) recompute it. Set
19477 cur_loc_changed of variables which had to change cur_loc and
19478 compute elcd->cur_loc_changed if any of the subexpressions used
19479 had to change cur_loc.
19480 (vt_expand_loc): Adjust to pass arguments in
19481 expand_loc_callback_data structure.
19482 (vt_expand_loc_dummy): New function.
19483 (emitted_notes): New variable.
19484 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
19485 that weren't used for any other decl in current
19486 emit_notes_for_changes call call vt_expand_loc_dummy to update
19487 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
19488 first loc_chain location if NULL before. Always use just
19489 cur_loc instead of first loc_chain location. When cur_loc_changed
19490 is false, when not --enable-checking=rtl just don't emit any note.
19491 When rtl checking, compute the note and assert it is the same
19492 as previous note. Clear cur_loc_changed and in_changed_variables
19493 at the end before removing from changed_variables.
19494 (check_changed_vars_3): New function.
19495 (emit_notes_for_changes): Traverse changed_vars to call
19496 check_changed_vars_3 on each changed var.
19497 (emit_notes_for_differences_1): Clear cur_loc_changed and
19498 in_changed_variables. Recompute cur_loc of new_var.
19499 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
19500 (vt_emit_notes): Initialize and destroy emitted_notes.
19501
19502 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
19503
19504 PR rtl-optimization/42220
19505 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
19506 Use verify_reg_tracked to determine if we should use OP_OUT rather
19507 than OP_INOUT.
19508 (build_def_use): If we see an in-out operand for a register that we
19509 know nothing about, treat is an output if possible, fail the block if
19510 not.
19511
19512 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
19513
19514 PR debug/42897
19515 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
19516 permanently.
19517
19518 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
19519
19520 PR debug/42897
19521 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
19522 uses of relevant DEFs that are dead outside the loop too.
19523
19524 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
19525
19526 * var-tracking.c (dataflow_set_merge): Swap src and src2.
19527 Reverted:
19528 2010-01-13 Jakub Jelinek <jakub@redhat.com>
19529 PR debug/41371
19530 * var-tracking.c (values_to_unmark): New variable.
19531 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19532 values_to_unmark vector. Moved body to...
19533 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
19534 instead queue it into values_to_unmark vector.
19535 (vt_find_locations): Free values_to_unmark vector.
19536
19537 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
19538
19539 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
19540 (site.exp): Export them when plugins are enabled.
19541
19542 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
19543
19544 PR middle-end/42326
19545 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
19546 that contain scevs.
19547 (chrec_fold_multiply): Same.
19548
19549 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
19550
19551 PR c/43248
19552 * c-decl.c (build_compound_literal): Return early if init is
19553 an error_mark_node.
19554
19555 2010-03-04 Martin Jambor <mjambor@suse.cz>
19556
19557 PR tree-optimization/43164
19558 PR tree-optimization/43191
19559 * tree-sra.c (type_consists_of_records_p): Reject records with
19560 zero-size bit-fields at the end.
19561
19562 2010-03-04 Mike Stump <mikestump@comcast.net>
19563
19564 * Makefile.in (TAGS): Remove *.y.
19565
19566 2010-03-04 Richard Guenther <rguenther@suse.de>
19567
19568 PR tree-optimization/40761
19569 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
19570 in reverse order.
19571 (my_rev_post_order_compute): New function.
19572 (init_pre): Call it.
19573
19574 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
19575
19576 PR middle-end/43209
19577 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
19578 decrease the cost of an IV candidate when the cost is infinite.
19579
19580 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19581
19582 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
19583 Use '3DNow!' for the extension of that name, ensure normal space
19584 after the string.
19585 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
19586
19587 2010-03-03 Jeff Law <law@redhat.com>
19588
19589 * PR middle-end/32693
19590 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
19591 than gen_rtx_SUBREG.
19592 (extract_bit_field_1): Likewise.
19593
19594 2010-03-03 Janis Johnson <janis187@us.ibm.com>
19595
19596 * doc/sourcebuild.texi (Test directives): Document that arguments
19597 include-opts and exclude-opts are now optional for dg-skip-if,
19598 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
19599
19600 2010-03-03 Jason Merrill <jason@redhat.com>
19601
19602 PR c++/12909
19603 * cgraph.h (varpool_node): Add extra_name field.
19604 * varpool.c (varpool_extra_name_alias): New.
19605 (varpool_assemble_decl): Emit extra name aliases.
19606 (varpool_mark_needed_node): Look past an extra name alias.
19607 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
19608 * lto-streamer-in.c (lto_input_tree): Read it.
19609 * lto-streamer-out.c (output_unreferenced_globals): Write it.
19610
19611 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
19612
19613 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
19614 (sparc*-*-solaris2*): ...this.
19615
19616 2010-03-03 Jakub Jelinek <jakub@redhat.com>
19617
19618 PR debug/43229
19619 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
19620 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
19621 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
19622 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
19623
19624 PR debug/43237
19625 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
19626 fallthrough to default handling, just with want_address 0 instead of 2.
19627 For single element lists, add_AT_loc directly, otherwise create an
19628 artificial variable DIE and stick location list to it.
19629
19630 PR debug/43177
19631 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
19632 (VAL_EXPR_HAS_REVERSE): Define.
19633 (reverse_op): New function.
19634 (add_stores): For reversible operations add an extra MO_VAL_USE.
19635
19636 2010-03-02 Jason Merrill <jason@redhat.com>
19637
19638 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
19639
19640 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
19641
19642 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
19643 (sparc64-*-linux*): Likewise.
19644 (sparc64-*-solaris2*): Include assembler files before linker ones.
19645 (sparc-*-solaris2*): Simplify and reorder to match previous case.
19646 * config/sparc/gas.h: Delete.
19647 * config/sparc/sol2-64.h: Add copyright notice.
19648 * config/sparc/sol2-gas-bi.h: Likewise.
19649 * config/sparc/sol2-gld.h: Likewise.
19650 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
19651 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
19652 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
19653 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
19654 (sparc_elf_asm_named_section): Rename into...
19655 (sparc_solaris_elf_asm_named_section): ...this. Always define.
19656
19657 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
19658
19659 * config/alpha/alpha.c (override_options): Fix -mtune error message.
19660
19661 2010-03-02 Jeff Law <law@redhat.com>
19662
19663 PR middle-end/42431
19664 * reload1.c (rtx_p, substitute_stack): Declare.
19665 (substitute): Record addresses of changed rtxs.
19666 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
19667 Restore the original rtx when complete.
19668 (reload): Free subsitute_stack when complete.
19669
19670 2010-03-02 Janis Johnson <janis187@us.ibm.com>
19671
19672 * doc/gccint.texi (menu): Add Testsuites as a chapter.
19673 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
19674 new chapter.
19675 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
19676 LTO Testing, gcov Testing, profopt Testing, compat Testing,
19677 Torture Tests): Change from subsection to section.
19678
19679 2010-03-02 Jakub Jelinek <jakub@redhat.com>
19680 Steven Bosscher <steven@gcc.gnu.org>
19681
19682 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
19683 instead of bb.
19684
19685 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
19686
19687 PR middle-end/42640
19688 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
19689 the assignment from the new induction variable to the assignment
19690 of the value from the original loop PHI function.
19691
19692 2010-03-01 Janis Johnson <janis187@us.ibm.com>
19693 Daniel Jacobowitz <dan@codesourcery.com>
19694
19695 * doc/sourcebuild.texi (Test directives): Clarify options to
19696 dg-skip-if.
19697
19698 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19699
19700 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
19701 Disable cfi directives unless GCC and gas agree on using read-only
19702 .eh_frame sections for 64-bit.
19703 * configure: Regenerate.
19704
19705 2010-03-01 Richard Guenther <rguenther@suse.de>
19706
19707 PR tree-optimization/43220
19708 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
19709 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
19710
19711 2010-03-01 Richard Guenther <rguenther@suse.de>
19712 Martin Jambor <mjambor@suse.cz>
19713
19714 PR middle-end/41250
19715 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
19716 gimplified parameters.
19717
19718 2010-03-01 Christian Bruel <christian.bruel@st.com>
19719
19720 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
19721
19722 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
19723
19724 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
19725
19726 2010-03-01 Richard Guenther <rguenther@suse.de>
19727
19728 PR middle-end/43213
19729 * expr.c (expand_assignment): Use the alias-oracle to tell
19730 if the rhs aliases the result decl.
19731
19732 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19733
19734 PR pch/14940
19735 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
19736 to sol_gt_pch_get_address.
19737 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
19738 64-bit, SPARC and x86.
19739 (sol_gt_pch_get_address): New function.
19740
19741 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
19742
19743 * toplev.h (inform_n, error_n): Declare.
19744 * diagnostic.c (inform_n, error_n): New function.
19745
19746 2010-03-01 Jakub Jelinek <jakub@redhat.com>
19747
19748 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
19749 has no rtl yet when processing local_decls, queue it and recheck
19750 if deferred stack allocation hasn't assigned it rtl.
19751
19752 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
19753
19754 * config/sh/sh.c (unspec_bbr_uid): New.
19755 (gen_block_redirect): Use it instead of INSN_UID.
19756 (gen_far_branch): Likewise.
19757
19758 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
19759
19760 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
19761 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
19762
19763 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19764
19765 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
19766 (Warning Options): -Wno-conversion-null is valid for
19767 Objective-C++ as well.
19768 * doc/tm.texi (Named Address Spaces): Likewise.
19769 * doc/plugins.texi (Plugins): Replace TABs with spaces.
19770 * doc/tree-ssa.texi (Tree SSA): Likewise.
19771
19772 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
19773
19774 PR bootstrap/43202
19775 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
19776 by default. Don't set the default arch for
19777 i[34567]86-*-darwin*|x86_64-*-darwin*.
19778
19779 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
19780
19781 PR bootstrap/43202
19782 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
19783 default. Set the default 32bit/64bit archs with $with_arch
19784 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
19785
19786 2010-02-27 Richard Guenther <rguenther@suse.de>
19787
19788 PR tree-optimization/43186
19789 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
19790 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
19791 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
19792 unroller iterations.
19793
19794 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
19795
19796 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
19797 required and i[34567]86-*-* targets don't support 64bit ISA.
19798
19799 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
19800
19801 PR ada/43096
19802 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19803 the same alias set.
19804
19805 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
19806
19807 * config.gcc: Set the default arch at least to Prescott for
19808 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
19809 if SSE math is enabled.
19810
19811 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
19812
19813 * diagnostic.c (diagnostic_initialize): Update.
19814 (diagnostic_report_diagnostic): Test inhibit_notes_p for
19815 informative notes.
19816 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
19817 (diagnostic_inhibit_notes): New.
19818 * toplev.c (process_options): inhibit notes with -fcompare-debug.
19819
19820 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
19821
19822 PR c/20631
19823 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
19824 * doc/standards.texi: Likewise.
19825 * doc/extend.texi: Likewise.
19826 * doc/trouble.texi: Likewise.
19827 * doc/cppopts.texi: Likewise.
19828 * doc/install.texi: Likewise.
19829 * c.opt (std=c90,std=gnu90): New options.
19830 * c-opts.c (c_common_handle_option): Handle them.
19831
19832 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
19833
19834 PR c/24577
19835 * c-decl.c (undeclared_variable): Use an informative note.
19836
19837 2010-02-26 Richard Guenther <rguenther@suse.de>
19838
19839 PR tree-optimization/43186
19840 * gimple.h (gimple_fold): Remove.
19841 * gimple.c (gimple_fold): Remove. Inline into single user ...
19842 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
19843 Try harder for conditions.
19844
19845 2010-02-26 Jakub Jelinek <jakub@redhat.com>
19846
19847 PR debug/43190
19848 * function.c (used_types_insert): Don't skip through named pointer
19849 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
19850 and it is different from the main variant's type.
19851
19852 2010-02-26 Nick Clifton <nickc@redhat.com>
19853
19854 * config/rx/rx.md (sminsi3): Remove bogus alternative.
19855
19856 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
19857
19858 * config.gcc: Support --with-fpmath=sse for x86.
19859
19860 * config/i386/ssemath.h: New.
19861
19862 * doc/install.texi (--with-fpmath=sse): Documented.
19863
19864 2010-02-26 Richard Guenther <rguenther@suse.de>
19865
19866 PR tree-optimization/43188
19867 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
19868 vector types of over-aligned element type.
19869
19870 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
19871
19872 PR target/43175
19873 * config/i386/i386.c (expand_vec_perm_blend): Use correct
19874 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
19875
19876 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
19877
19878 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
19879
19880 2010-02-26 Jakub Jelinek <jakub@redhat.com>
19881
19882 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
19883 * var-tracking.c: Include diagnostic.h.
19884 (debug_dv): New function.
19885 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
19886
19887 PR debug/43160
19888 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
19889 (add_value_chain, add_value_chains, remove_value_chain,
19890 remove_value_chains): Handle DEBUG_EXPRs.
19891 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
19892
19893 PR debug/43161
19894 * regcprop.c (struct queued_debug_insn_change): New type.
19895 (struct value_data_entry): Add debug_insn_changes field.
19896 (struct value_data): Add n_debug_insn_changes field.
19897 (debug_insn_changes_pool): New variable.
19898 (free_debug_insn_changes, apply_debug_insn_changes,
19899 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
19900 (kill_value_one_regno): Call free_debug_insn_changes if needed.
19901 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
19902 fields.
19903 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
19904 changes for them.
19905 (copyprop_hardreg_forward_1): Don't call apply_change_group for
19906 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
19907 changes, call cprop_find_used_regs via note_stores.
19908 (copyprop_hardreg_forward): When copying vd from predecessor
19909 which has any queued DEBUG_INSN changes, make sure the pointers are
19910 cleared. At the end call df_analyze and then if there are any
19911 DEBUG_INSN changes queued at the end of some basic block for still
19912 live registers, apply them.
19913 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
19914
19915 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
19916
19917 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
19918 (arm*-*-*): Ditto.
19919
19920 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
19921
19922 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
19923 targets. Set the default with_cpu/with_arch from arch/cpu.
19924 Allow x86-64 and native for with_cpu/with_arch.
19925
19926 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
19927
19928 * ebitmap.c: Change calls to verify_popcount with calls to
19929 sbitmap_verify_popcount.
19930 (ebitmap_clear_bit): Fixed map->cacheindex test and
19931 map>cache update when bit clearing results in an empty
19932 element.
19933
19934 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
19935
19936 PR target/43154
19937 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
19938 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
19939 and support both V2DF and V2DI modes.
19940 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
19941 support both V2DF and V2DI modes.
19942 (general): Delete trailing whitespace from a few patterns.
19943
19944 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19945 V2DF/V2DI interleave high/low builtins.
19946
19947 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
19948 new VSX builtins.
19949
19950 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
19951 interleave high/low functions.
19952
19953 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
19954
19955 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
19956 #pragma extern_prefix.
19957
19958 2010-02-25 Jakub Jelinek <jakub@redhat.com>
19959
19960 PR debug/43166
19961 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
19962 BLKmode, assert op0 is a MEM and just adjust its mode.
19963
19964 PR debug/43165
19965 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
19966 if bitpos isn't multiple of mode's bitsize.
19967
19968 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19969
19970 * c.opt (-ftemplate-depth=): New.
19971 (-ftemplate-depth-): Deprecate.
19972 * optc-gen.awk: Handle -ftemplate-depth=.
19973 * opth-gen.awk: Likewise.
19974 * c-opts.c (c_common_handle_option): Likewise.
19975 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
19976
19977 2010-02-24 Jason Merrill <jason@redhat.com>
19978
19979 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
19980
19981 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19982
19983 * cfg.c (alloc_aux_for_block): Remove inline.
19984 (alloc_aux_for_edge): Likewise.
19985
19986 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19987
19988 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
19989
19990 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19991
19992 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
19993 * config/i386/sol2-gas.h: New file.
19994 * config.gcc (i[34567]86-*-solaris2*): Use it.
19995
19996 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19997
19998 PR c/43128
19999 * c-typeck.c (ep_convert_and_check): New.
20000 (build_conditional_expr): Use it.
20001 (build_binary_op): Likewise.
20002
20003 2010-02-24 Jakub Jelinek <jakub@redhat.com>
20004
20005 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
20006
20007 PR debug/43150
20008 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
20009 bounds even for -O+.
20010 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
20011 expr needs to have DECL_NAME set.
20012
20013 2010-02-24 Nick Clifton <nickc@redhat.com>
20014
20015 * config/mep/mep.c: Include gimple.h.
20016 (mep_function_uses_sp): Delete unused function.
20017 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
20018 parameters. Use unsigned integers to count args. Return a
20019 NULL_RTX instead of an error_mark_node. Toidy up formatting.
20020
20021 2010-02-23 Jakub Jelinek <jakub@redhat.com>
20022
20023 PR target/43107
20024 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
20025 greater or equal to nelt instead of 2 * nelt.
20026 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
20027 with nelt - 1.
20028
20029 2010-02-23 Jason Merrill <jason@redhat.com>
20030
20031 PR debug/42800
20032 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
20033 in cfun->local_decls even if they have register types.
20034
20035 PR c++/42837
20036 * stor-layout.c (place_field): Don't warn about unnecessary
20037 DECL_PACKED if the type is packed.
20038
20039 2010-02-23 Jakub Jelinek <jakub@redhat.com>
20040
20041 PR target/43139
20042 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
20043 GOTOFF relocs, even when the base reg isn't pic pointer.
20044
20045 2010-02-23 Michael Matz <matz@suse.de>
20046
20047 PR debug/43077
20048 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
20049 (expand_gimple_basic_block): Generate and use debug temps if there
20050 are debug uses left after the last real use of TERed ssa names.
20051 Unlink debug immediate uses when they are expanded.
20052
20053 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
20054
20055 PR 43123
20056 * config/i386/i386.c (override_options): Reorganise to provide
20057 better error messages.
20058
20059 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
20060
20061 PR middle-end/43083
20062 * graphite-scop-detection.c (create_single_exit_edge): Move
20063 the call to find_single_exit_edge to....
20064 (create_sese_edges): ...here. Don't handle multiple edges
20065 exiting the function.
20066 (build_graphite_scops): Don't handle multiple edges
20067 exiting the function.
20068
20069 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
20070
20071 PR middle-end/43097
20072 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
20073 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
20074
20075 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
20076
20077 PR middle-end/43026
20078 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
20079
20080 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
20081
20082 PR c++/43126
20083 * c-typeck.c (convert_arguments): Print declaration location.
20084 * c-common.c (validate_nargs): Rename as
20085 builtin_function_validate_nargs.
20086 (check_builtin_function_arguments): Update.
20087
20088 2010-02-22 Richard Guenther <rguenther@suse.de>
20089
20090 PR lto/43045
20091 * tree-inline.c (declare_return_variable): Use the type of
20092 the call stmt lhs if available.
20093
20094 2010-02-22 Duncan Sands <baldrick@free.fr>
20095
20096 * passes.c (register_pass): Always consider all pass lists when
20097 ref_pass_instance_number is zero.
20098
20099 2010-02-22 Richard Guenther <rguenther@suse.de>
20100
20101 PR tree-optimization/42749
20102 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
20103 parameter. Do arithmetic in the original type.
20104 (update_accumulator_with_ops): Likewise.
20105 (adjust_accumulator_values): Adjust.
20106
20107 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20108
20109 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
20110 (QI to BLKmode splitter): New splitter.
20111
20112 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
20113
20114 * config/i386/i386.c (initial_ix86_tune_features): Turn on
20115 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
20116
20117 2010-02-22 Richard Guenther <rguenther@suse.de>
20118
20119 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
20120
20121 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
20122
20123 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
20124 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
20125 ($(T)crti.o, $(T)crtn.o): Remove rules.
20126
20127 2010-02-21 Tobias Burnus <burnus@net-b.de>
20128
20129 PR fortran/35259
20130 * doc/invoke.texi (-fassociative-math): Document that this
20131 option is automatically enabled for Fortran.
20132
20133 2010-02-20 David S. Miller <davem@davemloft.net>
20134
20135 * configure.ac: Test if linker and assembler properly support
20136 GOTDATA_OP relocations.
20137 * configure: Rebuild.
20138 * config.in: Likewise.
20139 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
20140 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
20141 (movsi_high_pic): Likewise.
20142 (movdi_lo_sum_pic): Likewise.
20143 (movdi_high_pic): Likewise.
20144 (movsi_pic_gotdata_op): New pattern.
20145 (movdi_pic_gotdata_op): Likewise.
20146 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
20147 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
20148
20149 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
20150
20151 PR target/43067
20152 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
20153 attribute to ssemul.
20154 (xop_mulv2div2di3_high): Ditto.
20155
20156 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
20157
20158 PR c++/35669
20159 * c.opt (Wconversion-null): New option.
20160 * doc/invoke.texi (Wconversion-null): Document.
20161
20162 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
20163
20164 * common.opt (Wlarger-than-): Add Undocumented.
20165
20166 2010-02-19 Mike Stump <mikestump@comcast.net>
20167
20168 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
20169
20170 2010-02-19 Jason Merrill <jason@redhat.com>
20171
20172 PR target/40332
20173 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
20174 * configure: Likewise.
20175
20176 2010-02-20 Alan Modra <amodra@gmail.com>
20177
20178 PR middle-end/42344
20179 * cgraph.h (cgraph_make_decl_local): Declare.
20180 * cgraph.c (cgraph_make_decl_local): New function.
20181 (cgraph_make_node_local): Use it.
20182 * cgraphunit.c (cgraph_function_versioning): Likewise.
20183 * ipa.c (function_and_variable_visibility): Likewise.
20184
20185 2010-02-19 Jakub Jelinek <jakub@redhat.com>
20186
20187 PR bootstrap/43121
20188 * except.c (sjlj_emit_function_enter): Don't call
20189 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
20190 directly.
20191 * rtl.h (add_reg_br_prob_note): Remove prototype.
20192
20193 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
20194
20195 PR 41779
20196 * c-common.c (conversion_warning): Remove widening conversions
20197 before checking the conversion of integers to reals.
20198
20199 2010-02-19 Mike Stump <mikestump@comcast.net>
20200
20201 PR middle-end/43125
20202 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
20203
20204 PR objc/43061
20205 * cgraphunit.c (process_function_and_variable_attributes): Check
20206 DECL_PRESERVE_P instead of looking up attribute "used".
20207 * ipa-pure-const.c (check_decl): Likewise.
20208 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
20209 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
20210 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
20211 instead of attribute "used".
20212 * config/sol2-c.c (solaris_pragma_init): Likewise.
20213 (solaris_pragma_fini): Likewise.
20214
20215 2010-02-19 Jakub Jelinek <jakub@redhat.com>
20216
20217 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
20218 Use XCNEW instead of xcalloc.
20219 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
20220 XNEW instead of xmalloc.
20221 (get_fields): Use XNEWVEC instead of xmalloc.
20222
20223 PR debug/43084
20224 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
20225 populate vars array.
20226 (create_new_general_access): For debug stmts just reset value.
20227 (get_stmt_accesses): For accesses within debug stmts just record them
20228 using add_access_to_acc_sites instead of preventing the peeling or
20229 counting them as accesses.
20230
20231 PR middle-end/42233
20232 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
20233
20234 2010-02-19 Richard Guenther <rguenther@suse.de>
20235
20236 PR tree-optimization/42916
20237 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
20238 instructions.
20239
20240 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
20241
20242 * configure.ac: Replace all uses of changequote in macro arguments
20243 with proper quoting.
20244
20245 2010-02-19 Jakub Jelinek <jakub@redhat.com>
20246
20247 PR middle-end/42233
20248 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
20249
20250 2010-02-19 Richard Guenther <rguenther@suse.de>
20251
20252 PR tree-optimization/42944
20253 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
20254 test for aliasing with errno.
20255
20256 2010-02-19 Jakub Jelinek <jakub@redhat.com>
20257
20258 PR middle-end/42233
20259 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
20260 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
20261 * dojump.c: Include output.h.
20262 (inv): New inline function.
20263 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
20264 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
20265 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
20266 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
20267 argument, pass it down to other calls.
20268 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
20269 add REG_BR_PROB note to the conditional jump.
20270 * cfgexpand.c (add_reg_br_prob_note): Removed.
20271 (expand_gimple_cond): Don't call it, add the probability
20272 as last argument to jumpif_1/jumpifnot_1.
20273 * Makefile.in (dojump.o): Depend on output.h.
20274 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
20275 callers.
20276 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
20277 * stmt.c (do_jump_if_equal): Likewise.
20278 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
20279 * loop-unswitch.c (compare_and_jump_seq): Likewise.
20280 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
20281 Likewise.
20282 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
20283 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
20284 jumpifnot_1 callers.
20285 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
20286 callers.
20287 (store_expr): Adjust jumpifnot caller.
20288 (store_constructor): Adjust jumpif caller.
20289
20290 PR middle-end/42233
20291 * gimplify.c (gimple_boolify): For __builtin_expect call
20292 gimple_boolify also on its first argument.
20293
20294 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
20295
20296 * configure.ac (gnu-unique-object): Wrap regexps using [] in
20297 changequote block.
20298 (__stack_chk_fail): Ditto. Remove quadrigraphs.
20299 * configure: Regenerated.
20300
20301 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20302
20303 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
20304 lang_hooks.types_compatible_p instead of comptypes.
20305
20306 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
20307
20308 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
20309 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
20310 if __prefer_thumb__ is defined.
20311
20312 2010-02-18 Martin Jambor <mjambor@suse.cz>
20313
20314 PR tree-optimization/43066
20315 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
20316 array with zero-sized element type.
20317
20318 2010-02-18 Jakub Jelinek <jakub@redhat.com>
20319
20320 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
20321 rtx, allocate struct var_loc_node here and return it to the
20322 caller, and only if it is actually needed.
20323 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
20324 move it earlier and return immediately if it returns NULL.
20325
20326 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
20327
20328 * config/sparc/gas.h: New file. Restore
20329 TARGET_ASM_NAMED_SECTION to its ELF default.
20330 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
20331 check !HAVE_GNU_AS.
20332 * config/sparc/sparc.c (sparc_elf_asm_named_section):
20333 Likewise. Add ATTRIBUTE_UNUSED to prototype.
20334 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
20335 after sparc/sysv4.h.
20336
20337 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
20338
20339 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
20340
20341 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
20342
20343 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
20344 patterns from predicated pattern.
20345
20346 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
20347
20348 PR target/43103
20349 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
20350 for insn mnemonic suffix.
20351
20352 2010-02-17 Richard Guenther <rguenther@suse.de>
20353
20354 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
20355 to loop PHI nodes.
20356
20357 2010-02-17 Jakub Jelinek <jakub@redhat.com>
20358
20359 PR debug/42918
20360 * caller-save.c (save_call_clobbered_regs): If BB ends with
20361 a DEBUG_INSN, move any notes in between last real insn and the last
20362 DEBUG_INSN after the last DEBUG_INSN.
20363
20364 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
20365
20366 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
20367 Fix return type. Fix argument type. Explain meaning of return value.
20368
20369 2010-02-16 Richard Guenther <rguenther@suse.de>
20370
20371 PR tree-optimization/41043
20372 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
20373 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
20374 statements ...
20375 (vrp_visit_phi_node): ... but only for loop PHI nodes.
20376
20377 2010-02-16 Ira Rosen <irar@il.ibm.com>
20378
20379 PR tree-optimization/43074
20380 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
20381 * tree-vect-loop.c (vect_analyze_loop_operations): Add
20382 vectorizable cycles in hybrid SLP check.
20383 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
20384
20385 2010-02-16 Richard Guenther <rguenther@suse.de>
20386
20387 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
20388 (true_dependence): If memrefs_conflict_p computes must-alias
20389 trust it. Move TBAA check after offset-based disambiguation.
20390 (canon_true_dependence): Likewise.
20391
20392 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
20393
20394 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
20395 * doc/invoke.texi: Document it.
20396 * var-tracking.c: Include toplev.h and params.h.
20397 (vt_find_locations): Return bool indicating success. Compute
20398 hash sizes unconditionally. Check new parameter, report.
20399 (variable_tracking_main_1): Check vt_find_locations results and
20400 retry. Renamed from...
20401 (variable_tracking_main): ... this. New wrapper to preserve
20402 flag_var_tracking_assignments.
20403 * Makefile.in (var-tracking.o): Adjust dependencies.
20404
20405 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
20406 Jakub Jelinek <jakub@redhat.com>
20407
20408 PR target/42854
20409 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
20410 if weak_import attribute is present.
20411 * config/darwin.c (machopic_select_section): Likewise.
20412
20413 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
20414
20415 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
20416 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
20417 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
20418 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
20419
20420 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
20421 types.
20422
20423 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
20424 Fix argument types.
20425
20426 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
20427 Rewrite text to refer to the names.
20428
20429 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
20430
20431 * config/i386/i386-builtin-types.def
20432 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
20433 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
20434 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
20435 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
20436 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
20437 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
20438 IX86_BUILTIN_VPERMIL2PS256.
20439 (MULTI_ARG_4_DF2_DI_I): Defined.
20440 (MULTI_ARG_4_DF2_DI_I1): Defined.
20441 (MULTI_ARG_4_SF2_SI_I): Defined.
20442 (MULTI_ARG_4_SF2_SI_I1): Defined.
20443 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
20444 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
20445 __builtin_ia32_vpermil2ps256.
20446 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
20447 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
20448 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
20449 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
20450 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
20451 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
20452 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
20453 CODE_FOR_xop_vpermil2v8sf3.
20454 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
20455 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
20456 * config/i386/xopintrin.h (_mm_permute2_pd): New.
20457 (_mm256_permute2_pd): New.
20458 (_mm_permute2_ps): New.
20459 (_mm256_permute2_ps): New.
20460
20461 2010-02-15 Nick Clifton <nickc@redhat.com>
20462
20463 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
20464 boolean parameters. Use emit_jump_insn when emitting a pop
20465 instruction containing a return insn.
20466 (push): Use 'true' rather than '1' as second parameter to F.
20467 (h8300_expand_prologue): Likewise.
20468 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
20469 (h8300_expand_epilogue): Likewise.
20470
20471 2010-02-15 Richard Guenther <rguenther@suse.de>
20472
20473 PR middle-end/43068
20474 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
20475 if that is zero.
20476
20477 2010-02-15 Nick Clifton <nickc@redhat.com>
20478
20479 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
20480 delta.
20481
20482 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
20483
20484 * intl.c (fake_ngettext): New function.
20485 * intl.h (fake_ngettext): Declare.
20486 (ngettext): Define macro.
20487 * collect2.c (notice_translated): New function.
20488 (main): Use notice_translated and ngettext.
20489 * collect2.h (notice_translated): Declare.
20490
20491 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
20492
20493 * reorg.c (delete_computation): Comment fixes.
20494 * caller-save.c (setup_save_areas): Idem.
20495 * sel-sched-dump.c (dump_lv_set): Idem.
20496 * rtl.def: Idem.
20497
20498 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20499
20500 * config/s390/s390.c (s390_sched_init): New function.
20501 (TARGET_SCHED_INIT): Target hook defined.
20502
20503 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
20504 Jack Howarth <howarth@bromo.med.uc.edu>
20505 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
20506
20507 PR target/42982
20508 Partial revert of unintended change in fix for PR41605.
20509 * config/darwin.h: Fix typo.
20510 * config/darwin9.h: Same.
20511
20512 2010-02-11 Jakub Jelinek <jakub@redhat.com>
20513
20514 * c-pch.c (pch_init): Clear v.
20515
20516 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
20517
20518 PR middle-end/42930
20519 * graphite-scop-detection.c (graphite_can_represent_scev): Call
20520 graphite_can_represent_init for MULT_EXPR.
20521
20522 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
20523
20524 PR middle-end/42914
20525 PR middle-end/42530
20526 * graphite-sese-to-poly.c (remove_phi): New.
20527 (translate_scalar_reduction_to_array): Call remove_phi.
20528
20529 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
20530
20531 PR middle-end/42771
20532 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
20533 * graphite-clast-to-gimple.h (gloog): Update declaration.
20534 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
20535 * graphite-poly.h (struct poly_bb): Add missing comments.
20536 (struct scop): Add poly_scop_p field.
20537 (POLY_SCOP_P): New.
20538 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
20539 * graphite.c (graphite_transform_loops): Build the polyhedral
20540 representation for each scop before code generation.
20541 * sese.c (rename_variables_in_operand): Removed.
20542 (rename_variables_in_expr): Return the renamed expression.
20543 (rename_sese_parameters): New.
20544 * sese.h (rename_sese_parameters): Declared.
20545
20546 2010-02-11 Richard Guenther <rguenther@suse.de>
20547
20548 PR tree-optimization/42998
20549 * tree-ssa-pre.c (create_expression_by_pieces): Treat
20550 POINTER_PLUS_EXPR properly.
20551
20552 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
20553 Changpeng Fang <changpeng.fang@amd.com>
20554
20555 PR middle-end/40886
20556 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
20557 the cost of an IV candidate when the IV is used in a test against zero.
20558
20559 * gcc.dg/tree-ssa/ivopts-3.c: New.
20560
20561 2010-02-11 Richard Guenther <rguenther@suse.de>
20562
20563 PR lto/41664
20564 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
20565 pointer-vs-decl case by swapping refs. Handle some cases
20566 of pointer-vs-decl disambiguations more conservatively.
20567 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
20568 to false after expanding.
20569
20570 2010-02-11 Richard Guenther <rguenther@suse.de>
20571
20572 PR driver/43021
20573 * gcc.c (process_command): Handle LTO file@offset case more
20574 appropriately.
20575
20576 2010-02-11 Jakub Jelinek <jakub@redhat.com>
20577
20578 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
20579 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
20580 of DEBUG_INSNs.
20581 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
20582
20583 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
20584 if MEM's mode size isn't DWARF2_ADDR_SIZE.
20585 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
20586 Optimize eq/ne comparisons when both arguments are known to be
20587 zero-extended.
20588 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
20589 Don't mask operands unnecessarily if they are known to be already
20590 zero-extended.
20591
20592 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
20593
20594 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
20595 instead of loop.
20596
20597 2010-02-10 Richard Guenther <rguenther@suse.de>
20598
20599 PR tree-optimization/43017
20600 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
20601 for wrapping signed arithmetic.
20602
20603 2010-02-10 Jakub Jelinek <jakub@redhat.com>
20604
20605 PR debug/43010
20606 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
20607 if no debug info should be emitted for it.
20608
20609 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
20610
20611 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
20612 note when flag_exceptions is set.
20613
20614 2010-02-10 Duncan Sands <baldrick@free.fr>
20615
20616 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
20617
20618 2010-02-10 Richard Guenther <rguenther@suse.de>
20619
20620 PR c/43007
20621 * tree.c (get_unwidened): Handle constants.
20622 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
20623
20624 2010-02-10 Martin Jambor <mjambor@suse.cz>
20625
20626 PR lto/42985
20627 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
20628 check for variable argument counts independently.
20629
20630 2010-02-10 Christian Bruel <christian.bruel@st.com>
20631
20632 PR target/42841
20633 * config/sh/sh.c (find_barrier): Increase length for non delayed
20634 conditional branches.
20635
20636 2010-02-10 Christian Bruel <christian.bruel@st.com>
20637
20638 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
20639
20640 2010-02-10 Jakub Jelinek <jakub@redhat.com>
20641
20642 * builtins.c (set_builtin_user_assembler_name): Also handle
20643 ffs if int is smaller than word.
20644
20645 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
20646
20647 PR middle-end/42973
20648 * ira-conflicts.c (get_dup): Remove.
20649 (process_reg_shuffles): Add new parameter. Use it as an
20650 additional guard for copy generation.
20651 (add_insn_allocno_copies): Rewrite.
20652
20653 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
20654
20655 * common.opt (fsched2-use-traces): Preserved for backward
20656 compatibility.
20657 * doc/invoke.texi: Remove the documentation about option
20658 -fsched2-use-traces.
20659 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
20660 flag_sched2_use_traces.
20661 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
20662 the backward compatibility flag section.
20663
20664 2010-02-09 Richard Guenther <rguenther@suse.de>
20665
20666 PR tree-optimization/43008
20667 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
20668 make HEAP variables initialized from global memory if they
20669 are not known builtin functions.
20670 (find_func_aliases): Adjust.
20671
20672 2010-02-09 Richard Guenther <rguenther@suse.de>
20673
20674 PR tree-optimization/43000
20675 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
20676 arithmetic manually.
20677
20678 2010-02-08 Jakub Jelinek <jakub@redhat.com>
20679
20680 PR tree-optimization/42931
20681 * tree-loop-linear.c (try_interchange_loops): Don't call
20682 double_int_mul if estimated_loop_iterations failed.
20683
20684 2010-02-08 Martin Jambor <mjambor@suse.cz>
20685
20686 PR middle-end/42898
20687 * tree-sra.c (build_accesses_from_assign): Do not mark in
20688 should_scalarize_away_bitmap if stmt has volatile ops.
20689 (sra_modify_assign): Do not process assigns piecemeal if if stmt
20690 has volatile ops.
20691
20692 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
20693
20694 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
20695
20696 2010-02-07 Adam Nemet <adambnmet@gmail.com>
20697
20698 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
20699 before the pattern.
20700
20701 2010-02-07 Andrew Pinski <pinskia@gmail.com>
20702
20703 PR middle-end/42946
20704 * df-core.c (df_finish_pass): Change type of saved_flags to int.
20705
20706 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
20707
20708 PR middle-end/42988
20709 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
20710 to unknown_dependence.
20711 (graphite_legal_transform_dr): Handle the unknown_dependence.
20712 (graphite_carried_dependence_level_k): Same.
20713
20714 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
20715
20716 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
20717
20718 2010-02-07 Richard Guenther <rguenther@suse.de>
20719
20720 PR middle-end/42991
20721 * expr.c (get_inner_reference): Always initialize *pbitsize.
20722
20723 2010-02-07 Richard Guenther <rguenther@suse.de>
20724
20725 PR middle-end/42956
20726 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
20727 new ARRAY_REFs on variable size element or minimal index arrays.
20728 Complete.
20729 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
20730 gimple_fold_indirect_ref.
20731
20732 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
20733
20734 PR target/42957
20735 * arm.c (arm_override_options): Just return if the user has specified
20736 an invalid fpu name.
20737
20738 2010-02-03 Jason Merrill <jason@redhat.com>
20739
20740 PR c++/42870
20741 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
20742 i386_pe_maybe_record_exported_symbol.
20743
20744 2010-02-05 Steve Ellcey <sje@cup.hp.com>
20745
20746 PR target/42924
20747 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
20748 (pa_delegitimize_address): New function.
20749
20750 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
20751
20752 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
20753 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
20754
20755 2010-02-05 Richard Guenther <rguenther@suse.de>
20756
20757 PR lto/42762
20758 * lto-streamer-in.c (get_resolution): Deal with references
20759 to undefined functions.
20760
20761 2010-02-05 Richard Guenther <rguenther@suse.de>
20762
20763 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
20764 (fold_const_aggregate_ref): Likewise.
20765 (ccp_fold_stmt): Substitute loads.
20766 (maybe_fold_reference): Verify types before substituting.
20767 Unshare properly.
20768 (fold_gimple_assign): Unshare properly.
20769 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
20770
20771 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
20772
20773 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
20774 for rs6000_gen_cell_microcode.
20775
20776 2010-02-04 Richard Guenther <rguenther@suse.de>
20777
20778 PR rtl-optimization/42952
20779 * dse.c (const_or_frame_p): Remove MEM handling.
20780
20781 2010-02-04 Nick Clifton <nickc@redhat.com>
20782
20783 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
20784 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20785 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
20786 (mn10300_asm_output_mi_thunk): New function.
20787 (mn10300_can_output_mu_thunk): New function.
20788 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
20789 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
20790 (FUNCTION_ARG): Delete incorrect comment.
20791
20792 2010-02-03 Jason Merrill <jason@redhat.com>
20793
20794 PR c++/40138
20795 * fold-const.c (operand_equal_p): Handle erroneous types.
20796
20797 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
20798
20799 * config/h8300/h8300.md (can_delay): Fix attibute condition.
20800
20801 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
20802
20803 PR rtl-optimization/42941
20804 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
20805 of xmalloc.
20806
20807 2010-02-03 Jason Merrill <jason@redhat.com>
20808
20809 PR c++/35652
20810 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
20811
20812 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
20813
20814 PR debug/42896
20815 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
20816 (cselib_reset_table): Renamed from...
20817 (cselib_reset_table_with_next_value): ... this.
20818 (cselib_get_next_uid): Renamed from...
20819 (cselib_get_next_unknown_value): ... this.
20820 * cselib.c (next_uid): Renamed from...
20821 (next_unknown_value): ... this.
20822 (cselib_clear_table): Adjust.
20823 (cselib_reset_table): Adjust. Renamed from...
20824 (cselib_reset_table_with_next_value): ... this.
20825 (cselib_get_next_uid): Adjust. Renamed from...
20826 (cselib_get_next_unknown_value): ... this.
20827 (get_value_hash): Use hash.
20828 (cselib_hash_rtx): Likewise.
20829 (new_cselib_val): Adjust. Set and dump uid.
20830 (cselib_lookup_mem): Pass next_uid as hash.
20831 (cselib_subst_to_values): Likewise.
20832 (cselib_log_lookup): Dump uid.
20833 (cselib_lookup): Pass next_uid as hash. Adjust.
20834 (cselib_process_insn): Adjust.
20835 (cselib_init): Initialize next_uid.
20836 (cselib_finish): Adjust.
20837 (dump_cselib_table): Likewise.
20838 * dse.c (canon_address): Dump value uid.
20839 * print-rtl.c (print_rtx): Print value uid.
20840 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
20841 (dvuid): New type.
20842 (dv_uid): New function, sort of renamed from...
20843 (dv_htab_hash): ... this, reimplemented in terms of it and...
20844 (dv_uid2hash): ... this. New.
20845 (variable_htab_eq): Drop excess assertions.
20846 (tie_break_pointers): Removed.
20847 (canon_value_cmp): Compare uids.
20848 (variable_post_merge_New_vals): Print uids.
20849 (vt_add_function_parameters): Adjust.
20850 (vt_initialize): Reset table. Adjust.
20851
20852 2010-02-03 Richard Guenther <rguenther@suse.de>
20853
20854 PR tree-optimization/42944
20855 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
20856 (call_may_clobber_ref_p_1): Likewise. Properly handle
20857 malloc and calloc clobbering errno.
20858
20859 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
20860
20861 * doc/invoke.texi: Fix name of sched1 dump.
20862
20863 * opts.c (decode_options): Set flag_tree_switch_conversion
20864 only conditionally on optimize >= 2.
20865
20866 * gcse.c: Assorted comment fixes in pass description.
20867
20868 2010-02-03 Anthony Green <green@moxielogic.com>
20869
20870 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
20871 nop padding in order to maintain alignment of storage location of
20872 target function address.
20873 (moxie_trampoline_init): Store target function address at newly
20874 aligned location.
20875 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
20876 to 32.
20877 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
20878
20879 2010-02-03 Richard Guenther <rguenther@suse.de>
20880
20881 PR middle-end/42927
20882 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
20883
20884 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20885
20886 * config.gcc: Reenable check for obsolete targets.
20887 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
20888 mips-sgi-irix6.[0-4]*.
20889
20890 2010-02-02 Nick Clifton <nickc@redhat.com>
20891
20892 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
20893 constant size of 4 as being the same as 0.
20894 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
20895 can take values in the range 0..4.
20896
20897 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
20898
20899 PR java/41991
20900 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
20901 as _darwin10_Unwind_FindEnclosingFunction().
20902 * libgcc-libsystem.ver: New.
20903
20904 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
20905
20906 PR target/41399
20907 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
20908 implicitly set registers.
20909
20910 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
20911
20912 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
20913 (arm_override_options): Allow automatic selection of the thread
20914 pointer register if thumb2.
20915 (legitimize_pic_address): Improve code sequences for Thumb2.
20916 (arm_call_tls_get_addr): Likewise.
20917 (legitimize_tls_address): Likewise.
20918 * arm.md (pic_load_addr_arm): Delete. Replace with ...
20919 (pic_load_addr_32bit): ... this. New named pattern.
20920 * thumb2.md (pic_load_addr_thumb2): Delete.
20921 (pic_load_dot_plus_four): Delete.
20922 (tls_load_dot_plus_four): New named pattern.
20923
20924 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20925
20926 PR libgomp/29986
20927 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
20928 Document fix for TLS bug.
20929
20930 2010-01-31 Richard Guenther <rguenther@suse.de>
20931
20932 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
20933 conservatively correct.
20934
20935 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20936
20937 PR target/42850
20938 Revert:
20939 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20940
20941 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20942
20943 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20944
20945 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
20946
20947 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
20948
20949 * config.gcc: Adjust order of makefile fragments for mingw targets.
20950
20951 2010-01-31 Richard Guenther <rguenther@suse.de>
20952
20953 PR middle-end/42898
20954 * gimplify.c (gimplify_init_constructor): For volatile LHS
20955 initialize a temporary.
20956
20957 2010-01-31 Matthias Klose <doko@ubuntu.com>
20958
20959 * configure.ac: Fix __stack_chk_fail check for cross builds configured
20960 --with-headers
20961 * configure: Regenerate.
20962
20963 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
20964
20965 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20966 the same alias set and their sizes different constantness.
20967 (aliasing_component_refs_p): Revert 2009-10-24 change.
20968
20969 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20970
20971 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
20972 unused.
20973
20974 2010-01-29 Richard Guenther <rguenther@suse.de>
20975
20976 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
20977 Assert we successfully updated the call.
20978
20979 2010-01-29 Jakub Jelinek <jakub@redhat.com>
20980
20981 PR rtl-optimization/42889
20982 * df.h (df_set_bb_dirty_nonlr): New prototype.
20983 * df-core.c (df_set_bb_dirty_nonlr): New function.
20984 * df-scan.c (df_insn_rescan): Call it instead of
20985 df_set_bb_dirty for DEBUG_INSNs.
20986
20987 2010-01-29 Richard Guenther <rguenther@suse.de>
20988
20989 PR middle-end/37448
20990 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
20991 quadratic behavior in most cases.
20992
20993 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
20994
20995 PR target/42891
20996 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
20997 in the call to gen_x86_movsicc_0_m1.
20998
20999 2010-01-28 Richard Guenther <rguenther@suse.de>
21000
21001 PR tree-optimization/42871
21002 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
21003
21004 2010-01-28 Richard Guenther <rguenther@suse.de>
21005
21006 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
21007 into call arguments.
21008
21009 2010-01-28 Richard Guenther <rguenther@suse.de>
21010
21011 PR middle-end/42883
21012 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
21013 the forwarder if the destination is an EH landing pad.
21014
21015 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
21016
21017 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
21018 block list passed to gimple_duplicate_sese_tail.
21019 (parallelize_loops): Avoid parallelization when the function
21020 has_nonlocal_label.
21021 Avoid parallelization when the preheader is IRREDUCIBLE.
21022 Try to optimize when estimated_loop_iterations_int is unresolved.
21023 Add the loop's location to the dump file.
21024 * tree-cfg.c (add_phi_args_after_redirect): Remove.
21025 (gimple_duplicate_sese_tail): Remove the check for the latch.
21026 Redirect nexits to the exit block.
21027 Remove handling of the incoming edges to the latch.
21028 Redirect the backedge from the copied latch to the exit bb.
21029
21030 2010-01-28 Michael Matz <matz@suse.de>
21031
21032 PR target/42881
21033 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
21034 Wrap force_reg into a sequence, emit it before user.
21035
21036 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
21037
21038 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
21039 (arm_rev): New.
21040 (arm_legacy_rev): Likewise.
21041 (thumb_legacy_rev): Likewise.
21042
21043 2010-01-27 Jakub Jelinek <jakub@redhat.com>
21044
21045 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
21046 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
21047 on MEM's address failed, try avoid_constant_pool_reference and
21048 recurse if it returned something different.
21049 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
21050 address, try avoid_constant_pool_reference and recurse if it
21051 returned something different.
21052 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
21053 address and avoid_constant_pool_reference returned something
21054 different, don't set have_address.
21055
21056 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
21057
21058 PR debug/42861
21059 * var-tracking.c (val_store): Add modified argument, obey it.
21060 Adjust callers.
21061 (count_uses): Move down logging of main.
21062 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
21063 don't need resolution.
21064 (emit_notes_in_bb): Likewise.
21065
21066 2010-01-27 Richard Guenther <rguenther@suse.de>
21067
21068 PR middle-end/42878
21069 * tree-inline.c (remap_decl): Delay remapping of SSA name
21070 default definitions until we need them.
21071
21072 2010-01-27 Jakub Jelinek <jakub@redhat.com>
21073
21074 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21075 (rs6000_delegitimize_address): New function.
21076
21077 * config/s390/s390.c (s390_delegitimize_address): Call
21078 delegitimize_mem_from_attrs.
21079
21080 PR middle-end/42874
21081 * tree-inline.c (cannot_copy_type_1): Removed.
21082 (copy_forbidden): Don't forbid copying of functions containing
21083 records/unions with variable length fields.
21084
21085 2010-01-27 Christian Bruel <christian.bruel@st.com>
21086
21087 Revert:
21088 PR target/42841
21089 * config/sh/sh.c (find_barrier): Increase length for non delayed
21090 conditional branches.
21091
21092 2010-01-27 Matthias Klose <doko@ubuntu.com>
21093
21094 * configure.ac (gnu-unique-object): Fix ldd version check.
21095 * configure: Regenerate.
21096
21097 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21098
21099 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
21100 HAVE_GNU_AS value.
21101 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
21102 Test for HAVE_GNU_AS value.
21103
21104 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21105
21106 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
21107 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
21108 INT64_TYPE): Define.
21109 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
21110 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21111 INT_LEAST64_TYPE): Define.
21112 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
21113 UINT_LEAST64_TYPE): Define.
21114 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
21115 INT_FAST64_TYPE): Define.
21116 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21117 UINT_FAST64_TYPE): Define.
21118 (INTMAX_TYPE, UINTMAX_TYPE): Define.
21119 (INTPTR_TYPE, UINTPTR_TYPE): Define.
21120 (SIG_ATOMIC_TYPE): Define.
21121
21122 2010-01-26 Richard Guenther <rguenther@suse.de>
21123
21124 * df-scan.c (df_scan_set_bb_info): Remove assert.
21125 (df_insn_rescan_debug_internal): Merge asserts.
21126 (df_install_ref): Likewise.
21127 (df_mark_reg): Use bitmap_set_range.
21128 (df_hard_reg_used_p): Remove assert.
21129 (df_hard_reg_used_count): Likewise.
21130
21131 2010-01-26 Richard Guenther <rguenther@suse.de>
21132
21133 PR rtl-optimization/42685
21134 * web.c (web_main): Ignore DEBUG_INSNs.
21135
21136 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
21137
21138 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
21139
21140 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
21141 Fix types of fndecl and arglist parameters.
21142
21143 2010-01-26 Richard Guenther <rguenther@suse.de>
21144
21145 PR middle-end/42806
21146 * tree-eh.c (unsplit_eh): Skip debug insns.
21147
21148 2010-01-26 Richard Guenther <rguenther@suse.de>
21149
21150 PR tree-optimization/42250
21151 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
21152
21153 2010-01-26 Jakub Jelinek <jakub@redhat.com>
21154
21155 PR fortran/42866
21156 * omp-low.c (expand_omp_sections): Only use single_pred if
21157 l2_bb is single_pred_p.
21158
21159 2010-01-25 Christian Bruel <christian.bruel@st.com>
21160
21161 PR target/42841
21162 * config/sh/sh.c (find_barrier): Increase length for non delayed
21163 conditional branches.
21164 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
21165
21166 2010-01-24 David S. Miller <davem@davemloft.net>
21167
21168 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
21169 define if not using GAS.
21170 * config/sparc/sparc.c (sparc_elf_asm_named_section):
21171 Likewise. Delete SECTION_MERGE code, which is only applicable
21172 when using GAS.
21173
21174 2010-01-24 Mark Mitchell <mark@codesourcery.com>
21175
21176 PR c++/42748
21177 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
21178 mangling of va_list in system headers.
21179
21180 2010-01-23 Toon Moene <toon@moene.org>
21181
21182 * tree-predcom.c (combine_chains): Return NULL, not false.
21183
21184 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
21185
21186 * tree-loop-distribution.c (distribute_loop): Fix declaration and
21187 initialization of variable res to agree with return type.
21188
21189 2010-01-22 Steve Ellcey <sje@cup.hp.com>
21190
21191 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
21192 * tree-sra.c: Add include of expr.h.
21193
21194 2010-01-22 Jakub Jelinek <jakub@redhat.com>
21195
21196 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
21197 insert the debug stmt on the single non-EH edge from the stmt.
21198
21199 2010-01-22 Richard Henderson <rth@redhat.com>
21200
21201 PR tree-opt/42833
21202 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
21203 the RHS until after generate_subtree_copies has insertted its
21204 code before the current statement.
21205
21206 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
21207
21208 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
21209
21210 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
21211
21212 2010-01-21 Martin Jambor <mjambor@suse.cz>
21213
21214 PR tree-optimization/42585
21215 * tree-sra.c (struct access): New field grp_total_scalarization.
21216 (dump_access): Dump the new field.
21217 (should_scalarize_away_bitmap): New variable.
21218 (cannot_scalarize_away_bitmap): Likewise.
21219 (sra_initialize): Allocate new bitmaps.
21220 (sra_deinitialize): Free new bitmaps.
21221 (create_access_1): New function.
21222 (create_access): Parts moved to create_access_1.
21223 (type_consists_of_records_p): New function.
21224 (completely_scalarize_record): Likewise.
21225 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
21226 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
21227 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
21228 access.
21229 (analyze_all_variable_accesses): Completely scalarize small eligible
21230 records.
21231
21232 2010-01-21 Martin Jambor <mjambor@suse.cz>
21233
21234 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
21235
21236 2010-01-21 Andrew Haley <aph@redhat.com>
21237
21238 * gcc.c (process_command): Move lang_specific_driver before
21239 setting cc_libexec_prefix.
21240
21241 2010-01-21 Richard Guenther <rguenther@suse.de>
21242
21243 PR middle-end/19988
21244 * fold-const.c (negate_expr_p): Pretend only negative
21245 real constants are easily negatable.
21246
21247 2010-01-20 Janis Johnson <janis187@us.ibm.com>
21248 Jason Merrill <jason@redhat.com>
21249
21250 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
21251 (TYPE_TRANSPARENT_AGGR): this, for union and record.
21252 * calls.c (initialize argument_information): Handle it.
21253 * c-common.c (handle_transparent_union_attribute): Use new name.
21254 * c-decl.c (finish_struct): Ditto.
21255 * c-typeck.c (type_lists_compatible_p): Ditto.
21256 (convert_for_assignment): Use new name and also handle record.
21257 * function.c (aggregate_value_p): Handle it.
21258 (pass_by_reference): Ditto.
21259 (assign_parm_data_types): Ditto.
21260 * print-tree.c (print_node): Ditto.
21261 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
21262 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
21263 * tree.c (first_field): New fn.
21264
21265 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
21266
21267 PR target/42818
21268 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
21269 even when linking statically, for now.
21270
21271 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
21272
21273 PR debug/42715
21274 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
21275 without a cselib val.
21276 (count_uses): Accept MO_VAL_SET with no val on stores.
21277 (add_stores): Likewise.
21278
21279 2010-01-20 Jakub Jelinek <jakub@redhat.com>
21280
21281 * var-tracking.c (check_value_val): Add a compile time assertion.
21282 (dv_is_decl_p): Simplify.
21283 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
21284 gcc_assert if ENABLE_CHECKING.
21285
21286 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
21287
21288 PR debug/42782
21289 * var-tracking.c: Include tree-flow.h.
21290 (mem_dies_at_call): New.
21291 (dataflow_set_preserve_mem_locs): Use it.
21292 (dataflow_set_remove_mem_locs): Likewise.
21293 (dump_var): Renamed from dump_variable. Adjust all callers.
21294 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
21295 * Makefile.in (var-tracking.o): Adjust deps.
21296
21297 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
21298
21299 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
21300
21301 2010-01-20 Richard Guenther <rguenther@suse.de>
21302
21303 PR tree-optimization/42717
21304 * tree-ssa-dce.c (get_live_post_dom): Remove.
21305 (forward_edge_to_pdom): Take an arbitrary edge to copy
21306 degenerate PHI args from.
21307 (remove_dead_stmt): Use the first post-dominator even if it
21308 does not contain live statements as redirection destination.
21309
21310 2010-01-20 Richard Guenther <rguenther@suse.de>
21311
21312 * tree-inline.c (estimate_num_insns): Handle EH builtins.
21313
21314 2010-01-20 Jakub Jelinek <jakub@redhat.com>
21315
21316 * sel-sched.c (create_speculation_check): Remove set but not used
21317 variable twin.
21318 (try_transformation_cache): Remove set but not used variable ds.
21319 (calculate_privileged_insns): Remove set but not used variables
21320 cur_insn and min_spec_insn.
21321 (find_best_expr): Remove set but not used variable avail_n.
21322 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
21323 variable e.
21324 * cgraphunit.c (assemble_thunk): Remove set but not used variable
21325 false_label.
21326 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
21327 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
21328 new_scop_exit_edge.
21329
21330 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
21331
21332 PR bootstrap/42786
21333 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
21334 cpu types. Add support for *-sse3 cpu types.
21335 (x86_64-*-*): Ditto.
21336
21337 2010-01-20 Jakub Jelinek <jakub@redhat.com>
21338
21339 PR middle-end/42803
21340 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
21341 argument, call initializer_constant_valid_p_1 instead of
21342 initializer_constant_valid_p, pass CACHE to it, return NULL
21343 immediately if first call returns NULL.
21344 (initializer_constant_valid_p_1): New function.
21345 (initializer_constant_valid_p): Use it.
21346
21347 2010-01-20 Thomas Quinot <quinot@adacore.com>
21348
21349 * tree.def (PLACEHOLDER_EXPR): Fix comment.
21350
21351 2010-01-20 Jakub Jelinek <jakub@redhat.com>
21352
21353 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
21354 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
21355 (loc_list_from_tree): Don't handle unsigned division. Handle
21356 signed modulo using DW_OP_{over,over,div,mul,minus}.
21357 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
21358 modulo instead of signed.
21359
21360 2010-01-20 DJ Delorie <dj@redhat.com>
21361
21362 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
21363 (Fpa): Pass it
21364 (h8300_emit_stack_adjustment): Propogate it.
21365 (push): Pass it.
21366 (h8300_expand_prologue): Likewise.
21367 (h8300_expand_epilogue): Likewise.
21368
21369 2010-01-19 Michael Matz <matz@suse.de>
21370
21371 PR tree-optimization/41783
21372 * tree-data-ref.c (toplevel): Include flags.h.
21373 (dump_data_dependence_relation): Also dump the inputs if the
21374 result will be unknown.
21375 (split_constant_offset_1): Look through some conversions.
21376 * tree-predcom.c (determine_roots_comp): Restart a new chain if
21377 the offset from last element is too large.
21378 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
21379 (reassociate_to_the_same_stmt): Handle vector registers.
21380 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
21381 (e.g. conversions).
21382 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
21383 wide_prolog_niters argument, emit widening instructions.
21384 (vect_do_peeling_for_alignment): Adjust caller, use widened
21385 variant of the iteration cound.
21386 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
21387
21388 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21389
21390 PR target/38697
21391 * config/arm/neon-testgen.m (emit_automatics): New parameter
21392 features. Adjust for Fixed_return_reg feature.
21393 (test_intrinsic): Call emit_automatics with new feature.
21394 * config/arm/neon.ml: Update copyright years.
21395 (features): New Fixed_return_reg feature.
21396 (ops): Update feature for Vget_low.
21397
21398 2010-01-19 Jakub Jelinek <jakub@redhat.com>
21399
21400 PR tree-optimization/42719
21401 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
21402 stmt uses.
21403
21404 PR debug/42728
21405 * fwprop.c (all_uses_available_at): Return false if def_set dest
21406 is a REG that is used in def_insn.
21407
21408 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
21409
21410 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
21411
21412 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
21413 Add argument names.
21414
21415 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
21416
21417 * target.h (struct gcc_target) <secondary_reload>: Change type
21418 of last argument to secondary_reload_info *.
21419
21420 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
21421
21422 PR target/42774
21423 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
21424 memory references with unaligned offsets. Remove CQImode handling.
21425 (unaligned_memory_operand): Return 1 for memory references with
21426 unaligned offsets. Remove CQImode handling.
21427
21428 2010-01-18 Richard Guenther <rguenther@suse.de>
21429
21430 PR middle-end/39954
21431 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
21432 builtin calls.
21433
21434 2010-01-18 Richard Guenther <rguenther@suse.de>
21435
21436 PR tree-optimization/42781
21437 * tree-ssa-structalias.c (find_what_var_points_to): Skip
21438 restrict processing only if the original variable was artificial.
21439
21440 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
21441
21442 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
21443 find number of popped argument bytes.
21444
21445 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
21446 Fix the text that describes the return value for invalid insns.
21447
21448 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
21449
21450 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
21451 Clarify what 'cost of the -dependence' is. Fix quoting.
21452
21453 * toplev.c (default_get_pch_validity): Rename argument to "sz".
21454 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
21455
21456 2010-01-17 Jakub Jelinek <jakub@redhat.com>
21457
21458 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
21459 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
21460
21461 2010-01-17 Richard Guenther <rguenther@suse.de>
21462
21463 PR middle-end/42248
21464 * function.c (split_complex_args): Take a VEC to modify.
21465 (assign_parms_augmented_arg_list): Build a VEC instead of
21466 a chain of PARM_DECLs.
21467 (assign_parms_unsplit_complex): Take a VEC of arguments.
21468 Do not fixup unmodified parms.
21469 (assign_parms): Deal with the VEC.
21470 (gimplify_parameters): Likewise.
21471
21472 2010-01-17 Richard Guenther <rguenther@suse.de>
21473
21474 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
21475 node existence check.
21476 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
21477 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
21478 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
21479 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
21480 (gimple_execute_on_growing_pred): Likewise.
21481
21482 2010-01-17 Richard Guenther <rguenther@suse.de>
21483
21484 PR tree-optimization/42773
21485 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
21486 (compute_antic_aux): Likewise.
21487 (compute_partial_antic_aux): Likewise.
21488
21489 2010-01-17 Jie Zhang <jie.zhang@analog.com>
21490
21491 PR debug/42767
21492 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
21493 and US_TRUNCATE.
21494
21495 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
21496
21497 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
21498 appearance.
21499
21500 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
21501 Fix markup for strict argument.
21502
21503 (TARGET_SCHED_REORDER2): Fix argument types.
21504
21505 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
21506 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
21507
21508 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
21509 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
21510
21511 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
21512 Add argument name.
21513
21514 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
21515 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
21516 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
21517 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
21518 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
21519
21520 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
21521
21522 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
21523
21524 (TARGET_ASM_RELOC_RW_MASK): Add return type.
21525 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
21526
21527 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
21528
21529 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
21530 Use prototype.
21531
21532 (TARGET_ASM_NAMED_SECTION): Fix argument list.
21533
21534 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
21535 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
21536
21537 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
21538
21539 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
21540
21541 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
21542 referring to it. Fix language.
21543
21544 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
21545
21546 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
21547
21548 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
21549
21550 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
21551
21552 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
21553 '@var{stream}. Remove stray 'and'.
21554
21555 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
21556
21557 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
21558
21559 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
21560
21561 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
21562 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
21563
21564 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
21565 Fix description of return value.
21566 Rename argument "sz" to "len."
21567
21568 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
21569 Clarify meaning of 'true' return value.
21570
21571 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
21572
21573 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
21574 rep_mode versus mode_rep.
21575
21576 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
21577
21578 (TARGET_BUILTIN_DECL): Fix name.
21579
21580 (TARGET_COMMUTATIVE_P): Fix type of first argument.
21581
21582 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
21583
21584 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
21585
21586 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
21587
21588 (TARGET_RELAXED_ORDERING): Use @deftypevr.
21589
21590 (TARGET_GET_DRAP_RTX): Note that this is a hook.
21591 Clarify language.
21592
21593 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
21594 Rename argument tm_fn to md_fn.
21595
21596 (TARGET_OPTION_PRINT): Fix argument list.
21597
21598 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
21599
21600 PR target/42664
21601 * config/i386/i386.c (ix86_fixup_binary_operands):
21602 Revert FMA4 fixup of operands.
21603
21604 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21605
21606 PR gcc/42525
21607 * Makefile.in (write_entries_to_file, install-plugin):
21608 Use \012 instead of \n with tr.
21609
21610 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
21611
21612 * configure.ac (HAVE_AS_REF): New C macro.
21613 * configure: Regenerate.
21614 * config.in: Likewise.
21615 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
21616 if HAVE_AS_REF.
21617 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
21618 if HAVE_AS_REF.
21619
21620 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
21621
21622 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
21623
21624 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
21625
21626 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
21627
21628 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
21629
21630 (TARGET_IN_SMALL_DATA_P): Fix argument type.
21631
21632 (TARGET_BINDS_LOCAL_P): Fix argument type.
21633
21634 (TARGET_ASM_FILE_END): Use prototype.
21635
21636 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
21637
21638 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
21639
21640 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
21641
21642 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
21643
21644 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
21645 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
21646
21647 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
21648 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
21649
21650 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
21651 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
21652 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
21653 (TARGET_ADDR_SPACE_CONVERT): Likewise.
21654
21655 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
21656
21657 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
21658
21659 (TARGET_INIT_BUILTINS): Use prototype.
21660
21661 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
21662 Put 'const char *' in braces. Fix parameter types.
21663 (TARGET_INVALID_CONVERSION): Fix parameter types.
21664 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
21665 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
21666
21667 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
21668 Fix argument type.
21669
21670 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
21671
21672 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
21673
21674 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
21675
21676 * doc/tm.texi (TARGET_HELP): Fix return type.
21677
21678 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
21679 in braces. Fix argument types.
21680
21681 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
21682
21683 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
21684
21685 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
21686
21687 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
21688 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
21689
21690 (TARGET_MANGLE_TYPE): Fix argument types.
21691
21692 (TARGET_IRA_COVER_CLASSES): Use prototype.
21693
21694 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
21695
21696 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
21697
21698 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
21699
21700 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
21701
21702 (TARGET_CALLEE_COPIES): Fix argument types.
21703
21704 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
21705
21706 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
21707
21708 (TARGET_FUNCTION_VALUE): Fix argument types.
21709
21710 (TARGET_RETURN_IN_MSB): Fix argument type.
21711
21712 (TARGET_RETURN_IN_MEMORY): Fix argument types.
21713
21714 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
21715
21716 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
21717
21718 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
21719 agree with return type.
21720
21721 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
21722
21723 2010-01-15 Jing Yu <jingyu@google.com>
21724
21725 PR rtl-optimization/42691
21726 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
21727 a pseudo to a constant and are merged, and adjust comments.
21728
21729 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
21730
21731 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
21732
21733 2010-01-15 Richard Guenther <rguenther@suse.de>
21734
21735 PR middle-end/42739
21736 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
21737 labels of computed or non-local gotos to the destination.
21738 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
21739 landing pad label is the first label.
21740
21741 2010-01-15 Richard Guenther <rguenther@suse.de>
21742
21743 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
21744
21745 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21746
21747 PR target/42747
21748 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
21749 to allow generation of the xssqrtdp instruction on power7.
21750 (sqrtdf2_fpr): Ditto.
21751
21752 2010-01-14 Jakub Jelinek <jakub@redhat.com>
21753
21754 PR middle-end/42674
21755 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
21756 functions with noreturn attribute.
21757
21758 PR c++/42608
21759 * varasm.c (declare_weak): Add weak attribute to decl if it
21760 doesn't have one already.
21761 (assemble_external): Only add decls to weak_decls if they also
21762 have weak attribute.
21763
21764 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
21765
21766 * var-tracking.c (var_reg_delete): Don't delete the association
21767 between REGs and values or one-part variables if the register
21768 isn't clobbered.
21769
21770 2010-01-14 Jakub Jelinek <jakub@redhat.com>
21771
21772 PR debug/42657
21773 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
21774 because its first operand is a non-localized variable.
21775
21776 2010-01-14 Martin Jambor <mjambor@suse.cz>
21777
21778 PR tree-optimization/42706
21779 * tree-sra.c (encountered_recursive_call): New variable.
21780 (encountered_unchangable_recursive_call): Likewise.
21781 (sra_initialize): Initialize both new variables.
21782 (callsite_has_enough_arguments_p): New function.
21783 (scan_function): Call decl and flags check only for IPA-SRA, check
21784 whether there is a recursive call and whether it has enough arguments.
21785 (all_callers_have_enough_arguments_p): New function.
21786 (convert_callers): Look for recursive calls only when
21787 encountered_recursive_call is set.
21788 (ipa_early_sra): Bail out either if
21789 !all_callers_have_enough_arguments_p or
21790 encountered_unchangable_recursive_call.
21791
21792 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21793
21794 * sel-sched.c: Add 2010 to copyright years.
21795 * sel-sched-ir.c: Likewise.
21796 * sel-sched-ir.h: Likewise.
21797
21798 2010-01-14 Martin Jambor <mjambor@suse.cz>
21799
21800 PR tree-optimization/42714
21801 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
21802 constructors specially.
21803
21804 2010-01-14 Andi Kleen <ak@linux.intel.com>
21805
21806 * config/i386/drivers-i386.c (detect_caches_intel):
21807 Add l2sizekb parameter and fill in.
21808 (host_detect_local_cpu): Add l2sizekb, fill in.
21809 Add Atom small cache heuristic.
21810
21811 2010-01-14 Andi Kleen <ak@linux.intel.com>
21812
21813 * config/i386/drivers-i386.c (detect_caches_cpuid4):
21814 Add level3 parameter and fill in.
21815 (detect_caches_intel): Handle level3 cache.
21816
21817 2010-01-14 Andi Kleen <ak@linux.intel.com>
21818
21819 * config/i386/drivers-i386.c (host_detect_local_cpu):
21820 Fix core duo detection.
21821
21822 2010-01-14 Andi Kleen <ak@linux.intel.com>
21823
21824 * config/i386/drivers-i386.c (host_detect_local_cpu):
21825 Fix Atom detection.
21826
21827 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21828
21829 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
21830 (rs6000_variable_issue_1): this. Use...
21831 (rs6000_variable_issue): here. Reimplement. Print debug info.
21832
21833 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21834
21835 * sel-sched-ir.c (sel_restore_other_notes): Rename to
21836 sel_restore_notes. Update all callers. Call reemit_notes
21837 for all insns.
21838
21839 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21840
21841 PR rtl-optimization/42246
21842 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
21843 loops.
21844
21845 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21846
21847 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
21848 all successors is the same as number of successors in current region.
21849
21850 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21851
21852 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
21853 to rename is not separable. Otherwise check that its LHS is not NULL.
21854
21855 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21856
21857 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
21858
21859 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21860
21861 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
21862 available registers when failed to discover LHS register class.
21863 Fix indentation. Update comment.
21864
21865 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21866 Alexander Monakov <amonakov@ispras.ru>
21867
21868 PR rtl-optimization/42389
21869 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
21870 to can_issue_more.
21871 (advance_state_on_fence): Likewise.
21872 (sel_target_adjust_priority): Print debug output only when
21873 sched_verbose >= 4, not 2.
21874 (get_expr_cost): Do not issue all unique insns on the next cycle.
21875 (fill_insns): Initialize can_issue_more from the value saved
21876 with the fence.
21877 * sel-sched-ir.c (flist_add): New parameter issue_more.
21878 Init FENCE_ISSUE_MORE with it.
21879 (merge_fences): Likewise.
21880 (init_fences): Update call to flist_add.
21881 (add_to_fences, add_clean_fence_to_fences)
21882 (add_dirty_fence_to_fences): Likewise.
21883 (move_fence_to_fences): Update call to merge_fences.
21884 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
21885 sched groups.
21886 * sel-sched-ir.h (struct _fence): New field issue_more.
21887 (FENCE_ISSUE_MORE): New accessor macro.
21888
21889 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21890
21891 PR rtl-optimization/42388
21892 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
21893 that have no predecessors nor successors. Do not call move_bb_info
21894 for empty blocks outside of current region.
21895
21896 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21897
21898 PR rtl-optimization/42294
21899 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
21900 * sel-sched.c (move_exprs_to_boundary): Transitively add all
21901 originators' originators.
21902
21903 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21904
21905 PR rtl-optimization/39453
21906 PR rtl-optimization/42246
21907 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
21908 for pipelining_p.
21909 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
21910
21911 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21912 Alexander Monakov <amonakov@ispras.ru>
21913
21914 PR middle-end/42245
21915 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
21916 (maybe_tidy_empty_bb): ... here. Make static. Add new
21917 argument. Update all callers.
21918 (tidy_control_flow): ... and here. Recompute topological order
21919 of basic blocks in region if necessary.
21920 (sel_redirect_edge_and_branch): Change return type. Return true
21921 if topological order might have been invalidated.
21922 (purge_empty_blocks): Export and move from...
21923 * sel-sched.c (purge_empty_blocks): ... here.
21924 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
21925 (maybe_tidy_empty_bb): Delete prototype.
21926 (purge_empty_blocks): Declare.
21927
21928 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21929
21930 PR rtl-optimization/42249
21931 * sel-sched.c (try_replace_dest_reg): When chosen register
21932 and original register is the same, do not bail out early, but
21933 still check all original insns for validity of replacing destination
21934 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
21935 in this case.
21936
21937 2010-01-14 Jakub Jelinek <jakub@redhat.com>
21938
21939 PR c/42721
21940 Port from no-undefined-overflow branch:
21941 2009-03-09 Richard Guenther <rguenther@suse.de>
21942
21943 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
21944
21945 2010-01-14 Richard Guenther <rguenther@suse.de>
21946
21947 PR lto/42665
21948 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
21949
21950 2010-01-14 Ira Rosen <irar@il.ibm.com>
21951
21952 PR tree-optimization/42709
21953 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
21954 as scalar type in creation of constant vector operand.
21955
21956 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21957
21958 PR testsuite/42414
21959 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
21960 (check-parallel-%): Match `testsuite' directory component only
21961 at the end.
21962
21963 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
21964
21965 PR translation/39521
21966 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
21967 strings with _().
21968
21969 2010-01-13 Richard Guenther <rguenther@suse.de>
21970
21971 PR tree-optimization/42730
21972 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
21973 offset zero.
21974
21975 2010-01-13 Steve Ellcey <sje@cup.hp.com>
21976
21977 PR target/pr42542
21978 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
21979 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
21980 them signed.
21981
21982 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
21983
21984 * config/bfin/libgcc-bfin.ver: Regenerate based on current
21985 libgcc-std.ver. Add entries for ___smulsi3_highpart and
21986 ___umulsi3_highpart.
21987
21988 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
21989 rather than schedule_insns if the pass is enabled.
21990
21991 2010-01-13 Martin Jambor <mjambor@suse.cz>
21992
21993 PR tree-optimization/42704
21994 * tree-sra.c (sra_modify_assign): Do not delete assignments to
21995 SSA_NAMEs.
21996
21997 2010-01-13 Martin Jambor <mjambor@suse.cz>
21998
21999 PR tree-optimization/42703
22000 * tree-sra.c (analyze_access_subtree): Check that we can build a
22001 reference to the original data within the aggregate.
22002
22003 2010-01-13 Richard Guenther <rguenther@suse.de>
22004
22005 PR tree-optimization/42705
22006 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
22007
22008 2010-01-13 Richard Guenther <rguenther@suse.de>
22009
22010 PR middle-end/42716
22011 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
22012
22013 2010-01-13 Jakub Jelinek <jakub@redhat.com>
22014
22015 PR debug/41371
22016 * var-tracking.c (values_to_unmark): New variable.
22017 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
22018 values_to_unmark vector. Moved body to...
22019 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
22020 instead queue it into values_to_unmark vector.
22021 (vt_find_locations): Free values_to_unmark vector.
22022
22023 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
22024
22025 * config/s390/s390.c (override_options): Set
22026 default of max-pending-list-length to 256
22027
22028 2010-01-13 Richard Guenther <rguenther@suse.de>
22029
22030 PR lto/42678
22031 * tree-pass.h (PROP_gimple_lcx): New.
22032 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
22033 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
22034 before the final cleanup_eh.
22035 (dump_properties): Dump PROP_gimple_lcx.
22036 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
22037 (tree_lower_complex_O0): Remove.
22038 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
22039 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
22040 tree_lower_complex, schedule TODO_update_ssa.
22041 * lto-streamer-out.c (output_function): Stream the functions
22042 properties.
22043 * lto-streamer-in.c (input_function): Likewise.
22044 (lto_read_body): Do not override them here.
22045
22046 2010-01-12 Joseph Myers <joseph@codesourcery.com>
22047
22048 PR c/42708
22049 * c-typeck.c (build_c_cast): Fold value cast to union type before
22050 wrapping it in a CONSTRUCTOR.
22051
22052 2010-01-12 Jakub Jelinek <jakub@redhat.com>
22053
22054 PR rtl-optimization/42699
22055 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
22056 involved.
22057
22058 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22059
22060 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
22061 SUBTARGET_WARN_UNUSED_SPEC): Move ...
22062 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
22063 SUBTARGET_WARN_UNUSED_SPEC): ... here
22064 * config/mips/iris5.h (LIBGCC_SPEC): Define.
22065
22066 2010-01-12 Julian Brown <julian@codesourcery.com>
22067
22068 * config/arm/neon-schedgen.ml (Utils): Don't try to
22069 open missing module.
22070 (find_with_result): New.
22071
22072 2010-01-12 Jakub Jelinek <jakub@redhat.com>
22073
22074 PR debug/42662
22075 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
22076 sharing when canonicalizing ({lt,ge}u (plus a b) b).
22077
22078 PR tree-optimization/42645
22079 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
22080 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
22081 decl_map, set processing_debug_stmt to -1 and return name without
22082 any remapping.
22083
22084 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
22085
22086 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
22087 binutils version, and reword target configuration description.
22088
22089 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
22090
22091 * config/avr/avr.h (LINKER_NAME): Remove.
22092
22093 2010-01-11 Janis Johnson <janis187@us.ibm.com>
22094
22095 PR target/42416
22096 * config/rs6000/rs6000.c (rs6000_override_options): On targets
22097 that support VSX, warn for -mno-altivec if vsx is not disabled,
22098 and disable vsx.
22099
22100 2010-01-11 Joseph Myers <joseph@codesourcery.com>
22101 Shujing Zhao <pearly.zhao@oracle.com>
22102
22103 PR translation/42469
22104 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
22105 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
22106 character between option name and help text.
22107 * c.opt (imultilib): Likewise.
22108
22109 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
22110
22111 * lto-streamer-out.c (output_unreferenced_globals): Output static
22112 variables.
22113
22114 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
22115
22116 PR rtl-optimization/42621
22117 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
22118 optimizing for size.
22119 (duplicate_computed_gotos): Remove now-redundant check.
22120
22121 2010-01-10 Steve Ellcey <sje@cup.hp.com>
22122
22123 PR target/37454
22124 * configure.ac: Save and restore LDFLAGS and LIBS
22125 * configure: Regenerate.
22126
22127 2010-01-10 Richard Guenther <rguenther@suse.de>
22128
22129 PR middle-end/42667
22130 * builtins.c (fold_builtin_strlen): Add type argument and
22131 convert the resulting length to it.
22132 (fold_builtin_1): Adjust.
22133
22134 2010-01-09 Jakub Jelinek <jakub@redhat.com>
22135
22136 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
22137 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
22138 1 insn.
22139 (num_insns_constant_wide): Adjust for that change.
22140
22141 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
22142
22143 PR debug/42631
22144 * web.c (union_defs): Add used argument, to combine uses of
22145 uninitialized regs.
22146 (entry_register): Adjust type and tests of used argument.
22147 (web_main): Widen used for new use. Pass it to union_defs.
22148 * df.h (union_defs): Adjust prototype.
22149
22150 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
22151
22152 PR debug/42630
22153 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
22154 uses in new incoming argument. Free body.
22155 (reset_debug_uses_in_loop): New.
22156 (analyze_insn_to_expand_var): Call the latter if the former found
22157 anything. Fix whitespace. Reject invalid dest overlaps before
22158 going through all insns in the loop.
22159
22160 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
22161
22162 PR debug/42629
22163 * haifa-sched.c (dying_use_p): Debug insns don't count.
22164
22165 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
22166
22167 PR middle-end/42363
22168 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
22169 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
22170 (verify_gimple_call): Reject LHS in noreturn calls.
22171
22172 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
22173
22174 PR debug/42604
22175 PR debug/42395
22176 * tree-vect-loop-manip.c (adjust_info): New type.
22177 (adjust_vec): New pointer to vector.
22178 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
22179 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
22180 (slpeel_update_phis_for_duplicate_loop): Use them.
22181 (slpeel_update_phi_nodes_for_guard1): Likewise.
22182 (slpeel_update_phi_nodes_for_guard2): Likewise.
22183 (slpeel_tree_peel_loop_to_edge): Likewise.
22184 (vect_update_ivs_after_vectorizer): Likewise.
22185
22186 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
22187
22188 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
22189 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
22190
22191 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
22192
22193 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
22194 bogus uninitialized warning.
22195
22196 2010-01-09 Richard Guenther <rguenther@suse.de>
22197
22198 PR middle-end/42512
22199 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
22200 the evolution is compatible with the initial condition.
22201
22202 2010-01-09 Jakub Jelinek <jakub@redhat.com>
22203
22204 * gcc.c (process_command): Update copyright notice dates.
22205 * gcov.c (print_version): Likewise.
22206 * gcov-dump.c (print_version): Likewise.
22207 * mips-tfile.c (main): Likewise.
22208 * mips-tdump.c (main): Likewise.
22209
22210 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
22211
22212 PR target/41885
22213 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
22214 (rotlhi3): Delete.
22215 (rotlhi3_8): Delete.
22216 (rotlsi3): Delete.
22217 (rotlsi3_8): Delete.
22218 (rotlsi3_16): Delete.
22219 (rotlsi3_24): Delete.
22220 (rotl<mode>3): New.
22221 (*rotw<mode>3): New.
22222 (*rotb<mode>3): New.
22223 * config/avr/avr.c (avr_rotate_bytes): New function.
22224 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
22225
22226 2010-01-08 Steve Ellcey <sje@cup.hp.com>
22227
22228 PR target/37454
22229 * configure.ac: Modify -rdynamic check.
22230 * configure: Regenerate.
22231
22232 2010-01-08 DJ Delorie <dj@redhat.com>
22233
22234 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
22235 register popping order.
22236
22237 2010-01-08 Richard Guenther <rguenther@suse.de>
22238
22239 PR lto/42528
22240 * c.opt (fsigned-char): Also let LTO handle this option.
22241 (funsigned-char): Likewise.
22242
22243 2010-01-07 Richard Guenther <rguenther@suse.de>
22244
22245 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
22246 (gimple_op): Likewise.
22247 (gimple_op_ptr): Likewise.
22248 (gimple_assign_set_lhs): Remove gcc_assert.
22249 (gimple_assign_set_rhs1): Likewise.
22250 (gimple_assign_set_rhs2): Likewise.
22251 (gimple_call_set_lhs): Likewise.
22252 (gimple_call_set_fn): Likewise.
22253 (gimple_call_set_fndecl): Likewise.
22254 (gimple_call_fndecl): Likewise.
22255 (gimple_call_return_type): Likewise.
22256 (gimple_call_set_chain): Likewise.
22257 (gimple_call_num_args): Likewise.
22258 (gimple_call_set_arg): Likewise.
22259 (gimple_cond_set_code): Likewise.
22260 (gimple_cond_set_lhs): Likewise.
22261 (gimple_cond_set_rhs): Likewise.
22262 (gimple_cond_set_true_label): Likewise.
22263 (gimple_cond_set_false_label): Likewise.
22264 (gimple_label_set_label): Likewise.
22265 (gimple_goto_set_dest): Likewise.
22266 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
22267 (gimple_debug_bind_get_value): Likewise.
22268 (gimple_debug_bind_get_value_ptr): Likewise.
22269 (gimple_debug_bind_set_var): Likewise.
22270 (gimple_debug_bind_set_value): Likewise.
22271 (gimple_debug_bind_reset_value): Likewise.
22272 (gimple_debug_bind_has_value_p): Likewise.
22273 (gimple_return_retval_ptr): Remove gcc_assert.
22274 (gimple_return_retval): Likewise.
22275 (gimple_return_set_retval): Likewise.
22276 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
22277 (safe_referenced_var_iterator): Remove.
22278 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
22279 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
22280 (fill_referenced_var_vec): Remove.
22281 (first_readonly_imm_use): Remove redundant gcc_assert.
22282 (phi_arg_index_from_use): Combine gcc_asserts.
22283 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
22284 (first_imm_use_stmt): Remove redundant gcc_assert.
22285 * tree-cfg.c (verify_gimple_call): Verify function and chain
22286 operands. Verify arguments.
22287 (verify_types_in_gimple_stmt): Verify condition code and labels.
22288
22289 2010-01-07 Richard Guenther <rguenther@suse.de>
22290
22291 PR tree-optimization/42641
22292 * sese.c (rename_map_elt_info): Use the SSA name version, do
22293 not hash pointers.
22294
22295 2010-01-07 Jakub Jelinek <jakub@redhat.com>
22296
22297 PR tree-optimization/42625
22298 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
22299 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
22300
22301 2010-01-07 Duncan Sands <baldrick@free.fr>
22302
22303 * Makefile.in (PLUGIN_HEADERS): Add version.h.
22304
22305 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
22306
22307 PR target/42511
22308 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
22309 note itself is not function_invariant_p.
22310
22311 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
22312
22313 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
22314 Do not add the DF_NOTE problem.
22315 * store-motion.c (execute_rtl_store_motion): Likewise.
22316
22317 2010-01-07 Martin Jambor <mjambor@suse.cz>
22318
22319 PR tree-optimization/42157
22320 * tree-sra.c (compare_access_positions): Stabilize sort if both
22321 accesses have integer types, return zero immediately if they are the
22322 same.
22323
22324 2010-01-06 Richard Henderson <rth@redhat.com>
22325
22326 PR middle-end/41883
22327 * haifa-sched.c (add_to_note_list): Merge into ...
22328 (concat_note_lists): ... here, and ...
22329 (unlink_other_notes, rm_other_notes): Merge into...
22330 (remove_notes): ... here. Create REG_SAVE_NOTEs for
22331 NOTE_INSN_EPILOGUE_BEG.
22332
22333 2010-01-06 Richard Guenther <rguenther@suse.de>
22334
22335 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
22336 not inline regular functions into always-inline functions.
22337
22338 2010-01-06 Nick Clifton <nickc@redhat.com>
22339
22340 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
22341 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
22342 used together.
22343 (OVERRIDE_OPTIONS): Delete.
22344 (OPTIMIZATION_OPTIONS): Define.
22345 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
22346 * config/rx/rx.c (rx_handle_option): Issue an error message if
22347 -mcpu=rx200 and -fpu are used together.
22348 (rx_set_optimization_options): New function. Issue an error
22349 message if an optimization attribute attempts to reset the FPU/
22350 math optimization pairing.
22351 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
22352 * config/rx/rx.opt: Set the default to 32-bit doubles.
22353 * config/rx/t-rx: Add multilibs for -nofpu option.
22354 * doc/invoke.texi: Update documentation of RX options.
22355
22356 2010-01-06 Richard Guenther <rguenther@suse.de>
22357
22358 * tree-ssa-pre.c (name_to_id): New global.
22359 (alloc_expression_id): Simplify SSA name handling.
22360 (lookup_expression_id): Likewise.
22361 (init_pre): Zero name_to_id.
22362 (fini_pre): Free it.
22363
22364 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
22365
22366 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
22367
22368 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
22369
22370 PR target/42542
22371 * config/i386/sse.md (smaxv2di3): New.
22372 (umaxv2di3): Likewise.
22373 (sminv2di3): Likewise.
22374 (uminv2di3): Likewise.
22375
22376 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
22377
22378 PR target/42564
22379 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
22380 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
22381 (legitimize_tls_address): Likewise.
22382 (sparc_tls_referenced_p): Likewise.
22383 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
22384 and adjust calls to legitimize_pic_address.
22385 (legitimate_constant_p) Use sparc_tls_referenced_p.
22386 (legitimate_pic_operand_p): Likewise.
22387 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
22388 (sparc_tls_symbol_ref_1): Delete.
22389 (sparc_tls_referenced_p): Make static, recognize specific patterns.
22390 (legitimize_tls_address): Make static, handle CONST patterns.
22391 (legitimize_pic_address): Make static, remove unused parameter and
22392 adjust recursive calls.
22393 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
22394 and adjust call to legitimize_pic_address.
22395 (sparc_output_mi_thunk): Likewise.
22396
22397 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
22398 H.J. Lu <hongjiu.lu@intel.com>
22399
22400 PR target/42542
22401 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
22402 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
22403 operands to make them signed.
22404
22405 Revert:
22406 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
22407
22408 PR target/42542
22409 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
22410 GTU to GT for V4SI and V2DI.
22411
22412 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
22413 (umin<mode>3): Removed.
22414 (uminv8hi3): New.
22415 (uminv4si3): Likewise.
22416
22417 2010-01-05 Martin Jambor <mjambor@suse.cz>
22418
22419 PR tree-optimization/42462
22420 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
22421 current_function_decl to helper functions and macros.
22422
22423 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22424
22425 PR bootstrap/41771
22426 * flags.h: Don't include real.h.
22427 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
22428 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
22429 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
22430 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
22431 * dominance.c: Update copyright.
22432 * gimple.c (walk_gimple_op): Remove inline.
22433 * tree-ssa-reassoc.c: Include real.h.
22434 * Makefile.in (FLAGS_H): Remove $(REAL_H).
22435 (tree-ssa-reassoc.o): Depend on $(REAL_H).
22436
22437 2010-01-05 Nick Clifton <nickc@redhat.com>
22438
22439 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
22440 register to push into the stack frame when the accumulator has to
22441 be saved during interrupts.
22442
22443 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
22444
22445 * doc/invoke.texi: Remove the documentation about option
22446 -Wunreachable-code.
22447 * common.opt (Wunreachable-code): Preserved for backward
22448 compatibility.
22449 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
22450 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
22451 the backward compatibility flag section.
22452
22453 2010-01-05 Richard Guenther <rguenther@suse.de>
22454
22455 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
22456
22457 2010-01-05 Jakub Jelinek <jakub@redhat.com>
22458
22459 PR other/42611
22460 * cfgexpand.c (expand_one_var): Diagnose too large variables.
22461
22462 PR tree-optimization/42508
22463 * tree-sra.c (convert_callers): Check for recursive call
22464 by comparing cgraph nodes instead of decls.
22465 (modify_function): Call ipa_modify_formal_parameters also
22466 on all same_body aliases.
22467
22468 * cgraphunit.c (cgraph_materialize_all_clones): Compare
22469 cgraph nodes when checking for same_body aliases.
22470
22471 2010-01-05 Richard Guenther <rguenther@suse.de>
22472
22473 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
22474 allocation and lookup.
22475 (get_or_alloc_expr_for_constant): Likewise.
22476 (phi_translate): Sink allocation.
22477
22478 2010-01-04 Richard Guenther <rguenther@suse.de>
22479
22480 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
22481 a new entry only if needed.
22482 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
22483 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
22484 hashtable lookup.
22485 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
22486 the result array.
22487 (phi_translate): Handle CONSTANTs early.
22488
22489 2010-01-04 Martin Jambor <mjambor@suse.cz>
22490
22491 PR tree-optimization/42398
22492 * tree-sra.c (struct access): Removed flag grp_different_types.
22493 (dump_access): Do not dump the removed flag.
22494 (sort_and_splice_var_accesses): Do not set the removed flag.
22495 (sra_modify_expr): Check for type compatibility directly.
22496
22497 2010-01-04 Martin Jambor <mjambor@suse.cz>
22498
22499 PR tree-optimization/42366
22500 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
22501 edges with variable number of parameters.
22502 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
22503 flag instead of asserting it.
22504 (ipa_read_node_info): Read uses_analysis_done flag.
22505
22506 2010-01-04 Richard Guenther <rguenther@suse.de>
22507
22508 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
22509 iterative_hash_* as intended.
22510 (vn_reference_compute_hash): Likewise. Simplify hashing
22511 SSA names.
22512 (vn_reference_lookup_2): Likewise.
22513 (vn_nary_op_compute_hash): Likewise.
22514 (vn_phi_compute_hash): Likewise.
22515 (expressions_equal_p): Remove strange code.
22516 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
22517 (pre_expr_hash): Likewise. Simplify hashing SSA names.
22518 (bitmap_insert_into_set_1): Take value-id as parameter.
22519 (add_to_value): Pass it.
22520 (bitmap_insert_into_set): Likewise.
22521 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
22522
22523 2010-01-04 Jakub Jelinek <jakub@redhat.com>
22524
22525 PR driver/42442
22526 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
22527 (do_self_spec): For switches with SWITCH_IGNORE set set also
22528 SWITCH_IGNORE_PERMANENTLY.
22529 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
22530 of SWITCH_IGNORE.
22531
22532 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
22533
22534 * lto-streamer-out.c (output_unreferenced_globals): Output the full
22535 tree of an unreferenced global var.
22536
22537 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
22538
22539 PR target/42542
22540 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
22541 GTU to GT for V4SI and V2DI.
22542
22543 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
22544 (umin<mode>3): Removed.
22545 (uminv8hi3): New.
22546 (uminv4si3): Likewise.
22547
22548 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
22549
22550 PR lto/42581
22551 * collect2.c (main): Turn on trace in collect2 if -v is passed
22552 to gcc with LTO.
22553
22554 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
22555
22556 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
22557 description of expression operand.
22558
22559 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
22560
22561 * configure.ac: Add install-html to target_list for Make-hooks.
22562 * configure: Regenerate.
22563 * fortran/Make-lang.in (F95_HTMLFILES): New.
22564 (fortran.html): Use it.
22565 (fortran.install-html): New.
22566 * Makefile.in (install-html): Add lang.install-html.
22567 * java/Make-lang.in (JAVA_HTMLFILES): New.
22568 (java.html): Use it.
22569 (java.install-html): New.
22570 * objc/Make-lang.in (objc.install-html): New.
22571 * objcp/Make-lang.in (obj-c++.install-html): New.
22572 * cp/Make-lang.in (c++.install-html): New.
22573 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
22574 * lto/Make-lang.in (lto.install-html): New.
22575
22576 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
22577
22578 PR lto/42520
22579 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
22580
22581 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
22582
22583 PR rtl-optimization/41862
22584 * store-motion.c (store_killed_in_insn, compute_store_table,
22585 remove_reachable_equiv_notes, replace_store_insn,
22586 build_store_vectors): Ignore all DEBUG_INSNs.
22587
22588 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
22589
22590 PR lto/41564
22591 * common.opt: Add dumpdir.
22592
22593 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
22594 isn't specified.
22595 (option_map): Add --dumpdir.
22596
22597 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
22598
22599 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
22600
22601 * opts.c (decode_options): Try dump_dir_name first if
22602 dump_base_name isn't an absolute path.
22603 (common_handle_option): Handle OPT_dumpdir.
22604
22605 * toplev.c (dump_dir_name): New.
22606 (print_switch_values): Also ignore -dumpdir.
22607
22608 * toplev.h (dump_dir_name): New.
22609
22610 2010-01-03 Richard Guenther <rguenther@suse.de>
22611
22612 PR tree-optimization/42589
22613 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
22614 double-word expansion of bswap32.
22615
22616 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
22617
22618 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
22619 with BLOCK_FOR_INSN.
22620 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
22621 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
22622 noce_process_if_block): Likewise.
22623 * gcse.c (compute_local_properties, insert_expr_in_table,
22624 insert_set_in_table, canon_list_insert, find_avail_set,
22625 pre_insert_copy_insn): Likewise.
22626
22627 * basic-block.h (BLOCK_NUM): Move from here...
22628 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
22629
22630 2010-01-03 Richard Guenther <rguenther@suse.de>
22631
22632 PR tree-optimization/42438
22633 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
22634 contains_may_not_return_call flag.
22635 (BB_MAY_NOTRETURN): New.
22636 (valid_in_sets): Trapping nary operations are not valid
22637 in blocks that may not return.
22638 (insert_into_preds_of_block): Remove check for trapping expressions.
22639 (compute_avail): Compute also BB_MAY_NOTRETURN.
22640
22641 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
22642
22643 * doc/invoke.texi: Add 2010 to copyright years.
22644
22645 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
22646
22647 * config/sparc/sparc.c: Fix formatting nits.
22648
22649 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
22650 Alexander Monakov <amonakov@ispras.ru>
22651
22652 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
22653
22654 2010-01-02 Richard Guenther <rguenther@suse.de>
22655
22656 PR middle-end/42577
22657 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
22658 (simplify_switch_using_ranges): Mark to be removed edges
22659 as non-executable.
22660
22661 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22662
22663 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22664
22665 * collect2.c (scan_libraries): Add missing argument in call to
22666 scan_prog_file.
22667
22668 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
22669
22670 PR target/42448
22671 * config/alpha/predicates.md (aligned_memory_operand): Return false
22672 for CQImode.
22673 (unaligned_memory_operand): Return true for CQImode.
22674 * config/alpha/alpha.c (get_aligned_mem): Assert that location
22675 doesn not cross aligned SImode word boundary.
22676
22677 2010-01-02 Anatoly Sokolov <aesok@post.ru>
22678
22679 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
22680 Remove.
22681 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
22682 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
22683
22684 2010-01-02 Richard Guenther <rguenther@suse.de>
22685
22686 PR lto/41597
22687 * toplev.c (compile_file): Emit LTO marker properly. Change
22688 it to __gnu_lto_v1.
22689 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
22690
22691 2010-01-01 Richard Guenther <rguenther@suse.de>
22692
22693 PR debug/42455
22694 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
22695
22696 2010-01-01 Richard Guenther <rguenther@suse.de>
22697
22698 PR c/42570
22699 * c-decl.c (grokdeclarator): For zero-size arrays force
22700 structural equality checks as layout_type does.
22701
22702 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
22703
22704 * builtins.c: Update copyright to 2010.
22705
22706 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
22707
22708 PR lto/42531
22709 * lto-streamer-out.c (produce_asm): Revert the last change.
22710 (copy_function): Likewise.
22711
22712 * lto-streamer.c (lto_get_section_name): Skip any leading
22713 asterisk in name.
22714
22715 2010-01-01 Richard Guenther <rguenther@suse.de>
22716
22717 PR middle-end/42559
22718 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
22719 for LABEL_DECLs.
22720
22721 \f
22722 Copyright (C) 2010 Free Software Foundation, Inc.
22723
22724 Copying and distribution of this file, with or without modification,
22725 are permitted in any medium without royalty provided the copyright
22726 notice and this notice are preserved.