OSDN Git Service

ea4a0bba96073c16e168c50673e18bbf23a064e5
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
2
3         * opts.h (struct cl_option_handler_func): Make handler take
4         cl_decoded_option structure as parameter, not individual elements.
5         (struct cl_option_handlers): Make callbacks take cl_decoded_option
6         structure as parameter, not individual elements.
7         (handle_option): Take cl_decoded_option structure as parameter,
8         not individual elements.
9         (handle_generated_option): Declare.
10         * opts-common.c (handle_option): Take cl_decoded_option structure
11         as parameter, not individual elements.  Update calls to callback
12         and handler functions.
13         (handle_generated_option): New.
14         (read_cmdline_option): Update calls to callback functions and
15         handle_option.
16         * opts.c (common_handle_option, complain_wrong_lang,
17         unknown_option_callback, post_handling_callback,
18         lang_handle_option, target_handle_option): Take cl_decoded_option
19         structure as parameter, not individual elements.
20         (lang_handle_option, target_handle_option, common_handle_option):
21         Assert option has at most one argument.
22         (enable_warning_as_error): Call handle_generated_option instead of
23         handle_option.  Do not pass -Werror argument as argument of
24         generated option.
25
26 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27
28         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
29         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
30         (SUBWORD_BOOL_CAS): Likewise.
31         (SUBWORD_SYNC_OP): Likewise.
32         (SUBWORD_TEST_AND_SET): Likewise.
33         (FETCH_AND_OP_WORD): Parenthesise INF_OP
34         (SUBWORD_SYNC_OP): Likewise.
35         (OP_AND_FETCH_WORD): Likewise.
36
37 2010-08-10  Xinliang David Li  <davidxl@google.com>
38
39         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
40         compute max/min offset in address.
41
42 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
43
44         * ira-live.c: Include sbitmap.h.
45         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
46         Compress live ranges even more.
47
48 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
49
50         * coverage.c (ctr_labels): Delete.
51
52 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
53
54         PR bootstrap/45177
55         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
56         test here from arm_gen_load_multiple_1.
57         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
58         multiple_operation_profitable_p.
59
60 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
61
62         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
63         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
64
65 2010-08-10  Richard Henderson  <rth@redhat.com>
66
67         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
68         after saving registers.  Assert that SSE registers are only saved
69         with a sufficiently aligned frame.
70         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
71         remove stack_realign_fp handling.
72         (ix86_expand_prologue): Save int registers before stack_realign_fp,
73         and do not mark the stack alignment as frame related.
74         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
75
76         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
77         saves when re-aligning the stack.
78
79 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
80
81         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
82         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
83         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
84
85 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
86
87         * dwarf2out.c (struct die_struct): Move die_tag to the end.
88
89 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
90
91         * config/arm/iterators.md: New file.
92         * config/arm/arm.md: Include iterators.md.
93         (QHSI): Move to new file.
94         (LTUGEU, cnb, optab, ior_xor): Likewise.
95         * config/arm/iwmmxt.md (VMMX): Move to new file.
96         (VSHFT, MMX_char): Likewise.
97         * config/arm/neon.md (VD): Move to new file.
98         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
99         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
100         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
101         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
102         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
103         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
104         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
105         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
106         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
107         (Is_d_reg, V_mode_nunits): Likewise.
108         * config/arm/vec-common.md (VALL): Move to new file.
109         (VALLW, VINT, VINTW): Likewise.
110
111 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
112
113         PR middle-end/45182
114         * combine.c (make_compound_operation): Don't try to convert
115         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
116
117 2010-08-10  Richard Guenther  <rguenther@suse.de>
118
119         * tree.h (get_object_alignment): Adjust prototype.
120         * builtins.c (get_object_alignment): Return unsigned int,
121         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
122         and TARGET_MEM_REF properly.
123         (get_pointer_alignment): Adjust.
124         * emit-rtl.c (get_mem_align_offset): Adjust comment.
125         (set_mem_attributes_minus_bitpos): Adjust.
126         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
127
128 2010-08-10  Richard Guenther  <rguenther@suse.de>
129
130         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
131         (copy_prop_visit_assignment): Simplify.
132         (copy_prop_visit_stmt): Also visit assignments from
133         constants.
134         (copy_prop_visit_phi_node): Use operand_equal_p.
135
136 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
137
138         * ipa-split.c (find_split_points): Free stack.
139
140 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
141
142         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
143         * tree.c (tree_node_kind): Delete corresponding entries.
144
145 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
146
147         * alias.c (may_alias_p): Remove unused ret.
148
149 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
150
151         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
152         alias_sets_conflict_p.
153         (walk_mems_1): Moved from alias.c.
154         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
155         in alias.c. 
156         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
157         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
158         * alias.c (walk_mems_2): Moved to ddg.c.
159         (walk_mems_1): Ditto.
160         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
161         to ddg.c.
162         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
163         disambiguation.
164         *(may_alias_p): New function to check whether two memory expression
165         may alias or not. Currently used in buidling inter-iteration memory
166         dependence.
167         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
168         (insn_alias_sets_conflict_p): Removed
169         *rtl.h (may_alias_p): New function prototype.
170         
171 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
172
173         * tree.c (nreverse): Assert that we don't have a BLOCK.
174
175 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
176
177         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
178         * config/arm/arm.c (arm_get_pcs_model): Likewise.
179         * config/avr/avr.c (init_cumulative_args): Likewise.
180         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
181         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
182         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
183         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
184         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
185         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
186         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
187         * dwarf2out.c (gen_subprogram_die): Likewise.
188         * function.c (allocate_struct_function): Likewise.
189         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
190         (deserves_ellipsis): Delete.
191
192 2010-08-09  Richard Guenther  <rguenther@suse.de>
193
194         * tree-ssa-copy.c (cached_last_copy_of): Remove.
195         (valueize_val): New function.
196         (get_last_copy_of): Remove.
197         (set_copy_of_val): Simplify.
198         (dump_copy_of): Likewise.
199         (copy_prop_visit_cond_stmt): Use valueize_val.
200         (copy_prop_visit_phi_node): Properly handle unvisited names.
201         Drop code managing copy-of chains.
202         (init_copy_prop): Adjust.
203         (fini_copy_prop): Likewise.
204         (execute_copy_prop): Remove obsolete comment.
205
206 2010-08-09  Richard Guenther  <rguenther@suse.de>
207
208         PR middle-end/44632
209         * function.c (gimplify_parameters): Do not clear addressable
210         bit of the original parameter.
211
212 2010-08-09  Richard Guenther  <rguenther@suse.de>
213
214         PR middle-end/45212
215         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
216         alignment from MEM_REF offset only if we took it from the
217         base object.
218
219 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
220
221         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
222
223 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
224
225         * c-tree.h (build_arg_info): Declare.
226         * c-decl.c (build_arg_info): Define.
227         (get_parm_info): Call it.  Delete initialization code.
228         * c-parser.c (c_parser_parms_declarator): Likewise.
229         (c_parser_parms_list_declaractor): Likewise.
230
231 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
232
233         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
234         (struct c_arg_info): Change type of tags field.
235         * c-decl.c (grokdeclarator): Update for changed type of tags field.
236         (get_parm_info): Likewise.
237         (store_parm_decls_newstyle): Likewise.
238
239 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
240
241         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
242         (branch_island_list): Delete.
243         (branch_islands): Declare.
244         (add_compiler_branch_island): Adjust for branch_islands instead of
245         branch_island_list.
246         (macho_branch_islands): Likewise.
247         (no_previous_def): Likewise.
248         (get_prev_label): Likewise.
249
250 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
251
252         PR boehm-gc/34544
253         * gthr-posix.h (__gthread_start): Delete.
254         (__gthread_active_init): Use pthread_default_stacksize_np instead of
255         pthread_create to determine if hpux pthreads are active.
256         * gthr-posix95.h (__gthread_start): Delete.
257         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
258
259 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
260
261         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
262         _WIN64 not expanded.
263
264 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
265             H.J. Lu  <hongjiu.lu@intel.com>
266
267         PR target/45213
268         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
269         to output 32bit SFmode immediate as 8 byte sign extended value.
270
271 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
272
273         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
274         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
275         (SUBWORD_BOOL_CAS): Likewise.
276         (SUBWORD_SYNC_OP): Likewise.
277         (SUBWORD_TEST_AND_SET): Likewise.
278         (FETCH_AND_OP_WORD): Parenthesise INF_OP
279         (SUBWORD_SYNC_OP): Likewise.
280         (OP_AND_FETCH_WORD): Likewise.
281
282 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
283
284         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
285         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
286         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
287         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
288         generic part.
289         (cortex_a9_sched_adjust_cost): New function.
290         (xscale_sched_adjust_cost): New function.
291         * config/arm/arm-protos.h (struct tune_params): New field
292         sched_adjust_cost.
293         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
294
295 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
296
297         PR target/44942
298         * config/sparc/sparc.c (function_arg_advance): Always take into account
299         the padding, if any.
300
301 2010-08-06  Richard Guenther  <rguenther@suse.de>
302
303         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
304         (dump_lattice_value): Dump it.
305         (get_default_value): Adjust.
306         (get_constant_value): Likewise.
307         (set_value_varying): Likewise.
308         (set_lattice_value): Make sure to not go up the lattice
309         with bitwise constant values.
310         (get_value_for_expr): Handle ADDR_EXPRs.
311         (value_to_double_int): New function.
312         (get_value_from_alignment): Likewise.
313         (do_dbg_cnt): Adjust.
314         (ccp_lattice_meet): Handle partially constant values.
315         (bit_value_unop_1): New function.
316         (bit_value_binop_1): Likewise.
317         (bit_value_unop): Likewise.
318         (bit_value_binop): Likewise.
319         (evaluate_stmt): Track partially constant values if
320         flag_tree_bit_ccp is set.
321         (ccp_fold_stmt): Dump if we folded a predicate.
322         (ccp_visit_stmt): Adjust.
323         * common.opt (ftree-bit-ccp): New flag.
324         * doc/invoke.texi (ftree-bit-ccp): Document.
325         * opts.c (decode_options): Enable bit-CCP at -O1.
326
327 2010-08-06  Alan Modra  <amodra@gmail.com>
328
329         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
330         and -mrelocatable-lib description.
331
332 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
333
334         From Martin Thuresson  <martint@google.com>
335         * postreload.c (reload_cse_simplify_operands): Use
336         SET_REGNO_RAW instead of SET_REGNO.
337         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
338         SET_REGNO.
339         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
340         instead of SET_REGNO.
341         * rtl.h (SET_REGNO_RAW): New macro.
342
343 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
344
345         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
346         computations.  Fix formatting issues.
347         (num_sign_bit_copies1): Likewise.
348         (canonicalize_condition): Likewise.
349
350 2010-08-05  Richard Henderson  <rth@redhat.com>
351
352         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
353         (floor_log2): Use clz_hwi.
354         (exact_log2): Use ctz_hwi.
355         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
356         * builtins.c (fold_builtin_bitop): Use them.
357         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
358         * combine.c (get_pos_from_mask): Use ctz_hwi.
359         * double-int.c (double_int_ctz): Likewise.
360         * explow.c (force_reg): Likewise.
361         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
362
363 2010-08-05  Richard Henderson  <rth@redhat.com>
364
365         PR target/45189
366         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
367         the alignment constant is properly sign-extended.
368
369 2010-08-05  Richard Guenther  <rguenther@suse.de>
370
371         * expr.c (store_expr): Use emit_block_move only if both
372         source and target are MEMs.  Use store_bit_field if only
373         the target is a MEM.
374
375 2010-08-05  Richard Henderson  <rth@redhat.com>
376
377         PR debug/45188
378         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
379         (INCOMING_RETURN_ADDR_RTX): Likewise.
380         (dwarf2out_do_frame): Remove conditional compilation.
381         (dwarf2out_frame_init): Likewise.
382
383 2010-08-05  Nicolas Setton  <setton@adacore.com>
384
385         * gcov.c (flag_display_progress): New static variable.
386         (main): Display progress info on standard output if requested.
387         (options): Add -d/--display-progress.
388         (print_usage): Print them.
389         (process_args): Handle them.
390         * doc/gcov.texi: Document them.
391
392 2010-08-05  Martin Jambor  <mjambor@suse.cz>
393
394         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
395         (ipcp_insert_stage): Redirect only edges not flagged with
396         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
397         discovered constants.
398
399 2010-08-05  Martin Jambor  <mjambor@suse.cz>
400
401         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
402         (struct ipa_param_descriptor): New fields types and
403         cannot_devirtualize.
404         (ipa_param_cannot_devirtualize_p): New function.
405         (ipa_param_types_vec_empty): Likewise.
406         (ipa_make_edge_direct_to_target): Declare.
407         * ipa-cp.c: Fixed first stage driver name in initial comment,
408         described devirtualization there too.
409         (ipcp_analyze_node): Call ipa_analyze_params_uses.
410         (ipcp_print_all_lattices): Print devirtualization info.
411         (ipa_set_param_cannot_devirtualize): New function.
412         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
413         lattice to BOTTOM.
414         (ipcp_init_stage): Merged into...
415         (ipcp_generate_summary): ...its caller.
416         (ipcp_change_tops_to_bottom): Also process type lists.
417         (ipcp_add_param_type): New function.
418         (ipcp_copy_types): Likewise.
419         (ipcp_propagate_types): Likewise.
420         (ipcp_propagate_stage): Also propagate types.
421         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
422         Also return true if propagated types require it.
423         (ipcp_update_callgraph): Dump redirection info.
424         (ipcp_process_devirtualization_opportunities): New function.
425         (ipcp_const_param_count): Include known type information.
426         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
427         on new node.  Fixed formatting.
428         * ipa-prop.c (make_edge_direct_to_target): Renamed to
429         ipa_make_edge_direct_to_target and changed all callers.  Made
430         externally visible.
431         (ipa_node_duplication_hook): Duplicate types vector.
432         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
433         redirect outgoing calls for which we can't get a decl from the
434         statement.  Check that we can get a decl from the call statement.
435         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
436         ipa_analyze_params_uses only when ipa-cp is disabled.
437         * tree-inline.c (get_indirect_callee_fndecl): Removed.
438         (expand_call_inline): Do not call get_indirect_callee_fndecl.
439         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
440         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
441
442 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
443
444         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
445         temporary. Emit move from temporary to accum, so REG_EQUAL note will
446         be attached to this insn in correct mode.
447
448 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
449
450         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
451         using REGNO of base_reg directly.
452
453 2010-08-05  Jie Zhang  <jie@codesourcery.com>
454
455         PR tree-optimization/45144
456         * tree-sra.c (type_consists_of_records_p): Return false
457         if the record contains bit-field.
458
459 2010-08-04  Richard Henderson  <rth@redhat.com>
460
461         * config/i386/i386.c (struct ix86_frame): Remove padding and
462         to_allocate members.
463         (ix86_compute_frame_layout): Don't store them.
464         (ix86_can_use_return_insn_p): Use a more direct and more obviously
465         correct condition for the position of the stack pointer.
466         (ix86_expand_prologue): Compute remaining stack allocation based
467         on the ultimate stack pointer offset.
468         (ix86_expand_epilogue): Use more obvious expressions testing for
469         the stack pointer already pointing to the saved registers.
470
471         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
472         duplication deconstructing the frame pointer.  Simplify
473         deallocation of the local stack frame.
474
475         * reg-notes.def (CFA_EXPRESSION): New.
476         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
477         (dwarf2out_frame_debug_cfa_expression): New.
478         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
479
480         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
481         * config/i386/i386.c (ix86_expand_prologue): Set it.
482         (ix86_expand_epilogue): Clear it.
483         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
484         context, add REG_CFA_EXPRESSION notes.
485
486         * config/i386/i386.h (struct machine_frame_state): Rename from
487         machine_cfa_state.  Add members tracking SP and FP regardless
488         of the current CFA register.
489         (ix86_cfa_state): Remove.
490         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
491         and sse_reg_save_offset members.
492         (ix86_compute_frame_layout): Set them.
493         (gen_push): Increment sp_offset too.
494         (choose_baseaddr_len, choose_baseaddr): New.
495         (ix86_emit_save_reg_using_mov): New.
496         (ix86_emit_save_regs_using_mov): Use it.
497         (ix86_emit_save_sse_regs_using_mov): Likewise.
498         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
499         compare vs the saved red_zone_offset.
500         (pro_epilogue_adjust_stack): Adjust sp_offset.
501         (ix86_adjust_stack_and_probe): Likewise.
502         (ix86_expand_prologue): Set up, use, and validate the new
503         frame_state_info members.  Use gen_frame_mem.
504         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
505         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
506         new frame_state_info members.
507         (ix86_emit_leave): Likewise.
508         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
509         out-of-range stack pointer offsets here.
510         (ix86_emit_restore_sse_regs_using_mov): Likewise.
511         (ix86_expand_epilogue): Use and validate the new frame_state_info
512         members.  Break up and simplify the logic selecting the
513         restore_regs_via_mov code path.  Ensure that there will be no
514         out-of-range stack pointer offsets.
515
516         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
517
518         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
519         argument name to reflect the expected tree; fix indentation.
520         (ix86_asm_output_function_label): Output the entire 32-bit
521         ms_hook here as bytes ...
522         (ix86_expand_prologue): ... not here as insns.  Attach the
523         unwind info for the ms_hook to a blockage insn.
524         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
525         (ix86_ms_bitfield_layout_p): Fix indentation.
526         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
527
528         * config/i386/i386.c (ix86_using_red_zone): New.
529         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
530         ix86_expand_prologue, ix86_force_to_memory): Use it.
531
532         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
533         saving the int registers.
534
535         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
536         and DWARF2_UNWIND_INFO conditional compilation.
537
538 2010-08-04  Richard Henderson  <rth@redhat.com>
539
540         PR debug/45171
541         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
542         an is_naming_typedef_decl.
543
544 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
545
546         PR rtl-optimization/45162
547         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
548         * dce.c (word_dce_process_block): Likewise.
549
550 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
551
552         PR target/44583
553         * config/ia64/constraints.md (Z): New.
554         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
555         (xfreg_or_signed_fp01_operand): New.
556         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
557         with fr_reg_or_signed_fp01_operand and constraint G with Z.
558         (subsf3): Ditto.
559         (*maddsf4): Ditto.
560         (*msubsf4): Ditto.
561         (adddf3): Ditto.
562         (adddf3_trunc): Ditto.
563         (subdf3): Ditto.
564         (*subdf3_trunc): Ditto.
565         (*madddf4): Ditto.
566         (*madddf4_trunc): Ditto.
567         (*msubdf4): Ditto.
568         (*msubdf4_trunc): Ditto.
569         (addxf3): Replace xfreg_or_fp01_operand with
570         xfreg_or_signed_fp01_operand and constraint G with Z.
571         (*addxf3_truncsf): Ditto.
572         (*addxf3_truncdf): Ditto.
573         (subxf3): Ditto.
574         (*subxf3_truncsf): Ditto.
575         (*subxf3_truncdf): Ditto.
576         (*maddxf4): Ditto.
577         (*maddxf4_truncsf): Ditto.
578         (*maddxf4_truncdf): Ditto.
579         (*msubxf4): Ditto.
580         (*msubxf4_truncsf): Ditto.
581         (*msubxf4_truncdf): Ditto.
582
583 2010-08-04  Richard Guenther  <rguenther@suse.de>
584
585         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
586         if either alias-set is zero.
587
588 2010-08-04  Richard Guenther  <rguenther@suse.de>
589
590         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
591         * tree-ssa-ccp.c: ... here.
592         * tree-ssa-copy.c: ... and here.
593         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
594         value_range_t): Move ...
595         * tree-vrp.c: ... here.
596         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
597         (substitute_and_fold): Adjust prototype.
598         * tree-ssa-propagate.c (replace_uses_in): Adjust.
599         (replace_phi_args_in): Likewise.
600         (substitute_and_fold): Take callback to query lattice instead
601         of pointer to lattice.  Replace SSA name defs with lattice
602         values first.
603         * tree-ssa-ccp.c (ccp_finalize): Adjust.
604         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
605         (get_value): New function.
606         (fini_copy_prop): Adjust.
607         * tree-vrp.c (vrp_finalize): Adjust.
608
609 2010-08-04  Richard Guenther  <rguenther@suse.de>
610
611         PR middle-end/45176
612         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
613         points-to set for original MEM_REF.
614
615 2010-08-04  Richard Guenther  <rguenther@suse.de>
616
617         * tree-ssa-ccp.c (get_constant_value): New function.
618         (get_rhs_assign_op_for_ccp): Remove.
619         (valueize_op): New function.
620         (ccp_fold): Use get_constant_value and valueize_op.
621         (fold_const_aggregate_ref): Likewise.
622         (ccp_fold_stmt): Likewise.
623         (visit_assignment): Simplify.
624
625 2010-08-04  Richard Guenther  <rguenther@suse.de>
626
627         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
628         * double-int.h (double_int_ctz): Declare.
629         * double-int.c (double_int_ctz): New function.
630
631 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
632
633         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
634         Define.
635         picochip_expand_movmemhi : Expand movmem pattern.
636         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
637         Declare.
638         * config/picochip/picochip.md (movmemhi) : New pattern.
639
640 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
641
642         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
643
644 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
645
646         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
647         NEG as operand of a MULT by merging it with the other operand.
648         * combine.c (make_compound_operation): Use trunc_int_for_mode when
649         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
650         MULT.
651         * config/arm/constraints.md (M): Examine only 32 bits of a
652         HOST_WIDE_INT.
653         * config/arm/predicates.md (power_of_two_operand): Likewise.
654
655 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
656
657         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
658         non-NOTE insns.
659
660 2010-08-03  Jan Hubicka  <jh@suse.cz>
661
662         * ipa-split.c (struct split_point): Add split_part_set_retval.
663         (find_retval): Forward declare.
664         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
665         (consider_split): Compute current->split_part_set_retval.
666         (visit_bb): Do not look into return value.
667         (split_function): Handle !split_part_set_retval
668
669 2010-08-03  Martin Jambor  <mjambor@suse.cz>
670
671         * tree-sra.c (completely_scalarize_record): New parameter REF, create
672         its own access->expr intead of using build_ref_for_offset.
673
674 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
675
676         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
677         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
678         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
679         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
680         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
681         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
682         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
683         DEFAULT_SWITCH_TAKES_ARG.
684         * config/rx/rx.opt (-patch=): Remove option.
685         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
686         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
687         * doc/invoke.texi (RX Options): Remove -patch=.
688         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
689         (option_map): Remove --profile-blocks, --quiet and --silent.
690
691 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
692
693         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
694         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
695         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
696         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
697         Update calls to ix86_expand_compare and ix86_expand_branch.
698         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
699         ix86_expand_compare.
700         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
701         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
702         Make static.
703         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
704         and ix86_compare_op1.  Update calls to ix86_expand_compare.
705         (ix86_expand_int_movcc): Ditto.
706         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
707         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
708         (ix86_expand_setcc): Ditto.
709         (ix86_expand_compare): Remove prototype.
710         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
711         ix86_compare_op0 and ix86_compare_op1.  Update calls
712         to ix86_expand_branch to directly pass operands[1] and operands[2].
713         (cbranchxf4): Ditto.
714         (cbranch<MODEF:mode>4): Ditto.
715         (cbranchcc4): Ditto.
716         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
717         Update calls to ix86_expand_setcc to directly pass operands[2] and
718         operands[3].
719         (cstorexf4): Ditto.
720         (cstore<MODEF:mode>4): Ditto.
721         (cstorecc4): Ditto.
722
723 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
724
725         PR target/45063
726         * caller-save.c (save_call_clobbered_regs): Remove regs from
727         hard_regs_saved when they are set.
728
729 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
730
731         PR target/41089
732         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
733         as volatile.
734
735 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
736
737         * common.opt (ftree-loop-distribute-patterns): New.
738         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
739         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
740         at -O3.
741         * tree-data-ref.c (stores_zero_from_loop): New.
742         * tree-data-ref.h (stores_zero_from_loop): Declared.
743         * tree-loop-distribution.c (tree_loop_distribution): Call
744         stores_zero_from_loop.
745         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
746
747 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
748
749         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
750         into account.
751
752         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
753         * config/arm/arm.c (thumb1_code): New variable.
754         (arm_override_options): Set it.
755         (thumb1_final_prescan_insn): Keep track of condition code status.
756         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
757         jumps that depend on them.
758         * config/arm/arm.h (thumb1_code): Declare variable.
759         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
760         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
761         thumb1_cc_mode.
762         (CC_STATUS_INIT): New macro.
763         * config/arm/constraints.md (Pd): New constraint.
764         * config/arm/predicates.md (noov_comparison_operator): New predicate.
765         * config/arm/arm.md (is_thumb1): New define_attr.
766         (conds): Set default to "clob" when generating Thumb1 code.
767         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
768         code are set.  Use two-operand assembly syntax.
769         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
770         pattern.
771         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
772         codes are set.  Use two-operand assembly syntax.
773         (zero_extendhisi splitter): Remove constraints.
774         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
775         thumb1_movsf_insn): Set conds attribute as appropriate.
776         (cbranchsi4_insn): Use condition code status from struct
777         machine_function to determine whether the comparison can be eliminated.
778         Discourage the alternative using high registers.
779         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
780         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
781         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
782         subsi3_cbranch): Delete.
783         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
784         one subtract and one cbranch insn.
785
786         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
787         thumb2_movdf_soft_insn): Delete patterns.
788         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
789         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
790         (pool_range, neg_pool_range): Use them to define defaults.
791         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
792         and allow for TARGET_32BIT.
793
794         PR target/40457
795         * config/arm/arm.h (arm_regs_in_sequence): Declare.
796         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
797         load_multiple_sequence, store_multiple_sequence): Delete
798         declarations.
799         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
800         declarations.
801         * config/arm/ldmstm.md: New file.
802         * config/arm/arm.c (arm_regs_in_sequence): New array.
803         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
804         CHECK_REGS.  All callers changed.
805         If SAVED_ORDER is nonnull, copy the computed order into it.
806         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
807         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
808         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
809         If SAVED_ORDER is nonnull, copy the computed order into it.
810         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
811         like REGS.  Handle Thumb mode.
812         (arm_gen_load_multiple_1): New function, broken out of
813         arm_gen_load_multiple.
814         (arm_gen_store_multiple_1): New function, broken out of
815         arm_gen_store_multiple.
816         (arm_gen_multiple_op): New function, with code from
817         arm_gen_load_multiple and arm_gen_store_multiple moved here.
818         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
819         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
820         changed.
821         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
822         * config/arm/predicates.md (commutative_binary_operator): New.
823         (load_multiple_operation, store_multiple_operation): Handle more
824         variants of these patterns with different starting offsets.  Handle
825         Thumb-1.
826         * config/arm/arm.md: Include "ldmstm.md".
827         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
828         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
829         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
830         peepholes): Delete.
831         * config/arm/ldmstm.md: New file.
832         * config/arm/arm-ldmstm.ml: New file.
833
834         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
835         if statement which adds extra costs to frame-related expressions.
836
837 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
838
839         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
840
841 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
842
843         PR target/45142
844         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
845         alternative 2.
846         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
847         split V4SI operands.
848
849 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
850
851         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
852         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
853         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
854         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
855
856 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
857
858         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
859         LOCAL_INCLUDE_DIR.
860
861 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
862
863         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
864         used in the call to optab_for_tree_code.  Fix the second
865         is_widening_mult_p call.  Check that both unwidened operands
866         have the same sign.
867
868 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
869
870         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
871
872 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
873
874         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
875
876 2010-07-30  DJ Delorie  <dj@redhat.com>
877
878         * config/rx/predicates.md (rx_constshift_operand): New.
879         * config/rx/rx.md (zs_cond): New.
880         (cbranchsi4): Remove mode.
881         (*cbranchsi4_<code>): Likewise.
882         (*tstbranchsi4_<code>): New.
883         (*tstbranchsi4r_<code>): New.
884         (*tstbranchsi4m_eq): New.
885         (*tstbranchsi4m_ne): New.
886         (cbranchsf4): Remove mode.
887         (*cbranchsf4_<code>): Likewise.
888
889 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
890
891         * rtlanal.c (simplify_subreg_regno): Don't treat
892         HARD_FRAME_POINTER_REGNUM specially.
893
894 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
895
896         * common.opt (-G): Don't define option here.
897         * config/g.opt: New.
898         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
899         rs6000/powerpc and score targets.
900         * opts.c (common_handle_option): Don't handle -G here.
901         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
902         * config/frv/frv.c (frv_handle_option): Handle -G.
903         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
904         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
905         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
906         * config/mips/mips.c (mips_handle_option): Handle -G.
907         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
908         * config/score/score.c (score_handle_option): Handle -G.
909
910 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
911
912         * config/mmix/mmix.c: Include basic-block.h.
913
914 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
915
916         PR debug/45055
917         PR rtl-optimization/45137
918         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
919         prototypes.
920         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
921         New functions.
922         * combine.c (next_nonnote_nondebug_insn): Removed.
923         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
924         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
925         * sched-deps.c (sched_analyze_insn): Likewise.
926         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
927         * rtlanal.c (canonicalize_condition): Likewise.
928         * postreload.c (reload_combine_recognize_pattern): Likewise.
929         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
930
931 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
932
933         * config/i386/i386.md (int_cond): Remove code iterator.
934         (fp_cond): Ditto.
935         (cbranch<mode>4): Use ordered_comparison_operator predicate
936         for operator0.
937         (cstore<mode>4): Ditto for operator1.
938         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
939         (add<mode>cc): ditto.
940
941 2010-07-30  Richard Guenther  <rguenther@suse.de>
942
943         PR middle-end/45141
944         * expr.c (expand_expr_real_1): Check for not handled base address.
945
946 2010-07-30  Richard Guenther  <rguenther@suse.de>
947
948         * ipa-prop.c (ipa_modify_formal_parameters): Use
949         build_distinct_type_copy.
950
951 2010-07-30  Anthony Green  <green@moxielogic.com>
952
953         * config/moxie/rtems.h: New file.
954         * config.gcc: Add moxie-rtems support.
955
956 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
957
958         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
959         df flags as in run_fast_df_dce.
960
961 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
962
963         Revert:
964         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
965
966         * rtl.def (NOTE): Swap operands 4 and 5.
967         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
968         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
969         Adjust accordingly.
970         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
971
972 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
973
974         PR debug/45110
975         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
976         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
977         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
978         formal parameters.
979         (gen_decl_die): Change return type to dw_die_ref, return what
980         gen_formal_parameter_die returned.
981
982 2010-07-29  Martin Jambor  <mjambor@suse.cz>
983
984         * dbgcnt.def (eipa_sra): New counter.
985         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
986
987 2010-07-29  Xinliang David Li  <davidxl@google.com>
988
989         PR bootstrap/45119
990         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
991         in revision 162652.
992
993 2010-07-29  Richard Guenther  <rguenther@suse.de>
994
995         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
996         (TV_TREE_STORE_CCP): Likewise.
997         (TV_TREE_REDPHI): Likewise.
998
999 2010-07-29  Richard Guenther  <rguenther@suse.de>
1000
1001         * double-int.h (double_int_and_not): New function.
1002         * combine.c (try_combine): Use it.
1003         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
1004
1005 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
1006
1007         PR rtl-optimization/42575
1008         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
1009         Argument AU removed.  All callers changed.  Ignore artificial refs.
1010         Use return value of df_word_lr_simulate_defs to decide whether an insn
1011         is necessary.
1012         (fast_dce): Rename arg to WORD_LEVEL.
1013         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
1014         static.
1015         (pass_fast_rtl_byte_dce): Delete.
1016         * dce.h (run_word_dce): Declare.
1017         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
1018         All callers changed.  Simplify code to only deal with two-word regs.
1019         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
1020         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
1021         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
1022         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
1023         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
1024         (df_word_lr_mark_ref): Declare.
1025         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
1026         df_word_lr_simulate_uses): Declare or rename from byte variants.
1027         (df_byte_lr_simulate_artificial_refs_at_top,
1028         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
1029         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
1030         declarations.
1031         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
1032         (enum df_mm): Delete.
1033         * df-byte-scan.c: Delete file.
1034         * df-problems.c (df_word_lr_problem_data): Renamed from
1035         df_byte_lr_problem_data, all members deleted except for
1036         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
1037         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
1038         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
1039         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
1040         df_byte_lr_confluence_0): Delete functions.
1041         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
1042         callers changed.
1043         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
1044         Don't initialize members that were deleted, don't try to discover data
1045         about registers.  Ignore hard regs.
1046         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
1047         (df_word_lr_mark_ref): New function.
1048         (df_word_lr_bb_local_compute): Renamed from
1049         df_byte_bb_lr_local_compute; all callers changed.  Use
1050         df_word_lr_mark_ref.  Assert that artificial refs don't include
1051         pseudos.  Ignore hard registers.
1052         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
1053         Assert that exit block uses don't contain pseudos.
1054         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
1055         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
1056         callers changed.  Ignore hard regs.
1057         (df_word_lr_transfer_function): Renamed from
1058         df_byte_lr_transfer_function; all callers changed.
1059         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
1060         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
1061         changed.
1062         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
1063         callers changed.
1064         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
1065         confluence operator 0 set to NULL.
1066         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
1067         callers changed.
1068         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
1069         Return bool, true if bitmap changed or insn otherwise necessary.
1070         All callers changed.  Simplify using df_word_lr_mark_ref.
1071         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
1072         all callers changed.  Simplify using df_word_lr_mark_ref.
1073         * lower-subreg.c: Include "dce.h"
1074         (decompose_multiword_subregs): Call run_word_dce if df available.
1075         * Makefile.in (lower-subreg.o): Adjust dependencies.
1076         (df-byte-scan.o): Delete.
1077         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
1078
1079 2010-07-29  Richard Guenther  <rguenther@suse.de>
1080
1081         * tree.c (build_vector): Assert that the vector constant
1082         has enough elements.
1083         (build_vector_from_ctor): Pad with trailing zeros.
1084
1085 2010-07-29  Richard Guenther  <rguenther@suse.de>
1086
1087         PR tree-optimization/45120
1088         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1089         Handle offset in DEREFs properly.
1090         (get_constraint_for_1): Handle MEM_REF offset properly.
1091
1092 2010-07-29  Richard Guenther  <rguenther@suse.de>
1093
1094         PR middle-end/45034
1095         * convert.c (convert_to_integer): Always use an unsigned
1096         type for narrowed negate and bitwise not.
1097
1098 2010-07-29  Ira Rosen  <irar@il.ibm.com>
1099
1100         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
1101         to outer loop when creating reduction epilogue for double reduction,
1102         and switch back to the inner loop when updating the phi nodes.
1103         Update uses of outer loop exit phi nodes in double reduction (instead
1104         of uses of reduction).
1105
1106 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
1107
1108         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
1109         popcount on power7 and parity on power6 systems.
1110         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
1111         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
1112         instructions.
1113
1114         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
1115         (UNSPEC_PARITY): Ditto.
1116         (SFDF): New iterator for SF/DF.
1117         (rreg2): New mode attribute for floating register constraint.
1118         (TARGET_FLOAT): New mode attribute for whether single/double float
1119         is supported.
1120         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
1121         pattern.
1122         (parity<mode>2_cmpb): New insn for parity on power6 and newer
1123         machines.
1124         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
1125         pattern.  Add support for fcpsgn instruction added in power6.
1126         (copysignsf3): Delete.
1127         (copysigndf3): Delete.
1128         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
1129         instead of if_then_else in RTL to avoid problems with -0.
1130
1131         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
1132         of if_then_else to mirror scalar code.
1133         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
1134         rs6000.md.
1135
1136         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
1137         instead of if_then_else.
1138
1139 2010-07-28  Xinliang David Li  <davidxl@google.com>
1140
1141         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
1142         (dump_cand): Dump var_before/after.
1143         (htab_inv_expr_eq): New function.
1144         (htab_inv_expr_hash): New function.
1145         (tree_ssa_iv_optimize_init): Support pseudo invariants.
1146         (add_candidate_1): consider base type precision.
1147         (set_use_iv_cost): New parameter.
1148         (adjust_setup_cost): Use profile information.
1149         (get_address_cost): Do not hard code width in computing address
1150         offset limits.
1151         (compare_aff_trees): New function.
1152         (get_loop_invariant_expr_id): New function.
1153         (get_computation_cost_at): New parameter and use profile information.
1154         (get_computation_cost): New parameter.
1155         (determine_use_iv_cost_generic): Pass new parameter.
1156         (determine_use_iv_cost_address): Ditto.
1157         (determine_use_iv_cost_condition): Ditto.
1158         (autoinc_possible_for_pair): Ditto.
1159         (determine_use_iv_costs): More dumps.
1160         (iv_ca_get_num_inv_exprs): New function.
1161         (iv_ca_recount_cost): Consider loop invariants in register pressure
1162         cost.
1163         (iv_ca_add_use): New parameter.
1164         (iv_ca_dump): Better dumping.
1165         (iv_ca_extend): New parameter.
1166         (try_add_cand_for): Attempt to get better partial solution.
1167         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
1168         (create_new-ivs): More dumps.
1169         (rewrite_use_compare): Ditto.
1170         (free_loop_data): More cleanup.
1171         (treee_ssa_iv_optimize_finalize): Ditto.
1172
1173 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
1174
1175         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
1176         * config/i386/i386.c (ix86_profile_before_prologue): New.
1177         (override_options): Add special handling for -mfentry.
1178         (ix86_function_regparm): Likewise.
1179         (ix86_function_sseregparm): Likewise.
1180         (ix86_frame_pointer_required): Likewise.
1181         (ix86_expand_prologue): Check for ms_hook_prologue.
1182         (x86_function_profiler): Adjust mcount output.
1183         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
1184         * config/i386/i386.opt (mfentry): New.
1185         * doc/invoke.texi (mfentry): Add documentation.
1186         * doc/tm.texi: Regenerated..
1187         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
1188         * final.c (final_start_function): Replace macro
1189         PROFILE_BEFORE_PROLOGUE by target hook.
1190         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1191         * target.def (profile_before_prologue): New hook.
1192         * targhooks.c (default_profile_before_prologue): New.
1193         * targhooks.h (default_profile_before_prologue): New.
1194
1195 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
1196
1197         PR debug/45105
1198         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
1199
1200         PR debug/45103
1201         * dwarf2out.c (dwarf2out_var_location): Always consider
1202         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
1203
1204 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
1205
1206         PR rtl-optimization/45107
1207         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
1208
1209 2010-07-28  Richard Guenther  <rguenther@suse.de>
1210
1211         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
1212         (set_lattice_value): Do not query an old default value.
1213         (get_value_for_expr): New function.  Properly canonicalize
1214         float values.
1215         (ccp_visit_phi_node): Use it.
1216
1217 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
1218
1219         * config/arm/arm.c (arm_pcs_default): Remove static.
1220         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
1221         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
1222         (arm_pcs_default): Declare.
1223
1224 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
1225
1226         * config/rs6000/rs6000.c (rs6000_override_options):
1227         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
1228         ... to darwin_rs6000_override_options.
1229         (rs6000_return_in_memory): Update preceding comment for darwin
1230         64 bit ABI.  Use TARGET_MACHO inline.
1231         (rs6000_darwin64_struct_check_p): New.
1232         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
1233         (function_arg): Likewise.
1234         (rs6000_arg_partial_bytes): Likewise.
1235         (rs6000_function_value): Likewise.
1236
1237 2010-07-28  Andi Kleen <ak@linux.intel.com>
1238
1239         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
1240
1241 2010-07-28  Richard Guenther  <rguenther@suse.de>
1242
1243         PR middle-end/44903
1244         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
1245         targets try harder to not generate unaligned accesses.
1246
1247 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
1248
1249         PR rtl-optimization/45101
1250         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
1251         for gcse-las.
1252
1253 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
1254
1255         PR tree-optimization/44885
1256         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
1257         with non-aliased component.
1258
1259 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
1260
1261         * config/darwin-driver.c (SWITCH_TAKES_ARG,
1262         WORD_SWITCH_TAKES_ARG): Remove.
1263         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1264         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
1265         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
1266         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
1267         definitions from gcc.c.
1268         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
1269         defaults.h.
1270         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
1271         Move to defaults.h.
1272         * opts-common.c: Include tm.h.
1273         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
1274         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
1275         Handle more than one argument.  Set canonical_option_num_elements.
1276         (decode_cmdline_options_to_array): Set
1277         canonical_option_num_elements and trailing elements of
1278         canonical_option.
1279         * opts.h (struct cl_decoded_option): Allow four elements in
1280         canonical_option.  Add field canonical_option_num_elements.
1281         * Makefile.in (opts-common.o): Update dependencies.
1282
1283 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
1284
1285         PR middle-end/44790
1286         PR middle-end/44993
1287         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
1288         sure the base has address_mode before adding the offset.
1289
1290 2010-07-27  Xinliang David Li <davidxl@google.com>
1291
1292         * tree-flow.h (create_mem_ref): Add one new parameter.
1293         * tree-ssa-address.c (create_mem_ref): New parameter.
1294         (addr_to_parts): Ditto.
1295         (move_variant_to_index): New function.
1296         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
1297
1298 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
1299
1300         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
1301         4 and 5.
1302         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
1303         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
1304         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
1305         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
1306         CODE_LABELs and NOTEs.
1307         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
1308         * combine.c (try_combine): Likewise.
1309         * ira.c (setup_prohibited_mode_move_regs): Likewise.
1310         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
1311
1312 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1313
1314         * coretypes.h (struct cl_option_handlers): Declare.
1315         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
1316         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
1317         * langhooks-def.h (lhd_handle_option): Declare.
1318         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
1319         * langhooks.c (lhd_handle_option): New.
1320         * langhooks.h (struct lang_hooks): Update prototype and return
1321         value type of handle_option hook.
1322         * optc-gen.awk: Generate target_flags_explicit definition for the
1323         driver.
1324         * opts-common.c: Include diagnostic.h.
1325         (handle_option): Move from opts.c.  Update prototype and return
1326         value type.  Use handlers structure.
1327         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
1328         handlers structure.
1329         (set_option): Move from opts.c.
1330         * opts.c (common_handle_option): Update prototype and return value
1331         type.  Update calls to handle_option and enable_warning_as_error.
1332         (unknown_option_callback, post_handling_callback,
1333         lang_handle_option, target_handle_option): New.
1334         (handle_option, read_cmdline_option): Move to opts-common.c.
1335         (read_cmdline_options): Update prototype.  Update call to
1336         read_cmdline_option.
1337         (decode_options): Initialize and use handlers structure.
1338         (set_option): Move to opts-common.c.
1339         (enable_warning_as_error): Update prototype.  Update call to
1340         handle_option.
1341         * opts.h (struct cl_option_handler_func, struct
1342         cl_option_handlers): New.
1343         (handle_option, enable_warning_as_error): Update prototypes.
1344         (read_cmdline_option): Declare.
1345         * Makefile.in (opts-common.o): Update dependencies.
1346
1347 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1348
1349         * config/arm/arm.c (params.h): Include.
1350         (arm_override_options): Tune gcse-unrestricted-cost.
1351         * config/arm/t-arm (arm.o): Define dependencies.
1352
1353 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1354
1355         PR target/42495
1356         PR middle-end/42574
1357         * basic-block.h (get_dominated_to_depth): Declare.
1358         * dominance.c (get_dominated_to_depth): New function, use
1359         get_all_dominated_blocks as a base.
1360         (get_all_dominated_blocks): Use get_dominated_to_depth.
1361
1362         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
1363         (hoist_exprs): Remove.
1364         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
1365         (compute_code_hoist_vbeinout): Add debug print outs.
1366         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
1367
1368         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
1369         quadratic behavior.
1370         * params.h (MAX_HOIST_DEPTH): New macro.
1371         * doc/invoke.texi (max-hoist-depth): Document.
1372
1373 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1374
1375         PR rtl-optimization/40956
1376         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
1377         constants.
1378
1379 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1380
1381         PR target/42495
1382         PR middle-end/42574
1383         * config/arm/arm.c (legitimize_pic_address): Use
1384         gen_calculate_pic_address pattern to emit calculation of PIC address.
1385         (will_be_in_index_register): New function.
1386         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
1387         (thumb1_legitimate_address_p): Use it provided !strict_p.
1388         * config/arm/arm.md (calculate_pic_address): New expand and split.
1389
1390 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1391
1392         PR target/42495
1393         PR middle-end/42574
1394         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
1395         * config/arm/arm.md (define_split "J", define_split "K"): Make
1396         IRA/reload friendly.
1397
1398 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1399
1400         * gcse.c (insert_insn_end_basic_block): Update signature, remove
1401         unused checks.
1402         (pre_edge_insert, hoist_code): Update.
1403
1404 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1405
1406         PR target/42495
1407         PR middle-end/42574
1408         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
1409
1410 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1411
1412         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
1413
1414 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1415
1416         PR rtl-optimization/40956
1417         PR target/42495
1418         PR middle-end/42574
1419         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
1420         for hoisting.
1421         (hoist_code): Count occurences in current block too.
1422
1423 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1424
1425         * gcse.c (struct expr:max_distance): New field.
1426         (doing_code_hoisting_p): New static variable.
1427         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
1428         simple expressions, don't change behavior for PRE.  Set max_distance.
1429         (insert_expr_in_table): Set new max_distance field.
1430         (hash_scan_set): Update.
1431         (hoist_expr_reaches_here_p): Stop search after max_distance
1432         instructions.
1433         (find_occr_in_bb): New static function.  Use it in ...
1434         (hoist_code): Calculate sizes of basic block before any changes are
1435         done.  Pass max_distance to hoist_expr_reaches_here_p.
1436         (one_code_hoisting_pass): Set doing_code_hoisting_p.
1437
1438         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
1439         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
1440         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
1441         macros.
1442         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
1443         Document.
1444
1445 2010-07-27  Jeff Law  <law@redhat.com>
1446             Maxim Kuvyrkov  <maxim@codesourcery.com>
1447
1448         * gcse.c (compute_transpout, transpout): Remove, move logic
1449         to prune_expressions.
1450         (compute_pre_data): Move pruning of trapping expressions ...
1451         (prune_expressions): ... here.  New static function.
1452         (compute_code_hoist_data): Use it.
1453         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
1454
1455 2010-07-27  Xinliang David Li  <davidxl@google.com>
1456
1457         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
1458         (rewrite_use_address): Adjust iv update position when needed.
1459
1460 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1461
1462         * dbgcnt.def (hoist_insn): New debug counter.
1463         * gcse.c (hoist_code): Use it.
1464
1465 2010-07-27  Xinliang David Li  <davidxl@google.com>
1466
1467         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
1468         (niter_for_single_dom_exit): Passes additional parameter.
1469         (iv_period): Fix comments.
1470         (may_eliminate_iv): Handles multiple exit loops properly.
1471         (free_tree_niter_desc): New function.
1472         (free_loop_data): Frees up loop iteration descriptors.
1473
1474 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
1475
1476         PR target/44542
1477         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
1478         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
1479         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
1480         (expand_one_var): Don't consider DECL_ALIGN for variables for
1481         which expand_one_stack_var_at has been already called.
1482
1483         PR testsuite/44701
1484         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
1485         constraints on IA-64.
1486
1487 2010-07-27  Jie Zhang  <jie@codesourcery.com>
1488
1489         PR target/44290
1490         Revert:
1491         2010-07-23  Jie Zhang  <jie@codesourcery.com>
1492
1493         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1494         false if ! tree_versionable_function_p.
1495
1496 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
1497
1498         * dwarf2out.c (add_data_member_location_attribute): Use
1499         add_AT_unsigned instead of add_AT_int if offset is non-negative.
1500
1501 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
1502
1503         * postreload.c (try_replace_in_use): New static function.
1504         (reload_combine_recognize_const_pattern): Use it here.  Allow
1505         substituting into a final add insn, and substituting into a memory
1506         reference in an insn that sets the reg.
1507
1508 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1509
1510         * common.opt (o): Add MissingArgError.
1511         * doc/options.texi (MissingArgError): Document.
1512         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
1513         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
1514         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1515         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
1516         * langhooks.h (struct lang_hooks): Remove missing_argument.
1517         * optc-gen.awk: Handle MissingArgError and output new structure
1518         field initializers.
1519         * opts.c (read_cmdline_option): Use missing_argument_error field
1520         instead of missing_argument langhook.
1521         * opts.h (struct cl_option): Add missing_argument_error field.
1522         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
1523
1524 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
1525
1526         PR target/29090
1527         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
1528         Darwin64 ABI, for zero-sized objects.
1529
1530 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
1531
1532         PR target/35491
1533         PR target/29090
1534
1535         Merge from Apple local 4.2.1.
1536         2005-05-11  Stan Shebs  <shebs@apple.com>
1537         Fix 64-bit varargs for Darwin (Radar 4028089).
1538         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
1539         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1540         Add argument, add case for 8-byte register half-filled with a float.
1541         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
1542         single-precision floats specially.
1543
1544 2010-07-27  Ira Rosen  <irar@il.ibm.com>
1545
1546         PR tree-optimization/44152
1547         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
1548         complex numbers for further check.
1549         (vect_supported_load_permutation_p): Check nodes with
1550         complex numbers.
1551
1552 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1553
1554         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
1555         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
1556         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
1557         (LANG_HOOKS_INITIALIZER): Add new hooks.
1558         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
1559         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
1560         and complain_wrong_lang_p.  Update init_options prototype.
1561         * c-objc-common.c (c_initialize_diagnostics): First call
1562         c_common_initialize_diagnostics.
1563         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
1564         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
1565         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
1566         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
1567         (hook_uint_void_0): New.
1568         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
1569         (hook_uint_void_0): New.
1570         * opts-common.c (decode_cmdline_option,
1571         decode_cmdline_options_to_array): Also fill in canonical_option field.
1572         * opts.c (complain_wrong_lang): Use langhook to determine whether
1573         to complain instead of special-casing LTO.
1574         (decode_options): Separate lang_mask determination with
1575         option_lang_mask hook from call of init_options hook.
1576         * opts.h (struct cl_decoded_option): Add canonical_option.
1577
1578 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
1579
1580         PR tree-optimization/45083
1581         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
1582
1583 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
1584
1585         * postreload.c (reload_combine_recognize_const_pattern): Move test
1586         for limiting the insn movement to the right scope.
1587
1588         PR rtl-optimization/45051
1589         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
1590         than reg_mentioned_p.
1591
1592 2010-07-26  Richard Henderson  <rth@redhat.com>
1593
1594         PR target/44132
1595         * tree-emutls.c: New file.
1596         * Makefile.in (OBJS-common): Add it.
1597         * tree-pass.h (pass_ipa_lower_emutls): Declare.
1598         * passes.c (init_optimization_passes): Add it.
1599
1600         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
1601         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
1602         * expr.c (emutls_var_address): Delete.
1603         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
1604         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
1605         (emutls_finish): Delete.
1606         * toplev.c (compile_file): Don't call it.
1607         * tree.h (emutls_decl): Delete.
1608         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
1609         (emutls_finish, emutls_finalize_control_var): Delete.
1610         (emutls_object_type): Move to tree-emutls.c.
1611         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
1612         default_emutls_var_fields, get_emutls_object_type,
1613         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
1614         default_emutls_var_init): Likewise.
1615         (get_variable_section): Don't special case emutls.
1616         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
1617         default_elf_select_section, default_unique_section,
1618         default_encode_section_info): Likewise.
1619         * varpool.c (decide_is_variable_needed): Likewise.
1620         * gimple-iterator.c (update_call_edge_frequencies): New
1621         (gsi_insert_on_edge_immediate): Use it.
1622         (gsi_insert_seq_on_edge_immediate): Likewise.
1623         (gsi_commit_one_edge_insert): Likewise.
1624
1625         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
1626         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
1627         (x86_64_elf_unique_section): Likewise.
1628
1629 2010-07-26  Jan Hubicka  <jh@suse.cz>
1630
1631         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
1632         GTY((skip)).
1633
1634 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
1635
1636         * target.def (output_source_filename): New hook.
1637         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
1638         * doc/tm.texi: Regenerate.
1639         * toplev.c (output_file_directive) Remove function.
1640         * toplev.h (output_file_directive) Remove.
1641         * output.h (default_asm_output_source_filename,
1642         output_file_directive): Declare.
1643         * varasm.h (default_asm_output_source_filename,
1644         output_file_directive): New functions.
1645
1646         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1647         * config/mips/mips-protos.h (mips_output_filename): Remove.
1648         * config/mips/mips.c (mips_output_filename): Make Static.
1649         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
1650
1651 2010-07-26  Richard Guenther  <rguenther@suse.de>
1652
1653         PR tree-optimization/43784
1654         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
1655         if the destination is used by the call.
1656
1657 2010-07-26  Richard Guenther  <rguenther@suse.de>
1658
1659         PR middle-end/45073
1660         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
1661         SSA updating on being in SSA form.
1662
1663 2010-07-26  Richard Guenther  <rguenther@suse.de>
1664
1665         PR middle-end/45056
1666         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
1667
1668 2010-07-26  Richard Guenther  <rguenther@suse.de>
1669
1670         PR tree-optimization/45071
1671         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
1672         adjust op->opcode.
1673
1674 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
1675
1676         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
1677         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
1678         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
1679         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
1680         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
1681         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
1682         save_r31, return_r31, save_interrupt, return_interrupt,
1683         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
1684         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
1685         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
1686         new ABI requirements.
1687         (save_r6_r9, L_callt_save_r6_r9): Remove.
1688         * config/v850/predicates.md (even_reg_operand, disp23_operand,
1689         const_float_1_operand const_float_0_operand): New Predicates.
1690         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
1691         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
1692         * config/v850/t-v850: Update multilibs for new target variants.
1693         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
1694         * config/v850/t-v850e: Likewise.
1695         * config/v850/v850.c (v850_issue_rate): New.
1696         (v850_strict_argument_naming): New.
1697         (function_arg): Modify to generate a different ABI.
1698         (print_operand): Update case 'z' to support float modes.
1699         (output_move_single): Modify to generate appropriate and better
1700         assembly.
1701         (v850_float_z_comparison_operator, v850_select_cc_mode,
1702         v850_float_nz_comparison_operator,  v850_gen_float_compare,
1703         v850_gen_compare): New functions to support comparison of float values.
1704         (ep_memory_offset): Add support for V850E2 targets.
1705         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
1706         (INTERRUPT_REGPARM_NUM): Remove.
1707         (compute_register_save_size): Add extra case to save/restore long call.
1708         (use_prolog_function): New function to support prologue.
1709         (expand_prologue): Add support for V850E2 targets and modified
1710         as per the current ABI requirements.
1711         (expand_epilogue): Likewise.
1712         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
1713         (construct_save_jarl): Likewise.
1714         (construct_dispose_instruction): Update as per the current ABI
1715         requirements.
1716         (construct_prepare_instruction): Likewise.
1717         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
1718         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
1719         (CPP_SPEC): Updated to support v850e2 targets.
1720         (STRICT_ALIGNMENT): Modified.
1721         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
1722         (FIXED_REGISTERS): Likewise.
1723         (CALL_USED_REGISTERS): Likewise.
1724         (CONDITIONAL_REGISTER_USAGE): Updated.
1725         (HARD_REGNO_MODE_OK): Updated.
1726         (reg_class): Updated to add even registers.
1727         (REG_CLASS_NAMES): Likewise.
1728         (REG_CLASS_CONTENTS): Likewise.
1729         (REGNO_REG_CLASS): Updated for CC registers.
1730         (REG_CLASS_FROM_LETTER): Added support for even registers.
1731         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
1732         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
1733         ARG_POINTER_REGNUM): Updated.
1734         (FUNCTION_ARG_ADVANCE): Define.
1735         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
1736         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
1737         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
1738         (GO_IF_LEGITIMATE_ADDRESS): Updated.
1739         (SELECT_CC_MODE): Define.
1740         (REGISTER_NAMES): Updated to add psw and fcc registers.
1741         (ADDITIONAL_REGISTER_NAMES): Updated.
1742         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
1743         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
1744         * config/v850/v850.md (define_constants): Define new constants.
1745         (type): Update store,bit1,macc,div,fpu and single attributes.
1746         (cpu): New attribute.
1747         (cc): Add set_z attribute.
1748         (unsign23byte_load, sign23byte_load, unsign23hword_load,
1749         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
1750         23word_store): New instructions for 23-bit displacement load and store.
1751         (movqi_internal, movhi_internal): Update the attributes.
1752         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
1753         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
1754         the attributes.
1755         (v850_tst1): Modified using CC_REGNUM.
1756         (tstsi): Remove.
1757         (cmpsi): Modified as define_expand from define_insn.
1758         (cmpsi_insn, cmpsf, cmpdf): New instructions.
1759         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
1760         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
1761         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
1762         one_cmplsi2): Clobber the CC_REGNUM register.
1763         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
1764         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
1765         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
1766         (setf_insn, set_z_insn, set_nz_insn): New instructions for
1767         v850e2v3 target.
1768         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
1769         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
1770         targets.
1771         (sasf_1, sasf_2): Remove.
1772         (sasf): New instruction.
1773         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
1774         targets. CC_REGNUM register is clobbered and attributes are
1775         updated.
1776         (branch_z_normal, branch_z_invert, branch_nz_normal,
1777         branch_nz_invert): New branch related instructions.
1778         (jump): Updated the attributes.
1779         (switch): Update to support new targets. CC_REGNUM register is
1780         clobbered and attributes are updated.
1781         (call_internal_short, call_internal_long, call_value_internal_short,
1782         call_value_internal_long): Updated the attributes.
1783         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
1784         clobbered and attributes are updated.
1785         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
1786         Update to support new targets. CC_REGNUM register is clobbered.
1787         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
1788         instructions.
1789         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
1790         are updated.
1791         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
1792         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
1793         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
1794         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
1795         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
1796         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
1797         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
1798         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
1799         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
1800         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
1801         point instructions defined for V850e2v3 target.
1802         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
1803         Add support for V850E2 targets and CC_REGNUM register is clobbered.
1804         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
1805         support for new targets.
1806         * config/v850/v850-modes.def: New file.
1807         * config/v850/v850.opt(mstrict-align): Remove.
1808         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
1809         mv850e2v3): New command line options for V850.
1810         * config.gcc: Update the newly added files.
1811         * doc/invoke.texi: Update the newly added command line options for
1812         V850 target.
1813
1814 2010-07-26  Richard Guenther  <rguenther@suse.de>
1815
1816         PR tree-optimization/45052
1817         * ipa-pure-const.c (check_stmt): Check volatileness.
1818
1819 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
1820
1821         PR target/44707
1822         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
1823         * config/sparc/sparc.c: Include reload.h.
1824         (legitimize_tls_address): Rename into...
1825         (sparc_legitimize_tls_address): ...this.
1826         (legitimize_pic_address): Rename into...
1827         (sparc_legitimize_pic_address): ...this.
1828         (sparc_expand_move): Adjust to above renaming.
1829         (sparc_tls_referenced_p): Likewise.
1830         (sparc_legitimize_tls_address): Likewise.
1831         (sparc_legitimize_pic_address): Likewise.
1832         (sparc_legitimize_address): Likewise.
1833         (sparc_output_mi_thunk): Likewise.
1834         (sparc_legitimize_reload_address): New global function.  Recognize
1835         (lo_sum (high ...) ...) patterns generated by earlier passes.
1836         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
1837
1838 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
1839
1840         PR target/44484
1841         * config/sparc/predicates.md (memory_reg_operand): Delete.
1842         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
1843         (*sync_compare_and_swap): Encode the address form in the pattern.
1844         (*sync_compare_and_swapdi_v8plus): Likewise.
1845
1846 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
1847
1848         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
1849         Streamline paragraph on compatibility with the system compiler.
1850
1851 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
1852
1853         PR middle-end/45035
1854         * alias.c (true_dependence_1): Fix thinko in merge of old
1855         true_dependence and canon_true_dependence.
1856
1857 2010-07-23  Jan Hubicka  <jh@suse.cz>
1858
1859         * lto-streamer-out.c (write_symbol): Fix visibilities of external
1860         references.
1861
1862 2010-07-23  Le-Chun Wu  <lcwu@google.com>
1863
1864         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
1865         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
1866         and an unnecessary assignment.
1867         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
1868         self-assign warning.
1869         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
1870         unnecessary self-init.
1871
1872 2010-07-23  Richard Guenther  <rguenther@suse.de>
1873
1874         PR lto/43071
1875         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
1876         for -flto and -fwhopr.
1877
1878 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
1879
1880         PR target/41943
1881         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
1882         (stmp-int-hdrs): Prefix/postfix headers by include_next.
1883         * config.gcc (user_headers_inc_next_pre): New.
1884         (user_headers_inc_next_post): Likewise.
1885         (*-w64-mingw*): Use for float.h post-fixing, and for
1886         stddef.h/stdarg.h pre-fixing by include_next.
1887         * configure.ac (user_headers_inc_next_post): New.
1888         (user_headers_inc_next_pre): New.
1889         * configure: Regenerated.
1890
1891 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1892
1893         * configure.ac: Don't disable TLS on Solaris 8/9 by default
1894         Set tga_func for Solaris 2/x86 resp. SPARC.
1895         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
1896         (LIB_THREAD_LDFLAGS_SPEC): Define.
1897         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
1898         * configure: Regenerate.
1899         * config.in: Regenerate.
1900         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
1901         -pthread, -threads, LIB_TLS_SPEC with -pthread.
1902         * doc/install.texi (Specific, *-*-solaris2*): Document use of
1903         alternate thread libraries on Solaris 8.
1904         Document TLS patch requirements.
1905         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
1906         Document tls.
1907
1908         PR target/18788
1909         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
1910         -shared.
1911
1912 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
1913
1914         * tree.h (struct tree_base): Add nameless_flag bitfield.
1915         (TYPE_NAMELESS, DECL_NAMELESS): Define.
1916         * omp-low.c (create_omp_child_function, scan_omp_parallel,
1917         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
1918         DECL_ARTIFICIAL where needed.
1919         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
1920         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
1921         has DECL_NAMELESS set.
1922
1923 2010-07-23  Martin Jambor  <mjambor@suse.cz>
1924
1925         PR tree-optimization/44915
1926         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
1927         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
1928         (analyze_function): Likewise.
1929
1930 2010-07-23  Martin Jambor  <mjambor@suse.cz>
1931
1932         PR tree-optimization/44914
1933         * tree-sra.c (sra_modify_function_body): Return true if CFG was
1934         changed, add purging dead eh edges.
1935         (ipa_sra_modify_function_body): Return true if CFG was changed,
1936         simplify purging dead eh edges.
1937         (modify_function): Return true if CFG was changed.
1938         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
1939         was changed.
1940         (ipa_early_sra): Likewise.
1941
1942 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1943
1944         PR target/44290
1945         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
1946         if "naked".
1947         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1948         false if ! tree_versionable_function_p.
1949
1950 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
1951
1952         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
1953         * ipa-pure-const.c (special_builtlin_state): Remove
1954         BUILT_IN_ARGS_INFO case.
1955         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1956         * builtins.c (expand_builtin): Likewise.
1957         (expand_builtin_args_info): Remove.
1958         * doc/tm.texi (__builtin_args_info): Remove.
1959         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
1960         * doc/tm.text.in: Likewise.
1961
1962 2010-07-23  Richard Guenther  <rguenther@suse.de>
1963
1964         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
1965         (lto_symtab_merge_decls_2): Likewise.
1966         * tree-ssa.c (useless_type_conversion_p): Likewise.
1967         * lto-streamer-in.c (input_gimple_stmt): Likewise.
1968         * gimple.c (gtc_visited2, gtc_ob2): Remove.
1969         (struct type_pair_d): Make same_p an array indexed by mode.
1970         Update comment.
1971         (lookup_type_pair): Update initialization.
1972         (struct sccs): Adjust same_p type.
1973         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
1974         Adjust.
1975         (print_gimple_types_stats): Likewise.
1976         * gimple.h (enum gtc_mode): New.
1977         (gimple_types_compatible_p): Adjust prototype.
1978
1979 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
1980
1981         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
1982         again after processing insn.
1983
1984 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1985
1986         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
1987         proper words when !tree_versionable_function_p.
1988
1989 2010-07-23  Richard Guenther  <rguenther@suse.de>
1990
1991         PR tree-optimization/45037
1992         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
1993
1994 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1995
1996         * doc/extend.texi: Remove IP2K from the description of naked attribute.
1997         Add MCORE instead.
1998
1999 2010-07-10  Andi Kleen  <ak@linux.intel.com>
2000
2001         PR lto/44992
2002         * lto-opts.c (lto_write_options): Add NULL file_data argument to
2003         lto_get_section_name.
2004         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2005         * lto-streamer-out.c (produce_asm): Likewise.
2006         (copy_function): Likewise.
2007         (produce_symtab): Likewise.
2008         (produce_asm_for_decls): Likewise.
2009         * lto-streamer.c (lto_get_section_name): Add file_data argument.
2010         Rewrite to add random postfix to LTO sections.
2011         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
2012         (lto_get_section_name): Add file_data argument to prototype.
2013
2014 2010-07-10  Andi Kleen  <ak@linux.intel.com>
2015
2016         * lto-section-in.c (lto_section_name): Synchronize names
2017         with lto_get_section_name.
2018
2019 2010-07-10  Andi Kleen  <ak@linux.intel.com>
2020
2021         * lto-opts.c (lto_read_file_options): Check for missing section.
2022
2023 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
2024
2025         * ira.c (check_allocation): Correctly handle the case where an allocno
2026         with two objects was allocated to a single reg.
2027
2028 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
2029
2030         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
2031         (is_widening_mult_p): Likewise.
2032         (convert_to_widen): Use them.
2033         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
2034         well as integer ones.
2035
2036 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
2037
2038         * alias.c (true_dependence_1): New function, merged version of
2039         true_dependence and canon_true_dependence.
2040         (true_dependence): Simplify.
2041         (canon_true_dependence): Simplify.
2042
2043 2010-07-22  Richard Henderson  <rth@redhat.com>
2044
2045         PR target/45027
2046         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
2047         of V4SFmode for the SSE saves; increase stack alignment if needed.
2048         (ix86_gimplify_va_arg): Don't increase stack alignment here.
2049
2050 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
2051
2052         PR bootstrap/45028
2053         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
2054         call cprop_find_used_regs again via note_uses.
2055
2056 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
2057
2058         * alias.c (get_alias_set): Fix formatting issues.
2059
2060 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
2061
2062         PR middle-end/44878
2063         * stmt.c (expand_value_return):  Call promote_function_mode with
2064         a for_return argument of 2 when returning by reference.
2065
2066 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
2067
2068         PR debug/45024
2069         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
2070         unit DIE if we can find the scope DIE.
2071
2072 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
2073
2074         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
2075         changed.  Initialize OBJECT_SUBWORD.
2076         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
2077         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
2078         all callers changed.
2079         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
2080         (finish_allocno): Likewise.
2081         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
2082         (remove_low_level_allocnos): Likewise.
2083         (update_bad_spill_attribute): Likewise.
2084         (setup_min_max_allocno_live_range_point): Likewise.
2085         (sort_conflict_id_map): Likewise.
2086         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
2087         (ior_hard_reg_conflicts): New function.
2088         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
2089         (compress_conflict_vecs): Iterate over objects, not allocnos.
2090         (ira_add_live_range_to_object): New function.
2091         (object_range_compare_func): Renamed from allocno_range_compare_func.
2092         All callers changed.
2093         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
2094         subobjects, widen the min/max range of the lowest-order object to
2095         potentially include all other such low-order objects.
2096         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
2097         (check_allocation): Likewise.  Use more fine-grained tests for register
2098         conflicts.
2099         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
2100         allocno subobjects.
2101         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
2102         choices about which bits to set in each set.  Don't use
2103         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
2104         using the multiple sets we computed.
2105         (push_allocno_to_stack): Iterate over allocno subobjects.
2106         (all_conflicting_hard_regs_coalesced): New static function.
2107         (setup_allocno_available_regs_num): Use it.
2108         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
2109         subobjects.
2110         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
2111         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2112         by ALLOCNO_NUM_OBJECTS.
2113         (calculate_spill_cost): Likewise.
2114         (color_pass): Express if statement in a more normal way.
2115         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
2116         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
2117         (setup_slot_coalesced_allocno_live_ranges): Likewise.
2118         (allocno_reload_assign): Likewise.
2119         (ira_reassign_pseudos): Likewise.
2120         (fast_allocation): Likewise.
2121         * ira-conflicts.c (build_conflict_bit_table): Likewise.
2122         (print_allocno_conflicts): Likewise.
2123         (ira_build_conflicts): Likewise.
2124         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
2125         callers changed.  Test subword 0 of each allocno for conflicts.
2126         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
2127         callers changed.  Iterate over allocno subobjects.
2128         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
2129         * ira-int.h (struct ira_allocno): New member: num_objects.
2130         Rename object to objects and change it into an array.
2131         (ALLOCNO_OBJECT): Add new argument N.
2132         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
2133         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
2134         (ior_hard_reg_conflicts): Declare.
2135         (ira_add_live_range_to_object): Declare.
2136         (ira_allocno_object_iterator): New.
2137         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
2138         (FOR_EACH_ALLOCNO_OBJECT): New macro.
2139         * ira-lives.c (objects_live): Renamed from allocnos_live; all
2140         uses changed.
2141         (allocnos_processed): New sparseset.
2142         (make_object_born): Renamed from make_allocno_born; take an
2143         ira_object_t argument.  All callers changed.
2144         (make_object_dead): Renamed from make_allocno_dead; take an
2145         ira_object_t argument.  All callers changed.
2146         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
2147         All callers changed.
2148         (mark_pseudo_regno_live): Iterate over allocno subobjects.
2149         (mark_pseudo_regno_dead): Likewise.
2150         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
2151         functions.
2152         (mark_ref_live): Detect subword accesses and call
2153         mark_pseudo_regno_subword_live as appropriate.
2154         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
2155         (process_bb_nodes_live): Deal with object-related updates first; set
2156         and test bits in allocnos_processed to avoid computing allocno
2157         statistics more than once.
2158         (create_start_finish_chains): Iterate over objects, not allocnos.
2159         (print_object_live_ranges): New function.
2160         (print_allocno_live_ranges): Use it.
2161         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
2162         and objects_live.
2163
2164 2010-07-22  Richard Guenther  <rguenther@suse.de>
2165
2166         PR lto/42451
2167         * gimple.c (gtc_next_dfs_num): New global.
2168         (struct sccs): Make value a union, add integer same_p member.
2169         (gtc_visit): New function.
2170         (gimple_types_compatible_p_1): New function, split out from ...
2171         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
2172         (iterative_hash_gimple_type): Adjust for sccs change.
2173
2174 2010-07-22  Martin Jambor  <mjambor@suse.cz>
2175
2176         PR tree-optimization/44891
2177         * tree-sra.c: Include gimple-pretty-print.h.
2178         (replace_uses_with_default_def_ssa_name): Renamed to
2179         get_repl_default_def_ssa_name, return the new SSA name instead of
2180         replacing the old one.
2181         (sra_modify_assign): Dump a message when removing a load, if the LHS
2182         is an SSA_NAME, do not do any propagation, just set the RHS to a
2183         default definition SSA NAME, type convert if necessary.
2184         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
2185
2186 2010-07-22  Richard Guenther  <rguenther@suse.de>
2187
2188         PR tree-optimization/45017
2189         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
2190         TYPE_PRECISION of integral types in addition to size.
2191
2192 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2193
2194         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
2195         when no C library is specified.
2196
2197 2010-07-22  Martin Jambor  <mjambor@suse.cz>
2198
2199         * ipa-prop.h (struct ipa_node_params): Updated comment.
2200         (struct ipa_edge_args): Likewise.
2201         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
2202
2203 2010-07-22  Martin Jambor  <mjambor@suse.cz>
2204
2205         * cgraphunit.c (verify_edge_count_and_frequency): New function.
2206         (verify_cgraph_node): Verify frequencies of indirect edges.
2207         * tree-inline.c (tree_function_versioning): Update frequencies of
2208         indirect edges.
2209
2210 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2211
2212         PR target/43698
2213         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
2214         Set *arm_rev to be predicable.
2215
2216 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
2217
2218         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
2219         (LINK_COMMAND_SPEC_A): New.
2220         (DSYMUTIL): New.
2221         (DSYMUTIL_SPEC): New.
2222         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
2223         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
2224
2225 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
2226
2227         * calls.c (load_register_parameters): Move check for zero
2228         sized items so that only the call to
2229         mem_overlaps_already_clobbered_arg_p () is protected.
2230
2231 2010-07-22  Jan Hubicka  <jh@suse.cz>
2232
2233         * ipa-pure-const.c (varying_state): Break out from ...
2234         (get_function_state): ... here; always return varying_state
2235         when state would be NULL otherwise.
2236         (remove_node_data): Do not free varying state.
2237
2238 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
2239
2240         PR bootstrap/44970
2241         PR middle-end/45009
2242         * postreload.c: Include "target.h".
2243         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
2244         into account.
2245         (fixup_debug_insns): Don't copy the rtx.
2246         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
2247         Don't copy when replacing.  Call fixup_debug_insns in the case where
2248         we merged one add with another.
2249         (reload_combine_recognize_pattern): Fail if there aren't any uses.
2250         Try harder to determine whether we're picking a valid index register.
2251         Don't set store_ruid for an insn we're going to scan in the
2252         next iteration.
2253         (reload_combine): Remove unused code.
2254         (reload_combine_note_use): When updating use information for
2255         an old insn, ignore a use that occurs after store_ruid.
2256         * Makefile.in (postreload.o): Update dependencies.
2257
2258         * function.c (record_hard_reg_sets): Restrict the previous change
2259         to cases where the incoming nominal mode is the same as the
2260         incoming promoted mode and everything happens in MODE_INT.
2261
2262 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
2263
2264         PR debug/45015
2265         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
2266         ASM_OPERANDS_OUTPUT_IDX.
2267         (adjust_insn): For inline asm with multiple sets ensure first
2268         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
2269         the insn.
2270
2271 2010-07-21  Richard Henderson  <rth@redhat.com>
2272
2273         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
2274         comparison for avoiding xmm register saves.  Emit the xmm register
2275         saves explicitly.
2276         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
2277         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
2278         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
2279         Remove patterns and the associated splitters.
2280
2281 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
2282
2283         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
2284         and imagine parts of a complex, so that they can have the same
2285         base and fall into the same group.
2286
2287 2010-07-21  Richard Guenther  <rguenther@suse.de>
2288
2289         PR lto/45018
2290         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
2291         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
2292         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
2293
2294 2010-07-21  Martin Jambor  <mjambor@suse.cz>
2295
2296         PR tree-optimization/44900
2297         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
2298         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
2299
2300 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
2301
2302         PR middle-end/44738
2303         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
2304
2305 2010-07-21  Richard Guenther  <rguenther@suse.de>
2306
2307         PR middle-end/45013
2308         * tree-ssa.c (useless_type_conversion_p): Dispatch to
2309         gimple_types_compatible_p only when in lto.
2310         * gimple.c (gimple_types_compatible_p): Use canonical types
2311         to speed up comparison.
2312
2313 2010-07-21  Richard Guenther  <rguenther@suse.de>
2314
2315         * tree-flow.h (referenced_var): Move define ...
2316         * tree-flow-inline.h (referenced_var): ... here as an inline
2317         function.  Assert here ...
2318         * tree-dfa.c (referenced_var_lookup): ... instead of here.
2319         * tree-ssa.c (maybe_optimize_var): Check if the variable
2320         is in referenced vars.
2321         (execute_update_addresses_taken): Remove old broken check.
2322         * gimple-pretty-print.c (pp_points_to_solution): Use
2323         referenced_var_lookup.
2324         * tree-into-ssa.c (dump_decl_set): Likewise.
2325
2326 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
2327
2328         PR debug/45003
2329         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
2330         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
2331         ZERO_EXTEND here.
2332
2333 2010-07-20  Richard Henderson  <rth@redhat.com>
2334
2335         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
2336
2337 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
2338
2339         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
2340         computing the sum of the stack pointer and a large constant.
2341         * config/arm/constraints.md (M): Remove superfluous parentheses.
2342         (Pc): New constraint.
2343
2344 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
2345
2346         PR debug/45006
2347         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
2348         operand's type if exp is tcc_unary class tree.
2349
2350 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
2351
2352         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
2353         Reverse sense of if_then_else condition.
2354
2355 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
2356
2357         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
2358         * config/rs6000/rs6000.c (rs6000_override_options): Set
2359         rs6000_block_move_inline_limit appropriately.
2360         (expand_block_move): Use rs6000_block_move_inline_limit.
2361         * doc/invoke.texi (mblock-move-inline-limit): Document.
2362
2363 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
2364
2365         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
2366         FROM and TO.  All callers changed.  Don't look for tracked uses,
2367         just scan the RTL for DEBUG_INSNs and substitute.
2368         (reload_combine_recognize_pattern): Call fixup_debug_insns.
2369         (reload_combine): Ignore DEBUG_INSNs.
2370
2371 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
2372
2373         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
2374         depth to 8 from 5.
2375
2376         PR debug/45003
2377         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
2378         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
2379         instead of the result's type.
2380
2381 2010-07-20  Richard Guenther  <rguenther@suse.de>
2382
2383         PR tree-optimization/44977
2384         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
2385         SSA form.
2386
2387 2010-07-20  Richard Guenther  <rguenther@suse.de>
2388
2389         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
2390         (lto_symtab_merge_decls_2): Likewise.
2391         * gimple.h (gimple_types_compatible_p): Declare.
2392         * gimple.c (gimple_queue_type_fixup): Remove.
2393         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
2394         (gimple_compatible_complete_and_incomplete_type_p): New function.
2395         (gimple_types_compatible_p): Adjust.
2396         (gimple_register_type): Remove type fixup code.
2397         (print_gimple_types_stats): Adjust.
2398         (free_gimple_type_tables): Likewise.
2399         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
2400         * tree-ssa.c (useless_type_conversion_p): Likewise.
2401
2402 2010-07-20  Richard Guenther  <rguenther@suse.de>
2403
2404         PR middle-end/44971
2405         PR middle-end/44988
2406         * tree-ssa.c (maybe_optimize_var): New function split out from ...
2407         (execute_update_addresses_taken): ... here.
2408         (non_rewritable_mem_ref_base): Likewise.
2409         (execute_update_addresses_taken): Do not iterate over all referenced
2410         vars but just all local decls and parms.
2411         Properly check call and asm arguments and rewrite call arguments.
2412
2413 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
2414
2415         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
2416         to top level.
2417         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
2418         definitions ...
2419         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
2420         New macro.
2421         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
2422
2423 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2424
2425         * gengtype.c (start_root_entry): New function, split out from
2426         write_root.  Check whether V is null and raise an error if so.
2427         (write_field_root): Check for V being null.  Don't raise an error here;
2428         set V to null instead.
2429         (write_root): Update comment above function.  Use start_root_entry.
2430
2431 2010-07-19  Xinliang David Li  <davidxl@google.com>
2432
2433         PR testsuite/44932
2434         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
2435         def edges.
2436         (find_uninit_use): Add dump.
2437         (is_use_properly_guarded): Ditto.
2438         (warn_uninitialized_phi): Ditto.
2439         (execute_late_warn_uninitialized): Ditto.
2440
2441 2010-07-19  Richard Guenther  <rguenther@suse.de>
2442
2443         PR middle-end/44941
2444         * expr.c (emit_block_move_hints): Move zero size check first.
2445         Move asserts to more useful places.
2446         * calls.c (load_register_parameters): Check for zero size.
2447
2448 2010-07-19  Richard Henderson  <rth@redhat.com>
2449
2450         * tree-optimize.c (execute_all_early_local_passes): New.  Change
2451         cgraph_state here ...
2452         (execute_early_local_optimizations): ... not here.  Remove.
2453         (pass_early_local_passes, pass_all_early_optimizations): Update.
2454
2455 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
2456
2457         * postreload.c (reload_combine_closest_single_use): Ignore the
2458         number of uses for DEBUG_INSNs.
2459         (fixup_debug_insns): New static function.
2460         (reload_combine_recognize_const_pattern): Use it.  Don't let the
2461         main loop be affected by DEBUG_INSNs.
2462         Really disallow moving adds past a jump insn.
2463         (reload_combine_recognize_pattern): Don't update use_ruid here.
2464         (reload_combine_note_use): Do it here.
2465         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
2466
2467 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
2468
2469         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
2470         of a loop.
2471         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
2472
2473 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
2474
2475         * config/i386/darwin.h: Define darwin_emit_branch_islands.
2476         (TARGET_MACHO_BRANCH_ISLANDS): New.
2477         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
2478         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
2479         default value.
2480         * config/i386/i386.c (output_pic_addr_const): Do not emit
2481         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
2482         (x86_output_mi_thunk): Adjust symbol creation.
2483         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
2484         Remove out of date comment.
2485         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
2486         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
2487         (DARWIN_GENERATE_ISLANDS): Ditto.
2488         (output_call):  Do not emit branch islands unless
2489         darwin_emit_branch_islands is set.
2490         * config/darwin.c: Declare darwin_emit_branch_islands.
2491         (machopic_indirect_data_reference): Do not emit unless
2492         darwin_emit_branch_islands is set.
2493         (darwin_override_options): Set darwin_emit_branch_islands
2494         where it is needed.
2495         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
2496
2497 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2498
2499         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2500         sse_runtime, sse2_runtime.
2501
2502 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
2503
2504         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
2505         low half of a single-register SCmode return value before ORing
2506         it with the high half.
2507         * config/mips/mips16.S (MERGE_GPRf): Likewise.
2508
2509 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2510
2511         PR target/44805
2512         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
2513         on all targets.
2514
2515 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
2516
2517         PR target/42235
2518         * postreload.c (reload_cse_move2add): Return bool, true if anything.
2519         changed.  All callers changed.
2520         (move2add_use_add2_insn): Likewise.
2521         (move2add_use_add3_insn): Likewise.
2522         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
2523         reload_combine.
2524         (RELOAD_COMBINE_MAX_USES): Bump to 16.
2525         (last_jump_ruid): New static variable.
2526         (struct reg_use): New members CONTAINING_MEM and RUID.
2527         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
2528         (reload_combine_split_one_ruid, reload_combine_split_ruids,
2529         reload_combine_purge_insn_uses, reload_combine_closest_single_use
2530         reload_combine_purge_reg_uses_after_ruid,
2531         reload_combine_recognize_const_pattern): New static functions.
2532         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
2533         is true for our reg and that we have available index regs.
2534         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
2535         callers changed.  Use them to initialize fields in struct reg_use.
2536         (reload_combine): Initialize last_jump_ruid.  Be careful when to
2537         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
2538         Call reload_combine_recognize_const_pattern.
2539         (reload_combine_note_store): Update REAL_STORE_RUID field.
2540
2541 2010-07-16  Jason Merrill  <jason@redhat.com>
2542
2543         * Makefile.in (opts-common.o): Depend on options.h.
2544
2545 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
2546
2547         * tree.c (build_common_builtin_nodes): Use build_function_type_list
2548         instead of build_function_type.
2549         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
2550         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
2551
2552 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
2553
2554         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
2555         do all the work.
2556         (rs6000_emit_int_cmove): Use function pointers for insn generation.
2557         Don't force values into registers unnecessarily.
2558         (output_isel): Assert that we're not given conditions we can't handle.
2559         Delete corresponding code.
2560         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
2561         scc_comparison_operator constraint.  Permit 0 for the consequent
2562         operand.  Permit any GPR for the alternative operand.
2563         (isel_unsigned_<mode>): Likewise.
2564
2565 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
2566
2567         PR target/44942
2568         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
2569         argument to const_tree.
2570         * config/i386/i386.c (function_arg_advance): If padding needs to be
2571         inserted before argument, increment cum->words by number of padding
2572         words as well.
2573         (contains_aligned_value_p): Change argument to const_tree.
2574         (ix86_function_arg_boundary): Change second argument to const_tree.
2575
2576 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
2577
2578         PR target/42235
2579         * function.c (record_hard_reg_sets): New static function.
2580         (assign_parm_setup_reg): If an optab for extending exists and the
2581         generated code clobbbers no hard regs, emit the insn directly and
2582         create a REG_EQUIV note.
2583
2584 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2585
2586         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
2587         TREE_CHAIN.
2588         * c-typeck.c (push_init_level): Likewise.
2589         (process_init_element): Likewise.
2590
2591 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
2592
2593         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
2594         (integer_three_node): Add.
2595         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
2596         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
2597         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
2598         of call build_int_cst.
2599         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
2600         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
2601         (find_interesting_uses_address): Ditto.
2602         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
2603         * tree-eh.c (lower_eh_constructs_2): Ditto.
2604         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
2605         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
2606         * expmed.c (expand_divmod): Ditto.
2607         * tree-mudflap.c (mx_register_decls): Ditto.
2608         * varasm.c (array_size_for_constructor): Ditto.
2609         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
2610         * c-parser.c (c_parser_postfix_expression): Ditto.
2611
2612 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
2613
2614         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
2615         New static variables.
2616         (reload_combine_recognize_pattern): New static function, broken out
2617         of reload_combine.
2618         (reload_combine): Use it.  Only initialize first_index_reg and
2619         last_index_reg once.
2620
2621 2010-07-15  Richard Henderson  <rth@redhat.com>
2622
2623         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
2624         when done.
2625
2626 2010-07-15  Jan Hubicka  <jh@suse.cz>
2627
2628         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
2629         comdats for broken gold.
2630         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
2631
2632 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2633
2634         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
2635
2636 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2637
2638         * tree.h (DECL_CHAIN): Define.
2639         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2640         * c-decl.c: Likewise.
2641         * c-parser.c: Likewise.
2642         * c-typeck.c: Likewise.
2643         * cfgexpand.c: Likewise.
2644         * cgraph.c: Likewise.
2645         * cgraphunit.c: Likewise.
2646         * combine.c: Likewise.
2647         * config/alpha/alpha.c: Likewise.
2648         * config/arm/arm.c: Likewise.
2649         * config/frv/frv.c: Likewise.
2650         * config/i386/i386.c: Likewise.
2651         * config/i386/winnt-cxx.c: Likewise.
2652         * config/ia64/ia64.c: Likewise.
2653         * config/iq2000/iq2000.c: Likewise.
2654         * config/mep/mep.c: Likewise.
2655         * config/mips/mips.c: Likewise.
2656         * config/pa/som.h: Likewise.
2657         * config/rs6000/rs6000.c: Likewise.
2658         * config/s390/s390.c: Likewise.
2659         * config/sh/sh.c: Likewise.
2660         * config/sh/symbian-cxx.c: Likewise.
2661         * config/sparc/sparc.c: Likewise.
2662         * config/spu/spu.c: Likewise.
2663         * config/stormy16/stormy16.c: Likewise.
2664         * config/vxworks.c: Likewise.
2665         * config/xtensa/xtensa.c: Likewise.
2666         * coverage.c: Likewise.
2667         * dbxout.c: Likewise.
2668         * dwarf2out.c: Likewise.
2669         * emit-rtl.c: Likewise.
2670         * expr.c: Likewise.
2671         * function.c: Likewise.
2672         * gimple-low.c: Likewise.
2673         * gimple-pretty-print.c: Likewise.
2674         * gimplify.c: Likewise.
2675         * integrate.c: Likewise.
2676         * ipa-inline.c: Likewise.
2677         * ipa-prop.c: Likewise.
2678         * ipa-split.c: Likewise.
2679         * ipa-struct-reorg.c: Likewise.
2680         * ipa-type-escape.c: Likewise.
2681         * langhooks.c: Likewise.
2682         * lto-cgraph.c: Likewise.
2683         * omp-low.c: Likewise.
2684         * stor-layout.c: Likewise.
2685         * tree-cfg.c: Likewise.
2686         * tree-complex.c: Likewise.
2687         * tree-dfa.c: Likewise.
2688         * tree-dump.c: Likewise.
2689         * tree-inline.c: Likewise.
2690         * tree-mudflap.c: Likewise.
2691         * tree-nested.c: Likewise.
2692         * tree-object-size.c: Likewise.
2693         * tree-pretty-print.c: Likewise.
2694         * tree-sra.c: Likewise.
2695         * tree-ssa-live.c: Likewise.
2696         * tree-ssa-loop-niter.c: Likewise.
2697         * tree-ssa-math-opts.c: Likewise.
2698         * tree-ssa-reassoc.c: Likewise.
2699         * tree-ssa-sccvn.c: Likewise.
2700         * tree-ssa-structalias.c: Likewise.
2701         * tree-tailcall.c: Likewise.
2702         * tree-vrp.c: Likewise.
2703         * tree.c: Likewise.
2704         * var-tracking.c: Likewise.
2705         * varasm.c: Likewise.
2706
2707 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2708
2709         PR target/44877
2710         * config/spu/spu.c (spu_expand_builtin_1): Allow references
2711         (as well as pointers) as argument to mask_for_load builtins.
2712
2713 2010-07-15  Richard Guenther  <rguenther@suse.de>
2714
2715         PR tree-optimization/44946
2716         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
2717         with accessing only padding properly.
2718
2719 2010-07-15  Jan Hubicka  <jh@suse.cz>
2720
2721         * ipa.c (function_and_variable_visibility): Variables marked as used
2722         should not be localized.
2723
2724 2010-07-15  Jan Hubicka  <jh@suse.cz>
2725
2726         * cgraph.c: Include lto-streamer.h
2727         (change_decl_assembler_name): Work when assembler name hash is at place.
2728         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
2729         be sure to rename it to avoid name clash.
2730         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
2731         Localize hidden symbols only when locally defined.
2732
2733 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
2734
2735         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
2736
2737 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
2738             Kevin F. Quinn  <kevquinn@gentoo.org>
2739
2740         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
2741         * common.opt: Add -Wtrampolines.
2742         * doc/invoke.texi: Add -Wtrampolines.
2743
2744 2010-07-15  Jie Zhang  <jie@codesourcery.com>
2745
2746         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
2747         cortex_a8_issue_ls.
2748
2749 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
2750
2751         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
2752         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2753
2754 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2755
2756         * config/spu/spu.c (reg_names): Remove prototype.
2757         (call_used_regs): Likewise.
2758
2759 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
2760
2761         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
2762         "unused" with attribute "used".
2763         (__JCR_END__): Likewise.
2764         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
2765         "used" attribute.
2766         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
2767
2768 2010-07-14  Richard Guenther  <rguenther@suse.de>
2769
2770         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
2771         (maybe_fixup_decls): Likewise.
2772         (input_gimple_stmt): Do not fixup anything.
2773         * lto-streamer-out.c (output_gimple_stmt): Make sure all
2774         non-automatic variable uses are wrapped inside a MEM_REF.
2775
2776 2010-07-14  Richard Henderson  <rth@redhat.com>
2777
2778         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
2779         for functions.
2780         * varasm.c (assemble_variable): Remove early exit for functions;
2781         assert that we're given a variable.
2782
2783 2010-07-14  Jie Zhang  <jie@codesourcery.com>
2784
2785         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
2786         cortex_a8_default when neon_type is not none.
2787
2788 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2789
2790         * lower-subreg.c (subreg_context): New static bitmap.
2791         (decompose_multiword_subregs): Allocate and free it.
2792         (find_decomposable_subregs): Set a bit in it for a register that
2793         occurs in a subreg that changes mode but not size.
2794         (can_decompose_p): Test it instead of non_decomposable_context.
2795
2796 2010-07-14  Richard Guenther  <rguenther@suse.de>
2797
2798         PR tree-optimization/44824
2799         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
2800         is_gimple_mem_ref_addr.
2801         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
2802         non-decl_address_invariant_p addresses.
2803
2804 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2805
2806         * reload.c (find_reloads): Revert code to penalize small register
2807         classes that was brought in with the IRA merge.
2808
2809 2010-07-14  Richard Guenther  <rguenther@suse.de>
2810
2811         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
2812         as base of ARRAY_REFs.
2813
2814 2010-07-14  Richard Guenther  <rguenther@suse.de>
2815
2816         PR middle-end/44930
2817         * tree-pretty-print.c (do_niy): Do not print a newline.
2818
2819 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2820
2821         * ira-int.h (struct ira_object): New.
2822         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
2823         (struct ira_allocno): Remove members min, max,
2824         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
2825         conflict_allocnos_num and conflict_vec_p.  Add new member object.
2826         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
2827         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
2828         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
2829         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
2830         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
2831         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
2832         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
2833         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
2834         an ira_object_t rather than ira_allocno_t.  All uses changed.
2835         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2836         contains a vector of ira_object_t; all uses changed.
2837         (ira_objects_num): Declare variable.
2838         (ira_create_allocno_object): Declare function.
2839         (ira_conflict_vector_profitable_p): Adjust prototype.
2840         (ira_allocate_conflict_vec): Renamed from
2841         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
2842         (ira_allocate_object_conflicts): Renamed from
2843         ira_allocate_allocno_conflicts; first arg now ira_object_t.
2844         (struct ira_object_iterator): New.
2845         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
2846         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
2847         to conflict_vec_p.  All uses changed.
2848         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
2849         Changed to take into account that conflicts are now tracked for
2850         objects.
2851         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
2852         Args changed to accept ira_object_t.  All uses changed.
2853         (allocnos_conflict_p): New static function.
2854         (collected_conflict_objects): Renamed from collected_allocno_objects;
2855         now a vector of ira_object_t.  All uses changed.
2856         (build_conflict_bit_table): Changed to take into account that
2857         conflicts are now tracked for objects.
2858         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
2859         (print_allocno_conflicts, ira_build_conflicts): Likewise.
2860         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
2861         setup_allocno_left_conflicts_size, allocno_reload_assign,
2862         fast_allocation): Likewise.
2863         * ira-lives.c (make_hard_regno_born, make_allocno_born)
2864         process_single_reg_class_operands, process_bb_node_lives): Likewise.
2865         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
2866         Likewise.
2867         * ira-build.c (ira_objects_num): New variable.
2868         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2869         contains a vector of ira_object_t; all uses changed.
2870         (ira_object_id_map_vec): Corresponding change.
2871         (object_pool): New static variable.
2872         (initiate_allocnos): Initialize it.
2873         (finish_allocnos): Free it.
2874         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
2875         New functions.
2876         (ira_create_allocno): Don't set members that were removed.
2877         (ira_set_allocno_cover_class): Don't change conflict hard regs.
2878         (merge_hard_reg_conflicts): Changed to take into account that
2879         conflicts are now tracked for objects.
2880         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
2881         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
2882         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
2883         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
2884         setup_min_max_conflict_allocno_ids, ):  Likewise.
2885         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
2886         to ira_object_t; all callers changed.
2887         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
2888         to ira_object_t, all callers changed.
2889         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
2890         to ira_object_t, all callers changed.
2891         (conflict_check, curr_conflict_check_tick): Renamed from
2892         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
2893         changed.
2894         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
2895         arg changed to ira_object_t, all callers changed.
2896         (create_cap_allocno): Call ira_create_allocno_object.
2897         (finish_allocno): Free the corresponding object.
2898         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
2899         callers changed.  Adjusted for dealing with objects.
2900         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
2901         dealing with objects.
2902         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
2903
2904         * ira-int.h (struct live_range): Rename allocno member to object
2905         and change type to ira_object_t.
2906         (struct ira_object): New member live_ranges.
2907         (struct ira_allocno): Remove member live_ranges.
2908         (ALLOCNO_LIVE_RANGES): Remove.
2909         (OBJECT_LIVE_RANGES): New macro.
2910         (ira_create_live_range, ira_copy_live_range_list,
2911         ira_merge_live_range_list, ira_live_ranges_intersect_p,
2912         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
2913         * ira-build.c (ira_create_object): Initialize live ranges here.
2914         (ira_create_allocno): Not here.
2915         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
2916         changed to ira_object_t, all callers changed.
2917         (copy_live_range): Rename from copy_allocno_live_range, all callers
2918         changed.
2919         (ira_copy_live_range_list): Rename from
2920         ira_copy_allocno_live_range_list, all callers changed.
2921         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
2922         all callers changed.
2923         (ira_live_ranges_intersect_p): Rename from
2924         ira_allocno_live_ranges_intersect_p, all callers changed.
2925         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
2926         callers changed.
2927         (ira_finish_live_range_list): Rename from
2928         ira_finish_allocno_live_range_list, all callers changed.
2929         (change_object_in_range_list): Rename from change_allocno_in_range_list,
2930         last arg changed to ira_object_t, all callers changed.
2931         (finish_allocno): Changed to expect live ranges in the allocno's object.
2932         (move_allocno_live_ranges, copy_allocno_live_ranges,
2933         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
2934         ira_flattening, ira_build): Likewise.
2935         * ira-color.c (allocnos_have_intersected_live_ranges_p,
2936         slot_coalesced_allocno_live_ranges_intersect,
2937         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
2938         * ira-conflicts.c (build_conflict_bit_table): Likewise.
2939         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
2940         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
2941         make_allocno_dead, create_start_finish_chains,
2942         remove_some_program_points_and_update_live_ranges,
2943         ira_debug_live_range_list): Likewise.
2944
2945         * ira-int.h (ira_object_conflict_iterator): Rename from
2946         ira_allocno_conflict_iterator.
2947         (ira_object_conflict_iter_init): Rename from
2948         ira_allocno_conflict_iter_init, second arg changed to
2949         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
2950         FOR_EACH_ALLOCNO_CONFLICT.
2951         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
2952         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
2953         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
2954         * ira-conflicts.c (print_allocno_conflicts): Likewise.
2955
2956 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
2957
2958         PR other/44874
2959         * tree-dump.c (dump_options): Add enumerate_locals entry.
2960         Add TDF_NOID exclusion to all entry.
2961         * tree-dump.h (dump_enumerated_decls): Declare.
2962         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
2963         Don't display type uid.
2964         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
2965         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
2966         * tree-ssa-live.c: Include gimple.h.
2967         (numbered_tree_d): New struct.
2968         (numbered_tree): New typedef.
2969         (DEF_VEC_O (numbered_tree): New.
2970         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
2971         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
2972         (dump_enumerated_decls): Likewise.
2973         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
2974         debug info and flag_dump_final_insns, call dump_enumerated_decls.
2975         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
2976         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
2977
2978 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
2979
2980         * expmed.h (MAX_BITS_PER_WORD): Move to...
2981         * defaults.h (MAX_BITS_PER_WORD): ...here.
2982
2983 2010-07-13  DJ Delorie  <dj@redhat.com>
2984
2985         * config/h8300/h8300.c (h8300_init_once): Default to
2986         -fstrict_volatile_bitfields.
2987
2988         * config/sh/sh.c (sh_override_options): Default to
2989         -fstrict_volatile_bitfields.
2990
2991         * config/rx/rx.c (rx_option_override): New.
2992
2993         * config/m32c/m32c.c (m32c_override_options): Default to
2994         -fstrict_volatile_bitfields.
2995
2996 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
2997
2998         * tree.h (build_function_call_expr): Delete.
2999         (build_call_expr_loc_array): New function.
3000         (build_call_expr_loc_vec): New function.
3001         * tree-flow.h (struct omp_region): Change type of ws_args field
3002         to a VEC.
3003         * builtins.c (build_function_call_expr): Delete.
3004         (build_call_expr_loc_array): New function.
3005         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
3006         (build_call_expr): Likewise.
3007         (build_call_expr_loc_vec): New function.
3008         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
3009         build_function_call_expr.
3010         * expr.c (emutls_var_address): Likewise.
3011         * varasm.c (emutls_common_1): Likewise.
3012         * omp-low.c (expand_omp_atomic_mutex): Likewise.
3013         (expand_omp_taskreg): Adjust for new type of region->ws_args.
3014         (get_ws_args_for): Return a VEC instead of a tree.
3015         (expand_parallel_call): Call build_call_expr_loc_vec instead of
3016         build_function_call_expr.
3017         * stor-layout.c (self_referential_size): Likewise.
3018
3019 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
3020
3021         PR testsuite/44701
3022         * recog.c (constrain_operands): Allow side-effects in memory
3023         operands if either < or > constraint is used, rather than if
3024         both < and > is used.
3025
3026 2010-07-13  Richard Guenther  <rguenther@suse.de>
3027
3028         PR middle-end/44911
3029         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
3030         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
3031         without name.
3032
3033 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
3034
3035         PR target/44761
3036         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
3037         to variable emited.
3038         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
3039         * config/sh/sh.md (symGOT_load): Likewise.
3040         (symDTPOFF2reg): Likewise.
3041         (symTPOFF2reg): Likewise.
3042
3043 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3044
3045         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
3046         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
3047
3048 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3049
3050         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
3051         explanation.
3052         Find ucontext_t * on Solaris 11.
3053         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
3054         Handle new Solaris 11 __sighndlr patterns.
3055
3056 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
3057
3058         PR debug/44901
3059         * vec.h (VEC_block_remove): Fix comment.
3060         * tree-ssa-live.c (remove_unused_locals): Don't use
3061         VEC_unordered_remove on local_decls, instead replace a single
3062         vector element in each iteration if at least one element had
3063         to be removed and VEC_truncate at the end.
3064         * omp-low.c (expand_omp_taskreg): Likewise.
3065
3066 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3067
3068         * c-decl.c (finish_function): Fix typo in comment.
3069
3070 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
3071
3072         PR bootstrap/44921
3073         * postreload.c (move2add_use_add3_insn): Silence gcc warning
3074         on min_regno.
3075
3076 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
3077
3078         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
3079         (simplify_stmt_using_ranges): Use it.
3080
3081 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3082
3083         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
3084         member.  Do not mark as GTY(()).
3085         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
3086         (spu_builtin_decls): New static variable.
3087         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
3088         (spu_init_builtins): Likewise.
3089         (spu_builtin_mul_widen_even): Likewise.
3090         (spu_builtin_mul_widen_odd): Likewise.
3091         (spu_builtin_mask_for_load): Likewise.
3092         (spu_builtin_vec_perm): Likewise.
3093         * config/spu/spu-c.c: Include "target.h".
3094         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
3095         of using spu_builtins[].fndecl.
3096
3097 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3098
3099         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
3100         imply -minterlink-mips16.
3101
3102 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3103
3104         * config/mips/mips.h (mips16_globals): Declare.
3105         (SWITCHABLE_TARGET): Define.
3106         * config/mips/mips.c: Include target-globals.h.
3107         (mips16_globals): New variable.
3108         (mips_set_mips16_mode): Use save_target_globals and
3109         restore_target_globals instead of target_reinit.
3110
3111 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3112
3113         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
3114         to say that the function can be called more than once.
3115         * target-globals.c (save_target_globals): Call init_reg_sets.
3116
3117 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3118
3119         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
3120         * bb-reorder.h: New file.
3121         * bb-reorder.c (default_target_bb_reorder): New variable.
3122         (this_target_bb_reorder): New conditional variable.
3123         (uncond_jump_length): Redefine as a macro.
3124         * target-globals.h (this_target_bb_reorder): Declare.
3125         (target_globals): Add a bb_reorder field.
3126         (restore_target_globals): Copy the bb_reorder field to
3127         this_target_bb-reorder.
3128         * target-globals.c: Include bb-reorder.h.
3129         (default_target_globals): Initialize the bb_reorder field.
3130         (save_target_globals): Likewise.
3131
3132 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3133
3134         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
3135         * gcse.h: New file.
3136         * gcse.c: Include gcse.h.
3137         (default_target_gcse): New variable.
3138         (this_target_gcse): New conditional variable.
3139         (can_copy): Redefine as a macro.
3140         (can_copy_init_p): New macro.
3141         (can_copy_p): Remove can_copy_init_p.
3142         * target-globals.h (this_target_gcse): Declare.
3143         (target_globals): Add a gcse field.
3144         (restore_target_globals): Copy the gcse field to this_target_gcse.
3145         * target-globals.c: Include gcse.h.
3146         (default_target_globals): Initialize the gcse field.
3147         (save_target_globals): Likewise.
3148
3149 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3150
3151         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
3152         and x_ira_prohibited_mode_move_regs_initialized_p.
3153         (ira_prohibited_mode_move_regs): Redefine as a macro.
3154         * ira.c (ira_prohibited_mode_move_regs): Delete.
3155         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
3156
3157 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3158
3159         * reload.h (target_reload): Add x_cached_reg_save_code and
3160         x_cached_reg_restore_code.
3161         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
3162         Redefine as macros.
3163
3164 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3165
3166         * Makefile.in (target-globals.o): Depend on builtins.h.
3167         * builtins.h: New file.
3168         * builtins.c: Include builtins.h.
3169         (default_target_builtins): New variable.
3170         (this_target_builtins): New conditional variable.
3171         (apply_args_mode, apply_result_mode): Redefine as macros.
3172         * target-globals.h (this_target_builtins): Declare.
3173         (target_globals): Add a builtins field.
3174         (restore_target_globals): Copy the builtins field to
3175         this_target_builtins.
3176         * target-globals.c: Include builtins.h.
3177         (default_target_globals): Initialize the builtins field.
3178         (save_target_globals): Likewise.
3179
3180 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3181
3182         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
3183         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
3184         from expmed.c.
3185         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
3186         (alg_hash, alg_hash_used_p): New macros.
3187         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
3188         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
3189         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
3190
3191 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3192
3193         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
3194         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
3195         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
3196         (this_op_costs, costs_classes): Redefine as macros.
3197         (record_reg_classes): Don't take op_costs as a parameter.
3198         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
3199         (scan_one_insn): Update call to record_operand_costs.
3200
3201 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3202
3203         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
3204         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
3205         (target_ira_int): New structure.
3206         (default_target_ira_int): Declare.
3207         (this_target_ira_int): Declare as a variable or define as a macro.
3208         (ira_reg_mode_hard_regset, ira_register_move_cost)
3209         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
3210         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
3211         (prohibited_class_mode_regs, ira_important_classes_num)
3212         (ira_important_classes, ira_reg_class_intersect)
3213         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
3214         (ira_reg_class_union): Redefine as macros.
3215         * ira.h (target_ira): New structure.
3216         (default_target_ira): Declare.
3217         (this_target_ira): Declare as a variable or define as a macro.
3218         (ira_available_class_regs, ira_hard_regno_cover_class)
3219         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
3220         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
3221         (ira_class_hard_regs_num): Redefine as macros.
3222         * ira.c (default_target_ira, default_target_ira_int): New variables.
3223         (this_target_ira, this_target_ira_int): New conditional variables.
3224         (ira_reg_mode_hard_regset, ira_memory_move_cost)
3225         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
3226         (ira_class_subset_p): Delete.
3227         (no_unit_alloc_regs): Redefine as a macro.
3228         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
3229         (ira_class_hard_regs_num, ira_class_hard_reg_index)
3230         (ira_available_class_regs): Delete.
3231         (alloc_reg_class_subclasses): Redefine as a macro.
3232         (ira_reg_class_cover_size, ira_reg_class_cover)
3233         (ira_important_classes_num, ira_important_classes)
3234         (ira_important_class_nums, ira_class_translate): Delete.
3235         (cover_class_order): Document the variable's lifetime.
3236         (reorder_important_classes): Don't set ira_important_class_nums.
3237         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
3238         (ira_reg_class_super_classes, ira_reg_class_union)
3239         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
3240         Delete.
3241         (setup_reg_class_nregs): Don't set ira_max_regs.
3242         (prohibited_class_mode_regs): Delete.
3243         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
3244         (target_globals): Add ira and ira_int fields.
3245         (restore_target_globals): Copy the ira field to this_target_ira
3246         and the ira_int field to this_target_ira_int.
3247         * target-globals.c: Include ira-int.h.
3248         (default_target_globals): Initialize the ira and ira_int fields.
3249         (save_target_globals): Likewise.
3250
3251 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3252
3253         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
3254         * cfgloop.h (target_cfgloop): New structure.
3255         (default_target_cfgloop): Declare.
3256         (this_target_cfgloop): Declare as a variable or define as a macro.
3257         (target_avail_regs, target_clobbered_regs, target_res_regs)
3258         (target_reg_cost, target_spill_cost): Redefine as macros.
3259         * cfgloopanal.c (default_target_cfgloop): New variable.
3260         (this_target_cfgloop): New conditional variable.
3261         (target_avail_regs, target_clobbered_regs, target_res_regs)
3262         (target_reg_cost, target_spill_cost): Delete.
3263         * target-globals.h (this_target_cfgloop): Declare.
3264         (target_globals): Add a cfgloop field.
3265         (restore_target_globals): Copy the cfgloop field to
3266         this_target_cfgloop.
3267         * target-globals.c: Include cfgloop.h.
3268         (default_target_globals): Initialize the cfgloop field.
3269         (save_target_globals): Likewise.
3270
3271 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3272
3273         * regs.h (target_regs): Add x_direct_load, x_direct_store and
3274         x_float_extend_from_mem.
3275         (direct_load, direct_store, float_extend_from_mem): New macros.
3276         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
3277
3278 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3279
3280         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
3281         (target-globals.o): Depend on $(LIBFUNCS_H).
3282         * libfuncs.h: Include hashtab.h.
3283         (libfunc_entry): Moved from optabs.c.
3284         (target_libfuncs): New structure.
3285         (default_target_libfuncs): Declare.
3286         (this_target_libfuncs): Declare as a variable or define as a macro.
3287         (libfunc_table): Redefine as a macro.
3288         * optabs.c (default_target_libfuncs): New variable.
3289         (this_target_libfuncs): New conditional variable.
3290         (libfunc_table): Delete.
3291         (libfunc_entry): Moved to optabs.h.
3292         (libfunc_hash): Redefine as a macro.
3293         (hash_libfunc, eq_libfunc): Fix comments.
3294         (init_optabs): Use libfunc_hash to detect cases where the function
3295         has already been called.  Clear the hash table instead of
3296         recreating it.
3297         * target-globals.h (this_target_libfuncs): Declare.
3298         (target_globals): Add a libfuncs field.
3299         (restore_target_globals): Copy the libfuncs field to
3300         this_target_libfuncs.
3301         * target-globals.c: Include libfuncs.h.
3302         (default_target_globals): Initialize the libfuncs field.
3303         (save_target_globals): Likewise.
3304
3305 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3306
3307         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
3308         in all dependency lists.
3309
3310 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3311
3312         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
3313         * optabs.h (target_optabs): New structure.
3314         (default_target_optabs): Declare.
3315         (this_target_optabs): Declare as a variable or define as a macro.
3316         (optab_table, convert_optab_table, direct_optab_table): Redefine
3317         as macros.
3318         * optabs.c (default_target_optabs): New variable.
3319         (this_target_optabs): New conditional variable.
3320         (optab_table, convert_optab_table, direct_optab_table): Delete.
3321         * target-globals.h (this_target_optabs): Declare.
3322         (target_globals): Add a optabs field.
3323         (restore_target_globals): Copy the optabs field to
3324         this_target_optabs.
3325         * target-globals.c: Include expr.h and optabs.h.
3326         (default_target_globals): Initialize the optabs field.
3327         (save_target_globals): Likewise.
3328
3329 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3330
3331         * flags.h (target_flagstate): Add x_flag_excess_precision.
3332         (flag_excess_precision): Redefine as a macro.
3333         * toplev.c (flag_excess_precision): Delete.
3334
3335 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3336
3337         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
3338         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
3339         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
3340         (no_caller_save_reg_set): Redefine as a macro.
3341         * reload.h (target_reload): Add x_caller_save_initialized_p and
3342         x_regno_save_mode.
3343         (caller_save_initialized_p): Redefine as a macro.
3344         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
3345         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
3346         (regno_save_mode): Redefine as a macro.
3347
3348 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3349
3350         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
3351         * expmed.h: New file.
3352         * expmed.c (default_target_costs): New variable.
3353         (this_target_costs): New conditional variable.
3354         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
3355         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
3356         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
3357         * target-globals.h (this_target_expmed): Declare.
3358         (target_globals): Add a expmed field.
3359         (restore_target_globals): Copy the expmed field to
3360         this_target_expmed.
3361         * target-globals.c: Include expmed.h.
3362         (default_target_globals): Initialize the expmed field.
3363         (save_target_globals): Likewise.
3364
3365 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3366
3367         * Makefile.in (target-globals.o): Depend on reload.h.
3368         * reload.h (target_reload): New structure.
3369         (default_target_reload): Declare.
3370         (this_target_reload): Declare as a variable or define as a macro.
3371         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
3372         * reload1.c (default_target_reload): New variable
3373         (this_target_reload): New conditional variable.
3374         (indirect_symref_ok, double_reg_address_ok): Delete.
3375         (spill_indirect_levels): Redefine as a macro.
3376         * target-globals.h (this_target_reload): Declare.
3377         (target_globals): Add a reload field.
3378         (restore_target_globals): Copy the reload field to
3379         this_target_reload.
3380         * target-globals.c: Include hard-reg-set.h.
3381         (default_target_globals): Initialize the reload field.
3382         (save_target_globals): Likewise.
3383
3384 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3385
3386         * rtl.h (target_rtl): Add x_static_reg_base_value.
3387         * alias.c (static_reg_base_value): Redefine as a macro.
3388
3389 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3390
3391         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
3392         (GTFILES): Remove reginfo.c.
3393         * rtl.h (target_rtl): Add x_top_of_stack.
3394         (top_of_stack): New macro.
3395         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
3396         (top_of_stack): Delete.
3397
3398 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3399
3400         * regs.h (target_regs): Add x_hard_regs_of_mode,
3401         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
3402         x_may_move_out_cost and x_last_mode_for_init_move_cost.
3403         (have_regs_of_mode, contains_reg_of_mode, move_cost)
3404         (may_move_in_cost, may_move_out_cost): Redefine as macros.
3405         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
3406         (may_move_in_cost, may_move_out_cost): Delete.
3407         (last_mode_for_init_move_cost): Redefine as a macro.
3408
3409 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3410
3411         * hard-reg-set.h (target_hard_regs): New structure.
3412         (default_target_hard_regs): Declare.
3413         (this_target_hard_regs): Declare as a variable or define as a macro.
3414         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
3415         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
3416         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
3417         (reg_class_size, reg_class_subclasses, reg_class_subunion)
3418         (reg_class_superunion, reg_names): Redefine as macros.
3419         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
3420         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
3421         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
3422         (reg_class_contents, reg_class_size, reg_class_subclasses)
3423         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
3424         (default_target_hard_regs): New variable
3425         (this_target_hard_regs, initial_call_really_used_regs)
3426         (initial_reg_alloc_order): New conditional variables.
3427         (initial_reg_names): New variable.
3428         (init_reg_sets): Assert that initial_call_really_used_regs,
3429         initial_reg_alloc_order and initial_reg_names
3430         are all the same size as their variable counterparts.  Use them to
3431         initialize those counterparts.
3432         * target-globals.h (this_target_hard_regs): Declare.
3433         (target_globals): Add a hard_regs field.
3434         (restore_target_globals): Copy the hard_regs field to
3435         this_target_hard_regs.
3436         * target-globals.c: Include hard-reg-set.h.
3437         (default_target_globals): Initialize the hard_regs field.
3438         (save_target_globals): Likewise.
3439
3440 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3441
3442         * Makefile.in (target-globals.o): Depend on $(RTL_H).
3443         * rtl.h (target_rtl): New structure.
3444         (default_target_rtl): Declare.
3445         (this_target_rtl): Declare as a variable or define as a macro.
3446         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
3447         Redefine as macros.
3448         * emit-rtl.c (default_target_rtl): New variable.
3449         (this_target_rtl): New conditional variable.
3450         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
3451         (return_address_pointer_rtx): Delete.
3452         (initial_regno_reg_rtx): New macro.
3453         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
3454         (init_emit_regs): Likewise.
3455         * target-globals.h (this_target_rtl): Declare.
3456         (target_globals): Add a rtl field.
3457         (restore_target_globals): Copy the rtl field to this_target_rtl.
3458         * target-globals.c: Include rtl.h.
3459         (default_target_globals): Initialize the rtl field.
3460         (save_target_globals): Likewise.
3461
3462 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3463
3464         * Makefile.in (target-globals.o): Depend on $(REGS_H).
3465         * regs.h (target_reg_modes): New structure.
3466         (default_target_reg_modes): Declare.
3467         (this_target_reg_modes): Declare as a variable or define as a macro.
3468         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
3469         * reginfo.c (default_target_reg_modes): New variable.
3470         (this_target_reg_modes): New conditional variable.
3471         (hard_regno_nregs, reg_raw_mode): Delete.
3472         * target-globals.h (this_target_regs): Declare.
3473         (target_globals): Add a regs field.
3474         (restore_target_globals): Copy the regs field to this_target_regs.
3475         * target-globals.c: Include regs.h.
3476         (default_target_globals): Initialize the regs field.
3477         (save_target_globals): Likewise.
3478
3479 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3480
3481         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
3482         * doc/tm.texi: Regenerate.
3483         * Makefile.in (OBJS-common): Add target-globals.o.
3484         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
3485         and target-globals.h.
3486         (target-globals.o): New rule.
3487         (GTFILES): Include $(srcdir)/target-globals.h.
3488         * defaults.h (SWITCHABLE_TARGET): Define.
3489         * gengtype.c (open_base_files): Add target-globals.h to the
3490         list of includes.
3491         * target-globals.h: New file.
3492         * target-globals.c: Likewise.
3493
3494         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
3495         * flags.h (target_flag_state): New structure.
3496         (default_target_flag_state): Declare.
3497         (this_target_flag_state): Declare as a variable or define as a macro.
3498         (align_loops_log): Redefine as a macro.
3499         (align_loops_max_skip, align_jumps_log): Likewise.
3500         (align_jumps_max_skip, align_labels_log): Likewise.
3501         (align_labels_max_skip, align_functions_log): Likewise.
3502         * toplev.c (default_target_flag_state): New variable.
3503         (this_target_flag_state): New conditional variable.
3504         (align_loops_log): Delete.
3505         (align_loops_max_skip, align_jumps_log): Likewise.
3506         (align_jumps_max_skip, align_labels_log): Likewise.
3507         (align_labels_max_skip, align_functions_log): Likewise.
3508         * target-globals.h (this_target_flag_state): Declare.
3509         (target_globals): Add a flag_state field.
3510         (restore_target_globals): Copy the flag_state field to
3511         this_target_flag_state.
3512         * target-globals.c: Include flags.h.
3513         (default_target_globals): Initialize the flag_state field.
3514         (save_target_globals): Likewise.
3515
3516 2010-07-12  Jie Zhang  <jie@codesourcery.com>
3517
3518         * postreload.c (reg_symbol_ref[]): New.
3519         (move2add_use_add2_insn): New.
3520         (move2add_use_add3_insn): New.
3521         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
3522         (move2add_note_store): Likewise.
3523
3524 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3525
3526         PR rtl-optimization/44752
3527         * genautomata.c (main): Don't emit an empty file even if there
3528         is no automaton.
3529
3530 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3531
3532         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
3533         ix86_solaris_return_in_memory.
3534         * config/i386-protos.h: Reflect this.
3535         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
3536         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
3537         Move ...
3538         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
3539
3540 2010-07-12  Jie Zhang  <jie@codesourcery.com>
3541
3542         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
3543         align the stack when it's going to be saved.
3544
3545 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3546
3547         PR pch/14940
3548         * config/host-solaris.c (mmap_fixed): New function.
3549         (sol_gt_pch_get_address): Use it.
3550         (sol_gt_pch_use_address): Likewise.
3551
3552 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3553
3554         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
3555         pentiumpro on Solaris 8 and 9/x86.
3556         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
3557         Document SSE/SSE2 support.
3558         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
3559
3560 2010-07-12  Andi Kleen  <ak@linux.intel.com>
3561
3562         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
3563         instead of gcc_assert to print better error message for multiple
3564         prevailing defs.
3565
3566 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
3567
3568         * config/i386/i386.c (ix86_asm_output_function_label): Change format
3569         string placeholder from 0x%x to %#x.
3570         (ix86_code_end): Use putc to output '\n'.
3571         (ix86_print_operand) <case ';'>: Use putc to output ';'.
3572
3573 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
3574
3575         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
3576         in directive -export.
3577
3578 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
3579
3580         * reginfo.h (reg_classes_intersect_p): Change arguments type to
3581         reg_class_t.
3582         * rtl.h (reg_classes_intersect_p): Adjust prototype.
3583
3584         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3585         Remove macros.
3586         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
3587         rs6000_memory_move_cost): Remove
3588         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
3589         TARGET_MEMORY_MOVE_COST): Define.
3590         (rs6000_register_move_cost): Make static. Change arguments type from
3591         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
3592         (rs6000_memory_move_cost): Make static. Change arguments type from
3593         'enum reg_class' to reg_class_t.
3594
3595 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
3596
3597         PR middle-end/42505
3598         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
3599         lookup code into....
3600         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
3601         new functions.
3602         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
3603         * cfgloopanal.c (target_clobbered_regs): Define.
3604         (init_set_costs): Initialize target_clobbered_regs.
3605         (estimate_reg_pressure_cost): Add call_p argument.  When true,
3606         adjust the number of available registers to exclude the
3607         call-clobbered registers.
3608         * cfgloop.h (target_clobbered_regs): Declare.
3609         (estimate_reg_pressure_cost): Adjust declaration.
3610         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
3611         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
3612         (determine_set_costs): Dump target_clobbered_regs.
3613         (loop_body_includes_call): New function.
3614         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
3615         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
3616         call_p flag through.
3617         (best_gain_for_invariant): Likewise.
3618         (find_invariants_to_move): Likewise.
3619         (move_single_loop_invariants): Likewise, using already-computed
3620         has_call field.
3621
3622 2010-07-10  Richard Guenther  <rguenther@suse.de>
3623             Joern Rennecke  <joern.rennecke@embecosm.com>
3624
3625         PR debug/44832
3626         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
3627         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
3628         unless they have DECL_IGNORED_P set.
3629
3630 2010-07-10  Richard Guenther  <rguenther@suse.de>
3631
3632         PR lto/44889
3633         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
3634         helper function.
3635         (gimple_types_compatible_p): Similar to pointed-to
3636         types allow and merge a mix of complete and incomplete aggregate.
3637         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
3638         (iterative_hash_gimple_type): Adjust for that.
3639
3640 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
3641
3642         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
3643
3644 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
3645
3646         PR objc/44140
3647         * config/darwin.c (output_objc_section_asm_op): Save and restore
3648         section when outputting ObjC section list.
3649
3650 2010-07-09  Jan Hubicka  <jh@suse.cz>
3651
3652         * lto-streamer-out.c (produce_symtab): Do not write alias
3653         cgraph/varpool nodes.
3654
3655 2010-07-09  Jan Hubicka  <jh@suse.cz>
3656
3657         * tree-inline.c (declare_return_variable): Fix ICE while
3658         inlining DECL_BY_VALUE function not in SSA form
3659
3660 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
3661
3662         PR tree-optimization/44576
3663         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
3664         New.  Pull out from is_loop_prefetching_profitable to implement
3665         the trip count to ahead ratio heuristic.
3666         (mem_ref_count_reasonable_p): New.  Pull out from
3667         is_loop_prefetching_profitable to implement the instruction to
3668         memory reference ratio heuristic.  Also consider not reasonable if
3669         the memory reference count is above a threshold (to avoid
3670         explosive compilation time.
3671         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
3672         is_loop_prefetching_profitable to implement the instruction to
3673         prefetch ratio heuristic.
3674         (is_loop_prefetching_profitable): Removed.
3675         (loop_prefetch_arrays): Distribute the cost analysis across the
3676         function to allow early exit of the prefetch analysis.
3677         is_loop_prefetching_profitable is splitted into three functions,
3678         with each one called as early as possible.
3679         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
3680         number of memory references in a loop is considered too many.
3681
3682 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
3683
3684         * reload.c (find_reloads): Don't clear badop if we have a winreg
3685         alternative, but not win, and the class only has fixed regs.
3686         * hard-reg-set.h (class_only_fixed_regs): Declare.
3687         * reginfo.c (class_only_fixed_regs): New array.
3688         (init_reg_sets_1): Initialize it.
3689         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
3690         discourage alternatives using the stack pointer.
3691
3692         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
3693
3694         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
3695
3696         * config/arm/arm.md (cbranchqi4): Fix array size.
3697         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
3698         calculating length.
3699
3700 2010-07-09  Richard Guenther  <rguenther@suse.de>
3701
3702         * gimple.c (struct type_fixup_s): New struct and VEC type.
3703         (gimple_register_type_fixups): New static global.
3704         (gimple_queue_type_fixup): New function.
3705         (gimple_types_compatible_p): Queue type fixups instead of
3706         applying them here.
3707         (gimple_register_type): Apply queued fixups for the
3708         canonical type.  Empty the type fixup queue.
3709
3710 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3711
3712         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
3713         * configure: Regenerate.
3714         * config.in: Ditto.
3715
3716 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
3717             Denys Vlasenko  <dvlasenk@redhat.com>
3718             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3719
3720         PR tree-optimization/28632
3721         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
3722         (extract_range_from_binary_expr): Further optimize
3723         BIT_AND_EXPR and BIT_IOR_EXPR.
3724
3725 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
3726
3727         * tree-if-conv.c (fold_or_predicates): New.
3728         (add_to_predicate_list): Call it.
3729
3730 2010-07-09  Richard Guenther  <rguenther@suse.de>
3731
3732         PR middle-end/44890
3733         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
3734         if base is a pointer.
3735         * tree-cfg.c (verify_expr): Update MEM_REF checking.
3736
3737 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3738
3739         PR target/44877
3740         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
3741         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
3742         builtin mask for load/store builtins.
3743
3744 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3745
3746         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
3747         for "lock addl".
3748         * configure: Regenerate.
3749         * config/i386/i386.c (ix86_print_operand) <case ';'>:
3750         Remove TARGET_MACHO.
3751
3752 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
3753
3754         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
3755         default ISA flags.
3756         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
3757
3758 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
3759
3760         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
3761
3762 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3763
3764         * config/picochip/picochip.md (commsTestPort): Emit more
3765         efficient sequence for tstport instruction.
3766
3767 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3768
3769         * config/i386/i386.c (ix86_veclib_handler): Make static.
3770
3771 2010-07-09  Richard Guenther  <rguenther@suse.de>
3772
3773         PR tree-optimization/44852
3774         * tree-ssa-alias.c: Include toplev.h for exact_log2.
3775         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
3776         in MEM_REF.
3777         (indirect_refs_may_alias_p): Likewise.
3778         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
3779
3780 2010-07-09  Richard Guenther  <rguenther@suse.de>
3781
3782         PR tree-optimization/44882
3783         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
3784         sets do conflict.
3785         (vectorizable_load): Likewise.
3786
3787 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
3788
3789         PR target/40657
3790         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
3791         All callers changed.
3792         Handle the case when we're called for the epilogue.
3793         (thumb_unexpanded_epilogue): Use it.
3794         (thumb1_expand_epilogue): Likewise.
3795
3796 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
3797
3798         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
3799         both ranges are range_int_cst_p with non-negative minimum,
3800         try harder to derive smaller range.
3801
3802 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3803
3804         * genrecog.c: Include diagnostic-core.h before toplev.h.
3805         * genoutput.c: Likewise.
3806         * genextract.c: Likewise.
3807         * genautomata.c: Likewise.
3808         * genemit.c: Likewise.
3809         * genpeep.c: Likewise.
3810         * genattrtab.c: Likewise.
3811         * genconditions.c: Likewise.
3812         * genpreds.c: Likewise.
3813
3814 2010-07-08  Andi Kleen  <ak@linux.intel.com>
3815
3816         * lto-section-in.c (lto_section_name): Add missing comma.
3817
3818 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
3819
3820         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
3821         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
3822         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
3823         (ia64_override_options): Rename to...
3824         (ia64_option_override): ... this one. Make static.
3825
3826 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3827
3828         PR middle-end/44843
3829         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
3830         pointed-to type of the offset in a MEM_REF to compute the alignment.
3831
3832 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
3833
3834         * final.c (final_scan_insn): Replace
3835         TARGET_UNWIND_INFO macro check by unwind_emit
3836         hook NULL check.
3837         * targhooks.c (default_unwind_emit): Removed.
3838         * targhooks.h (default_unwind_emit): Likewise.
3839         * target.def (unwind_emit): Set default value to NULL.
3840
3841         * config/i386/i386-protos.h (ix86_asm_output_function_label):
3842         New prototype.
3843         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
3844         for NULL fntype argument and allow 64-bit targets.
3845         (ix86_asm_output_function_label): New function.
3846         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
3847         (ix86_handle_fndecl_attribute): Likewise.
3848         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
3849         * doc/doc/tm.texi: Regenerated.
3850         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
3851         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
3852         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
3853         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
3854         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3855         * config/elfos.h: Likewise.
3856         * config/i386/cygming.h: Likewise.
3857         * config/netbsd-aout.h: Likewise.
3858         * config/openbsd.h: Likewise.
3859         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
3860         by ix86_asm_output_function_label function call.
3861         * varasm.c (assemble_start_function): Use
3862         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3863
3864 2010-07-08  Jan Hubicka  <jh@suse.cz>
3865
3866         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
3867         New function.
3868         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
3869         Declare.
3870         * ipa-cp.c (ipcp_estimate_growth): Use it.
3871         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
3872         Likewise.
3873
3874 2010-07-08  Jan Hubicka  <jh@suse.cz>
3875
3876         * tree-inline.c (declare_return_variable): Allocate annotation for new
3877         temporary.
3878
3879 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3880
3881         PR tree-optimization/44710
3882         * tree-if-conv.c (parse_predicate): New.
3883         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
3884         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
3885
3886 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3887
3888         * common.opt (ftree-loop-if-convert): New flag.
3889         * doc/invoke.texi (ftree-loop-if-convert): Documented.
3890         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
3891         when flag_tree_loop_if_convert is set.
3892
3893 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
3894
3895         * config/i386/i386.c: Use short syntax for function calls
3896         through function pointers.
3897         * config/i386/i386.md: Ditto.
3898
3899 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3900
3901         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
3902
3903 2010-07-08  Richard Guenther  <rguenther@suse.de>
3904
3905         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
3906         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
3907
3908 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
3909
3910         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
3911         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
3912         (loc_list_from_tree): Likewise.
3913         (output_loc_operands): Handle outputting DW_OP_const[48]u
3914         with loc->dtprel set.
3915         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
3916
3917 2010-07-08  Jan Hubicka  <jh@suse.cz>
3918
3919         * ipa.c: Include pointer-set.h
3920         (cgraph_externally_visible_p): New attribute ALIASED;
3921         when in LTO, hidden symbols are local unless they are aliased.
3922         (function_and_variable_visibility): Compute aliased nodes;
3923         handle LTO and hidden symbol on functions and vars.
3924         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
3925         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
3926
3927 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3928
3929         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3930         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3931         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3932         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3933         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3934         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
3935         (ix86_gen_probe_stack_range): Likewise.
3936         (override_options): Set them.
3937         (ix86_target_stack_probe): New function.
3938         (ix86_compute_frame_layout): Force use of push instructions to
3939         save registers if stack checking with probes is enabled.
3940         (get_scratch_register_on_entry): New function.
3941         (release_scratch_register_on_entry): Likewise.
3942         (ix86_adjust_stack_and_probe): Likewise.
3943         (output_adjust_stack_and_probe): Likewise.
3944         (ix86_emit_probe_stack_range): Likewise.
3945         (output_probe_stack_range): Likewise.
3946         (ix86_expand_prologue): Emit stack checking code if static built-in
3947         stack checking is enabled.
3948         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
3949         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
3950         (output_adjust_stack_and_probe): Likewise.
3951         (output_probe_stack_range): Likewise.
3952         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3953         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
3954         TARGET_STACK_PROBE.
3955         (allocate_stack_worker_64): Likewise.
3956         (allocate_stack): Likewise.
3957         (adjust_stack_and_probe): New insn.
3958         (probe_stack_range): Likewise.
3959
3960 2010-07-08  Richard Guenther  <rguenther@suse.de>
3961
3962         PR tree-optimization/44831
3963         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
3964         a MEM_REF preserving TBAA info of the original dereference.
3965         Dereference the original pointer if the address is not invariant.
3966         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
3967         at least one invariant address that we are going to dereference.
3968
3969 2010-07-08  Richard Guenther  <rguenther@suse.de>
3970
3971         PR tree-optimization/44861
3972         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
3973         information when building MEM_REFs.
3974         (vectorizable_load): Likewise.
3975         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
3976
3977 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3978
3979         * config/sol2-c.c: Do not include diagnostic-core.h.
3980
3981 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3982
3983         PR bootstrap/44768
3984         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
3985         with respect to current_function_decl. Pass decl of the function.
3986         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
3987         * ipa-inline.c (compute_inline_parameters): Pass decl to
3988         estimated_stack_frame_size.
3989
3990 2010-07-08  Richard Guenther  <rguenther@suse.de>
3991
3992         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3993         New function.
3994         (valueize_refs): Call it.
3995
3996 2010-07-08  Richard Guenther  <rguenther@suse.de>
3997
3998         PR rtl-optimization/44838
3999         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
4000         SSA form do not use pointer equivalence.
4001
4002 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
4003
4004         * dwarf2out.c (AT_linkage_name): Delete.
4005         (add_linkage_attr): New function.
4006         (add_linkage_name): Call it to emit the linkage attribute.
4007         (dwarf2out_finish): Likewise.
4008         (move_linkage_attr): Explicitly accept both attribute variants.
4009
4010 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4011
4012         * toplev.h: Do not include diagnostic-core.h.
4013         Include diagnostic-core.h in every file that includes toplev.h.
4014         * c-tree.h: Do not include toplev.h.
4015         * pretty-print.h: Update comment.
4016         * Makefile.in: Update dependencies.
4017         * alias.c: Include diagnostic-core.h in every file that includes
4018         toplev.h.
4019         * attribs.c: Likewise.
4020         * auto-inc-dec.c: Likewise.
4021         * bb-reorder.c: Likewise.
4022         * bt-load.c: Likewise.
4023         * caller-save.c: Likewise.
4024         * calls.c: Likewise.
4025         * cfg.c: Likewise.
4026         * cfganal.c: Likewise.
4027         * cfgbuild.c: Likewise.
4028         * cfgcleanup.c: Likewise.
4029         * cfghooks.c: Likewise.
4030         * cfgloop.c: Likewise.
4031         * combine.c: Likewise.
4032         * config/alpha/alpha.c: Likewise.
4033         * config/arc/arc.c: Likewise.
4034         * config/arm/arm.c: Likewise.
4035         * config/arm/pe.c: Likewise.
4036         * config/avr/avr.c: Likewise.
4037         * config/bfin/bfin.c: Likewise.
4038         * config/cris/cris.c: Likewise.
4039         * config/crx/crx.c: Likewise.
4040         * config/darwin-c.c: Likewise.
4041         * config/darwin.c: Likewise.
4042         * config/fr30/fr30.c: Likewise.
4043         * config/frv/frv.c: Likewise.
4044         * config/h8300/h8300.c: Likewise.
4045         * config/host-darwin.c: Likewise.
4046         * config/i386/i386.c: Likewise.
4047         * config/i386/netware.c: Likewise.
4048         * config/i386/nwld.c: Likewise.
4049         * config/i386/winnt-cxx.c: Likewise.
4050         * config/i386/winnt-stubs.c: Likewise.
4051         * config/i386/winnt.c: Likewise.
4052         * config/ia64/ia64-c.c: Likewise.
4053         * config/ia64/ia64.c: Likewise.
4054         * config/iq2000/iq2000.c: Likewise.
4055         * config/lm32/lm32.c: Likewise.
4056         * config/m32c/m32c-pragma.c: Likewise.
4057         * config/m32c/m32c.c: Likewise.
4058         * config/m32r/m32r.c: Likewise.
4059         * config/m68hc11/m68hc11.c: Likewise.
4060         * config/m68k/m68k.c: Likewise.
4061         * config/mcore/mcore.c: Likewise.
4062         * config/mep/mep-pragma.c: Likewise.
4063         * config/mep/mep.c: Likewise.
4064         * config/mmix/mmix.c: Likewise.
4065         * config/mn10300/mn10300.c: Likewise.
4066         * config/moxie/moxie.c: Likewise.
4067         * config/pa/pa.c: Likewise.
4068         * config/pdp11/pdp11.c: Likewise.
4069         * config/picochip/picochip.c: Likewise.
4070         * config/rs6000/rs6000-c.c: Likewise.
4071         * config/rs6000/rs6000.c: Likewise.
4072         * config/rx/rx.c: Likewise.
4073         * config/s390/s390.c: Likewise.
4074         * config/score/score.c: Likewise.
4075         * config/score/score3.c: Likewise.
4076         * config/score/score7.c: Likewise.
4077         * config/sh/sh.c: Likewise.
4078         * config/sh/symbian-base.c: Likewise.
4079         * config/sh/symbian-c.c: Likewise.
4080         * config/sh/symbian-cxx.c: Likewise.
4081         * config/sol2-c.c: Likewise.
4082         * config/sol2.c: Likewise.
4083         * config/sparc/sparc.c: Likewise.
4084         * config/spu/spu.c: Likewise.
4085         * config/stormy16/stormy16.c: Likewise.
4086         * config/v850/v850-c.c: Likewise.
4087         * config/v850/v850.c: Likewise.
4088         * config/vax/vax.c: Likewise.
4089         * config/vxworks.c: Likewise.
4090         * config/xtensa/xtensa.c: Likewise.
4091         * convert.c: Likewise.
4092         * cse.c: Likewise.
4093         * cselib.c: Likewise.
4094         * dbgcnt.c: Likewise.
4095         * dbxout.c: Likewise.
4096         * ddg.c: Likewise.
4097         * dominance.c: Likewise.
4098         * emit-rtl.c: Likewise.
4099         * explow.c: Likewise.
4100         * expmed.c: Likewise.
4101         * fixed-value.c: Likewise.
4102         * fold-const.c: Likewise.
4103         * fwprop.c: Likewise.
4104         * gcse.c: Likewise.
4105         * ggc-common.c: Likewise.
4106         * ggc-page.c: Likewise.
4107         * ggc-zone.c: Likewise.
4108         * gimple-low.c: Likewise.
4109         * gimplify.c: Likewise.
4110         * graph.c: Likewise.
4111         * haifa-sched.c: Likewise.
4112         * ifcvt.c: Likewise.
4113         * implicit-zee.c: Likewise.
4114         * integrate.c: Likewise.
4115         * ira-build.c: Likewise.
4116         * ira-color.c: Likewise.
4117         * ira-conflicts.c: Likewise.
4118         * ira-costs.c: Likewise.
4119         * ira-lives.c: Likewise.
4120         * ira.c: Likewise.
4121         * lists.c: Likewise.
4122         * loop-doloop.c: Likewise.
4123         * loop-iv.c: Likewise.
4124         * lto-opts.c: Likewise.
4125         * lto-symtab.c: Likewise.
4126         * main.c: Likewise.
4127         * modulo-sched.c: Likewise.
4128         * optabs.c: Likewise.
4129         * params.c: Likewise.
4130         * plugin.c: Likewise.
4131         * postreload-gcse.c: Likewise.
4132         * postreload.c: Likewise.
4133         * predict.c: Likewise.
4134         * profile.c: Likewise.
4135         * real.c: Likewise.
4136         * regcprop.c: Likewise.
4137         * reginfo.c: Likewise.
4138         * regmove.c: Likewise.
4139         * reorg.c: Likewise.
4140         * resource.c: Likewise.
4141         * rtl.c: Likewise.
4142         * rtlanal.c: Likewise.
4143         * sched-deps.c: Likewise.
4144         * sched-ebb.c: Likewise.
4145         * sched-rgn.c: Likewise.
4146         * sdbout.c: Likewise.
4147         * sel-sched-dump.c: Likewise.
4148         * sel-sched-ir.c: Likewise.
4149         * simplify-rtx.c: Likewise.
4150         * stmt.c: Likewise.
4151         * stor-layout.c: Likewise.
4152         * store-motion.c: Likewise.
4153         * targhooks.c: Likewise.
4154         * tree-cfg.c: Likewise.
4155         * tree-cfgcleanup.c: Likewise.
4156         * tree-dump.c: Likewise.
4157         * tree-eh.c: Likewise.
4158         * tree-inline.c: Likewise.
4159         * tree-nomudflap.c: Likewise.
4160         * tree-object-size.c: Likewise.
4161         * tree-optimize.c: Likewise.
4162         * tree-outof-ssa.c: Likewise.
4163         * tree-phinodes.c: Likewise.
4164         * tree-profile.c: Likewise.
4165         * tree-ssa-ccp.c: Likewise.
4166         * tree-ssa-coalesce.c: Likewise.
4167         * tree-ssa-live.c: Likewise.
4168         * tree-ssa-loop-niter.c: Likewise.
4169         * tree-ssa-loop-prefetch.c: Likewise.
4170         * tree-ssa-loop.c: Likewise.
4171         * tree-ssa-structalias.c: Likewise.
4172         * tree-ssa-uninit.c: Likewise.
4173         * tree-ssa.c: Likewise.
4174         * tree-vect-data-refs.c: Likewise.
4175         * tree-vect-loop-manip.c: Likewise.
4176         * tree-vect-loop.c: Likewise.
4177         * tree-vect-patterns.c: Likewise.
4178         * tree-vect-stmts.c: Likewise.
4179         * tree-vrp.c: Likewise.
4180         * varasm.c: Likewise.
4181         * vec.c: Likewise.
4182         * web.c: Likewise.
4183         * xcoffout.c: Likewise.
4184
4185 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
4186
4187         * gengtype.c (write_field_root): New function.
4188         (write_root): Use it.
4189
4190 2010-07-07  Wei Guozhi  <carrot@google.com>
4191
4192         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
4193         of lowest bits to lshift/compare): Add a missing line.
4194
4195 2010-07-07  Wei Guozhi  <carrot@google.com>
4196
4197         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
4198         of lowest bits to lshift/compare): New.
4199
4200 2010-07-07  Tom Tromey  <tromey@redhat.com>
4201
4202         * doc/tm.texi: Update.
4203         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
4204         Add @hook.
4205         * target.def (want_debug_pub_sections): New hook.
4206         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
4207         * dwarf2out.c (add_pubname_string): Check
4208         targetm.want_debug_pub_sections.
4209         (add_pubname): Likewise.
4210         (add_pubtype): Likewise.
4211
4212 2010-07-07  Jie Zhang  <jie@codesourcery.com>
4213
4214         * genautomata.c (output_automata_list_min_issue_delay_code):
4215         Correctly decompress min_issue_delay.
4216
4217 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4218
4219         PR rtl-optimization/44404
4220         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
4221         possible, use reg_overlap_mentioned_p instead.
4222
4223 2010-07-07  Duncan Sands  <baldrick@free.fr>
4224
4225         PR middle-end/41355
4226         * tree.c (build_function_type_skip_args): Copy the original type using
4227         build_distinct_type_copy rather than copy_node.
4228
4229 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
4230
4231         PR target/44850
4232         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
4233         revision 161876.
4234         (ix86_expand_prologue): Likewise.
4235         (ix86_handle_fndecl_attribute): Likewise.
4236         (ix86_asm_declare_function_name): Likewise.
4237         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4238         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4239         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
4240         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
4241         * doc/extend.texi: Likewise.
4242
4243 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
4244
4245         PR target/44844
4246         * config/i386/i386.md (rdrand<mode>): Changed to expand to
4247         retry if the carry flag isn't valid.
4248         (rdrand<mode>_1): New.
4249
4250 2010-07-07  Richard Guenther  <rguenther@suse.de>
4251
4252         PR middle-end/44790
4253         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
4254         for expanding the constant offset for MEM_REFs.
4255
4256 2010-07-07  Richard Guenther  <rguenther@suse.de>
4257
4258         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
4259         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
4260         * gimple.h (is_gimple_operand): Remove.
4261         * gimple.c (is_gimple_operand): Likewise.
4262         (walk_gimple_op): Fix wi->val_only setting for calls.
4263         * tree-cfg.c (verify_gimple_call): Fix argument validation.
4264         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
4265         invalid gimple calls.
4266
4267 2010-07-06  Jan Hubicka  <jh@suse.cz>
4268
4269         * lto-cgraph.c (output_cgraph): Add missing declaration.
4270
4271 2010-07-06  Jan Hubicka  <jh@suse.cz>
4272
4273         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
4274         partition.
4275
4276 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
4277
4278         * doc/gimple.texi (GIMPLE_DEBUG): Document.
4279         * doc/rtl.texi (Debug Information): New node.
4280         (NOTE_INSN_VAR_LOCATION): Document.
4281         (debug_insn): Likewise.
4282         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
4283
4284 2010-07-07  Jan Hubicka  <jh@suse.cz>
4285
4286         With parts by Richard Guenther.
4287
4288         PR middle-end/44813
4289         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
4290         for functions passed by reference.
4291         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
4292         in memory when passed by reference.
4293         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
4294         beggining.
4295         * ipa-split.c (split_function): Cleanup way return value is passed;
4296         handle SSA DECL_BY_REFERENCE retvals.
4297         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
4298         DECL_BY_REFERENCE is set.
4299         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
4300         find_what_p_points_to): Handle RESULT_DECL.
4301         * tree-inline.c (declare_return_variable): Get new entry_block argument;
4302         when passing by reference ensure that RESULT_DECL is gimple_val.
4303         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
4304         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
4305
4306 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4307
4308         PR rtl-optimization/44787
4309         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
4310         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
4311
4312 2010-07-06  Jan Hubicka  <jh@suse.cz>
4313
4314         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
4315         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
4316         with body can prevail.
4317         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
4318         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
4319         * cgraph.c (cgraph_get_node_or_alias): New function.
4320         * cgraph.h (cgraph_get_node_or_alias): Declare.
4321
4322 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
4323
4324         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
4325         support.
4326         (ix86_expand_prologue): Likewise.
4327         (ix86_handle_fndecl_attribute): Likewise.
4328         (ix86_asm_declare_function_name): New function for
4329         ASM_DECLARE_FUNCTION_NAME.
4330         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
4331         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
4332         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
4333         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
4334         * doc/extend.texi: Adjust documentation about ms_hook_prologue
4335         attribute.
4336
4337 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
4338
4339         * config/i386/i386.md (immediate_operand): New mode attribute.
4340
4341         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
4342         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
4343         using P mode iterator.
4344         (pro_epilogue_adjust_stack_di_2): Rename from
4345         pro_epilogue_adjust_stack_rex64_2.
4346
4347         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
4348
4349 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
4350
4351         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
4352         through gen_mov_insv_1 function pointer.
4353         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
4354         gen_truncxf<mode>2 through gen_truncxf function pointer.
4355         (remainder<mode>3): Ditto.
4356         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
4357         (allocate_stack): Call gen_allocate_stack_worker_64 or
4358         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
4359         function pointer.
4360         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
4361         function pointer.
4362
4363 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
4364
4365         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
4366         operand constraint instead of <r><i>m.
4367
4368 2010-07-06  Richard Guenther  <rguenther@suse.de>
4369
4370         PR middle-end/44828
4371         * convert.c (convert_to_integer): Watch out for overflowing
4372         MULT_EXPR as well.
4373
4374 2010-07-05  Jan Hubicka  <jh@suse.cz>
4375
4376         * lto-streamer.c (write_symbol_vec): Rename to ...
4377         (write_symbol) ... this one; write only symbol given and when
4378         present in cache. Sanity check that what is defined is present
4379         in cgraph/varpool with body/finalized decl.
4380         (write_symbols_of_kind): Remove.
4381         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
4382         pairs to produce symtab.
4383         (produce_asm_for_decls): Update call of produce_symtab; don't do so
4384         when doing WPA streaming.
4385
4386 2010-07-05  Jan Hubicka  <jh@suse.cz>
4387
4388         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
4389         function is still available to fold into.
4390
4391 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
4392
4393         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
4394         * function.h (struct_function): Change type of local_decls field
4395         to a VEC.
4396         (add_local_decl): New function.
4397         (FOR_EACH_LOCAL_DECL): New macro.
4398         * cfgexpand.c (init_vars_expansion): Adjust for new type of
4399         cfun->local_decls.
4400         (estimated_stack_frame_size): Likewise.
4401         (expand_used_vars): Likewise.
4402         * cgraphbuild.c (build_cgraph_edges): Likewise.
4403         * function.c (instantiate_decls_1): Likewise.
4404         * ipa-struct-reorg.c (build_data_structure): Likewise.
4405         * ipa-type-escape.c (analyze_function): Likewise.
4406         * lto-streamer-in.c (input_function): Likewise.
4407         * lto-streamer-out.c (output_function): Likewise.
4408         * tree-ssa-live.c (remove_unused_locals): Likewise.
4409         * tree.c (free_lang_data_in_decl): Likewise.
4410         (find_decls_types_in_node): Likewise.
4411         * omp-low.c (remove_exit_barrier): Likewise.
4412         (expand_omp_taskreg): Likewise.
4413         (list2chain): Rename to...
4414         (vec2chain): ...this.  Adjust.
4415         * cgraphunit.c (assemble_thunk): Call add_local_decl.
4416         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
4417         * gimple-low.c (record_vars_into): Likewise.
4418         * tree-inline.c (remap_decls): Likewise.
4419         (declare_return_variable): Likewise.
4420         (declare_inline_vars): Likewise.
4421         (copy_forbidden): Adjust for new type of cfun->local_decls.
4422         (add_local_variables): New function.
4423         (expand_call_inline): Call it.
4424         (tree_function_versioning): Likewise.
4425
4426 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
4427
4428         AVX Programming Reference (June, 2010)
4429         * config/i386/cpuid.h (bit_F16C): New.
4430         (bit_RDRND): Likewise.
4431         (bit_FSGSBASE): Likewise.
4432
4433         * config/i386/i386-builtin-types.def: Add
4434         "DEF_FUNCTION_TYPE (UINT16)", function types for
4435         float16 <-> float conversions and
4436         "DEF_FUNCTION_TYPE (VOID, UINT64)".
4437
4438         * config/i386/i386-c.c (ix86_target_macros_internal): Support
4439         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
4440         OPTION_MASK_ISA_F16C.
4441
4442         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
4443         (OPTION_MASK_ISA_RDRND_SET): Likewise.
4444         (OPTION_MASK_ISA_F16C_SET): Likewise.
4445         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
4446         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
4447         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
4448         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
4449         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
4450         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
4451         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
4452         (override_options): Handle them.
4453         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
4454         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
4455         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
4456         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
4457         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
4458         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
4459         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
4460         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
4461         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
4462         (bdesc_args): Likewise.
4463         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
4464         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
4465         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
4466         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
4467         Handle non-memory store.
4468
4469         * config/i386/i386.h (TARGET_FSGSBASE): New.
4470         (TARGET_RDRND): Likewise.
4471         (TARGET_F12C): Likewise.
4472
4473         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
4474         (UNSPEC_VCVTPS2PH): Likewise.
4475         (UNSPECV_RDFSBASE): Likewise.
4476         (UNSPECV_RDGSBASE): Likewise.
4477         (UNSPECV_WRFSBASE): Likewise.
4478         (UNSPECV_WRGSBASE): Likewise.
4479         (UNSPECV_RDRAND): Likewise.
4480         (rdfsbase<mode>): Likewise.
4481         (rdgsbase<mode>): Likewise.
4482         (wrfsbase<mode>): Likewise.
4483         (wrgsbase<mode>): Likewise.
4484         (rdrand<mode>): Likewise.
4485
4486         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
4487
4488         * config/i386/immintrin.h (_rdrand_u16): New.
4489         (_rdrand_u32): Likewise.
4490         (_readfsbase_u32): Likewise.
4491         (_readfsbase_u64): Likewise.
4492         (_readgsbase_u32): Likewise.
4493         (_readgsbase_u64): Likewise.
4494         (_writefsbase_u32): Likewise.
4495         (_writefsbase_u64): Likewise.
4496         (_writegsbase_u32): Likewise.
4497         (_writegsbase_u64): Likewise.
4498         (_rdrand_u64): Likewise.
4499         (_cvtsh_ss): Likewise.
4500         (_mm_cvtph_ps): Likewise.
4501         (_mm256_cvtph_ps): Likewise.
4502         (_cvtss_sh): Likewise.
4503         (_mm_cvtps_ph): Likewise.
4504         (_mm256_cvtps_ph): Likewise.
4505
4506         * config/i386/sse.md (vcvtph2ps): New.
4507         (*vcvtph2ps_load): Likewise.
4508         (vcvtph2ps256): Likewise.
4509         (vcvtps2ph): Likewise.
4510         (*vcvtps2ph): Likewise.
4511         (*vcvtps2ph_store): Likewise.
4512         (vcvtps2ph256): Likewise.
4513
4514         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
4515
4516         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
4517
4518 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
4519
4520         PR bootstrap/44512
4521         * genenums.c (main): Output include of insn-constants.h
4522         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
4523
4524 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
4525
4526         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
4527         (override_options): Initialize it.
4528         (ix86_expand_prologue): Use it.
4529
4530 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
4531
4532         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
4533
4534 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
4535
4536         * double-int.h (fit_double_type): Remove declaration.
4537         * double-int.c (fit_double_type): Remove function.
4538         * tree.h (int_fits_type_p): Adjust prototype.
4539         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
4540         instead of fit_double_type.
4541         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
4542         instead of fit_double_type and build_int_cst_wide.
4543         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
4544         instead of fit_double_type and build_int_cst_wide.
4545         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
4546         of fit_double_type.
4547
4548 2010-07-05  Jan Hubicka  <jh@suse.cz>
4549
4550         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
4551         in_other_partition.
4552         * lto-cgraph.c (referenced_from_other_partition_p,
4553         reachable_from_other_partition_p): Use in_other_partition flags.
4554         (output_node, output_varpool_node): COMDAT nodes always have private
4555         copies and thus are never used from other partition.
4556
4557 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
4558
4559         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4560         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
4561         * config/ia64/ia64.c Include reload.h.
4562         (ia64_memory_move_cost): New function.
4563         (TARGET_MEMORY_MOVE_COST): Define.
4564         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
4565         memory_move_cost.
4566
4567 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
4568
4569         PR middle-end/42505
4570         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
4571         comments about cost model.
4572         (try_add_cand_for):  Add second strategy for choosing initial set
4573         based on original IVs, controlled by ORIGINALP argument.
4574         (get_initial_solution): Add ORIGINALP argument.
4575         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
4576         (find_optimal_iv_set): Try two different strategies for choosing
4577         the IV set, and return the one with lower cost.
4578
4579 2010-07-05  Richard Guenther  <rguenther@suse.de>
4580
4581         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
4582
4583 2010-07-05  Richard Guenther  <rguenther@suse.de>
4584
4585         * tree.c (reference_alias_ptr_type): New function.
4586         * tree.h (reference_alias_ptr_type): Declare.
4587         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
4588         allow non-TARGET_MEM_REF new refs.
4589         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
4590         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
4591         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
4592         (create_mem_ref): Get alias pointer type.  Adjust calls to
4593         create_mem_ref_raw.
4594         (maybe_fold_tmr): Likewise.
4595         * tree-flow.h (create_mem_ref): Adjust prototype.
4596
4597 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
4598
4599         PR c++/44808
4600         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
4601         *from_p is VAR_DECL.
4602
4603 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
4604
4605         * tree.h (build_call_list): Remove.
4606         * tree.c (build_call_list): Remove.
4607
4608 2010-07-05  Richard Guenther  <rguenther@suse.de>
4609
4610         * double-int.h (double_int_sub): Declare.
4611         * double-int.c (double_int_sub): New function.
4612         * dwarf2out.c (field_byte_offset): Use it.
4613         * fixed-value.c (do_fixed_add): Likewise.
4614         (do_fixed_multiply): Likewise.
4615         (do_fixed_divide): Likewise.
4616         * tree-predcom.c (add_ref_to_chain): Likewise.
4617         (determine_roots_comp): Likewise.
4618         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
4619
4620 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
4621
4622         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
4623         implementations.
4624
4625 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
4626
4627         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
4628         * arm-modes.def (CC_NOTB): Don't define.
4629         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
4630         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
4631         (LTUGEU): New code_iterator.
4632         (cnb, optab): New corresponding code_attrs.
4633         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
4634         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
4635         using LTUGEU.
4636         (addsi3_carryin_shift_<optab>): Likewise.
4637         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
4638         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
4639         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
4640         (subsi3_compare): Renamed from subsi3_compare0_c.
4641         Change CC_NOTB to CC.
4642         (arm_subsi3_insn): Allow constants for operand 0.
4643         (compare_scc peephole for eq case): New.
4644         (compare_scc splitters): Change CC_NOTB to CC.
4645
4646 2010-07-05  Richard Guenther  <rguenther@suse.de>
4647
4648         * tree-ssa-loop-im.c (for_each_index): Do not handle
4649         ALIGN_INDIRECT_REF.
4650         (gen_lsm_tmp_name): Likewise.
4651         * tree-dump.c (dequeue_and_dump): Likewise.
4652         * tree-pretty-print.c (dump_generic_node): Likewise.
4653         (op_code_prio): Likewise.
4654         (op_symbol_code): Likewise.
4655         * tree.c (staticp): Likewise.
4656         (build1_stat): Likewise.
4657         * tree.h (INDIRECT_REF_P): Likewise.
4658         * fold-const.c (maybe_lvalue_p): Likewise.
4659         (operand_equal_p): Likewise.
4660         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4661         (ao_ref_init_from_vn_reference): Likewise.
4662         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
4663         (find_interesting_uses_address): Likewise.
4664         * dwarf2out.c (loc_list_from_tree): Likewise.
4665         * gimplify.c (gimplify_expr): Likewise.
4666         * tree-eh.c (tree_could_trap_p): Likewise.
4667         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4668         * cfgexpand.c (expand_debug_expr): Likewise.
4669         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4670         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
4671         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
4672         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
4673         * tree-ssa-operands.c (get_expr_operands): Likewise.
4674         * expr.c (safe_from_p): Likewise.
4675         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
4676         * tree-vect-data-refs.c (vect_setup_realignment): Build
4677         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
4678         * tree-vect-stmts.c (vectorizable_load): Likewise.
4679         * tree.def (ALIGN_INDIRECT_REF): Remove.
4680
4681 2010-07-05  Richard Guenther  <rguenther@suse.de>
4682
4683         PR tree-optimization/44784
4684         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
4685         for inserted stmts.
4686         (find_or_generate_expression): Fix SCCVN insertion check.
4687
4688 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
4689
4690         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
4691         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
4692         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
4693         directives.
4694
4695 2010-07-05  Ira Rosen  <irar@il.ibm.com>
4696
4697         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
4698         statements that are not vectorized.
4699         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
4700         in INSIDE_COST.
4701
4702 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
4703
4704         PR bootstrap/44820
4705         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
4706
4707 2010-07-05  Richard Guenther  <rguenther@suse.de>
4708
4709         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
4710         RESULT_DECLs properly.
4711
4712 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4713
4714         PR rtl-optimization/44695
4715         * config/i386/i386.md (extract_code): Removed.
4716         (<u>divmodqi4): Likewise.
4717         (divmodqi4): New.
4718         (udivmodqi4): Likewise.
4719         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
4720         (udivmodhiqi3): Likewise.
4721
4722 2010-07-04  Jan Hubicka  <jh@suse.cz>
4723
4724         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
4725
4726 2010-07-04  Jan Hubicka  <jh@suse.cz>
4727
4728         * cgraphunit.c (init_cgraph): Only initialize dump file if it
4729         is not already initialized.
4730
4731 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4732
4733         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
4734         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
4735         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
4736         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
4737         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
4738         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
4739         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
4740         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
4741         (sync_new_nand_optab): Redefine as macros.
4742         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
4743         Delete.
4744         (direct_optab_index): New enum.
4745         (direct_optab_d): New structure.
4746         (direct_optab): New typedef.
4747         (direct_optab_table): Declare.
4748         (direct_optab_handler, set_direct_optab_handler): New functions.
4749         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
4750         (sync_lock_release_optab): New macros.
4751         * optabs.c (direct_optab_table): New variable.
4752         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
4753         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
4754         cmpstr_optab and cmpstrn_optab.
4755         (emit_conditional_move): Likewise for movcc_optab.
4756         (can_conditionally_move_p): Likewise for movcc_gen_code.
4757         (init_insn_codes): Clear direct_optab_table.
4758         (init_optabs): Don't initialize the new "direct optabs" here.
4759         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
4760         vcond_gen_code.
4761         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
4762         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
4763         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
4764         (expand_sync_operation): Likewise other sync_*_optabs.
4765         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
4766         to sync_compare_and_swap_optab.
4767         (expand_sync_lock_test_and_set): Use direct_optab_handler for
4768         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
4769         to the names of both.
4770         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
4771         cmpstr_optab and cmpstrn_optab.
4772         (expand_builtin_lock_release): Likewise sync_lock_release.
4773         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
4774         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
4775         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
4776         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
4777         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
4778         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
4779         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
4780         (sync_lock_test_and_set, sync_lock_release): Delete.
4781         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
4782         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
4783         * genopinit.c (optabs): Use set_direct_optab_handler for the new
4784         macro optabs.
4785         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
4786         the "optab" local variable.  Use direct_optab_handler for optab and
4787         sync_compare_and_swap_optab.
4788         * reload1.c (reload_in_optab, reload_out_optab): Delete.
4789         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
4790         reload_in_optab and reload_out_optab.
4791         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4792         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
4793         * config/pa/pa.c (pa_secondary_reload): Likewise.
4794         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
4795         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
4796         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
4797         (VMSupportsCS8_builtin): Likewise.
4798
4799 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4800
4801         * optabs.h (optab_handlers): Change type of insn_code to int.
4802         (optab_handler, set_optab_handler, convert_optab_handler)
4803         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
4804         CODE_FOR_nothing".
4805         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
4806         (init_insn_codes): Zero both the above arrays.
4807         (init_optabs): Never call init_insn_codes first time around.
4808
4809 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4810
4811         * optabs.h (optab_handler, convert_optab_handler): Turn into
4812         inline functions that return an insn code.
4813         (set_optab_handler, set_convert_optab_handler): New functions.
4814         * builtins.c: Replace optab_handler(X)->insn_code with
4815         optab_handler or set_optab_handler thoughout.  Likewise
4816         convert_optab_handler(X)->insn_code with convert_optab_handler
4817         and set_convert_optab_handler.
4818         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
4819         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
4820         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
4821         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
4822         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
4823         config/spu/spu.c: Likewise.
4824
4825 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4826
4827         PR target/44531
4828         * config.gcc (sh*-*-*): Use regular expressions instead of
4829         the 'i' modifier for sed substitutions.
4830
4831 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
4832
4833         * gimple.c (gimple_body): Comments added.
4834
4835 2010-07-04  Richard Guenther  <rguenther@suse.de>
4836
4837         PR middle-end/44809
4838         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
4839         of an INDIRECT_REF.
4840
4841 2010-07-04  Richard Guenther  <rguenther@suse.de>
4842
4843         PR tree-optimization/44479
4844         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
4845         extra SSA name copy statements which preserves points-to
4846         information.
4847         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4848         Copy points-to information for all pointers.  Properly handle
4849         MEM_REFs.
4850         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
4851         copy statements.
4852         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
4853         dependency.
4854
4855 2010-07-04  Richard Guenther  <rguenther@suse.de>
4856
4857         PR middle-end/44785
4858         * tree-inline.c (initialize_inlined_parameters): Do not
4859         re-use pointer-map slot over remap_type call.
4860
4861 2010-07-04  Richard Guenther  <rguenther@suse.de>
4862
4863         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
4864
4865 2010-07-04  Richard Guenther  <rguenther@suse.de>
4866
4867         PR tree-optimization/44656
4868         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
4869         again after value-replacing in the defintions lhs.
4870
4871 2010-07-04  Ira Rosen  <irar@il.ibm.com>
4872             Revital Eres  <eres@il.ibm.com>
4873
4874         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
4875         Document new arguments.
4876         * doc/tm.texi: Regenerate.
4877         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
4878         Handle unaligned store.
4879         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
4880         * target.def (builtin_vectorization_cost): Add new arguments.
4881         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
4882         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
4883         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
4884         (vect_vfa_segment_size): Fix indentation.
4885         * tree-vectorizer.h (struct _vect_peel_info): New.
4886         (struct _vect_peel_extended_info): New.
4887         (struct _loop_vec_info): Add new field for peeling hash table and a
4888         macro for its access.
4889         (VECT_MAX_COST): Define.
4890         (vect_get_load_cost): Declare.
4891         (vect_get_store_cost, vect_get_known_peeling_cost,
4892         vect_get_single_scalar_iteraion_cost): Likewise.
4893         (vect_supportable_dr_alignment): Add new argument.
4894         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
4895         field.
4896         (destroy_loop_vec_info): Free peeling hash table.
4897         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
4898         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
4899         vect_analyze_slp. Fix indentation.
4900         (vect_get_single_scalar_iteraion_cost): New function.
4901         (vect_get_known_peeling_cost): Likewise.
4902         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
4903         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
4904         statement. Move outside cost calculation inside unknown peeling case.
4905         Call vect_get_known_peeling_cost for known amount of peeling.
4906         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
4907         reference to the print message of forced alignment.
4908         (vect_verify_datarefs_alignment): Update call to
4909         vect_supportable_dr_alignment.
4910         (vect_get_data_access_cost): New function.
4911         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
4912         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
4913         vect_peeling_hash_choose_best_peeling): Likewise.
4914         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
4915         to store all the accesses in the loop and find best possible access to
4916         align using peeling for known alignment case. For unknown alignment
4917         check if stores are preferred or if peeling is worthy.
4918         (vect_find_same_alignment_drs): Analyze pairs of loads too.
4919         (vect_supportable_dr_alignment): Add new argument and check aligned
4920         accesses according to it.
4921         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
4922         (cost_for_stmt): Call vect_get_stmt_cost.
4923         (vect_model_simple_cost): Likewise.
4924         (vect_model_store_cost): Call vect_get_stmt_cost. Call
4925         vect_get_store_cost to calculate the cost of the statement.
4926         (vect_get_store_cost): New function.
4927         (vect_model_load_cost): Call vect_get_stmt_cost. Call
4928         vect_get_load_cost to calculate the cost of the statement.
4929         (vect_get_load_cost): New function.
4930         (vectorizable_store): Update call to vect_supportable_dr_alignment.
4931         (vectorizable_load): Likewise.
4932         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
4933         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
4934         arguments. Handle unaligned store.
4935         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
4936         (rs6000_builtin_support_vector_misalignment): Return true for word and
4937         double word alignments for VSX.
4938         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
4939         vect_supportable_dr_alignment and builtin_vectorization_cost.
4940
4941 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4942
4943         PR target/44597
4944         * config/pa/predicates.md (prefetch_cc_operand): Remove.
4945         (prefetch_nocc_operand): Likewise.
4946         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
4947         (prefetch_20): New insn.
4948         (prefetch_cc): Remove.
4949         (prefetch_nocc): Likewise.
4950
4951 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4952
4953         * expr.c (vector_mode_valid_p): Move to c-common.c.
4954         * expr.h (vector_mode_valid_p): Do not declare here.
4955         * system.h: Poison GCC_EXPR_H in front-ends.
4956         * Makefile.in: Update dependencies.
4957
4958 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4959
4960         PR target/44705
4961         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
4962
4963 2010-07-03  Jan Hubicka  <jh@suse.cz>
4964
4965         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
4966         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
4967         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
4968         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
4969         Likewise.
4970
4971         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
4972         Update timevars.V
4973         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
4974         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
4975         TV_IPA_LTO_DECL_OUT): New.
4976         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
4977
4978 2010-07-03  Jan Hubicka  <jh@suse.cz>
4979
4980         * ipa-inline.c (update_edge_key): Break out from ...
4981         update_callers_keys): ... here;
4982         (update_callee_keys): Update only the edges from caller to callee.
4983         (update_all_calle_keys): Do what update_calle_keys did.
4984         (decide_inlining_of_small_functions): Avoid recomputing of all
4985         callees when badness increase.
4986
4987 2010-07-03  Jie Zhang  <jie@codesourcery.com>
4988
4989         * config/arm/arm.c (arm_attr_length_move_neon): New.
4990         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
4991         * config/arm/neon.md (define_mode_attr V_slen): Remove.
4992         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
4993         to compute length attribute.
4994
4995 2010-07-03  Jie Zhang  <jie@codesourcery.com>
4996
4997         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
4998         as predicate for operand 1 and remove its constraint.
4999         * config/arm/predicates.md (vfp_register_operand): New.
5000         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
5001         (*push_fp_multi): Likewise.
5002
5003 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
5004
5005         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
5006
5007 2010-07-03  Jan Hubicka  <jh@suse.cz>
5008
5009         * config/i386/i386.c (override_options): Revert accidental commit.
5010
5011 2010-07-02  Le-Chun Wu  <lcwu@google.com>
5012
5013         PR c++/44128
5014         * doc/invoke.texi: Update documentation of -Wshadow.
5015
5016 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
5017             Julian Brown  <julian@codesourcery.com>
5018             Sandra Loosemore <sandra@codesourcery.com>
5019
5020         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
5021         comparisons.  Adjust to take both operands.
5022         (arm_select_cc_mode): Handle DImode comparisons.
5023         (arm_gen_compare_reg): Generate a scratch register for DImode
5024         comparisons which require one.  Use xor for Thumb equality checks.
5025         (arm_const_double_by_immediates): New.
5026         (arm_print_operand): Allow 'Q' and 'R' for constants.
5027         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
5028         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
5029         arm_canonicalize_comparison.
5030         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
5031         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
5032         prototype.
5033         (arm_const_double_by_immediates): Declare.
5034         * config/arm/constraints.md (Di): New constraint.
5035         * config/arm/predicates.md (arm_immediate_di_operand)
5036         (arm_di_operand, cmpdi_operand): New.
5037         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
5038         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
5039         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
5040         (cstoredi4): Handle non-Cirrus also.
5041
5042 2010-07-02  Julian Brown  <julian@codesourcery.com>
5043             Sandra Loosemore <sandra@codesourcery.com>
5044
5045         PR target/43703
5046         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
5047         (smax<mode>3): Disable for NEON float modes when
5048         flag_unsafe_math_optimizations is false.
5049         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
5050         (*mul<mode>3_neon)
5051         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
5052         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
5053         for NEON float modes when flag_unsafe_math_optimizations is false.
5054         (quad_halves_<code>v4sf): Only enable if
5055         flag_unsafe_math_optimizations is true.
5056         * doc/invoke.texi (ARM Options): Add note about floating point
5057         vectorization requiring -funsafe-math-optimizations.
5058
5059 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
5060             Julian Brown  <julian@codesourcery.com>
5061
5062         * config/arm/neon.md (UNSPEC_VABA): Delete.
5063         (UNSPEC_VABAL): Delete.
5064         (UNSPEC_VABS): Delete.
5065         (UNSPEC_VMUL_N): Delete.
5066         (adddi3_neon): New.
5067         (subdi3_neon): New.
5068         (mul<mode>3add<mode>_neon): Make the pattern named.
5069         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
5070         (neon_vadd<mode>): Replace with define_expand, and move the remaining
5071         unspec parts...
5072         (neon_vadd<mode>_unspec): ...to this.
5073         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
5074         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
5075         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
5076         (neon_vaba<mode>): Rewrite in terms of vabd.
5077         (neon_vabal<mode>): Rewrite in terms of vabdl.
5078         (neon_vabs<mode>): Rewrite without unspec.
5079         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
5080         (*arm_subdi3): Likewise.
5081         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
5082         No_op attribute to disable assembly output checks.
5083         * config/arm/arm_neon.h: Regenerated.
5084         * doc/arm-neon-intrinsics.texi: Regenerated.
5085
5086 2010-07-02  Jan Hubicka  <jh@suse.cz>
5087
5088         * ipa-split.c (split_function): For aggregate values, set the return
5089         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
5090         *<retval> = fncall.part ().
5091         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
5092
5093 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
5094
5095         * config/arm/neon.md (UNSPEC_VAND): Delete.
5096         (UNSPEC_VBIC): Delete.
5097         (UNSPEC_VCLZ): Delete.
5098         (UNSPEC_VCNT): Delete.
5099         (UNSPEC_VEOR): Delete.
5100         (UNSPEC_VORN): Delete.
5101         (UNSPEC_VORR): Delete.
5102         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
5103         core registers too.
5104         (anddi3_neon): Likewise.
5105         (orndi3_neon): Likewise.
5106         (bicdi3_neon): Likewise.
5107         (xordi3_neon): Likewise.
5108         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
5109         rid of unspec and handle unused operand.
5110         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
5111         * config/arm/predicates.md (imm_for_neon_logic_operand):
5112         Require TARGET_NEON.
5113         (imm_for_neon_inv_logic_operand): Likewise.
5114         * config/arm/arm.md (define_split for logical_binary_operator):
5115         Disable for NEON registers.
5116         (anddi3): Add new define_expand, and rename the insn.  Disable
5117         this insn for NEON, where anddi3_neon now applies.
5118         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
5119         (iordi3): As for anddi3.
5120         (xordi3): Likewise.
5121         * config/arm/neon.ml (Vand): Split DImode variants and mark them
5122         as No_op to disable testing for exact instruction match.
5123         (Vorr): Likewise.
5124         (Veor): Likewise.
5125         (Vbic): Likewise.
5126         (Vorn): Likewise.
5127         * config/arm/arm_neon.h: Regenerated.
5128         * doc/arm-neon-intrinsics.texi: Regenerated.
5129
5130 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5131
5132         * expr.h (emit_stack_probe): Declare.
5133         * explow.c (emit_stack_probe): Make global.
5134         (anti_adjust_stack_and_probe): Fix comments.
5135         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5136         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5137         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5138         * config/sparc/sparc.c: Include except.h.
5139         (sparc_emit_probe_stack_range): New function.
5140         (output_probe_stack_range): Likewise.
5141         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
5142         built-in stack checking is enabled.
5143         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
5144         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5145         (probe_stack_range): New insn.
5146
5147 2010-07-02  Richard Guenther  <rguenther@suse.de>
5148
5149         PR target/43958
5150         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
5151         for argument alignment.
5152
5153 2010-07-02  Jan Hubicka  <jh@suse.cz>
5154
5155         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
5156         walk backwards from entry_bb to check only those basic block of header
5157         that might lead to execution of split part.
5158         (consider_split) ... here.
5159         (find_return_bb): Allow assignment in return BB.
5160         (find_retval): New.
5161         (split_function): Fix name of cloned function; take care of updating
5162         return value in return_bb containing move.
5163
5164 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
5165
5166         PR target/44771
5167         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
5168         used variable insn.
5169
5170 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5171
5172         * implicit-zee.c (combine_reaching_defs): Fix long lines.
5173         (is_set_with_extension_DI): Delete.
5174         (struct zero_extend_info): New structure.
5175         (add_removable_zero_extend): New function.
5176         (find_removable_zero_extends): Use note_stores to find SETs.
5177         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
5178
5179 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
5180
5181         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
5182         is_miss_rate_acceptable. Pull total_positions computation
5183         out of the loops.  Early return if miss_positions exceeds
5184         the acceptable threshold.
5185         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
5186         is_miss_rate_acceptable after renaming of compute_miss_rate.
5187
5188 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
5189
5190         PR middle-end/44576
5191         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
5192         of 1000) for miss rate if the address diference is greater than or
5193         equal to the cache line size (the two reference will never hit the
5194         same cache line).
5195
5196 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
5197
5198         PR target/42835
5199         * config/arm/arm-modes.def (CC_NOTB): New mode.
5200         * config/arm/arm.c (get_arm_condition_code): Handle it.
5201         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
5202         * config/arm/arm.md (subsi3_compare0_c): New pattern.
5203         (compare_scc): Now a define_and_split.  Add a number of extra
5204         splitters before it.
5205
5206         PR target/42172
5207         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
5208         and ZERO_EXTEND.
5209         (arm_rtx_costs_1): Likewise.
5210         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
5211         * config/arm/arm.md (is_arch6): New attribute.
5212         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
5213         extendqisi2): Tighten the code somewhat, avoiding invalid
5214         RTL to occur in the expander patterns.
5215         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
5216         (thumb1_zero_extendhisi2_v6): Delete.
5217         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
5218         (thumb1_extendhisi2_v6): Delete.
5219         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
5220         (thumb1_extendqisi2_v6): Delete.
5221         (zero_extendhisi2 for register input splitter): New.
5222         (zero_extendqisi2 for register input splitter): New.
5223         (thumb1_extendhisi2 for register input splitter): New.
5224         (extendhisi2 for register input splitter): New.
5225         (extendqisi2 for register input splitter): New.
5226         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
5227         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
5228         and add support for a register alternative requiring a split.
5229         (thumb1_zero_extendqisi2): Likewise.
5230         (arm_zero_extendqisi2): Likewise.
5231         (arm_extendhisi2): Likewise.
5232         (arm_extendqisi2): Likewise.
5233
5234 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
5235
5236         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
5237         instead of an unspec.
5238         (neon_expand_vector_init): Likewise.
5239         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
5240         (UNSPEC_VDUP_LANE): Delete.
5241         (UNSPEC VDUP_N): Delete.
5242         (UNSPEC_VGET_HIGH): Delete.
5243         (UNSPEC_VGET_LANE): Delete.
5244         (UNSPEC_VGET_LOW): Delete.
5245         (UNSPEC_VMVN): Delete.
5246         (UNSPEC_VSET_LANE): Delete.
5247         (V_double_vector_mode): New.
5248         (vec_set<mode>_internal): Make code emitted match that for the
5249         corresponding intrinsics.
5250         (vec_setv2di_internal): Likewise.
5251         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
5252         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
5253         (neon_vset_lane<mode>): Combine double and quad patterns and
5254         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
5255         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
5256         (neon_vdup_n<mode>): Rewrite RTL without unspec.
5257         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
5258         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
5259         with neon_vdup_lanev2di, adjusting the pattern from the latter
5260         to be predicable for consistency.
5261         (neon_vdup_lane<mode>_internal): New.
5262         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
5263         to avoid using an unspec.
5264         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
5265         (neon_vdup_lanev2di): Turn into a define_expand.
5266         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
5267         (neon_vget_high<mode>): Replace with....
5268         (neon_vget_highv16qi): New pattern using canonical RTL.
5269         (neon_vget_highv8hi): Likewise.
5270         (neon_vget_highv4si): Likewise.
5271         (neon_vget_highv4sf): Likewise.
5272         (neon_vget_highv2di): Likewise.
5273         (neon_vget_low<mode>): Replace with....
5274         (neon_vget_lowv16qi): New pattern using canonical RTL.
5275         (neon_vget_lowv8hi): Likewise.
5276         (neon_vget_lowv4si): Likewise.
5277         (neon_vget_lowv4sf): Likewise.
5278         (neon_vget_lowv2di): Likewise.
5279
5280         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
5281         test for this emitting vmov.
5282         (Vset_lane): Likewise.
5283         (Vdup_n): Likewise.
5284         (Vmov_n): Likewise.
5285
5286         * doc/arm-neon-intrinsics.texi: Regenerated.
5287
5288 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
5289
5290         * config/arm/neon.md (vec_extractv2di): Correct error in register
5291         numbering to reconcile with neon_vget_lanev2di.
5292
5293 2010-07-02  Richard Guenther  <rguenther@suse.de>
5294
5295         * tree-ssa-structalias.c (pt_solution_set_var): New function.
5296         * tree-ssa-alias.h (pt_solution_set_var): Declare.
5297         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
5298         points-to information.
5299
5300 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
5301
5302         * config/s390/s390.c (override_options): Adopt prefetching
5303         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
5304
5305 2010-07-02  Jan Hubicka  <jh@suse.cz>
5306
5307         * df-problems.c (df_kill_notes): Do not collect dead  notes.
5308         (df_set_note): Just call add_reg_note.
5309         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
5310         df_create_unused_note): Do not deal with lists of old notes.
5311         (df_note_bb_compute): Likewise.
5312
5313 2010-07-02  Richard Guenther  <rguenther@suse.de>
5314
5315         * tree-ssa-structalias.c (find_func_aliases): Handle
5316         pointer alignment via BIT_AND_EXPR.
5317         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
5318
5319 2010-07-02  Richard Guenther  <rguenther@suse.de>
5320
5321         * tree-data-ref.c (initialize_data_dependence_relation): Handle
5322         mismatching number of dimensions properly.
5323
5324 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5325
5326         PR target/44707
5327         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
5328         (lo_sum (high ...) ...) patterns generated by earlier passes.
5329
5330 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5331
5332         * doc/install.texi (Prerequisites): Document Perl requirement on
5333         Solaris 2.
5334         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
5335
5336 2010-07-02  Richard Guenther  <rguenther@suse.de>
5337
5338         PR middle-end/44777
5339         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
5340
5341 2010-07-02  Jan Hubicka  <jh@suse.cz>
5342
5343         PR middle-end/44706
5344         * predict.c (predict_paths_for_bb): Handle case when control dependence
5345         BB has only abnormal edges.
5346
5347 2010-07-02  Richard Guenther  <rguenther@suse.de>
5348
5349         PR tree-optimization/44748
5350         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
5351         the embedded conversion in MEM_REFs.
5352
5353 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
5354
5355         * reload.c: Include toplev.h.
5356         * recog.c:  Likewise.
5357         * Makefile.in: Adjust dependencies.
5358
5359 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
5360
5361         PR debug/44694
5362         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
5363         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
5364
5365 2010-07-01  Richard Guenther  <rguenther@suse.de>
5366
5367         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
5368         types for offsets.
5369
5370 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5371
5372         PR target/44732
5373         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
5374         Fix argument types.
5375
5376 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
5377
5378         PR target/44727
5379         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5380         Make sure operand 0 dies.
5381
5382 2010-07-01  Richard Guenther  <rguenther@suse.de>
5383
5384         PR middle-end/42834
5385         PR middle-end/44468
5386         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
5387         * doc/generic.texi (References to storage): Document MEM_REF.
5388         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
5389         (print_call_name): Likewise.
5390         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
5391         (build_simple_mem_ref_loc): New function.
5392         (mem_ref_offset): Likewise.
5393         * tree.h (build_simple_mem_ref_loc): Declare.
5394         (build_simple_mem_ref): Define.
5395         (mem_ref_offset): Declare.
5396         * fold-const.c: Include tree-flow.h.
5397         (operand_equal_p): Handle MEM_REF.
5398         (build_fold_addr_expr_with_type_loc): Likewise.
5399         (fold_comparison): Likewise.
5400         (fold_unary_loc): Fold
5401         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
5402         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
5403         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
5404         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
5405         (ptr_deref_may_alias_ref_p_1): Likewise.
5406         (ao_ref_base_alias_set): Properly differentiate base object for
5407         offset and TBAA.
5408         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
5409         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
5410         (indirect_refs_may_alias_p): Likewise.
5411         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
5412         chasing code.
5413         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
5414         (call_may_clobber_ref_p_1): Likewise.
5415         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
5416         * expr.c (expand_assignment): Handle MEM_REF.
5417         (store_expr): Handle MEM_REFs from STRING_CSTs.
5418         (store_field): If expanding a MEM_REF of a non-addressable
5419         decl use bitfield operations.
5420         (get_inner_reference): Handle MEM_REF.
5421         (expand_expr_addr_expr_1): Likewise.
5422         (expand_expr_real_1): Likewise.
5423         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
5424         * alias.c (ao_ref_from_mem): Handle MEM_REF.
5425         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
5426         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
5427         (dr_analyze_indices): Likewise.
5428         (dr_analyze_alias): Likewise.
5429         (object_address_invariant_in_loop_p): Likewise.
5430         * gimplify.c (mark_addressable): Handle MEM_REF.
5431         (gimplify_cond_expr): Build MEM_REFs.
5432         (gimplify_modify_expr_to_memcpy): Likewise.
5433         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
5434         (gimple_fold_indirect_ref): Adjust.
5435         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
5436         * tree.def (MEM_REF): New tree code.
5437         * tree-dfa.c: Include toplev.h.
5438         (get_ref_base_and_extent): Handle MEM_REF.
5439         (get_addr_base_and_unit_offset): New function.
5440         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
5441         * gimple-fold.c (may_propagate_address_into_dereference): Handle
5442         MEM_REF.
5443         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
5444         accesses if the array has just one dimension.  Remove always true
5445         parameter.  Do not require type compatibility here.
5446         (maybe_fold_offset_to_component_ref): Remove.
5447         (maybe_fold_stmt_indirect): Remove.
5448         (maybe_fold_reference): Remove INDIRECT_REF handling.
5449         Fold back to non-MEM_REF.
5450         (maybe_fold_offset_to_address): Simplify.  Deal with type
5451         mismatches here.
5452         (maybe_fold_reference): Likewise.
5453         (maybe_fold_stmt_addition): Likewise.  Also handle
5454         &ARRAY + I in addition to &ARRAY[0] + I.
5455         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
5456         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
5457         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
5458         * tree-ssa.c (useless_type_conversion_p): Make most pointer
5459         conversions useless.
5460         (warn_uninitialized_var): Handle MEM_REF.
5461         (maybe_rewrite_mem_ref_base): New function.
5462         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
5463         to SSA form.
5464         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
5465         INDIRECT_REF handling.
5466         (copy_tree_body_r): Handle MEM_REF.
5467         * gimple.c (is_gimple_addressable): Adjust.
5468         (is_gimple_address): Likewise.
5469         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
5470         invariant base are invariant.
5471         (is_gimple_min_lval): Adjust.
5472         (is_gimple_mem_ref_addr): New function.
5473         (get_base_address): Handle MEM_REF.
5474         (count_ptr_derefs): Likewise.
5475         (get_base_loadstore): Likewise.
5476         * gimple.h (is_gimple_mem_ref_addr): Declare.
5477         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
5478         * tree-cfg.c (verify_address): New function, split out from ...
5479         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
5480         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
5481         INDIRECT_REFs.
5482         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
5483         INDIRECT_REF.  Allow conversions.
5484         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
5485         a register does not change its size.
5486         (verify_types_in_gimple_reference): Verify MEM_REF.
5487         (verify_gimple_assign_single): Disallow INDIRECT_REF.
5488         Handle MEM_REF.
5489         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
5490         New.
5491         (mark_address_taken): Handle MEM_REF.
5492         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
5493         (get_asm_expr_operands): Pass opf_not_non_addressable.
5494         (get_expr_operands): Handle opf_[not_]non_addressable.
5495         Handle MEM_REF.  Remove INDIRECT_REF handling.
5496         * tree-vrp.c (check_array_ref): Handle MEM_REF.
5497         (search_for_addr_array): Likewise.
5498         (check_array_bounds): Likewise.
5499         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
5500         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
5501         (ref_always_accessed_p): Likewise.
5502         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
5503         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
5504         Handle MEM_REF.
5505         * cgraphbuild.c (mark_load): Properly check for NULL result
5506         from get_base_address.
5507         (mark_store): Likewise.
5508         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
5509         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
5510         handling for MEM_REF.
5511         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
5512         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
5513         * builtins.c (stabilize_va_list_loc): Use the function ABI
5514         valist type if we couldn't canonicalize the argument type.
5515         Always dereference with the canonical va-list type.
5516         (maybe_emit_free_warning): Handle MEM_REF.
5517         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
5518         memmove to memcpy.
5519         * builtins.c (fold_builtin_memory_op): Use ref-all types
5520         for all memcpy foldings.
5521         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
5522         (build_outer_var_ref): Likewise.
5523         (scan_omp_1_op): Likewise.
5524         (lower_rec_input_clauses): Likewise.
5525         (lower_lastprivate_clauses): Likewise.
5526         (lower_reduction_clauses): Likewise.
5527         (lower_copyprivate_clauses): Likewise.
5528         (expand_omp_atomic_pipeline): Likewise.
5529         (expand_omp_atomic_mutex): Likewise.
5530         (create_task_copyfn): Likewise.
5531         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
5532         Remove old union trick.  Initialize constant offsets.
5533         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
5534         INDIRECT_REF.  Init base_alias_set properly.
5535         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
5536         (vn_reference_fold_indirect): Adjust for MEM_REFs.
5537         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
5538         for ARRAY_REFs.
5539         (may_insert): Remove.
5540         (visit_reference_op_load): Do not test may_insert.
5541         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
5542         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
5543         a field to store the constant offset this op applies.
5544         (run_scc_vn): Adjust prototype.
5545         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
5546         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
5547         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
5548         bother about volatile qualifiers on pointers.
5549         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
5550         * tree-ssa-loop-ivopts.c
5551         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
5552         (strip_offset_1): Likewise.
5553         (find_interesting_uses_address): Replace INDIRECT_REF handling with
5554         MEM_REF handling.
5555         (get_computation_cost_at): Likewise.
5556         * ipa-pure-const.c (check_op): Handle MEM_REF.
5557         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
5558         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
5559         and constants.
5560         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
5561         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
5562         (eliminate_local_variables_1): Likewise.
5563         (create_call_for_reduction_1): Likewise.
5564         (create_loads_for_reductions): Likewise.
5565         (create_loads_and_stores_for_name): Likewise.
5566         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
5567         (ssa_accessed_in_tree): Handle MEM_REF.
5568         (ssa_accessed_in_assign_rhs): Likewise.
5569         (update_type_size): Likewise.
5570         (analyze_accesses_for_call_stmt): Likewise.
5571         (analyze_accesses_for_assign_stmt): Likewise.
5572         (transform_access_sites): Likewise.
5573         (transform_allocation_sites): Likewise.
5574         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
5575         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5576         not handle INDIRECT_REF.
5577         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
5578         (cond_store_replacement): Likewise.
5579         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
5580         MEM_REF, no not handle INDIRECT_REFs.
5581         (insert_into_preds_of_block): Properly initialize avail.
5582         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
5583         for ARRAY_REFs.  Properly handle reference lookups that
5584         require a bit re-interpretation.
5585         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
5586         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
5587         (build_ref_for_offset_1): Remove.
5588         (build_ref_for_offset): Build MEM_REFs.
5589         (gate_intra_sra): Disable for now.
5590         (sra_ipa_modify_expr): Handle MEM_REF.
5591         (ipa_early_sra_gate): Disable for now.
5592         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
5593         MEM_REF handling.
5594         (disqualify_base_of_expr): Likewise.
5595         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
5596         MEM_REF handling.
5597         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
5598         Use mem_ref_offset.  Remove bogus folding.
5599         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
5600         (make_fancy_name_1): Add support for MEM_REF.
5601         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
5602         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
5603         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
5604         (compute_complex_ancestor_jump_func): Likewise.
5605         (ipa_analyze_virtual_call_uses): Likewise.
5606         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
5607         INDIRECT_REF folding with more generalized MEM_REF folding.
5608         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
5609         (forward_propagate_addr_into_variable_array_index): Also handle
5610         &ARRAY + I in addition to &ARRAY[0] + I.
5611         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
5612         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
5613         creates assignments with overlap.
5614         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
5615         (get_frame_field): Likewise.
5616         (get_nonlocal_debug_decl): Likewise.
5617         (convert_nonlocal_reference_op): Likewise.
5618         (struct nesting_info): Add mem_refs pointer-set.
5619         (create_nesting_tree): Allocate it.
5620         (convert_local_reference_op): Insert to be folded mem-refs.
5621         (fold_mem_refs): New function.
5622         (finalize_nesting_tree_1): Perform defered folding of mem-refs
5623         (free_nesting_tree): Free the pointer-set.
5624         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
5625         (vectorizable_load): Likewise.
5626         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
5627         (propagate_with_phi): Likewise.
5628         * tree-object-size.c (addr_object_size): Handle MEM_REFs
5629         instead of INDIRECT_REFs.
5630         (compute_object_offset): Handle MEM_REF.
5631         (plus_stmt_object_size): Handle MEM_REF.
5632         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
5633         for &MEM_REF.
5634         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
5635         (symbol_marked_for_renaming): Likewise.
5636         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
5637         (fold-const.o): Add $(TREE_FLOW_H).
5638         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
5639         (find_func_clobbers): Likewise.
5640         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
5641         (decompose_access): Likewise.
5642         (replace_field_acc): Likewise.
5643         (replace_field_access_stmt): Likewise.
5644         (insert_new_var_in_stmt): Likewise.
5645         (get_stmt_accesses): Likewise.
5646         (reorg_structs_drive): Disable.
5647         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
5648         (ix86_canonical_va_list_type): Likewise.
5649
5650 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5651
5652         PR other/44566
5653         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
5654         * target.def (struct gcc_target): Replace enum reg_class with
5655         reg_class_t in hook argument / return types.
5656         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
5657         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
5658         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5659         * targhooks.h (default_branch_target_register_class): Likewise.
5660         (default_ira_cover_classes, default_secondary_reload): Likewise.
5661         (default_memory_move_cost, default_register_move_cost): Likewise.
5662         * targhooks.c (default_branch_target_register_class): Likewise.
5663         (default_ira_cover_classes, default_secondary_reload): Likewise.
5664         (default_memory_move_cost, default_register_move_cost): Likewise.
5665         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
5666         * bt-load.c (branch_target_load_optimize): Likewise.
5667         * ira.c (setup_cover_and_important_classes): Likewise.
5668         * ira-costs.c (copy_cost): Likewise.
5669         * reload1.c (emit_input_reload_insns): Likewise.
5670         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
5671         * config/frv/frv.c (frv_secondary_reload): Likewise.
5672         * config/s390/s390.c (s390_secondary_reload): Likewise.
5673         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
5674         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
5675         (ix86_register_move_cost): Likewise.
5676         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
5677         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
5678         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
5679         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
5680         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
5681         (rs6000_ira_cover_classes): Likewise.
5682         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
5683         * config/picochip/picochip-protos.h (picochip_secondary_reload):
5684         Likewise.
5685         * config/pa/pa.c (pa_secondary_reload): Likewise.
5686         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
5687         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
5688         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
5689         * doc/tm.texi: Regenerate.
5690
5691 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
5692
5693         PR bootstrrap/44726
5694         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
5695         use.
5696         (build_alias_set_optimal_p): Likewise.
5697         (build_base_obj_set_for_drs): Likewise.
5698
5699 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5700
5701         * target.def: Remove comment about licensing problems of function
5702         declarations.
5703
5704         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
5705         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
5706         * doc/tm.texi: Regenerate.
5707
5708         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
5709         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
5710
5711         * target.def (enum_va_list_p): Use DEFHOOK.
5712         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
5713         Rename ptype to ptree.
5714         * doc/tm.texi: Regenerate.
5715
5716         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
5717         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
5718         * doc/tm.texi: Regenerate.
5719
5720         * target.def (memory_move_cost): Use DEFHOOK.
5721         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
5722         Rename regclass AKA class to rclass.
5723         * doc/tm.texi: Regenerate.
5724
5725         * target.def (pragma_parse): Use DEFHOOK.
5726         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
5727         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
5728         * doc/tm.texi: Regenerate.
5729
5730         * target.def (pass_by_reference): Use DEFHOOK.
5731         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
5732         * doc/tm.texi: Regenerate.
5733
5734         * target.def (resolve_overloaded_builtin): Rename params to arglist.
5735         Use DEFHOOK.
5736         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
5737         * doc/tm.texi: Regenerate.
5738
5739         * target.def (return_pops_args): Use DEFHOOK.
5740         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
5741         Rename stack-size to size.
5742         * doc/tm.texi: Regenerate.
5743
5744         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
5745         last-sched_cycle to last_clock, cur_cycle to clock.
5746         * doc/tm.texi.in: Use @hook.
5747         * doc/tm.texi: Regenerate.
5748
5749         * target.def (print_operand, print_operand_address): Update comment.
5750         (print_operand_punct_valid_p): Likewise.
5751
5752 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5753
5754         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
5755         to rtl.h.
5756         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
5757         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
5758         * rtl-error.h: New.
5759         * regrename.c: Do not include toplev.h. Include rtl-error.h.
5760         * rtl-error.c: Likewise.
5761         * reload.c: Likewise.
5762         * recog.c:  Likewise.
5763         * sel-sched.c: Likewise.
5764         * function.c: Likewise.
5765         * reg-stack.c: Likewise.
5766         * cfgrtl.c: Likewise.
5767         * reload1.c: Likewise.
5768         * final.c: Include rtl-error.
5769         * Makefile.in: Adjust dependencies.
5770
5771 2010-06-30  Jan Hubicka  <jh@suse.cz>
5772
5773         PR middle-end/PR44706
5774         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
5775         to return the value.
5776
5777 2010-06-30  Michael Matz  <matz@suse.de>
5778
5779         PR bootstrap/44699
5780         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
5781         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
5782         a gimple reg, attach the original VDEF to the last store in the
5783         sequence.
5784
5785 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
5786
5787         PR other/44034
5788         * config/darwin.c (darwin_override_options): Use renamed
5789         targetm.asm_out.emit_unwind_label.
5790
5791 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
5792
5793         PR tree-optimization/39799
5794         * tree-inline.c (remap_ssa_name): Initialize variable only if
5795         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5796
5797 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
5798
5799         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
5800
5801 2010-06-30  Richard Guenther  <rguenther@suse.de>
5802
5803         PR target/44722
5804         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
5805         against oscillation with reverse peephole2.
5806
5807 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5808
5809         PR target/44721
5810         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5811         Fix last commit.
5812
5813 2010-06-30  Nick Clifton  <nickc@redhat.com>
5814
5815         * config/rx/rx-modes.def: New file.
5816         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
5817         (CC_REGNUM): Define.
5818         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
5819         register.
5820         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
5821         (SELECT_CC_MODE): Define.
5822         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
5823         (reg:CC CC_REG) instead of (cc0).
5824         (attr "cc"): Delete.
5825         (cbranchsi4): Do not split compare and branch here. Instead move
5826         it to...
5827         (cbranchsi4_<code>): ... here.  New patterns.
5828         (cmpsi): Call rx-compare_redundant to find out if it is necessary
5829         to emit the compare instruction.
5830         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
5831         cc_status flags.
5832         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
5833         FIRST_PSEUDO_REGNUM.
5834         (rx_expand_prologue, rx_expand_epilogue): Likewise.
5835         (rx_notice_update_cc): Delete.
5836         (rx_cc_modes_compatible): New function.
5837         (flags_needed_for_conditional): New function.
5838         (flags_from_mode): New function.
5839         (rx_compare_redundant): New function - scans backwards through
5840         insn list to find out if condition flags are already set correctly.
5841         (TARGET_CC_MODES_COMPATIBLE): Define.
5842         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
5843
5844         * config/rx/rx.h (BRANCH_COST): Define.
5845         (REGISTER_MOVE_COST): Define.
5846         * config/rx/predicates (rx_source_operand): Allow all constant types.
5847         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
5848         (tstsi4): New pattern.
5849         * config/rx/rx.c (rx_memory_move_cost): Define.
5850         (TARGET_MEMORY_MOVE_COST): Define.
5851
5852 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5853
5854         * tree.h (block_may_fallthru): Declare here.
5855         * tree-flow.h (block_may_fallthru): Do not declare here.
5856         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
5857         bitmap.h
5858         * Makefile.in (c-typeck.o): Update dependencies.
5859
5860 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
5861
5862         PR debug/44694
5863         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
5864         * cselib.c (cfa_base_preserved_regno): New static variable.
5865         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
5866         of REGNO (cfa_base_preserved_val->locs->loc).
5867         (cselib_preserve_cfa_base_value): Add regno argument, set
5868         cfa_base_preserved_regno to it.
5869         (cselib_invalidate_regno): Allow removal of registers other than
5870         cfa_base_preserved_regno from cfa_base_preserved_val.
5871         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
5872         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
5873         of MEM addresses, if not on LHS.
5874         (reverse_op): Don't add reverse ops for cfa_base_rtx.
5875         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
5876
5877 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
5878
5879         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
5880         static variables.
5881         (peep2_buf_position): New static function.
5882         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
5883         peephole2_optimize): Use it.
5884         (peep2_attempt, peep2_update_life): New static functions, broken out
5885         of peephole2_optimize.
5886         (peep2_fill_buffer): New static function.
5887         (peephole2_optimize): Change the main loop to try to fill the buffer
5888         with the maximum number of insns before matching them against
5889         peepholes.  Use a forward scan.  Remove special case for targets with
5890         conditional execution.
5891         * genrecog.c (change_state): Delete dead code.
5892         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5893         Rewrite so as not to expect the second insn to have had a peephole
5894         applied yet.
5895
5896 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5897
5898         * genhooks.c (emit_findices): Cast field precision to int.
5899         (emit_documentation): Likewise.
5900
5901 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
5902
5903         PR tree-optimization/43801
5904         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
5905         if old_decl was DECL_ONE_ONLY.
5906
5907         PR debug/44668
5908         * dwarf2out.c (add_accessibility_attribute): New function.
5909         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
5910         instead of adding DW_AT_accessibility manually.
5911         (gen_enumeration_type_die, gen_struct_or_union_type_die,
5912         gen_typedef_die): Use it.
5913
5914 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5915
5916         * vmsdbgout.c (full_name): Just output the file name if not native.
5917
5918 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5919
5920         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
5921         (funcnam_table): New static table.
5922         (funcnum_table): New static table.
5923         (write_rtnbeg): Write value saved in funcnum_table.
5924         (write_rtnend): Write value saved in funcnum_table.
5925         (vmsdbgout_begin_function): Save current function info in
5926         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
5927         (vmsdbgout_finish): Iterate over funcnum_table.
5928
5929 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5930
5931         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
5932         (vmsdbgout_type_decl): Declare
5933         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
5934         (FUNC_EPILOGUE_LABEL): New macro
5935         (vmsdbgout_begin_epilogue): New function.
5936         (vmsdbgout_type_decl): New function.
5937
5938 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5939
5940         * vmsdbg.h: Update copyright.
5941
5942 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5943
5944         * vmsdbg.h (DST_K_TBG): New DST constant.
5945         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
5946         (write_modbeg): Cast module_language to avoid warning.
5947         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
5948
5949 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5950
5951         PR other/44034
5952         * target.def, doc/tm.texi.in, genhooks.c: New files.
5953         * target.h: Instead of defining individual hook members,
5954         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
5955         include target.def.
5956         * target-def.h: Instead of defining individual hook initializers,
5957         include target-hooks-def.h.
5958         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
5959         targetm.live_on_entry -> targetm.extra_live_on_entry
5960         targetm.sched.md_finish ->targetm.sched.finish
5961         targetm.sched.md_init -> targetm.sched.init
5962         targetm.sched.md_init_global -> targetm.sched.init_global
5963         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
5964         targetm.asm_out.except_table_label ->
5965           targetm.asm_out.emit_except_table_label
5966         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
5967         targetm.target_help -> targetm.help
5968         targetm.vectorize.builtin_support_vector_misalignment ->
5969           targetm.vectorize.support_vector_misalignment
5970         targetm.file_start_app_off -> targetm.asm_file_start_app_off
5971         targetm.file_start_file_directive ->
5972          targetm.asm_file_start_file_directive
5973         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
5974         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
5975         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
5976         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
5977           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
5978         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
5979           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
5980         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
5981         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
5982         * Makefile.in (TARGET_H): Depend on target.def.
5983         (TARGET_DEF_H): Depend on target-hooks-def.h.
5984         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
5985         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
5986         * doc/tm.texi: Regenerate.
5987
5988         * Makefile.in (s-tm-texi): Remove stray tab / rule.
5989
5990         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
5991         (targetm.sched.init): Likewise.
5992
5993 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5994
5995         PR bootstrap/44713
5996         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
5997         (function_arg_advance_32): Const-ify TYPE parameter.
5998         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
5999         (ix86_function_arg_advance): Change type of NAMED to bool.
6000         (function_arg_32): Const-ify CUM and TYPE parameters.
6001         (function_arg_64): Likewise.  Change type of NAMED to bool.
6002         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
6003         to bool.
6004         (ix86_function_arg): Change type of NAMED to bool.
6005         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
6006         last argument as a bool.
6007
6008 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
6009
6010         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
6011         (OVERRIDE_OPTIONS): Add note of obsolescence.
6012         Replace references with references to TARGET_OPTION_OVERRIDE.
6013         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
6014          the macro).
6015         * targhooks.c (default_target_option_override): New function.
6016         * targhooks.h (default_target_option_override): Declare.
6017         * target.h (struct gcc_target): Add override member to
6018         target_option member.
6019         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
6020         targetm.target_option.override call.
6021         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
6022         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
6023
6024 2010-06-29  Jan Hubicka  <jh@suse.cz>
6025
6026         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
6027
6028 2010-06-29  Jan Hubicka  <jh@suse.cz>
6029
6030         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
6031         unreachable.
6032         (rebuild_frequencies): New function.
6033         * predict.h (rebuild_frequencies): Declare.
6034         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
6035         entry block and edge reaching new_entry.
6036         (tree_function_versioning): When doing partial cloning, rebuild
6037         frequencies when done.
6038         * passes.c (execute_function_todo): Use rebild_frequencies.
6039
6040 2010-06-29  Richard Guenther  <rguenther@suse.de>
6041
6042         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
6043         * tree-flow.h (enum noalias_state): Remove.
6044         (struct var_ann_d): Remove noalias_state member.
6045
6046 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
6047
6048         PR target/43902
6049         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
6050         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
6051         (maddhidi4): Likewise.
6052
6053         Revert parts of the change for PR25130.
6054         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
6055         MEM_ALIAS_SET.
6056
6057 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
6058
6059         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
6060         targetm.calls.function_incoming_arg, and
6061         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
6062         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
6063         * target.h (struct gcc_target): Add function_arg_advance,
6064         function_arg, and function_incoming_arg fields.
6065         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
6066         (TARGET_FUNCTION_INCOMING_ARG): Define.
6067         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
6068         and TARGET_FUNCTION_INCOMING_ARG.
6069         * targhooks.h (default_function_arg_advance): Declare.
6070         (default_function_arg, default_function_incoming_arg): Declare.
6071         * targhooks.c (default_function_arg_advance): New function.
6072         (default_function_arg, default_function_incoming_arg): New function.
6073         * config/i386/i386.c (function_arg_advance): Rename to...
6074         (ix86_function_arg_advance): ...this.  Make static.
6075         (function_arg): Rename to...
6076         (ix86_function_arg): ...this.  Make static.
6077         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6078         (TARGET_FUNCTION_ARG): Define.
6079         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
6080         (FUNCTION_ARG): Delete.
6081         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
6082         (function_arg): Delete prototype.
6083
6084 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
6085
6086         * reginfo.c (init_reg_sets_1): Adjust comments.
6087         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
6088         * calls.c (prepare_call_address): Likewise.
6089         (emit_call_1): Use targetm.calls.return_pops_args.
6090         (expand_call): Likewise.
6091         * function.c (assign_parms): Likewise.
6092         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
6093         * target.h (struct gcc_target) [struct calls]: Add
6094         return_pops_args field.
6095         * targhooks.h (default_return_pops_args): Declare.
6096         * targhooks.c (default_return_pops_args): Define.
6097         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
6098         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
6099         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
6100         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
6101         documentation.
6102         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
6103         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
6104         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
6105         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
6106         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
6107         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
6108         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
6109         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
6110         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
6111         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
6112         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
6113         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
6114         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
6115         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
6116         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
6117         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
6118         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
6119         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
6120         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
6121         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
6122         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
6123         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
6124         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
6125         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
6126         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
6127         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
6128         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
6129         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
6130         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
6131         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
6132         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
6133         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
6134         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
6135         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
6136         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
6137         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
6138         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
6139         * config/i386/i386.c (ix86_return_pops_args): Make static.
6140         Constify arguments.
6141         (TARGET_RETURN_POPS_ARGS): Define.
6142         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
6143         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
6144         (TARGET_RETURN_POPS_ARGS): Define.
6145         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
6146         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
6147         (TARGET_RETURN_POPS_ARGS): Define.
6148
6149 2010-06-29  Richard Guenther  <rguenther@suse.de>
6150
6151         PR middle-end/44667
6152         * tree-inline.c (initialize_inlined_parameters): Make sure
6153         to remap the inlined parameter variable substitutions types.
6154
6155 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
6156
6157         PR rtl-optimization/44659
6158         * combine.c (make_compound_operation) <SUBREG>: Do not return the
6159         result of force_to_mode if it partially re-expanded the compound.
6160
6161 2010-06-28  Jan Hubicka  <jh@suse.cz>
6162
6163         PR middle-end/44671
6164         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
6165         RESULT_DECL.
6166
6167 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
6168
6169         * double-int.h (force_fit_type_double): Remove declaration.
6170         * double-int.c (force_fit_type_double): Move to tree.c.
6171         * tree.h (force_fit_type_double): Declare.
6172         * tree.h (force_fit_type_double): Moved from double-int.c. Use
6173         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
6174         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
6175         * convert.c (convert_to_pointer): Adjust call to
6176         force_fit_type_double.
6177         * tree-vrp.c (extract_range_from_assert,
6178         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
6179         * fold-const.c: Update comment.
6180         (int_const_binop, fold_convert_const_int_from_int,
6181         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
6182         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
6183         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
6184         round_up_loc): Adjust call to force_fit_type_double.
6185
6186 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6187
6188         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
6189
6190 2010-06-28  Martin Jambor  <mjambor@suse.cz>
6191
6192         * tree-sra.c (convert_callers): New parameter, change fndecls of
6193         recursive calls.
6194         (modify_function): Pass the old decl to convert_callers.
6195
6196 2010-06-28  Martin Jambor  <mjambor@suse.cz>
6197
6198         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
6199         ipa_check_create_node_params and ipa_initialize_node_params with
6200         checking asserts they are not necessary.
6201
6202 2010-06-28  Jan Hubicka  <jh@suse.cz>
6203
6204         PR tree-optimization/44687
6205         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
6206
6207 2010-06-28  Martin Jambor  <mjambor@suse.cz>
6208
6209         PR c++/44535
6210         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
6211         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
6212         instead of BINFO_BASE_BINFO.
6213
6214 2010-06-28  Michael Matz  <matz@suse.de>
6215
6216         PR middle-end/44592
6217         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
6218         proper VDEF chain for intermediate stores in the sequence.
6219
6220 2010-06-28  Jan Hubicka  <jh@suse.cz>
6221
6222         PR tree-optimization/44357
6223         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
6224         uninlinable functions.
6225
6226 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6227
6228         * config.gcc (powerpc*-*-*): Handle titan.
6229         * config/rs6000/rs6000.c (titan_cost): New costs.
6230         (rs6000_override_options): Add "titan" to processor_target_table.
6231         Add Titan to branch alignment logic.
6232         Correctly set rs6000_cost for titan.
6233         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
6234         * config/rs6000/titan.md: New file.
6235         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
6236
6237 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6238
6239         * tree-browser.c (TB_history_stack): Convert to a VEC.
6240         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
6241         (TB_history_prev): Likewise.
6242
6243 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6244
6245         * vec.h (vec_heap_free): Add parentheses around free.
6246
6247 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
6248
6249         * system.h: Poison GCC_EXCEPT_H for front-end files.
6250
6251         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
6252         langhook.
6253         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
6254         Define to NULL by default.
6255         * except.h: Define GCC_EXCEPT_H.
6256         (doing_eh): Remove prototype.
6257         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
6258         (lang_protect_cleanup_actions): Remove.
6259         * except.c (lang_protect_cleanup_actions): Remove.
6260         (doing_eh): Remove.
6261         (gen_eh_region): Don't check doing_eh here.
6262         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
6263         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
6264         instead of lang_protect_cleanup_actions.
6265         * omp-low.c (maybe_catch_exception): Likewise.
6266         * Makefile.in: Update dependencies.
6267
6268 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
6269
6270         * cgraph.h (struct varpool_node): new used_from_object_file flag.
6271         (struct cgraph_local_info): new used_from_object_file flag.
6272         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
6273         (cgraph_clone_node): initialize used_from_object_file.
6274         (cgraph_create_virtual_clone): initialize used_from_object_file.
6275         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
6276         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
6277         when compiling with -fwhole-program.
6278         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
6279         internal resolver.
6280         * ipa.c (function_and_variable_visibility): Set externally_visible
6281         flag of varpool_node if used_from_object_file flag is set.
6282         (cgraph_externally_visible_p): check used_from_object_file flag.
6283         * doc/invoke.texi (-fwhole-program option): Change description of
6284         externally_visible attribute accordingly.
6285         * doc/extend.texi (externally_visible): Ditto.
6286
6287 2010-06-27  Jan Hubicka  <jh@suse.cz>
6288
6289         * params.def (max-inline-insns-auto): Default to 40.
6290         * doc/invoke.texi (max-inline-insns-auto): Document the change.
6291
6292 2010-06-27  Jan Hubicka  <jh@suse.cz>
6293
6294         PR middle-end/44671
6295         PR middle-end/44686
6296         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
6297         signature change.
6298         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
6299         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
6300
6301 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
6302
6303         * target.h (struct gcc_target): Add register_move_cost field.
6304         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
6305         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
6306         * targhooks.c (default_register_move_cost): New function.
6307         * targhooks.h (default_register_move_cost): Declare function.
6308         * defaults.h (REGISTER_MOVE_COST): Delete.
6309         * ira-int.h (ira_register_move_cost): Update comment.
6310         * ira.c (ira_register_move_cost): Update comment.
6311         * reload.h (register_move_cost): Declare.
6312         * reginfo.c (register_move_cost): New function.
6313         (move_cost): Update comment.
6314         (init_move_cost, memory_move_secondary_cost): Replace
6315         REGISTER_MOVE_COST with register_move_cost.
6316         * postreload.c (reload_cse_simplify_set): (Ditto.).
6317         * reload.c (find_valid_class, find_reloads): (Ditto.).
6318         * reload1.c (choose_reload_regs): (Ditto.).
6319         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
6320         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
6321         * doc/md.texi (can_create_pseudo_p): Update documentation.
6322
6323         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6324         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6325         * config/i386/i386.h (ix86_memory_move_cost): Make static.
6326         (TARGET_MEMORY_MOVE_COST): Define.
6327
6328         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6329         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
6330         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
6331         (TARGET_MEMORY_MOVE_COST): Define.
6332
6333 2010-06-27  Richard Guenther  <rguenther@suse.de>
6334
6335         PR tree-optimization/44683
6336         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
6337         false edge from the inverted condition.
6338
6339 2010-06-27  Richard Guenther  <rguenther@suse.de>
6340
6341         PR middle-end/44684
6342         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
6343         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
6344         for register LHS.  Or non-store assignments.
6345
6346 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
6347
6348         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
6349         (sparc_emit_set_const64): Likewise.  Remove disabled code.
6350         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
6351         (sparc_emit_set_const64): Likewise.
6352
6353 2010-06-26  Catherine Moore  <clm@codesourcery.com>
6354
6355         * config/mips/mips.md (alu_type): New attribute.
6356         (type): Infer type from alu_type.
6357         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
6358         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
6359         *subsi3_extended, negsi2, negdi2, *low<mode>,
6360         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
6361         xor<mode>3, *nor<mode>3,
6362         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
6363         *zero_extendhi_truncqi):  Set alu_type instead of type.
6364
6365 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
6366
6367         * config/alpha/alpha.c (alpha_need_linkage): Adjust
6368         splay_tree_new_ggc call.
6369         (alpha_use_linkage): Likewise.
6370
6371 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
6372
6373         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
6374         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
6375         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
6376         (static_specs): Remove switches_need_spaces.
6377         (process_command, do_self_spec): Hardcode handling "-o" instead of
6378         checking switches_need_spaces.
6379         * system.h (SWITCHES_NEED_SPACES): Poison.
6380
6381 2010-06-26  Richard Guenther  <rguenther@suse.de>
6382
6383         PR tree-optimization/44393
6384         * tree-loop-distribution.c (generate_loops_for_partition): Fix
6385         stmt removal and VOP renaming.
6386         (generate_memset_zero): Remove redundant stmt updating.
6387         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
6388         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
6389
6390 2010-06-26  Jan Hubicka  <jh@suse.cz>
6391
6392         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
6393         edges comming from header are equivalent.
6394         (visit_bb): Handle PHIs correctly.
6395         * tree-inline.c (copy_phis_for_bb): Be able to copy
6396         PHI from entry edge.
6397         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
6398
6399 2010-06-26  Richard Guenther  <rguenther@suse.de>
6400
6401         PR middle-end/44674
6402         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
6403         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
6404
6405 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
6406
6407         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
6408         add_infile, alloc_switch): New.
6409         (process_command): Remove variable lang_n_infiles.  Process
6410         options in a single pass.  Use new functions for allocating
6411         infiles and switches arrays.  Properly skip operands of
6412         -Xpreprocessor and -Xassembler.
6413
6414 2010-06-26  Jan Hubicka  <jh@suse.cz>
6415
6416         PR middle-end/44671
6417         * cgraphunit.c (cgraph_function_versioning): Remove wrong
6418         cgraph_make_decl_local call; fix typo copying RTL data.
6419
6420 2010-06-25  DJ Delorie  <dj@redhat.com>
6421
6422         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
6423         (m32c_output_aligned_common): Likewise.
6424         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
6425         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
6426         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
6427         (m32c_register_pragmas): Register it.
6428         * config/m32c/m32c.c (m32c_get_pragma_address): New.
6429         (m32c_insert_attributes): Set #pragma address decls volatile.
6430         (pragma_entry_eq): New.
6431         (pragma_entry_hash): New.
6432         (m32c_note_pragma_address): New.
6433         (m32c_get_pragma_address): New.
6434         (m32c_output_aligned_common): New.
6435         * doc/extend.texi: Document the new pragma.
6436
6437         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
6438         also.
6439         * config/m32c/predicates.md (m32c_any_operand): Check the code
6440         instead of memory_operand so as to allow matching volatile MEMs.
6441         (m32c_nonimmediate_operand): Likewise.
6442         (mra_operand): Allow volatiles.
6443
6444 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
6445
6446         PR debug/44610
6447         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
6448         address if the offset is unknown.
6449
6450 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
6451
6452         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
6453         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
6454         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
6455         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
6456         to ia64_start_function. Invoke it.
6457         * config/ia64/ia64.c (ia64_start_function): Call new function
6458         dwarf2out_vms_debug_main_pointer.
6459
6460 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
6461
6462         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
6463         statements computing the true predicate.
6464
6465 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
6466
6467         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
6468         to boolean_true_node.
6469         (reset_bb_predicate): New.
6470         (predicate_bbs): Call reset_bb_predicate.
6471
6472 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
6473
6474         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
6475         (tree_if_conversion): Returns true when something has been changed.
6476         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
6477         changed something.
6478
6479 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
6480
6481         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
6482         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
6483         * tree-if-conv.c: Include dbgcnt.h.
6484         (tree_if_conversion): Use if_conversion_tree to count the number of
6485         if-convertible loops.
6486
6487 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
6488
6489         * common.opt (fprefetch-loop-arrays): Re-define
6490         -fprefetch-loop-arrays as a tri-state option with the initial
6491         value of -1.
6492         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
6493         pass only when flag_prefetch_loop_arrays > 0.
6494         * toplev.c (process_options): Note that, with tri-states,
6495         flag_prefetch_loop_arrays>0 means prefetching is enabled.
6496         * config/i386/i386.c (override_options): Enable prefetching at -O3
6497         for a set of CPUs that sw prefetching is helpful.
6498         (software_prefetching_beneficial_p): New.  Return TRUE if software
6499         prefetching is beneficial for the given CPU.
6500
6501 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
6502
6503         PR rtl-optimization/44326
6504         * implicit-zee.c (find_removable_zero_extends): Replace
6505         INSN_P with NONDEBUG_INSN_P.
6506
6507 2010-06-25  Martin Jambor  <mjambor@suse.cz>
6508
6509         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
6510         (struct ipa_node_params): Removed the modification_analysis_done flag.
6511         (ipa_is_param_modified): Removed.
6512         (ipa_analyze_node): Declare.
6513         (ipa_compute_jump_functions): Remove declaration.
6514         (ipa_count_arguments): Likewise.
6515         (ipa_detect_param_modifications): Likewise.
6516         (ipa_analyze_params_uses): Likewise.
6517         * ipa-prop.c (struct param_analysis_info): New type.
6518         (visit_store_addr_for_mod_analysis): Removed.
6519         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
6520         moved down in the file.
6521         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
6522         (ipa_count_arguments): Made static.
6523         (mark_modified): New function.
6524         (is_parm_modified_before_call): New function.
6525         (compute_pass_through_member_ptrs): New parameter parms_info, call
6526         is_parm_modified_before_call instead of ipa_is_param_modified.
6527         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
6528         it to compute_pass_through_member_ptrs.
6529         (ipa_compute_jump_functions): New parameter parms_info, pass it to
6530         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
6531         on the callee if it is analyzed.  Made static.
6532         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
6533         is_parm_modified_before_call instead of ipa_is_param_modified.
6534         (ipa_analyze_call_uses): New parameter parms_info, pass it to
6535         ipa_analyze_indirect_call_uses.
6536         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
6537         ipa_analyze_call_uses.
6538         (ipa_analyze_params_uses): New parameter parms_info, pass it to
6539         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
6540         (ipa_analyze_node): New function.
6541         (ipa_print_node_params): Do not dump the modified flag.
6542         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
6543         it.  Do not stream the modified parameter flag.
6544         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
6545         it.  Do not stream the modified parameter flag.
6546         * ipa-cp.c (ipcp_analyze_node): Removed.
6547         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
6548         with only a call to ipa_analyze_node.
6549         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
6550         node with only a call to ipa_analyze_node.
6551
6552 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6553
6554         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
6555
6556 2010-06-25  Jan Hubicka  <jh@suse.cz>
6557
6558         * tree-pass.h (pass_split_functions): Declare.
6559         * opts.c (decode_options): Enable function splitting at -O2
6560         * timevar.def (TV_IPA_FNSPLIT): New macro.
6561         * ipa-split.c: New file.
6562         * common.opt (-fpartial-inlining): New flag.
6563         * Makefile.in (ipa-split.o): New object file.
6564         * passes.c (init_optimization_passes): Add ipa-split.
6565         * params.def (partial-inlining-entry-probability): New parameters.
6566         * doc/invoke.texi (-fpartial-inlining): New.
6567
6568 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6569
6570         PR 44665
6571         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
6572         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
6573         (gimplify_expr): Likewise.
6574
6575 2010-06-25  Martin Jambor  <mjambor@suse.cz>
6576
6577         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
6578         statements instead of bailing out on them.
6579         (ipa_analyze_indirect_call_uses): Do not require that loads from the
6580         parameter are in the same BB as the condition.  Update comments.
6581
6582 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
6583
6584         PR middle-end/43866
6585         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
6586         true or always false, return NULL_TREE.
6587         (tree_unswitch_single_loop): Optimize conditions even when reaching
6588         max-unswitch-level parameter.  If num > 0, optimize first all conditions
6589         using entry checks, then do still reachable block discovery and consider
6590         only conditions in still reachable basic blocks in the loop.
6591
6592         PR tree-optimization/44539
6593         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
6594         the call doesn't have LHS, but has VDEF.
6595
6596 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
6597
6598         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
6599         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
6600         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
6601         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
6602         * system.h (MODIFY_TARGET_NAME): Poison.
6603
6604 2010-06-25  Alan Modra  <amodra@gmail.com>
6605
6606         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
6607         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
6608         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6609         CMODEL_LARGE as default.
6610         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
6611         (offsettable_ok_by_alignment): Delete.
6612         (rs6000_emit_move): Remove mcmodel=medium optimization.
6613
6614 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
6615
6616         With large parts from Jim Wilson:
6617         PR target/43902
6618         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
6619         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6620         * optabs.c (optab_for_tree_code): Likewise.
6621         (expand_widen_pattern_expr): Likewise.
6622         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
6623         out of execute_optimize_widening_mul.
6624         (convert_plusminus_to_widen): New function.
6625         (execute_optimize_widening_mul): Use the two new functions.
6626         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
6627         Remove code to generate widening multiply-accumulate.  Add support
6628         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6629         * gimple-pretty-print.c (dump_ternary_rhs): New function.
6630         (dump_gimple_assign): Call it when appropriate.
6631         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
6632         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
6633         (expand_gimple_stmt_1): Likewise.
6634         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
6635         WIDEN_MULT_MINUS_EXPR.
6636         * tree-ssa-operands.c (get_expr_operands): Likewise.
6637         * tree-inline.c (estimate_operator_cost): Likewise.
6638         * gimple.c (extract_ops_from_tree_1): Renamed from
6639         extract_ops_from_tree.  Add new arg for a third operand; fill it.
6640         (gimple_build_assign_stat): Support operations with three operands.
6641         (gimple_build_assign_with_ops_stat): Likewise.
6642         (gimple_assign_set_rhs_from_tree): Likewise.
6643         (gimple_assign_set_rhs_with_ops_1): Renamed from
6644         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
6645         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
6646         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
6647         WIDEN_MULT_MINUS_EXPR.
6648         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
6649         (extract_ops_from_tree_1): Adjust declaration.
6650         (gimple_assign_set_rhs_with_ops_1): Likewise.
6651         (gimple_build_assign_with_ops): Pass NULL for last operand.
6652         (gimple_build_assign_with_ops3): New macro.
6653         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
6654         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
6655         functions.
6656         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
6657         (verify_gimple_assign): Call it.
6658         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
6659         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
6660         functions for dealing with three-operand statements.
6661         * tree.c (commutative_ternary_tree_code): New function.
6662         * tree.h (commutative_ternary_tree_code): Declare it.
6663         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
6664         ternary statements.
6665         (gimple_assign_nonzero_warnv_p): Likewise.
6666         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
6667         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
6668         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
6669         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
6670         (struct hashtable_expr): New member ternary in the union.
6671         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
6672         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
6673         (iterative_hash_hashable_expr): Likewise.
6674         (print_expr_hash_elt): Handle EXPR_TERNARY.
6675         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
6676         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
6677         statements.  Handle GIMPLE_TERNARY_RHS.
6678
6679 2010-06-25  Jan Hubicka  <jh@suse.cz>
6680
6681         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
6682
6683 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
6684
6685         PR c/44517
6686         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
6687         parameters are not good.
6688         (c_parser_parameter_declaration): Error unknown type name if the type
6689         name can't start declaration specifiers.
6690
6691 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
6692
6693         * gcc.c (translate_options): Don't mention +e in comment.
6694         (process_command): Don't handle +e specially.
6695
6696 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
6697
6698         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
6699
6700         * ira-build.c (merge_hard_reg_conflicts): New function.
6701         (create_cap_allocno, copy_info_to_removed_store_destinations,
6702         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
6703         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
6704         (remove_unnecessary_allocnos, remove_low_level_allocnos)
6705         copy_nifo_to_removed_store_destination): Use them.
6706         * ira-lives.c (make_hard_regno_born): New function, split out of
6707         make_regno_born.
6708         (make_allocno_born): Likewise.
6709         (make_hard_regno_dead): New function, split out of make_regno_dead.
6710         (make_allocno_dead): Likewise.
6711         (inc_register_pressure): New function, split out of set_allocno_live.
6712         (dec_register_pressure): New function, split out of clear_allocno_live.
6713         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
6714         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
6715         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
6716         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
6717         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
6718         mark_pseudo_regno_live.
6719         (process_bb_node_lives): Use mark_pseudo_regno_live,
6720         make_hard_regno_born and make_allocno_dead.
6721         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
6722         set_allocno_live, clear_allocno_live): Delete functions.
6723
6724         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
6725         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
6726         functions.
6727         (ira_flattening): Use ira_parent_allocno.
6728         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
6729         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
6730
6731         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
6732         statement.
6733
6734         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
6735         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
6736         minmax_set_iter_cond, minmax_set_iter_next,
6737         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
6738         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
6739         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
6740         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
6741         uses changed.
6742
6743         * ira-int.h (struct live_range, live_range_t): Renamed from struct
6744         ira_allocno_live_range and allocno_live_range_t; all uses changed.
6745         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
6746         All uses changed.
6747
6748 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
6749
6750         * thumb2.md (thumb2_tlobits_cbranch): Delete.
6751         (peephole2 to convert zero_extract/compare of single bit to
6752          lshift/compare): New.
6753
6754 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
6755
6756         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
6757         recursive call and call to 'int_const_binop'.
6758         (build_range_check, fold_cond_expr_with_comparison, unextend,
6759         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
6760         multiple_of_p): Adjust call to const_binop.
6761
6762 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
6763
6764         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
6765         determine size of XFmode operand.
6766         (XFmode extended DFmode push splitter): Ditto.
6767         (XFmode extended SFmode push splitter): Ditto.
6768
6769 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
6770
6771         PR target/44588
6772         * config/i386/i386.md (extract_code): New.
6773         (<u>divmodqi4): Likewise.
6774         (divmodhiqi3): Likewise.
6775         (udivmodhiqi3): Likewise.
6776         (<u>divqi3): Remvoved.
6777
6778 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
6779
6780         PR middle-end/44492
6781         * recog.h (struct recog_data): Add is_asm field.
6782         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
6783         present in constraints of inline-asm operand and memory operand
6784         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
6785         (extract_insn): Initialize recog_data.is_asm.
6786         * doc/md.texi (Constraints): Document operand side-effect rules.
6787
6788 2010-06-24  Andi Kleen  <ak@linux.intel.com>
6789
6790         * c-parser.c (c_parser_conditional_expression): Call
6791         warn_for_omitted_condop.
6792         * doc/invoke.texi: Document omitted condop warning.
6793
6794 2010-06-24  Nick Clifton<nickc@redhat.com>
6795
6796         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
6797         insn in the sequence is a jump insn before setting its label.
6798
6799 2010-06-24  Alan Modra  <amodra@gmail.com>
6800
6801         * collect2.c (main): Match exactly --version and --help.
6802
6803 2010-06-24  DJ Delorie  <dj@redhat.com>
6804
6805         * config/m32c/m32c-pragma.c: Don't include rtl.h.
6806
6807 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
6808
6809         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
6810         using X87MODEF mode iterator.
6811         (pushsf splitter): Macroize splitter using P mode iterator.
6812         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
6813         mode iterator.
6814
6815         (*movxf_internal): Rename from *movxf_integer.
6816         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
6817         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
6818         (*movdf_internal): Rename from *movdf_integer.
6819         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
6820         (*movsf_internal): Rename from *movdf_1.
6821
6822 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
6823
6824         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
6825         (const_gimple_seq_node): Removed typedefs.
6826
6827         * gimple.h (gimple_seq_node_d, gimple_seq_node)
6828         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
6829
6830 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
6831
6832         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
6833         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
6834         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
6835         and CODE_FOR_vec_extract_lo_v4df.
6836
6837         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
6838         Changed to define_insn_and_split.
6839         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
6840         (vec_extract_lo_v16hi): Likewise.
6841         (vec_extract_lo_v32qi): Likewise.
6842         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
6843         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
6844
6845 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
6846
6847         PR target/44640
6848         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
6849         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
6850         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
6851         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
6852         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
6853
6854         PR target/44640
6855         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
6856
6857         PR other/44644
6858         * df-core.c (struct df): Rename to df_d.
6859         * df.h (struct df): Likewise.
6860         * dse.h (struct df): Remove forward declaration.
6861         * recog.h (struct insn_data): Rename to:
6862         (struct_insn_data_d).  Adjusted all users.
6863
6864 2010-06-23  Arnaud Charlet  <charlet@adacore.com
6865
6866         PR ada/22220
6867         * doc/install.texi: Update requirements to build GNAT.
6868
6869 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
6870
6871         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
6872         enum type.
6873         (m68k_sched_attr_opx_type): Remove unreachable return.
6874         (m68k_sched_attr_opy_type): Likewise.
6875         (m68k_sched_attr_size): Likewise.
6876         (sched_get_opxy_mem_type): Likewise.
6877         (m68k_sched_attr_op_mem): Likewise.
6878
6879 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
6880
6881         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
6882         new statement and adjust VDEF only if necessary.  Remove superfluous
6883         call to maybe_clean_or_replace_eh_stmt.
6884         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
6885         copy the flags.
6886         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
6887         * tree-inline.c (copy_bb): ...and not there.
6888
6889 2010-06-22  Cary Coutant  <ccoutant@google.com>
6890
6891         * dwarf2out.c (is_nested_in_subprogram): New function.
6892         (should_move_die_to_comdat): Use it.
6893         (copy_ancestor_tree): Don't mark DIEs here.
6894         (copy_decls_walk): Start walk from root of newly-added tree;
6895         mark DIEs here instead.
6896
6897 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
6898
6899         * config/i386/i386.md (unit): Also check sseishft1.
6900
6901 2010-06-22  Jan Hubicka  <jh@suse.cz>
6902
6903         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
6904         enabled.
6905
6906 2010-06-22  Jan Hubicka  <jh@suse.cz>
6907
6908         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
6909         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
6910         Return true if something changed.
6911         * df.h (df_confluence_function_n): Return bool.
6912         * df-core.c (df_worklist_propagate_forward,
6913         df_worklist_propagate_backward): Track changes and ages.
6914         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
6915         track ages.
6916         * dse.c (dse_confluence_n): Return always true.
6917
6918 2010-06-22  Jan Hubicka  <jh@suse.cz>
6919
6920         * bitmap.c (bitmap_clear_bit): Micro optimize.
6921
6922 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
6923
6924         * config/i386/i386.md (SWI1248x): New mode iterator.
6925         (SWI48x): Ditto.
6926         (SWI12): Ditto.
6927         (SWI24): Ditto.
6928
6929         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
6930         SWI1248x mode iterator.
6931         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
6932         using SWI124 mode iterator.
6933         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
6934         mode iterator.
6935         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
6936         *pushdi2_prologue_rex64 using P mode iterator.
6937         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
6938         using SWI48 mode iterator.
6939         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
6940         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
6941         using SWI1248x mode iterator.
6942         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
6943         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
6944         SWI48 mode iterator.
6945         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
6946         iterator.
6947         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
6948         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
6949         SWI12 mode iterator.
6950         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
6951         SWI12 mode iterator.
6952         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
6953         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
6954         SWI24 mode iterator.
6955         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
6956         SWI48 mode iterator.
6957         (mov<mode>_insn_1): New expander.
6958         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
6959         using SWI48x mode iterator.
6960
6961         (*movoi_internal_avx): Rename from *movoi_internal.
6962         (*movti_internal_rex64): Rename from *movti_rex64.
6963         (*movti_internal_sse): Rename from *movti_sse.
6964         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
6965         (*movdi_internal): Rename from *movdi_2.
6966         (*movsi_internal): Rename from *movsi_1.
6967         (*movhi_internal): Rename from *movhi_1.
6968         (*movqi_internal): Rename from *movqi_1.
6969
6970         (insv): Update the call to gen_movsi_insv_1 for rename.
6971         * config/i386/i386.c (promote_duplicated_reg): Ditto.
6972
6973 2010-06-22  Jan Hubicka  <jh@suse.cz>
6974
6975         * passes.c (execute_function_todo): Move call of statistics_fini_pass
6976         to ...
6977         (execute_todo) ... this one.
6978
6979 2010-06-22  Alan Modra  <amodra@gmail.com>
6980
6981         PR target/44364
6982         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6983         * caller-save.c (insert_restore, insert_save): Use non-validate
6984         form of adjust_address.
6985
6986 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6987
6988         PR target/39690
6989         * config/pa/pa.c (override_options): Disable
6990         -freorder-blocks-and-partition.
6991
6992 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
6993
6994         PR target/44615
6995         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
6996
6997         * config/i386/i386.md (type): Add sseishft1
6998
6999         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
7000         (ppro_insn_load): Likewise.
7001         (ppro_insn_store): Likewise.
7002         (ppro_insn_both): Likewise.
7003
7004         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
7005         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
7006         for type.
7007         (*vec_extractv2di_1_avx): Likewise.
7008         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
7009         type.  Remove atom_unit.
7010         (*vec_extractv2di_1_sse2): Likewise.
7011
7012 2010-06-21  DJ Delorie  <dj@redhat.com>
7013
7014         * diagnostic.h (diagnostic_classification_change_t): New.
7015         (diagnostic_context): Add history and push/pop list.
7016         (diagnostic_push_diagnostics): Declare.
7017         (diagnostic_pop_diagnostics): Declare.
7018         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
7019         from pragmas in a history chain instead of the global table.
7020         (diagnostic_push_diagnostics): New.
7021         (diagnostic_pop_diagnostics): New.
7022         (diagnostic_report_diagnostic): Scan history chain to find state
7023         of diagnostics as of the diagnostic location.
7024         * opts.c (set_option): Pass UNKNOWN_LOCATION to
7025         diagnostic_classify_diagnostic.
7026         (enable_warning_as_error): Likewise.
7027         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
7028         use in the history chain.
7029         * doc/extend.texi: Document pragma GCC diagnostic changes.
7030
7031 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
7032
7033         * dwarf2out.c (add_linkage_name): New function.  Don't add
7034         anything to DW_TAG_member DIEs.
7035         (add_name_and_src_coords_attributes): Use it.
7036         (gen_variable_die): Call it for C++ static data members if
7037         specification is DW_TAG_member.
7038
7039         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
7040         C++ char16_t and char32_t.
7041
7042         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
7043         * genattrtab.c: Include vecprim.h.
7044         (cached_attrs, cached_attr_count, attrs_seen_once,
7045         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
7046         attrs_cached_after): New variables.
7047         (find_attrs_to_cache): New function.
7048         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
7049         (write_test_expr): Add attrs_cached argument, return it too,
7050         attempt to cache non-const attributes used more than once in
7051         a single case handling.
7052         (write_attr_get): Use find_attrs_to_cache, for caching candidates
7053         emit cached_* variables.  Adjust write_attr_set callers.
7054         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
7055         to find attributes that should be cached in this block.  Adjust
7056         write_test_expr callers.
7057         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
7058         callers.
7059         (make_automaton_attrs): Adjust write_test_expr caller.
7060
7061         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
7062         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
7063         (make_automaton_attrs): If find_tune_attr returns non-NULL,
7064         write separate internal_dfa_insn_code_* and insn_default_latency_*
7065         functions for each attribute's value and emit init_sched_attrs
7066         function and function pointers.
7067         * genattr.c (const_attrs, reservations): New variables.
7068         (gen_attr): Add const attributes to const_attrs vector.
7069         (check_tune_attr, find_tune_attr): New functions.
7070         (main): Add reservations to reservations vector.  If find_tune_attr
7071         returns true, add prototype for init_sched_attrs and make
7072         internal_dfa_insn_code and insn_default_latency function pointers,
7073         otherwise define init_sched_attrs as dummy macro.
7074         * cfgexpand.c: Include insn-attr.h.
7075         (gimple_expand_cfg): Call init_sched_attrs.
7076
7077         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
7078
7079         PR target/44575
7080         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
7081         va_arg from a set of register save slots into a temporary,
7082         if the container is bigger than type size, do the copying
7083         using smaller mode or using memcpy.
7084
7085         PR bootstrap/44426
7086         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
7087         prototype.
7088         (sel_print_to_dot): Remove macro.
7089         (sel_print): Likewise.  New prototype.
7090         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
7091         (sel_print): New function.
7092
7093 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7094
7095         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
7096         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
7097
7098 2010-06-21  Nick Clifton  <nickc@redhat.com>
7099
7100         * config/rx/rx.h (PTRDIFF_TYPE): Define.
7101         (SMALL_REGISTER_CLASS): Define (to zero).
7102         (PRINT_OPERAND): Delete.
7103         (PRINT_OPERAND_ADDRESS): Delete.
7104         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
7105         (rx_print_operand_address): Delete prototype.
7106         * config/rx/rx.c (rx_print_operand): Make static.
7107         Allow %H and %L to handle CONST_DOUBLEs.
7108         (rx_print_operand_address): Make static.
7109         (rx_gen_move_template): Rename local variable 'template' to
7110         out_template.
7111         (rx_function_arg): Do not pass unknown sized objects in registers.
7112         (TARGET_PRINT_OPERAND): Define.
7113         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7114
7115 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7116
7117         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
7118
7119 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
7120
7121         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
7122         stack-alignment for simple leaf-functions.
7123
7124 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
7125
7126         * doc/install.texi: Document bootstrap-lto.
7127
7128 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
7129
7130         PR debug/44248
7131         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
7132         (input_function): Drop them here, if VTA is disabled.
7133
7134 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
7135
7136         PR target/44546
7137         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
7138         New predicate.
7139         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
7140         ix86_swapped_fp_comparsion_operator instead of
7141         ix86_fp_comparison_operator.
7142
7143         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
7144         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
7145         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
7146         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
7147         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
7148         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
7149
7150 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
7151
7152         PR other/32998
7153         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
7154         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
7155         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
7156         (decode_cmdline_option): Update for this return value.  Set
7157         orig_option_with_args_text field.  Set arg field for unknown
7158         options.  Make static.
7159         (decode_cmdline_options_to_array): New.
7160         (prune_options): Update handling of find_opt return value.
7161         * opts.c (read_cmdline_option): Take decoded option.  Return void.
7162         (read_cmdline_options): Take decoded options.
7163         (decode_options): Add parameters for decoded options.  Use
7164         decode_cmdline_options_to_array.  Use decoded options for -O
7165         scan.  Use integral_argument for -O parameters.  Update call to
7166         read_cmdline_options.
7167         (enable_warning_as_error): Update handling of find_opt return value.
7168         * opts.h: Update comment on unknown options.
7169         (struct cl_decoded_option): Update comments on opt_index and arg.
7170         Add orig_option_with_args_text.
7171         (decode_cmdline_option): Remove.
7172         (decode_cmdline_options_to_array): Declare.
7173         (decode_options): Update prototype.
7174         * toplev.c (save_argv): Remove.
7175         (save_decoded_options, save_decoded_options_count): New.
7176         (read_integral_parameter): Remove.
7177         (print_switch_values): Use decoded options.
7178         (toplev_main): Don't set save_argv.  Update call to decode_options.
7179         * toplev.h (read_integral_parameter): Remove.
7180         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
7181
7182 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
7183
7184         PR target/44072
7185         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
7186         immediate.
7187         * constraints.md (Pw, Px): New constraints.
7188         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
7189
7190 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
7191
7192         * config/i386/sse.md (fma4modesuffixf4): Removed.
7193         (ssemodesuffixf2s): Likewise.
7194         (ssemodesuffixf4): Likewise.
7195         (ssemodesuffixf2c): Likewise.
7196         (ssescalarmodesuffix2s): Likewise.
7197         (avxmodesuffixf2c): Likewise.
7198         (ssemodesuffix): New.
7199         (ssescalarmodesuffix): Likewise.
7200         Update patterns with ssemodesuffix and ssescalarmodesuffix.
7201
7202 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
7203
7204         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
7205
7206 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
7207
7208         * stor-layout.c (debug_rli): Remove unused local variables.
7209
7210 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
7211
7212         PR rtl-optimization/40900
7213         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
7214         original expression for later reuse.
7215         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
7216         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
7217
7218 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
7219
7220         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
7221         double_int_fits_in_uhwi_p): Implement as static inline.
7222         (double_int_xor): New inline function.
7223         (double_int_lrotate, double_int_rrotate, double_int_max,
7224         double_int_umax, double_int_smax, double_int_min, double_int_umin,
7225         double_int_smin): Declare.
7226         (lrotate_double, rrotate_double): Remove declaration.
7227         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
7228         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
7229         (double_int_lrotate, double_int_rrotate, double_int_max,
7230         double_int_umax, double_int_smax, double_int_min, double_int_umin,
7231         double_int_smin): New function.
7232         * fold-const.c (int_const_binop): Clean up, use double_int_*
7233         functions.
7234         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
7235         double_int_* and immed_double_int_const functions.
7236
7237 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
7238
7239         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
7240         * function.c (types_used_by_cur_var_decl): Likewise.
7241         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
7242
7243 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
7244
7245         * tree.h (record_layout_info): Change type of pending_statics field
7246         to a VEC.
7247         * stor-layout.c (start_record_layout): Store NULL into
7248         pending_statics.
7249         (debug_rli): Call debug_vec_tree instead of debug_tree.
7250         (place_field): Likewise.
7251         (finish_record_layout): Likewise.
7252
7253 2010-06-18  Alan Modra  <amodra@gmail.com>
7254
7255         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
7256
7257 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7258
7259         PR target/43740
7260         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
7261         for SET source operand from SET destination operand.
7262
7263 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
7264
7265         PR rtl-optimization/39871
7266         * reload1.c (init_eliminable_invariants): For flag_pic, disable
7267         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
7268         (function_invariant_p): Rule out a plus of frame or arg pointer with
7269         a SYMBOL_REF.
7270         * ira.c (find_reg_equiv_invariant_const): Likewise.
7271
7272 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
7273
7274         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
7275         print_operand_address and puts to output the operand for CONST.
7276
7277 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
7278
7279         PR debug/44572
7280         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
7281         hook.
7282
7283 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7284
7285         * v850-protos.h (print_operand): Delete.
7286         (print_operand_address): Delete.
7287         * v850.h (PRINT_OPERAND): Delete.
7288         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7289         (PRINT_OPERAND_ADDRESS): Delete.
7290         * v850.c (print_operand_address): Rename to...
7291         (v850_print_operand_address): ...this.  Make static. Call
7292         v850_print_operand.
7293         (print_operand): Rename to...
7294         (v850_print_operand): ...this.  Make static.  Call
7295         v850_print_operand_address.
7296         (v850_print_operand_punct_valid_p): New function.
7297         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7298         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7299
7300 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7301
7302         * config/sh/sh-protos.h (print_operand): Delete.
7303         (print_operand_address): Delete.
7304         * config/sh/sh.h (PRINT_OPERAND): Delete.
7305         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7306         (PRINT_OPERAND_ADDRESS): Delete.
7307         * config/sh/sh.c (sh_print_operand_address): Make static.
7308         (sh_print_operand): Make static.  Call sh_print_operand_address
7309         and sh_print_operand.
7310         (sh_print_operand_punct_valid_p): New function.
7311         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7312         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7313
7314 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7315
7316         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
7317         (mcore_print_operand_address): Delete.
7318         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
7319         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7320         (PRINT_OPERAND_ADDRESS): Delete.
7321         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
7322         (mcore_print_operand): Make static.
7323         (mcore_print_operand_punct_valid_p): New function.
7324         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
7325         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7326
7327 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7328
7329         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
7330         (print_operand_address): Delete.
7331         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
7332         (PRINT_OPERAND_ADDRESS): Delete.
7333         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
7334         static.
7335         (m68hc11_print_operand): Make static.
7336         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7337
7338 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7339
7340         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
7341         (m32r_print_operand_address): Delete.
7342         * config/m32r/m32r.h (m32r_punct_chars): Delete.
7343         (PRINT_OPERAND): Delete.
7344         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7345         (PRINT_OPERAND_ADDRESS): Delete.
7346         * config/m32r/m32r.c (m32r_punct_chars): Make static.
7347         (m32r_print_operand_address): Make static.
7348         (m32r_print_operand): Make static.
7349         (m32r_print_operand_punct_valid_p): New function.
7350         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7351         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7352
7353 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7354
7355         * config/iq2000/iq2000-protos.h (print_operand): Delete.
7356         (print_operand_address): Delete.
7357         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
7358         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7359         (PRINT_OPERAND_ADDRESS): Delete.
7360         (iq2000_print_operand_punct): Delete.
7361         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
7362         (iq2000_print_operand_address): Make static.
7363         (iq2000_print_operand): Make static.
7364         (iq2000_print_operand_punct_valid_p): New function.
7365         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7366         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7367
7368 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7369
7370         * config/frv/frv-protos.h (frv_print_operand): Delete.
7371         (frv_print_operand_address): Delete.
7372         * config/frv/frv.h (PRINT_OPERAND): Delete.
7373         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7374         (PRINT_OPERAND_ADDRESS): Delete.
7375         * config/frv/frv.c (frv_print_operand_address): Make static.
7376         (frv_print_operand): Make static.
7377         (frv_print_operand_punct_valid_p): New function.
7378         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7379         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7380
7381 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7382
7383         * tree.h (vec_member): Declare.
7384         * tree.c (vec_member): Define.
7385
7386 2010-06-17  Richard Guenther  <rguenther@suse.de>
7387
7388         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
7389         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
7390
7391 2010-06-17  Richard Guenther  <rguenther@suse.de>
7392
7393         * tree-inline.c (declare_return_variable): Remove bogus code.
7394
7395 2010-06-17  Richard Guenther  <rguenther@suse.de>
7396
7397         * gimplify.c (gimplify_bind_expr): Always promote complex
7398         and vector variables to registers if possible.
7399
7400 2010-06-17  Richard Guenther  <rguenther@suse.de>
7401
7402         * expr.c (get_inner_reference): Use double_int for bit_offset
7403         calculation.
7404
7405 2010-06-16  DJ Delorie  <dj@redhat.com>
7406
7407         * common.opt (-fstrict-volatile-bitfields): new.
7408         * doc/invoke.texi: Document it.
7409         * fold-const.c (optimize_bit_field_compare): For volatile
7410         bitfields, use the field's type to determine the mode, not the
7411         field's size.
7412         * expr.c (expand_assignment): Likewise.
7413         (get_inner_reference): Likewise.
7414         (expand_expr_real_1): Likewise.
7415         * expmed.c (store_fixed_bit_field): Likewise.
7416         (extract_bit_field_1): Likewise.
7417         (extract_fixed_bit_field): Likewise.
7418
7419 2010-06-16  Richard Guenther  <rguenther@suse.de>
7420
7421         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
7422
7423 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
7424
7425         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
7426         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
7427         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
7428         * debug.c: Likewise.
7429         * sdbout.c: Likewise.
7430         * vmsdbgout.c: Likewise.
7431         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
7432         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
7433         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
7434         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
7435         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
7436         * dwarf2out.c (dw_fde_struct): New fields
7437         dw_fde_vms_{end,begin}_prologue.
7438         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
7439         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
7440         (dwarf2out_vms_end_prologue): New function.
7441         (dwarf2out_vms_begin_epilogue): New function.
7442         (dw_val_struct): New value dw_val_class_vms_delta.
7443         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
7444         begin_epilogue for VMS.
7445         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
7446         new static functions.
7447         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
7448         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
7449         static functions.
7450         (print_die): New case dw_val_class_vms_delta.
7451         (attr_checksum): Likewise.
7452         (same_dw_val_p: Likewise.
7453         (size_of_die): Likewise.
7454         (value_format): Likewise.
7455         (output_die): Likewise.
7456         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
7457         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
7458         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
7459         dwarf2out_cfi_begin_epilogue
7460         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
7461
7462 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
7463
7464         * config/cris/cris-protos.h (cris_print_operand): Delete.
7465         (cris_print_operand_address): Delete.
7466         * config/cris/cris.h (PRINT_OPERAND): Delete.
7467         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7468         (PRINT_OPERAND_ADDRESS): Delete.
7469         * config/cris/cris.c (cris_print_operand_address): Make static.
7470         (cris_print_operand): Make static.
7471         (cris_print_operand_punct_valid_p): New function.
7472         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7473         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7474
7475 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
7476
7477         * config/arm/arm-protos.h (arm_print_operand): Delete.
7478         (arm_print_operand_address): Delete.
7479         * config/arm/arm.h (PRINT_OPERAND): Delete.
7480         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7481         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
7482         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
7483         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
7484         (arm_print_operand): Make static.
7485         (arm_print_operand_punct_valid_p): New function.
7486         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7487         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7488
7489 2010-06-16  Nick Clifton  <nickc@redhat.com>
7490
7491         * config/rx/constraints.md (NEGint4): New constraint.
7492         * config/rx/rx.md (attr cc): Add set_zsc.
7493         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
7494         initialised.
7495         (cmpsf): Likewise.
7496         (call_internal): Clobber the cc0 register.
7497         (call_value_internal): Likewise.
7498         (cstoresi4): Likewise.
7499         (movsieq): Likewise.
7500         (movsine): Likewise.
7501         (addsi3): Add alternative to handle small negative constants.
7502         (sunsi3): Likewise.
7503         (addsi3): Do not set the O bit in the cc0 register.
7504         (adddi3): Likewise.
7505         (subsi3): Likewise.
7506         (subdi3): Likewise.
7507         (andsi3): Reorder alternatives to prefer shorter forms.
7508         (mulsi3): Likewise.
7509         (iorsi3): Likewise.
7510         (negsi2): Note that the cc0 flags are set.
7511         (rotlsi3): Note that only the Z and S bits are set in cc0.
7512         (lshrsi3): Likewise.
7513         (ashlsi3): Likewise.
7514         (subsf3): Use %Q for the MEM operand.
7515         (fix_truncsfsi2): Likewise.
7516         (floatsisf2): Likewise.
7517         (bitset): Remove early clobber from destination.
7518         (bitset_in_memory): Likewise.
7519         (lrintsf2): Clobber the cc0 register.
7520         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
7521         (rx_print_operand): Handle %N.
7522
7523 2010-06-16  Jan Hubicka  <jh@suse.cz>
7524
7525         * df-core.c (df_compact_blocks): Free problem_temps vector.
7526
7527 2010-06-16  Martin Jambor  <mjambor@suse.cz>
7528
7529         PR tree-optimization/43905
7530         * tree-sra.c: Include tree-inline.h.
7531         (create_abstract_origin): Removed.
7532         (modify_function): Version the call graph node instead of creating
7533         abstract origins and dealing with same_body aliases.
7534         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
7535         function is versionable.
7536         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
7537
7538 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
7539
7540         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
7541         (CHOOSE_DYNAMIC_LINKER): Update.
7542
7543 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
7544
7545         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
7546         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
7547         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
7548         *prefetch_3dnow_rex.
7549
7550 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
7551
7552         * target.h (struct asm_out):Add declare_constant_name field.
7553         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
7554         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
7555         * output.h (default_asm_declare_constant_name): Declare.
7556         (assemble_label): Update prototype.
7557         * varasm.c (assemble_constant_contents): Use
7558         targetm.asm_out.declare_constant_name target hook.
7559         (assemble_label): Add 'file' argument.
7560         (default_asm_declare_constant_name): New function.
7561         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
7562         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
7563         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
7564
7565         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
7566         * config/darwin.c (darwin_asm_declare_constant_name): New function.
7567         (machopic_output_indirection): Update assemble_label argument list.
7568         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
7569         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
7570
7571 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
7572
7573         PR middle-end/44391
7574         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7575         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
7576
7577 2010-06-15  Richard Guenther  <rguenther@suse.de>
7578
7579         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
7580
7581 2010-06-15  Paul Brook  <paul@codesourcery.com>
7582
7583         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
7584         hard-float ABI.
7585
7586 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
7587
7588         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
7589         don't get a vector type for output.
7590
7591 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
7592
7593         PR fortran/44536
7594         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
7595         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
7596         (LANG_HOOKS_DECLS): Add it.
7597         * gimplify.c (omp_notice_variable): Call
7598         lang_hooks.decls.omp_report_decl.
7599
7600 2010-06-15  Martin Jambor  <mjambor@suse.cz>
7601
7602         PR lto/44464
7603         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
7604         on the newly dead SSA name.
7605
7606 2010-06-15  Alan Modra  <amodra@gmail.com>
7607
7608         * doc/invoke.texi: Add mcmodel to powerpc options.
7609         * configure.ac: Add HAVE_LD_LARGE_TOC test.
7610         * configure: Regenerate.
7611         * config.in: Regenerate.
7612         * config/rs6000/linux64.opt (mcmodel): New.
7613         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
7614         (TARGET_CMODEL, SET_CMODEL): Define.
7615         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
7616         select CMODEL_MEDIUM default.
7617         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
7618         (TARGET_CMODEL): Define default.
7619         * config/rs6000/rs6000.c (cmodel): New variable.
7620         (rs6000_explicit_options): Add cmodel field.
7621         (rs6000_handle_option): Handle -mcmodel.
7622         (create_TOC_reference): Add largetoc_reg param.  Generate high,
7623         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
7624         (rs6000_delegitimize_address): Recognise new toc reference rtl
7625         and minimal-toc rtl.
7626         (rs6000_legitimize_reload_address): Handle new toc references.
7627         (print_operand_address): Handle legitimate_constant_pool_address_p
7628         match before lo_sum.
7629         (rs6000_eliminate_indexed_memrefs): Tidy.
7630         (rs6000_emit_move): Tweak threshold for inlining constants.
7631         Keep rs6000_emit_allocate_stack large stack frame offsets
7632         loaded into r0 inline.
7633         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
7634         (tocrel_base, tocrel_offset): New variables.
7635         (toc_relative_expr_p): Set them here.
7636         (print_operand_address): Skip over any offset on constant pool address.
7637         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
7638         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
7639         (offsettable_ok_by_alignment): New function.
7640         (rs6000_emit_move): Address suitably aligned local symbol_refs
7641         relative to the toc pointer for -mcmodel=medium.
7642         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
7643         strict param.  Allow lo_sum version of addressing.  Verify reg
7644         used for -mminimal-toc and -mcmodel != small.  Update all callers.
7645         * config/rs6000/constraints.md: Update for above change.
7646         * config/rs6000/predicates.md: Likewise.
7647         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
7648         code.
7649         (tls_gd): Split for -mcmodel=medium/large.
7650         (tls_gd_high, tls_gd_low): New.
7651         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
7652         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
7653         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
7654         (largetoc_high, largetoc_low): New.
7655         (cmptf_internal2): Add clobber.
7656         * config/rs6000/rs6000-protos.h: Update.
7657
7658 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
7659
7660         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
7661         true if no prefetch is going to be generated for a given group.
7662         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
7663         estimate the prefetch_count.
7664         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
7665         prefetch count by considering the unroll_factor and prefetch_mod
7666         for is_loop_prefetching_profitable.
7667
7668 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
7669
7670         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
7671         anything if the argument is not a MEM.
7672
7673 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
7674
7675         PR debug/43650
7676         PR debug/44181
7677         PR debug/44247
7678         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
7679         debug stmts.
7680         (canonicalize_loop_ivs): Likewise.
7681
7682 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
7683
7684         PR debug/43656
7685         * haifa-sched.c (setup_insn_reg_pressure_info,
7686         update_register_pressure): Reject debug insns.
7687         (ready_sort): Don't setup reg pressure for debug insns.
7688         (schedule_insn): Don't update reg pressure for debug insns.
7689
7690 2010-06-14  Richard Guenther  <rguenther@suse.de>
7691
7692         * lto-streamer.c (cached_bp): Remove.
7693         (bitpack_delete): Likewise.
7694         (bitpack_create): Likewise.
7695         (bp_get_next_word): Likewise.
7696         (bp_pack_value, bp_unpack_value): Move ...
7697         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
7698         Re-implement.
7699         (struct bitpack_d): Likewise.
7700         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
7701         New inline functions.
7702         * lto-streamer-out.c (lto_output_bitpack): Remove.
7703         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
7704         (pack_value_fields): Adjust.
7705         (lto_write_tree): Likewise.
7706         (output_gimple_stmt): Likewise.
7707         (output_function): Likewise.
7708         * lto-streamer-in.c (input_gimple_stmt): Adjust.
7709         (input_function): Likewise.
7710         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
7711         (lto_input_bitpack): Remove.
7712         (lto_materialize_tree): Adjust.
7713         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
7714         * lto-cgraph.c (lto_output_edge): Adjust.
7715         (lto_output_node): Likewise.
7716         (lto_output_varpool_node): Likewise.
7717         (lto_output_ref): Likewise.
7718         (input_node): Likewise.
7719         (input_varpool_node): Likewise.
7720         (input_ref): Likewise.
7721         (input_edge): Likewise.
7722         (output_node_opt_summary): Likewise.
7723         (input_node_opt_summary): Likewise.
7724         * ipa-pure-const.c (pure_const_write_summary): Likewise.
7725         (pure_const_read_summary): Likewise.
7726         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
7727         (ipa_read_indirect_edge_info): Likewise.
7728         (ipa_write_node_info): Likewise.
7729         (ipa_read_node_info): Likewise.
7730
7731 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
7732
7733         PR target/44534
7734         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
7735         (vec_extract_lo_v16hi): Likewise.
7736         (vec_extract_lo_v32qi): Likewise.
7737
7738 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
7739
7740         PR bootstrap/44426
7741         * tree.h (build_call_expr): Don't define as vararg macro, instead
7742         add a prototype.
7743         * builtins.c (build_call_nofold): Remove.
7744         (expand_builtin_int_roundingfn, expand_builtin_pow,
7745         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
7746         expand_builtin_memset_args, expand_builtin_strcmp,
7747         expand_builtin_strncmp, expand_builtin_memory_chk): Use
7748         build_call_nofold_loc instead of build_call_nofold.
7749         (build_call_expr): New function.
7750
7751         PR tree-optimization/44508
7752         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
7753         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
7754         don't eliminate trivially dead stmts.
7755         * tree-vrp.c (vrp_finalize): Pass false as last argument
7756         to substitute_and_fold.
7757         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
7758         to substitute_and_fold.
7759         * tree-ssa-ccp.c (ccp_finalize): Likewise.
7760
7761         PR bootstrap/44509
7762         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
7763
7764 2010-06-14  Ira Rosen  <irar@il.ibm.com>
7765
7766         PR tree-optimization/44507
7767         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
7768         to build initial vector for BIT_AND_EXPR.
7769         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7770
7771 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
7772
7773         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
7774         adjust z10prop set_attr.
7775
7776 2010-06-13  Jan Hubicka  <jh@suse.cz>
7777
7778         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
7779         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
7780         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
7781         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
7782         datastructure checks into checking asserts.
7783         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
7784         * tree-ssa-sccvn.c (VN_INFO): Likewise.
7785         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
7786         df_ref_create_structure): Likewise.
7787         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
7788         pool_free): Use gcc_checking_assert.
7789         * alias.c (get_alias_set): Likewise.
7790         * var-tracking.c (variable_htab_free, shared_hash_copy,
7791         canonicalize_values_mark, variable_merge_over_cur): Likewise.
7792         * lto-streamer.c (bp_unpack_value): Likewise.
7793
7794 2010-06-13  Richard Guenther  <rguenther@suse.de>
7795
7796         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
7797         Do not stream but initialize TYPE_CANONICAL to NULL.
7798         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
7799         * gimple.c (gimple_types_compatible_p): Disregard
7800         TYPE_STRUCTURAL_EQUALITY_P.
7801         (gimple_register_type): Use TYPE_CANONICAL as cache.
7802         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
7803         before registering common types.
7804         * config/i386/i386.c (ix86_function_arg_boundary): Do not
7805         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
7806         * tree.h (TYPE_CANONICAL): Clarify documentation.
7807
7808 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
7809
7810         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7811         LIBCALL_VALUE): Remove macros.
7812         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
7813         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7814         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7815         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
7816         (ia64_function_value): Make static. Handle receiving the function
7817         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
7818
7819 2010-06-12  Jan Hubicka  <jh@suse.cz>
7820
7821         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
7822         at correct place.
7823
7824 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
7825
7826         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
7827
7828 2010-06-12  Jan Hubicka  <jh@suse.cz>
7829
7830         * df-core.c (df_clear_bb_info): New function.
7831         (df_set_blocks): bb_info is always allocated.
7832         (df_get_bb_info): Use block_info_elt_size.
7833         (df_set_bb_info): Likewise.
7834         (df_compact_blocks): Update for new block_info.
7835         (grow_bb_info): New function.
7836         * df-problems.c (df_grow_bb_info): Move to df-core.c
7837         (df_rd_set_bb_info): Remove.
7838         (df_rd_free_bb_info): Do not free block pool.
7839         (df_rd_alloc): Do not create pool, use check for
7840         obstack presence instead of NULL pointer for new blocks.
7841         (df_rd_free): DO not free alloc pool; clear block_info.
7842         (problem_RD): Add size of block info structure.
7843         (df_lr_set_bb_info): Remove.
7844         (df_lr_free_bb_info): Do not free block pool.
7845         (df_lr_alloc): Do not create pool, use check for
7846         obstack presence instead of NULL pointer for new blocks.
7847         (df_lr_free): DO not free alloc pool; clear block_info.
7848         (problem_LR): Add size of block info structure.
7849         (df_live_set_bb_info): Remove.
7850         (df_live_free_bb_info): Do not free block pool.
7851         (df_live_alloc): Do not create pool, use check for
7852         obstack presence instead of NULL pointer for new blocks.
7853         (df_live_free): DO not free alloc pool; clear block_info.
7854         (problem_LIVE): Add size of block info structure.
7855         (problem_CHAIN): Add size of block info structure.
7856         (df_byte_lr_set_bb_info): Remove.
7857         (df_byte_lr_free_bb_info): Do not free block pool.
7858         (df_byte_lr_alloc): Do not create pool, use check for
7859         obstack presence instead of NULL pointer for new blocks.
7860         (df_byte_lr_free): DO not free alloc pool; clear block_info.
7861         (problem_BYTE_LR): Add size of block info structure.
7862         (problem_NOTE): Add size of block info structure.
7863         (df_byte_MD_set_bb_info): Remove.
7864         (df_byte_MD_free_bb_info): Do not free block pool.
7865         (df_byte_MD_alloc): Do not create pool, use check for
7866         obstack presence instead of NULL pointer for new blocks.
7867         (df_byte_MD_free): DO not free alloc pool; clear block_info.
7868         (problem_BD): Add size of block info structure.
7869         * df-scan.c (df_scan_free_internal): Free block pool.
7870         (df_scan_set_bb_info): Remove.
7871         (df_scan_free_bb_info): Check for artificial_defs instead
7872         of bb_info being non-NULL.
7873         (df_scan_alloc): DO not create df_scan_block pool.
7874         (problem_SCAN): Set size of block info.
7875         (df_bb_refs_record): Do not allocate bb_info.
7876         * df.h (df_problem): Add block_info_elt_size.
7877         (struct dataflow): Change block_info to void *.
7878         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
7879         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
7880         in-line structures.
7881
7882 2010-06-12  Jan Hubicka  <jh@suse.cz>
7883
7884         PR tree-optimize/44485
7885         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
7886         containing use of return value of noreturn function.
7887
7888 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
7889
7890         * targhooks.c (default_function_value): Don't use
7891         FUNCTION_OUTGOING_VALUE.
7892         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
7893         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
7894
7895 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
7896
7897         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
7898         Add crtfastmath.o to extra_parts.
7899         * config/mips/crtfastmath.c: New.
7900         * config/mips/linux.h (ENDFILE_SPEC): New.
7901
7902 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
7903
7904         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
7905         old_type in parameter.
7906         (gcc_type_for_value): Update call to gcc_type_for_interval.
7907         (compute_type_for_level_1): Renamed compute_type_for_level.
7908         Update call to gcc_type_for_interval.
7909
7910 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
7911
7912         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
7913         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
7914
7915 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
7916
7917         * opts-common.c: Include options.h.
7918         (integral_argument): Move from opts.c.
7919         (decode_cmdline_option): New.  Based on read_cmdline_option.
7920         * opts.c (integral_argument): Move to opts-common.c.
7921         (read_cmdline_option): Move most contents to
7922         decode_cmdline_option.  Use %qs in diagnostics.
7923         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
7924         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
7925         decode_cmdline_option): New.
7926
7927 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7928
7929         PR target/44481
7930         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
7931         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
7932         (partiysi2_cmp): Ditto.
7933         (*partiyhi2_cmp): Ditto.
7934         (*parityqi2_cmp): Remove.
7935
7936 2010-06-11  Jan Hubicka  <jh@suse.cz>
7937
7938         * bitmap.h (bmp_iter_next_bit): New.
7939         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
7940
7941 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
7942             Eric Botcazou  <ebotcazou@adacore.com>
7943
7944         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
7945         computed cost.
7946
7947 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7948
7949         * config/i386/i386.md (unspec): New define_c_enum.
7950         (unspecv): Ditto.
7951
7952 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
7953
7954         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
7955
7956 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
7957
7958         PR middle-end/44483
7959         * tree-if-conv.c (bb_predicate_s): New struct.
7960         (bb_predicate_p): New.
7961         (bb_has_predicate): New.
7962         (bb_predicate): New.
7963         (set_bb_predicate): New.
7964         (bb_predicate_gimplified_stmts): New.
7965         (set_bb_predicate_gimplified_stmts): New.
7966         (add_bb_predicate_gimplified_stmts): New.
7967         (init_bb_predicate): New.
7968         (free_bb_predicate): New.
7969         (is_predicated): Use bb_predicate.
7970         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
7971         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
7972         before processing their successors.
7973         (clean_predicate_lists): Removed.
7974         (find_phi_replacement_condition): Use bb_predicate.
7975         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
7976         computations.
7977         (insert_gimplified_predicates): New.
7978         (combine_blocks): Call insert_gimplified_predicates.
7979         (tree_if_conversion): Call free_bb_predicate instead of
7980         clean_predicate_lists.
7981
7982 2010-10-11  Paul Brook  <paul@codesourcery.com>
7983
7984         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
7985         * config/arm/arm.c (all_architectures): Change v7e-m default to
7986         cortexm4.
7987         * config/arm/arm-cores.def: Add cortex-m4.
7988         * config/arm/arm-tune.md: Regenerate.
7989
7990 2010-06-11  Jan Hubicka  <jh@suse.cz>
7991
7992         * ipa-pure-const.c (special_builtlin_state): New function.
7993         (check_call): Use it instead of special casign BUILT_IN_RETURN.
7994         (propagate_pure_const): Use it.
7995
7996 2010-06-11  Jan Hubicka  <jh@suse.cz>
7997
7998         * df-problems.c (df_live_scratch): Convert to bitmap_head.
7999         (df_live_alloc): Initialize df_live_scratch when initializing
8000         problem_data.
8001         (df_live_transfer_function): Update uses of df_live_scratch.
8002         (df_live_free): Free problem_data; clear df_live_scratch before
8003         releasing the obstack.
8004         (df_md_free): Free problem data.
8005
8006 2010-06-11  Jan Hubicka  <jh@suse.cz>
8007
8008         * doc/invoke.texi (Wsuggest-attribute): Document.
8009         (Wmissing-noreturn): Remove.
8010         * ipa-pure-const.c (warn_function_noreturn): New function.
8011         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
8012         warn_missing_noreturn.
8013         * common.opt (Wsuggest-attribute=noreturn): New.
8014         * tree-flow.h (warn_function_noreturn): Declare.
8015         * tree-cfg.c (execute_warn_function_noreturn): Use
8016         warn_function_noreturn.
8017         (gate_warn_function_noreturn): New.
8018         (pass_warn_function_noreturn): Update.
8019
8020 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8021
8022         * c-typeck.c (handle_warn_cast_qual): Add loc
8023         parameter. Improve warning message.
8024         (build_c_cast): Pass location to handle_warn_cast_qual.
8025
8026 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
8027
8028         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
8029         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
8030         insn mnemonic.
8031         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
8032
8033 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
8034
8035         Fix bootstap on mips
8036         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
8037         be naming typedefs.
8038
8039 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
8040
8041         * system.h (helper_const_non_const_cast): New inline for
8042         gcc version <= 4.0.
8043         (CONST_CAST2): For gcc version <= 4.0 use
8044         new helper to do const/non-const casting.
8045
8046 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8047
8048         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
8049         * Makefile.in (OBJS-common): Include insn-enums.o.
8050         (insn-enums.o): New rule.
8051         (simple_generated_c): Add insn-enums.c.
8052         (build/genenums.o): New rule.
8053         (genprogmd): Add "enums".
8054         * genconstants.c (print_enum_type): Declare a C string array
8055         for each enum.
8056         * genenums.c: New file.
8057         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
8058         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
8059         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
8060
8061 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8062
8063         * doc/md.texi (define_enum_attr): Document.
8064         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
8065         * read-md.h (lookup_enum_type): Declare.
8066         * read-md.c (lookup_enum_type): New function.
8067         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
8068         * genattrtab.c (attr_desc): Add an enum_name field.
8069         (evaluate_eq_attr): Take the associated attribute as argument.
8070         Get the enum prefix from the enum_name field, if defined.
8071         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
8072         (simplify_test_exp): Pass attr to evaluate_eq_attr.
8073         (add_attr_value): New function, split out from...
8074         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
8075         (write_test_expr): Pass attr to evaluate_eq_attr.
8076         (write_attr_get): Use the enum_name as the enum tag, if defined.
8077         (write_attr_valueq): Use the enum_name as a prefix, if defined.
8078         (find_attr): Initialize enum_name.
8079         (main): Handle DEFINE_ENUM_ATTR.
8080         * gensupport.c (process_rtx): Likewise.
8081         * config/mips/mips.h (mips_tune_attr): Delete.
8082         * config/mips/mips.md (cpu): Use define_attr_enum.
8083
8084 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8085
8086         * doc/md.texi (define_c_enum, define_enum): Document.
8087         * read-md.h (md_constant): Add a parent_enum field.
8088         (enum_value, enum_type): New structures.
8089         (upcase_string, traverse_enum_types): Declare.
8090         * read-md.c (enum_types): New variable.
8091         (upcase_string, add_constant): New functions.
8092         (handle_constants): Don't create the hash table here.
8093         Use add_constant.
8094         (traverse_md_constants): Don't check for a null md_constants.
8095         (decimal_string, handle_enum, traverse_enum_types): New functions.
8096         (read_md_files): Initialize md_constants and md_enums.
8097         * genconstants.c (print_md_constant): Ignore info argument.
8098         Only print constants that belong to no enum.
8099         (print_enum_type): New function.
8100         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
8101         for each defined enum type.
8102         * config/mips/mips.md (processor): New define_enum.
8103         (unspec): New define_c_enum.
8104         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
8105         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
8106         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
8107         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
8108         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
8109         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
8110         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
8111         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
8112         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
8113         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
8114         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
8115         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
8116         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
8117         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
8118         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
8119         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
8120         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
8121         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
8122         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
8123         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
8124         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
8125         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
8126         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
8127         (UNSPEC_RDDSP): Move to mips-dsp.md.
8128         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
8129         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
8130         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
8131         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
8132         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
8133         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
8134         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
8135         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
8136         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
8137         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
8138         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
8139         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
8140         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
8141         Moved to mips-dspr2.md.
8142         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
8143         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
8144         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
8145         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
8146         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
8147         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
8148         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
8149         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
8150         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
8151         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
8152         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
8153         UNSPEC_LOONGSON_PSADBH)
8154         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
8155         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
8156         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
8157         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
8158         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
8159         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
8160         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
8161         (cpu): Update comment.
8162         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
8163         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
8164         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
8165         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
8166         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
8167         UNSPEC_LOONGSON_PCMPEQ)
8168         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
8169         UNSPEC_LOONGSON_PINSR_0)
8170         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
8171         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
8172         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
8173         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
8174         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
8175         UNSPEC_LOONGSON_PSADBH)
8176         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
8177         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
8178         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
8179         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
8180         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
8181         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
8182         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
8183         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
8184         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
8185         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
8186         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
8187         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
8188         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
8189         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
8190         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
8191         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
8192         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
8193         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
8194         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
8195         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
8196         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
8197         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
8198         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
8199         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
8200         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
8201         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
8202         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
8203         (UNSPEC_RDDSP): Moved from mips.md.
8204         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
8205         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
8206         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
8207         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
8208         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
8209         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
8210         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
8211         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
8212         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
8213         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
8214         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
8215         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
8216         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
8217         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
8218         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
8219         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
8220         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
8221         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
8222         (UNSPEC_SCC): Moved from mips.md.
8223         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
8224         "processor_type" to "processor".
8225         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
8226         * config/mips/mips.h (processor_type): Delete.
8227         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
8228         "processor_type" to "processor".
8229
8230 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8231
8232         * configure.ac (tm_include_list): Add insn-constants.h.
8233         * configure: Regenerate.
8234         * Makefile.in (GTM_H): Move insn-constants.h here from...
8235         (TM_H): ...here.
8236         * mkconfig.sh: Remove special handling for insn-constants.h.
8237
8238 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8239
8240         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
8241         (BUILD_MD): ...this new variable.
8242         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
8243         that include the old contents of simple_generated_h and
8244         simple_generated_c.
8245         (simple_generated_h, simple_generated_c): Include them.  Add
8246         insn-constants.h.
8247         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
8248         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
8249         Remove these dependencies from the main rule and include
8250         insn-conditions.md in the command line only if it appears
8251         in the dependency list.
8252         (insn-constants.h, s-constants): Delete.
8253         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
8254         or gensupport.h.
8255         (build/genmddeps.o): Likewise.
8256         (genprogrtl): New variable that contains everything from genprogmd
8257         except mddeps and constants.
8258         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
8259         depend on $(BUILD_MD)
8260         (genprog): New variable.  Make these programs depend on
8261         $(BUILD_ERRORS).
8262         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
8263         (main): Use read_md_files instead of init_rtx_reader_args.
8264         * genconstants.c: As for genmddeps.c.
8265         * read-md.h (read_skip_construct): Declare.
8266         * read-md.c (read_skip_construct): New function.
8267         (handle_file): Allow a null handle_directive, skipping the
8268         construct if so.
8269         (parse_include): Update the comment accordingly.
8270
8271 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8272
8273         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
8274         * genmddeps.c: Include read-md.h.
8275         (main): Call init_rtx_reader_args instead of init_md_reader_args.
8276         * genattr.c (main): Likewise.
8277         * genattrtab.c (main): Likewise.
8278         * genautomata.c (main): Likewise.
8279         * gencodes.c (main): Likewise.
8280         * genconditions.c (main): Likewise.
8281         * genconfig.c (main): Likewise.
8282         * genconstants.c (main): Likewise.
8283         * genemit.c (main): Likewise.
8284         * genextract.c (main): Likewise.
8285         * genflags.c (main): Likewise.
8286         * genopinit.c (main): Likewise.
8287         * genoutput.c (main): Likewise.
8288         * genpeep.c (main): Likewise.
8289         * genrecog.c (main): Likewise.
8290         * genpreds.c (main): Likewise.
8291         * gensupport.h (in_fname): Move to read-md.h.
8292         (init_md_reader_args_cb): Rename to...
8293         (init_rtx_reader_args_cb): ...this and return a bool.
8294         (init_md_reader_args): Rename to...
8295         (init_rtx_reader_args): ...this and return a bool.
8296         (include_callback): Move to read-md.h.
8297         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
8298         (file_name_list, first_dir_md_include): Move to read-md.c
8299         (first_bracket_include): Delete unused variable.
8300         (last_dir_md_include): Move to read-md.c.
8301         (process_include): Delete, moving code to read-md.c:handle_include.
8302         (process_rtx): Don't handle INCLUDE.
8303         (save_string): Delete.
8304         (rtx_handle_directive): New function.
8305         (init_md_reader_args_cb): Rename to...
8306         (init_rtx_reader_args_cb): ...this and return a boolean success value.
8307         Use read_md_args.
8308         (init_md_reader_args): Rename to...
8309         (init_rtx_reader_args): ...this and return a boolean success value.
8310         * rtl.def (INCLUDE): Delete.
8311         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
8312         argument.
8313         * read-rtl.c (read_conditions): Don't gobble ')' here.
8314         (read_mapping): Likewise.
8315         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
8316         Handle top-level non-rtx constructs here rather than in read_rtx_1.
8317         Store the whole queue in *X.  Remove call to init_md_reader.
8318         (read_rtx_1): Rename to...
8319         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
8320         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
8321         here.
8322         (read_nested_rtx): New function.  Handle (nil) here rather than
8323         in read_rtx_code.
8324         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
8325         gobble ')' here.
8326         * read-md.h (directive_handler_t): New type.
8327         (in_fname, include_callback): Moved from read-md.h.
8328         (read_constants, init_md_reader): Delete.
8329         (read_md_files): Declare.
8330         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
8331         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
8332         from gensupport.c.
8333         (read_constants): Rename to...
8334         (handle_constants): ...this.  Don't gobble ')' here.
8335         (handle_include, handle_file, handle_toplevel_file)
8336         (parse_include): New functions, mostly taken from gensupport.c.
8337         (init_md_reader): Subsume into...
8338         (read_md_files): ...this new function.
8339
8340 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8341
8342         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
8343         (unread_char): Decrement read_md_lineno after putting back '\n'.
8344         * read-md.c (fatal_with_file_and_line): Push back any characters
8345         that we decide not to add to the context.
8346         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
8347         fatal_expected_char in cases where '/' ends a line (for example).
8348         (read_name): Don't increment read_md_lineno here.
8349         (read_escape): Likewise.
8350         (read_quoted_string): Likewise.
8351         (read_braced_string): Likewise.
8352
8353 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8354
8355         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
8356         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
8357         * genconstants.c: Include read-md.h.
8358         * read-rtl.c (md_constants): Move to read-md.c.
8359         (md_name): Move to read-md.h.
8360         (initialize_iterators): Use leading_string_hash instead of def_hash
8361         and leading_string_eq_p instead of def_name_eq_p.
8362         (read_name): Move to read-md.c.
8363         (def_hash, def_name_eq_p): Delete.
8364         (read_constants, traverse_md_constants): Move to read-md.c.
8365         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
8366         * read-md.h: Include hashtab.h.
8367         (md_name): Moved from read-rtl.c.
8368         (md_constant): Moved from read-md.h.
8369         (leading_string_hash, leading_string_eq_p, read_name)
8370         (read_constants, traverse_md_constants): Declare.
8371         * read-md.c (md_constants): Moved from read-rtl.c.
8372         (leading_string_hash, leading_string_eq_p): New functions.
8373         (read_name, read_constants, traverse_md_constants): Moved from
8374         read-rtl.c.
8375
8376 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8377
8378         * read-rtl.c (md_name): New structure.
8379         (read_name): Take an md_name instead of a buffer pointer.
8380         Use the "string" field instead of strcpy when expanding constants.
8381         (read_constants): Remove the tmp_char argument.  Update the calls
8382         to read_name, using two local name buffers instead of the tmp_char
8383         argument.  Merge the constant-creation code.
8384         (read_conditions): Remove the tmp_char argument.  Update the calls
8385         to read_name, using a local name buffer instead of the tmp_char
8386         argument.
8387         (read_mapping): Replace tmp_char variable with a local name buffer.
8388         Update the calls to read_name.
8389         (read_rtx_1): Likewise.  Update the calls to read_constants and
8390         read_conditions.
8391
8392 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8393
8394         * Makefile.in (build/read-md.o): Depend on errors.h.
8395         * read-md.h (error_with_line): Declare.
8396         * read-md.c: Include errors.h.
8397         (message_with_line_1): New function, extracted from...
8398         (message_with_line): ...here.
8399         (error_with_line): New function.
8400         * genattrtab.c: If a call to message_with_line is followed by
8401         "have_error = 1;", replace both statements with a call to
8402         error_with_line.
8403         * genoutput.c: Likewise.
8404         * genpreds.c: Likewise.
8405         * genrecog.c: If a call to message_with_line is followed by
8406         "error_count++;", replace both statements with a call to
8407         error_with_line.
8408         (errorcount): Delete.
8409         (main): Don't check it.
8410         * gensupport.c: If a call to message_with_line is followed by
8411         "errors = 1;", replace both statements with a call to error_with_line.
8412         (errors): Delete.
8413         (process_define_cond_exec): Check have_error instead of errors.
8414         (init_md_reader_args_cb): Likewise.  Don't set errors.
8415
8416 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8417
8418         * read-md.h (read_md_file): Declare.
8419         (read_char, unread_char): New functions.
8420         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
8421         (read_quoted_string, read_string): Remove FILE * argument.
8422         * read-md.c (read_md_file): New variable.
8423         (read_md_filename, read_md_lineno): Update comments and remove
8424         unnecessary initialization.
8425         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
8426         (read_escape, read_quoted_string, read_braced_string, read_string):
8427         Remove FILE * argument.  Update calls accordingly, using read_char
8428         and unread_char instead of getc and ungetc.
8429         * rtl.h (read_rtx): Remove FILE * argument.
8430         * read-rtl.c (iterator_group): Remove FILE * argument from
8431         "find_builtin".
8432         (iterator_traverse_data): Remove "infile" field.
8433         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
8434         (add_mapping, read_name, read_constants, read_conditions)
8435         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
8436         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
8437         Remove file arguments from all calls, using read_char and unread_char
8438         instead of getc and ungetc.
8439         * gensupport.c (process_include): Preserve read_md_file around
8440         the include.  Set read_md_file to the handle of the included file.
8441         Update call to read_rtx.
8442         (init_md_reader_args_cb): Set read_md_file to the handle of the file
8443         and remove local FILE *.  Update calls to read_rtx.
8444
8445 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8446
8447         * read-md.h (read_rtx_lineno): Rename to...
8448         (read_md_lineno): ...this.
8449         (read_rtx_filename): Rename to...
8450         (read_md_filename): ...this.
8451         (copy_rtx_ptr_loc): Rename to...
8452         (copy_md_ptr_loc): ...this.
8453         (print_rtx_ptr_loc): Rename to...
8454         (print_md_ptr_loc): ...this.
8455         * read-md.c: Likewise.  Update references after renaming.
8456         (string_obstack): Replace RTL with MD in comment.
8457         (set_rtx_ptr_loc): Rename to...
8458         (set_md_ptr_loc): ...this.
8459         (get_rtx_ptr_loc): Rename to...
8460         (get_md_ptr_loc): ...this.
8461         * genconditions.c: Update references after renaming.
8462         * genemit.c: Likewise.
8463         * genoutput.c: Likewise.
8464         * genpreds.c: Likewise.
8465         * gensupport.c: Likewise.
8466         * read-rtl.c: Likewise.
8467
8468 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8469
8470         * Makefile.in (READ_MD_H): New variable.
8471         (BUILD_RTL): Add build/read-md.o.
8472         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
8473         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
8474         (build/genattrtab.o, build/genconditions.o build/genemit.o)
8475         (build/genextract.o, build/genflags.o, build/genoutput.o)
8476         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
8477         (build/read-md.o): New rule.
8478         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
8479         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
8480         * coretypes.h: ...here.
8481         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
8482         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
8483         * genattr.c: Include read-md.h.
8484         * genattrtab.c: Likewise.
8485         * genconditions.c: Likewise.
8486         * genemit.c: Likewise.
8487         * genextract.c: Likewise.
8488         * genflags.c: Likewise.
8489         * genoutput.c: Likewise.
8490         * genpreds.c: Likewise.
8491         * genrecog.c: Likewise.
8492         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
8493         (join_c_conditions, print_c_condition, read_rtx_filename)
8494         (read_rtx_lineno): Move to read-md.h.
8495         * read-rtl.c: Include read-md.h.
8496         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
8497         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
8498         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
8499         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
8500         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
8501         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
8502         (read_braced_string, read_string): Move to read-md.c.
8503         (read_rtx): Move some initialization to init_md_reader and call
8504         init_md_reader here.
8505         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
8506         Move to read-md.h.
8507         * gensupport.c: Include read-md.h.
8508         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
8509         * read-md.h, read-md.c: New files.
8510
8511 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
8512
8513         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8514         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8515         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
8516         * config/moxie/moxie.c (moxie_function_value): Make static.
8517         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
8518         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8519
8520 2010-06-10  Martin Jambor  <mjambor@suse.cz>
8521
8522         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
8523         * dbgcnt.def (tree_sra): New counter.
8524         * tree-sra.c: Include dbgcnt.h.
8525         (gate_intra_sra): Check tree_sra debug counter.
8526
8527 2010-06-10  Martin Jambor  <mjambor@suse.cz>
8528
8529         PR tree-optimization/44258
8530         * tree-sra.c (build_access_subtree): Return false iff there is a
8531         partial overlap.
8532         (build_access_trees): Likewise.
8533         (analyze_all_variable_accesses): Disqualify candidates if
8534         build_access_trees returns true for them.
8535
8536 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
8537
8538         PR debug/41371
8539         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
8540         tail-recurse into canonical node.  Fast-forward over
8541         non-canonical VALUEs.
8542
8543 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
8544
8545         PR boostrap/44470
8546         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
8547         (*addsi_1_zext) <TYPE_LEA>: Likewise.
8548         (add lea splitter): Likewise.
8549         (add_zext lea splitter): Likewise.
8550
8551 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
8552
8553         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
8554
8555 2010-06-10  Jan Hubicka  <jh@suse.cz>
8556
8557         * df-problems.c (df_live_problem_data): Add live_bitmaps.
8558         (df_live_alloc): Initialize problem data and live_osbtacks.
8559         (df_live_finalize): Remove obstack, problem data; do not
8560         clear all bitmaps.
8561         (df_live_top_dump, df_live_bottom_dump): Do not dump old
8562         data when not allocated.
8563         (df_live_verify_solution_start): Do not allocate problem data.
8564         (df_live_verify_solution_end): Check if out is allocated.
8565         (struct df_md_problem_data): New structure.
8566         (df_md_alloc): Allocate problem data.
8567         (df_md_free): Free problem data; do not clear bitmaps.
8568
8569 2010-06-10  Jan Beulich  <jbeulich@novell.com>
8570
8571         PR bootstrap/37304
8572         * configure.ac: Replace $() with ${} when intending to expand
8573         variables rather than invoking commands.
8574         * configure: Re-generate.
8575
8576 2010-06-10  Jan Hubicka  <jh@suse.cz>
8577
8578         PR rtl-optimization/44460
8579         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8580         TYPE_NEEDS_CONSTRUCTING sanity check.
8581
8582 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
8583
8584         * doc/include/fdl.texi: Move to GFDL version 1.3.
8585
8586         * doc/cpp.texi: Move to GFDL version 1.3.
8587         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
8588         * doc/gccint.texi: Move to GFDL version 1.3.
8589         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
8590         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
8591         * doc/invoke.texi: Move to GFDL version 1.3.
8592
8593 2010-06-09  Jan Hubicka  <jh@suse.cz>
8594
8595         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
8596         Break out from ...
8597         (propagate) ... here; swap the order.
8598
8599 2010-06-09  Jan Hubicka  <jh@suse.cz>
8600
8601         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
8602         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
8603         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
8604         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
8605
8606 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
8607
8608         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
8609         Do not the gather memory reference in the outer loop if the step
8610         is not a constant.
8611
8612 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
8613
8614         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
8615         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
8616         8 to 4.  Minor change of the related comments.
8617
8618 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8619
8620         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
8621         the scev analysis when the variable is not used outside the loop
8622         in a close phi node: call compute_overall_effect_of_inner_loop.
8623
8624 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8625
8626         * graphite-sese-to-poly.c (single_pred_cond): Renamed
8627         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
8628         (build_sese_conditions_before): Renamed call to single_pred_cond.
8629         (build_sese_conditions_after): Same.
8630
8631 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8632
8633         * graphite-poly.h: Fix comments and indentation.
8634         * graphite-sese-to-poly.c: Same.
8635         (build_sese_conditions_before): Compute stmt and gbb only when needed.
8636         * tree-chrec.c: Fix comments and indentation.
8637         (tree-ssa-loop-niter.c): Same.
8638
8639 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
8640
8641         PR rtl-optimization/42461
8642         * dce.c (deletable_insn_p): Return true for const or pure calls again.
8643         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
8644
8645 2010-06-09  Jan Hubicka  <jh@suse.cz>
8646
8647         * bitmap.c (bitmap_and): Walk array forward.
8648         (bitmap_and_compl_into): Likewise.
8649         (bitmap_xor): Likewise.
8650         (bitmap_xor_into):  Likewise.
8651         (bitmap_equal_p): Likewise.
8652         (bitmap_intersect_p): Likewise.
8653         (bitmap_intersect_compl_p): Likewise.
8654         (bitmap_ior_and_into): Likewise.
8655         (bitmap_elt_copy): Likewise.
8656         (bitmap_and_compl): Likewise.
8657         (bitmap_elt_ior): Likewise.
8658
8659 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
8660
8661         * opts-common.c (prune_options): Ensure replacement argv array
8662         is correctly terminated by a NULL entry.
8663
8664 2010-06-09  Jan Hubicka  <jh@suse.cz>
8665
8666         * cgraph.h (varpool_first_static_initializer,
8667         varpool_next_static_initializer): Make checking only when
8668         checking enabled.
8669         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
8670         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
8671         gcc_assert to gcc_checking_assert.
8672         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
8673         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
8674         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
8675         op_iter_init_phiuse, op_iter_init_phidef,
8676         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
8677         gcc_checking_assert.
8678         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
8679         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
8680         partition_is_global, live_on_entry, live_on_exit,
8681         live_merge_and_clear): Likewise.
8682         * system.h (gcc_checking_assert): New macro.
8683         * gimple.h (set_bb_seq): Use gcc_checking_assert.
8684
8685 2010-06-09  Jason Merrill  <jason@redhat.com>
8686
8687         * Makefile.in (TAGS): Collect tags info from c-family.
8688
8689 2010-06-09  Jan Hubicka  <jh@suse.cz>
8690
8691         * gimple.h (gcc_gimple_checking_assert): New macro.
8692         (gimple_set_def_ops, gimple_set_use_ops,
8693         gimple_set_vuse, gimple_set_vdef,
8694         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
8695         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
8696         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
8697         gimple_asm_output_op, gimple_asm_output_op_ptr,
8698         gimple_asm_set_output_op, gimple_asm_clobber_op,
8699         gimple_asm_set_clobber_op, gimple_asm_label_op,
8700         gimple_asm_set_label_op, gimple_try_set_kind,
8701         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
8702         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
8703         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
8704         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
8705         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
8706         gimple_omp_for_set_initial, gimple_omp_for_final,
8707         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
8708         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
8709         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
8710         conditional with ENABLE_GIMPLE_CHECKING.
8711         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
8712
8713 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
8714
8715         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
8716         (get_computation_cost_at): Use it.
8717         (determine_use_iv_cost_condition): Likewise.
8718         (determine_iv_cost): Likewise.
8719
8720 2010-06-09  Richard Guenther  <rguenther@suse.de>
8721
8722         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
8723         replace constants.
8724
8725 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
8726
8727         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
8728
8729 2010-06-09  Martin Jambor  <mjambor@suse.cz>
8730
8731         PR tree-optimization/44423
8732         * tree-sra.c (dump_access): Dump also grp_assignment_read.
8733         (analyze_access_subtree): Pass negative allow_replacements to children
8734         if the current type is scalar.
8735
8736 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
8737
8738         PR testsuite/42843
8739         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
8740         * doc/plugins.texi (Plugin license check): Update information
8741         on type of plugin_is_GPL_compatible.
8742         * Makefile.in (PLUGINCC): Define as $(COMPILER).
8743         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
8744
8745 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
8746
8747         * config/arm/arm.c (thumb2_reorg): New function.
8748         (arm_reorg): Call it.
8749         * config/arm/thumb2.md (define_peephole2 for flag clobbering
8750         arithmetic operations): Delete.
8751
8752 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
8753
8754         PR target/44067
8755         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
8756         e500v2 target.
8757
8758 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
8759
8760         PR plugins/44459
8761         * gcc-plugin.h: Encapsulate all declarations in extern "C".
8762
8763 2010-06-08  Jan Hubicka  <jh@suse.cz>
8764
8765         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
8766         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
8767
8768 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
8769
8770         PR tree-optimization/39874
8771         PR middle-end/28685
8772         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
8773         Declare.
8774         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
8775         same_bool_result_p): New.
8776         (and_var_with_comparison, and_var_with_comparison_1,
8777         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
8778         (or_var_with_comparison, or_var_with_comparison_1,
8779         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
8780         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
8781         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
8782         of combine_comparisons.
8783         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
8784
8785 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
8786
8787         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8788         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8789         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
8790         pdp11_function_value_regno_p): New functions.
8791         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8792         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8793
8794 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
8795
8796         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
8797         Thumb-2 in the MINUS case.
8798
8799 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8800
8801         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
8802
8803         * doc/gty.texi (GTY Options): Document typed GC allocation and
8804         variable_size GTY option.
8805
8806         * ggc-internal.h: New.
8807
8808         * ggc.h: Update copyright year.
8809         (digit_string): Move to stringpool.c.
8810         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
8811         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
8812         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
8813         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
8814         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
8815         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
8816         (ggc_force_collect, ggc_get_size, ggc_statistics)
8817         (ggc_print_common_statistics): Move to ggc-internal.h.
8818         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
8819         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
8820         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
8821         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
8822         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
8823         (ggc_alloc_zone_pass_stat): Remove.
8824         (ggc_internal_alloc_stat, ggc_internal_alloc)
8825         (ggc_internal_cleared_alloc_stat): New.
8826         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
8827         (ggc_internal_vec_alloc_stat)
8828         (ggc_internal_cleared_vec_alloc_stat)
8829         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
8830         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
8831         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
8832         (ggc_cleared_alloc_ptr_array_two_args): New.
8833         (htab_create_ggc, splay_tree_new_ggc): Redefine.
8834         (ggc_splay_alloc): Change the type of the first argument to
8835         enum gt_types_enum.
8836         (ggc_alloc_string): Make macro.
8837         (ggc_alloc_string_stat): New.
8838         (ggc_strdup): Redefine.
8839         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
8840         (ggc_alloc_rtvec_sized): New.
8841         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
8842         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
8843         (ggc_internal_cleared_alloc_zone_stat)
8844         (ggc_internal_zone_alloc_stat)
8845         (ggc_internal_zone_cleared_alloc_stat)
8846         (ggc_internal_zone_vec_alloc_stat)
8847         (ggc_alloc_zone_rtx_def_stat)
8848         (ggc_alloc_zone_tree_node_stat)
8849         (ggc_alloc_zone_cleared_tree_node_stat)
8850         (ggc_alloc_cleared_gimple_statement_d_stat): New.
8851
8852         * ggc-common.c: Include ggc-internal.h.
8853         (ggc_internal_cleared_alloc_stat): Rename from
8854         ggc_alloc_cleared_stat.
8855         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
8856         (ggc_calloc): Remove.
8857         (ggc_cleared_alloc_htab_ignore_args): New.
8858         (ggc_cleared_alloc_ptr_array_two_args): New.
8859         (ggc_splay_alloc): Add obj_type parameter.
8860         (init_ggc_heuristics): Formatting fixes.
8861
8862         * ggc-none.c: Update copyright year.
8863         (ggc_alloc_stat): Rename to ggc_alloc_stat.
8864         (ggc_alloc_cleared_stat): Rename to
8865         ggc_internal_cleared_alloc_stat.
8866         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8867
8868         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
8869         Remove references to ggc_alloc in comments.
8870         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
8871         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
8872         (new_ggc_zone, destroy_ggc_zone): Remove.
8873         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8874
8875         * ggc-zone.c: Include ggc-internal.h.  Remove references to
8876         ggc_alloc in comments.
8877         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
8878         (ggc_internal_alloc_zone_pass_stat): New.
8879         (ggc_internal_cleared_alloc_zone_stat): New.
8880         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
8881         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
8882         (new_ggc_zone, destroy_ggc_zone): Remove.
8883
8884         * stringpool.c: Update copyright year.  Include ggc-internal.h
8885         (digit_vector): Make static.
8886         (digit_string): Moved from ggc.h.
8887         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
8888         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
8889
8890         * Makefile.in (GGC_INTERNAL_H): New.
8891         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
8892         $(GGC_INTERNAL_H) to dependencies.
8893
8894         * gentype.c: Update copyright year.
8895         (walk_type): Accept variable_size GTY option.
8896         (USED_BY_TYPED_GC_P): New macro.
8897         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
8898         whitespace at the end of strings.
8899         (get_type_specifier, variable_size_p): New functions.
8900         (alloc_quantity, alloc_zone): New enums.
8901         (write_typed_alloc_def): New function.
8902         (write_typed_struct_alloc_def): Likewise.
8903         (write_typed_typed_typedef_alloc_def): Likewise.
8904         (write_typed_alloc_defns): Likewise.
8905         (output_typename, write_splay_tree_allocator_def): Likewise.
8906         (write_splay_tree_allocators): Likewise.
8907         (main): Call write_typed_alloc_defns and
8908         write_splay_tree_allocators.
8909
8910         * lto-streamer.h (lto_file_decl_data_ptr): New.
8911
8912         * passes.c (order): Define using cgraph_node_ptr.
8913
8914         * strinpool.c (struct string_pool_data): Declare nested_ptr using
8915         ht_identifier_ptr.
8916
8917         * gimple.h (union gimple_statement_d): Likewise.
8918
8919         * rtl.h (struct rtx_def): Likewise.
8920         (struct rtvec_def): Likewise.
8921
8922         * tree.h (union tree_node): Likewise.
8923
8924         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
8925
8926         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
8927
8928         * tree-scalar-evolution.c (scev_initialize): Likewise.
8929
8930         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
8931
8932         * dwarf2asm.c (dw2_force_const_mem): Likewise.
8933
8934         * omp-low.c (lower_omp_critical): Likewise.
8935
8936         * bitmap.h (struct bitmap_head_def): Update comment to not
8937         reference ggc_alloc.
8938
8939         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
8940
8941         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
8942
8943         * ipa-prop.c (duplicate_ggc_array): Rename to
8944         duplicate_ipa_jump_func_array.  Use typed GC allocation.
8945         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
8946
8947         * gimple.c (gimple_alloc_stat): Use
8948         ggc_alloc_cleared_gimple_statement_d_stat.
8949
8950         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
8951
8952         * tree.c (make_node_stat): Use
8953         ggc_alloc_zone_cleared_tree_node_stat.
8954         (make_tree_vec_stat): Likewise.
8955         (build_vl_exp_stat): Likewise.
8956         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
8957         (make_tree_binfo_stat): Likewise.
8958         (tree_cons_stat): Likewise.
8959
8960         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
8961         (shallow_copy_rtx_stat): Likewise.
8962         (make_node_stat): Likewise.
8963
8964         * lto-symtab.c: Fix comment.
8965
8966         * tree-cfg.c (create_bb): Update comment to not reference
8967         ggc_alloc_cleared.
8968         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
8969
8970         * varpool.c (varpool_node): Use typed GC allocation.
8971         (varpool_extra_name_alias): Likewise.
8972
8973         * varasm.c (emutls_decl): Likewise.
8974         (get_unnamed_section): Likewise.
8975         (get_noswitch_section): Likewise.
8976         (get_section): Likewise.
8977         (get_block_for_section): Likewise.
8978         (build_constant_desc): Likewise.
8979         (create_constant_pool): Likewise.
8980         (force_const_mem): Likewise.
8981
8982         * tree.c (build_vl_exp_stat): Likewise.
8983         (build_real): Likewise.
8984         (build_string): Likewise.
8985         (decl_debug_expr_insert): Likewise.
8986         (decl_value_expr_insert): Likewise.
8987         (type_hash_add): Likewise.
8988         (build_omp_clause): Likewise.
8989
8990         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
8991
8992         * tree-ssa.c (init_tree_ssa): Likewise.
8993
8994         * tree-ssa-structalias.c (heapvar_insert): Likewise.
8995
8996         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
8997
8998         * tree-ssa-loop-niter.c (record_estimate): Likewise.
8999
9000         * tree-ssa-alias.c (get_ptr_info): Likewise.
9001
9002         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
9003
9004         * tree-phinodes.c (allocate_phi_node): Likewise.
9005
9006         * tree-iterator.c (tsi_link_before): Likewise.
9007         (tsi_link_after): Likewise.
9008
9009         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
9010
9011         * tree-dfa.c (create_var_ann): Likewise.
9012
9013         * tree-cfg.c (create_bb): Likewise.
9014
9015         * toplev.c (alloc_for_identifier_to_locale): Likewise.
9016         (general_init): Likewise.
9017
9018         * stringpool.c (stringpool_ggc_alloc): Likewise.
9019         (gt_pch_save_stringpool): Likewise.
9020
9021         * sese.c (if_region_set_false_region): Likewise.
9022
9023         * passes.c (do_per_function_toporder): Likewise.
9024
9025         * optabs.c (set_optab_libfunc): Likewise.
9026         (set_conv_libfunc): Likewise.
9027
9028         * lto-symtab.c (lto_symtab_register_decl): Likewise.
9029
9030         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
9031         (input_eh_region): Likewise.
9032         (input_eh_lp): Likewise.
9033         (make_new_block): Likewise.
9034         (unpack_ts_real_cst_value_fields): Likewise.
9035
9036         * lto-section-in.c (lto_new_in_decl_state): Likewise.
9037
9038         * lto-cgraph.c (input_node_opt_summary): Likewise.
9039
9040         * loop-init.c (loop_optimizer_init): Likewise.
9041
9042         * lambda.h (lambda_vector_new): Likewise.
9043
9044         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
9045
9046         * ira.c (update_equiv_regs): Likewise.
9047
9048         * ipa.c (cgraph_node_set_new): Likewise.
9049         (cgraph_node_set_add): Likewise.
9050         (varpool_node_set_new): Likewise.
9051         (varpool_node_set_add): Likewise.
9052
9053         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
9054         (duplicate_ipa_jump_func_array): Likewise.
9055         (ipa_read_node_info): Likewise.
9056
9057         * ipa-cp.c (ipcp_create_replace_map): Likewise.
9058
9059         * integrate.c (get_hard_reg_initial_val): Likewise.
9060
9061         * gimple.c (gimple_alloc_stat): Likewise.
9062         (gimple_build_omp_for): Likewise.
9063         (gimple_seq_alloc): Likewise.
9064         (gimple_copy): Likewise.
9065
9066         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
9067         (gsi_insert_after_without_update): Likewise.
9068
9069         * function.c (add_frame_space): Likewise.
9070         (insert_temp_slot_address): Likewise.
9071         (assign_stack_temp_for_type): Likewise.
9072         (allocate_struct_function): Likewise.
9073         (types_used_by_var_decl_insert): Likewise.
9074
9075         * except.c (init_eh_for_function): Likewise.
9076         (gen_eh_region): Likewise.
9077         (gen_eh_region_catch): Likewise.
9078         (gen_eh_landing_pad): Likewise.
9079         (add_call_site): Likewise.
9080
9081         * emit-rtl.c (get_mem_attrs): Likewise.
9082         (get_reg_attrs): Likewise.
9083         (start_sequence): Likewise.
9084         (init_emit): Likewise.
9085
9086         * dwarf2out.c (new_cfi): Likewise.
9087         (queue_reg_save): Likewise.
9088         (dwarf2out_frame_init): Likewise.
9089         (new_loc_descr): Likewise.
9090         (find_AT_string): Likewise.
9091         (new_die): Likewise.
9092         (add_var_loc_to_decl): Likewise.
9093         (clone_die): Likewise.
9094         (clone_as_declaration): Likewise.
9095         (break_out_comdat_types): Likewise.
9096         (new_loc_list): Likewise.
9097         (loc_descriptor): Likewise.
9098         (add_loc_descr_to_each): Likewise.
9099         (add_const_value_attribute): Likewise.
9100         (tree_add_const_value_attribute): Likewise.
9101         (add_comp_dir_attribute): Likewise.
9102         (add_name_and_src_coords_attributes): Likewise.
9103         (lookup_filename): Likewise.
9104         (store_vcall_insn): Likewise.
9105         (dwarf2out_init): Likewise.
9106
9107         * dbxout.c (dbxout_init): Likewise.
9108
9109         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9110
9111         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9112
9113         * config/score/score7.c (score7_output_external): Likewise.
9114
9115         * config/score/score3.c (score3_output_external): Likewise.
9116
9117         * config/s390/s390.c (s390_init_machine_status): Likewise.
9118
9119         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
9120         (rs6000_init_machine_status): Likewise.
9121         (output_toc): Likewise.
9122
9123         * config/pa/pa.c (pa_init_machine_status): Likewise.
9124         (get_deferred_plabel): Likewise.
9125
9126         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
9127
9128         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
9129
9130         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
9131
9132         * config/mep/mep.c (mep_init_machine_status): Likewise.
9133         (mep_note_pragma_flag): Likewise.
9134
9135         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
9136
9137         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
9138
9139         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
9140
9141         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
9142         (i386_pe_maybe_record_exported_symbol): Likewise.
9143
9144         * config/i386/i386.c (get_dllimport_decl): Likewise.
9145         (ix86_init_machine_status): Likewise.
9146         (assign_386_stack_local): Likewise.
9147
9148         * config/frv/frv.c (frv_init_machine_status): Likewise.
9149
9150         * config/darwin.c (machopic_indirection_name): Likewise.
9151
9152         * config/cris/cris.c (cris_init_machine_status): Likewise.
9153
9154         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
9155
9156         * config/avr/avr.c (avr_init_machine_status): Likewise.
9157
9158         * config/arm/arm.c (arm_init_machine_status): Likewise.
9159
9160         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
9161         (alpha_need_linkage): Likewise.
9162         (alpha_use_linkage): Likewise.
9163
9164         * cgraph.c (cgraph_allocate_node): Likewise.
9165         (cgraph_create_edge_1): Likewise.
9166         (cgraph_create_indirect_edge): Likewise.
9167         (cgraph_add_asm_node): Likewise.
9168
9169         * cfgrtl.c (init_rtl_bb_info): Likewise.
9170
9171         * cfgloop.c (alloc_loop): Likewise.
9172         (rescan_loop_exit): Likewise.
9173
9174         * cfg.c (init_flow): Likewise.
9175         (alloc_block): Likewise.
9176         (unchecked_make_edge): Likewise.
9177
9178         * c-parser.c (c_parse_init): Likewise.
9179         (c_parse_file): Likewise.
9180
9181         * c-decl.c (bind): Likewise.
9182         (record_inline_static): Likewise.
9183         (push_scope): Likewise.
9184         (make_label): Likewise.
9185         (lookup_label_for_goto): Likewise.
9186         (finish_struct): Likewise.
9187         (finish_enum): Likewise.
9188         (c_push_function_context): Likewise.
9189
9190         * bitmap.c (bitmap_element_allocate): Likewise.
9191         (bitmap_gc_alloc_stat): Likewise.
9192
9193         * alias.c (record_alias_subset): Likewise.
9194         (init_alias_analysis): Likewise.
9195
9196 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
9197
9198         * fold-const.c (fold_comparison): Remove redundant parenthesis.
9199         * tree-inline.c (expand_call_inline): Pass translated return value of
9200         cgraph_inline_failed_string to diagnostic function.
9201
9202 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
9203             Shujing Zhao  <pearly.zhao@oracle.com>
9204
9205         PR c/37724
9206         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
9207         implicit bad conversions is initialization.
9208         (error_init): Use gmsgid instead of msgid for argument name and change
9209         the call for error.
9210         (pedwarn_init): Use gmsgid instead of msgid for argument name and
9211         change the call for pedwarn.
9212         (warning_init): Use gmsgid instead of msgid for argument name and
9213         change the call for warning.
9214
9215 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
9216
9217         * config/mips/mips-protos.h (mips_print_operand): Delete.
9218         (mips_print_operand_address): Delete.
9219         * config/mips/mips.h (mips_print_operand_punct): Delete.
9220         (PRINT_OPERAND): Delete.
9221         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9222         (PRINT_OPERAND_ADDRESS): Delete.
9223         * config/mips/mips.c (mips_print_operand_punct): Make static.
9224         (mips_print_operand_address): Make static.
9225         (mips_print_operand): Make static.  Call
9226         mips_print_operand_punct_valid_p.
9227         (mips_print_operand_punct_valid_p): New function.
9228         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9229         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9230
9231 2010-06-07  Jan Hubicka  <jh@suse.cz>
9232
9233         PR middle-end/44454
9234         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
9235         are allocated.
9236
9237 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
9238
9239         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
9240         name of RECORD.
9241
9242 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9243
9244         * doc/sourcebuild.texi (Effective-Target Keywords, Other
9245         attributes): Document gas.
9246
9247 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
9248
9249         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
9250         <TYPE_LEA>: Split instruction.
9251         <default>: Remove alternative 2 handling.
9252         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
9253         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
9254         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
9255
9256         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
9257         (ashift_zext lea splitter): Use DImode for multiplication.
9258
9259         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
9260         to generate addition.
9261
9262 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
9263
9264         * common.opt (fira-verbose): Use Var.
9265         (fpcc-struct-return): Use Init instead of VarExists.
9266         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
9267         toplev.c.
9268         * flags.h (flag_signed_char, flag_short_enums,
9269         flag_pcc_struct_return, flag_ira_verbose,
9270         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
9271         * toplev.c (flag_detailed_statistics, flag_signed_char,
9272         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
9273         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
9274         * toplev.h (flag_crossjumping, flag_if_conversion,
9275         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
9276         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
9277         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
9278         flag_cprop_registers, time_report, flag_ira_loop_pressure,
9279         flag_ira_coalesce, flag_ira_move_spills,
9280         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
9281
9282 2010-06-07  Jan Hubicka  <jh@suse.cz>
9283
9284         * df-core.c (df_analyze_problem): Do verification after allocation.
9285
9286         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
9287         (df_lr_alloc): Initialize problem data; move bitmaps to
9288         lr_bitmaps obstack.
9289         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
9290         (df_lr_verify_solution_start): Do not initialize problem data;
9291         allocate bitmaps in lr_bitmaps.
9292         (df_lr_verify_solution_end): Do not free problem data.
9293
9294 2010-06-07  Jan Hubicka  <jh@suse.cz>
9295
9296         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
9297         if caller is noreturn.
9298         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
9299         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
9300         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
9301         * ipa-pure-const.c (check_decl): Add IPA parameter.
9302         (state_from_flags): New function.
9303         (better_state, worse_state): New functions.
9304         (check_call): When in IPA mode, do not care about callees.
9305         (check_load, check_store): Update.
9306         (check_ipa_load, check_ipa_store): New.
9307         (check_stmt): When in IPA mode, use IPA checkers.
9308         (analyze_function): Use state_from_flags.
9309         (propagate): Check indirect edges and references.
9310
9311 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
9312
9313         PR rtl-optimization/44404
9314         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
9315         of count_occurrences to see if it's safe to modify mem_insn.
9316
9317 2010-06-07  Richard Guenther  <rguenther@suse.de>
9318
9319         * gimplify.c (gimplify_cleanup_point_expr): For empty body
9320         and EH-only cleanup drop the cleanup instead of inserting it
9321         unconditionally.
9322
9323 2010-06-07  Ira Rosen  <irar@il.ibm.com>
9324
9325         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
9326         documentation.
9327         * targhooks.c (default_builtin_vectorization_cost): New function.
9328         * targhooks.h (default_builtin_vectorization_cost): Declare.
9329         * target.h (enum vect_cost_for_stmt): Define.
9330         (builtin_vectorization_cost): Change argument and comment.
9331         * tree-vectorizer.h: Remove cost model macros.
9332         * tree-vect-loop.c: Include target.h.
9333         (vect_get_cost): New function.
9334         (vect_estimate_min_profitable_iters): Replace cost model macros with
9335         calls to vect_get_cost.
9336         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
9337         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
9338         default implementation.
9339         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
9340         calls to target hook builtin_vectorization_cost.
9341         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
9342         Likewise.
9343         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
9344         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
9345         implementation to return costs.
9346         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
9347         * config/spu/spu.h: Remove vectorizer cost model macros.
9348         * config/i386/i386.h: Likewise.
9349         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
9350         a call to target hook builtin_vectorization_cost.
9351
9352 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
9353
9354         PR target/44319
9355         * config/i386/i386.c (override_options): Turn zee pass on for level 2
9356         and above and defer till target is known.
9357         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
9358         turn off otherwise.
9359
9360 2010-05-25  Jan Hubicka  <jh@suse.cz>
9361
9362         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
9363         (df_compact_blocks): Likewise.
9364         * df.h (struct df): Turn hardware_regs_used,
9365         regular_block_artificial_uses, eh_block_artificial_uses,
9366         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
9367         bitmap_head.
9368         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
9369         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
9370         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
9371         df_scan_blocks, df_insn_delete, df_insn_rescan,
9372         df_insn_rescan_debug_internal, df_insn_rescan_all,
9373         df_process_deferred_rescans, df_process_deferred_rescans,
9374         df_notes_rescan, df_get_call_refs, df_get_call_refs,
9375         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
9376         df_record_entry_block_defs, df_record_exit_block_uses,
9377         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
9378         df_scan_verify): Update.
9379
9380 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
9381
9382         PR c++/44188
9383         * c-common.c (is_typedef_decl): Move this definition ...
9384         * tree.c (is_typedef_decl): ... here.
9385         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
9386         * c-common.h (is_typedef_decl): Move this declaration ...
9387         * tree.h (is_typedef_decl): ... here.
9388         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
9389         * dwarf2out.c (is_naming_typedef_decl): New function.
9390         (gen_tagged_type_die): Split out of ...
9391         (gen_type_die_with_usage): ... this function. When an anonymous
9392         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
9393         is emitted for the typedef.
9394         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
9395         anonymous tagged types.
9396
9397 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9398
9399         PR c/20000
9400         * c-decl.c (grokdeclarator): Delete warning.
9401
9402 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9403
9404         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
9405         newly built CALL_EXPR.
9406         * tree-profile.c (tree_profiling): Don't profile functions produced
9407         for built-in stuff.
9408
9409 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
9410
9411         PR bootstrap/44427
9412         PR bootstrap/44428
9413         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
9414         endianness-independent.
9415
9416 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
9417
9418         * c-common.c: Move to c-family/.
9419         * c-common.def: Likewise.
9420         * c-common.h: Likewise.
9421         * c-cppbuiltin.c: Likewise.
9422         * c-dump.c: Likewise.
9423         * c-format.c: Likewise.
9424         * c-format.h : Likewise.
9425         * c-gimplify.c: Likewise.
9426         * c-lex.c: Likewise.
9427         * c-omp.c: Likewise.
9428         * c.opt: Likewise.
9429         * c-opts.c: Likewise.
9430         * c-pch.c: Likewise.
9431         * c-ppoutput.c: Likewise.
9432         * c-pragma.c: Likewise.
9433         * c-pragma.h: Likewise.
9434         * c-pretty-print.c: Likewise.
9435         * c-pretty-print.h: Likewise.
9436         * c-semantics.c: Likewise.
9437         * stub-objc.c: Likewise.
9438
9439         * gengtype.c (get_file_langdir): Special-case files in c-family/.
9440         (get_output_file_with_visibility): Fix name for c-common.h.
9441         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
9442
9443         * c-tree.h: Update include path for moved files.
9444         * c-lang.c: Likewise.
9445         * c-lang.h: Likewise.
9446         * c-parser.c: Likewise.
9447         * c-convert.c: Likewise.
9448         * c-decl.c: Likewise.
9449         * c-objc-common.c: Likewise.
9450         * configure.ac: Make sure c-family/ exists in the build directory.
9451         * configure: Regenerate.
9452         * Makefile.in: Update paths for moved files.  Regroup files per
9453         location and update dependencies.  Move generated_files down after
9454         ALL_GTFILES_H.
9455
9456         * config/spu/spu-c.c: Update paths for moved files.
9457         * config/mep/mep-pragma.c: Likewise.
9458         * config/darwin-c.c: Likewise.
9459         * config/i386/msformat-c.c: Likewise.
9460         * config/i386/i386-c.c: Likewise.
9461         * config/avr/avr-c.c: Likewise.
9462         * config/sol2-c.c: Likewise.
9463         * config/ia64/ia64-c.c: Likewise.
9464         * config/rs6000/rs6000-c.c: Likewise.
9465         * config/arm/arm.c: Likewise.
9466         * config/arm/arm-c.c: Likewise.
9467         * config/h8300/h8300.c: Likewise.
9468         * config/v850/v850-c.c: Likewise.
9469
9470         * config/t-darwin: Fix dependencies for moved files.
9471         * config/t-sol2: Fix dependencies for moved files.
9472         * config/mep/t-mep: Fix dependencies for moved files.
9473         * config/ia64/t-ia64: Fix dependencies for moved files.
9474         * config/rs6000/t-rs6000: Fix dependencies for moved files.
9475         * config/v850/t-v850: Fix dependencies for moved files.
9476         * config/v850/t-v850e: Fix dependencies for moved files.
9477
9478         * config/m32c/m32c-pragma.c
9479
9480         * po/exgettext: Look in c-family/ also.
9481
9482 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
9483
9484         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
9485         (mark_control_dependent_edges_necessary): Call it instead of marking
9486         the last statement manually.
9487         (propagate_necessity): Likewise.
9488
9489 2010-06-05  Jan Hubicka  <jh@suse.cz>
9490
9491         * basic-block.h (compute_dominance_frontiers): Updated.
9492         (compute_idf): Likewise.
9493
9494         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
9495         for dominance frontiers.
9496         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
9497         (insert_updated_phi_nodes_for): Likewise.
9498         (update_ssa): Likewise.
9499         * cfganal.c (compute_dominance_frontiers_1): Likewise.
9500         (compute_dominance_frontiers): Likewise.
9501         (compute_idf): Likewise.
9502         * df-problems.c (df_md_local_compute): Likewise.
9503
9504 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
9505
9506         * target.h (struct gcc_target): Add memory_move_cost field.
9507         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
9508         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
9509         * targhooks.c (default_memory_move_cost): New function.
9510         * targhooks.h (default_memory_move_cost): Declare function.
9511         * reload.h (memory_move_cost): Declare.
9512         (memory_move_secondary_cost): Change type of 'in' argument to bool.
9513         * reginfo.c (memory_move_cost): New function.
9514         (memory_move_secondary_cost): Change type of 'in' argument to bool.
9515         * ira.h (ira_memory_move_cost): Update comment.
9516         * ira.c (ira_memory_move_cost): Update comment.
9517         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
9518         with memory_move_cost.
9519         * postreload.c (reload_cse_simplify_set): (Ditto.).
9520         * reload1.c (choose_reload_regs): (Ditto.).
9521         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
9522         (MEMORY_MOVE_COST):  Revise documentation.
9523
9524         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9525         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9526         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
9527         type of 'in' argument to bool.
9528         (TARGET_MEMORY_MOVE_COST): Define.
9529
9530 2010-06-05  Jan Hubicka  <jh@suse.cz>
9531
9532         * ipa-pure-const.c (propagate): Fix typo in handling of functions
9533         that cannot return.  Be more careful when merging the results with
9534         previously known ones.
9535
9536 2010-06-05  Matthias Klose  <doko@ubuntu.com>
9537
9538         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
9539         function to add the -iplugindir option.
9540         (find_plugindir_spec_function): Add new declaration and function.
9541         (static_spec_func): Use it for "find-plugindir".
9542
9543 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
9544
9545         PR c++/44361
9546         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
9547         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
9548         statement expression.
9549
9550 2010-06-05  Jan Hubicka  <jh@suse.cz>
9551
9552         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
9553         (df_rd_problem_data): Convert sparse_invalidated_by_call,
9554         dense_invalidated_by_call to bitmap head.
9555         (df_rd_alloc, df_rd_bb_local_compute_process_def,
9556         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
9557         df_rd_start_dump, df_lr_verify_transfer_functions,
9558         df_live_verify_transfer_functions, df_chain_create_bb,
9559         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
9560         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
9561         df_simulate_one_insn_forwards, df_md_alloc,
9562         df_md_bb_local_compute_process_def,
9563         df_md_bb_local_compute_process_def, df_md_local_compute,
9564         df_md_transfer_function df_md_free): Update.
9565
9566 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
9567
9568         PR c/44322
9569         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
9570         target type for ADDR_EXPR; require no changes to qualifiers except
9571         for function types.
9572         * c-tree.h (c_build_type_variant): Remove.
9573
9574 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
9575
9576         * genautomata.c (get_excl_set): Do work per element, not per char.
9577         (check_presence_pattern_sets): Similar.
9578         (check_absence_pattern_sets): Similar.
9579
9580 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
9581
9582         * genautomata.c (curr_state_pass_num): Delete.
9583         (min_issue_delay_pass_states): Delete.
9584         (min_issue_delay): Delete.
9585         (initiate_min_issue_delay_pass_states): Delete.
9586         (output_min_issue_delay_table): Compute min_issue_delay_vect
9587         using a breadth-first search variant.
9588         (output_tables): Don't call initiate_min_issue_delay_pass_states.
9589
9590 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
9591
9592         PR boostrap/44421
9593         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
9594         (df_byte_lr_bb_local_compute): Likewise.
9595
9596 2010-06-03  Jason Merrill  <jason@redhat.com>
9597
9598         Implement noexcept operator (5.3.7)
9599         * c-common.c (c_common_reswords): Add noexcept.
9600         * c-common.h (enum rid): Add RID_NOEXCEPT.
9601
9602 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * config/darwin-driver.c (darwin_default_min_version): Use
9605         GCC-specific formats in diagnostics.
9606         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
9607         diagnostics.
9608         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
9609         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
9610         eval_spec_function, handle_braces, process_brace_body, main,
9611         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
9612         getenv_spec_function, compare_version_strings,
9613         version_compare_spec_function): Use GCC-specific formats in
9614         diagnostics.
9615
9616 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9617
9618         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
9619         that operand 0 and operand 1 are equal.
9620         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
9621         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
9622         and operand 1 are equal.
9623         <default>: Ditto.  Remove ??? comment.
9624         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
9625         and operand 1 are equal.
9626         <default>: Ditto.  Remove ??? comment.
9627         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
9628         are equal.
9629         (*add<mode>_4) <default>: Ditto.
9630         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
9631
9632 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
9633
9634         * config/i386/i386-protos.h (ix86_print_operand): Declare.
9635         * config/i386/i386.c (ix86_print_operand): Make non-static.
9636         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
9637         * output.h (output_operand): Declare.
9638         * final.c (output_operand): Make non-static.
9639
9640 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
9641
9642         PR rtl-optimization/44013
9643         * sched-deps.c (add_dependence_list_and_free): Don't free lists
9644         when processing debug insns.
9645
9646         PR debug/41371
9647         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
9648         recursing.  Check that recursion is bounded.  Rename inner var
9649         to avoid hiding incoming argument.
9650
9651 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9652
9653         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
9654         operands[2] == 255.
9655         (*addqi_3): Ditto.
9656         (*addqi_4): Ditto.
9657         (*addqi_5): Ditto.
9658         (*addqi_ext_1_rex64): Ditto.
9659         (*addqi_ext_1): Ditto.
9660
9661         (*addqi_4): Check for incdec_operand in QImode.
9662
9663         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
9664         using SWI mode iterator.
9665         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
9666         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
9667         mode iterator.
9668         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
9669         using SWI mode iterator.
9670
9671 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9672
9673         PR c/25880
9674         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
9675         * c-format.c (gcc_diag_flag_specs): Add hash.
9676         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
9677         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
9678         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
9679         pp_c_cv_qualifiers. Handle qualifiers spelling here.
9680         (pp_c_type_qualifier_list): Call the function above.
9681         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
9682         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
9683         (WARN_FOR_QUALIFIERS): New macro.
9684         (convert_for_assignment): Use it.
9685
9686 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
9687
9688         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
9689
9690 2010-06-04  Jan Hubicka  <jh@suse.cz>
9691
9692         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
9693         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
9694         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
9695         DF_BYTE_LR_OUT): Update for embedded bitmaps.
9696         * fwprop.c (single_def_use_enter_block): Likewise.
9697         * ddg.c (create_ddg_dep_from_intra_loop_link,
9698         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
9699         * loop-iv.c (latch_dominating_def): Likewise.
9700         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
9701         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
9702         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
9703         df_rd_transfer_function, df_rd_top_dump,
9704         df_rd_bottom_dump): Update.
9705         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
9706         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
9707         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
9708         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
9709         df_lr_verify_solution_start, df_lr_verify_solution_end,
9710         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
9711         df_live_free_bb_info, df_live_alloc, df_live_reset,
9712         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
9713         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
9714         df_live_verify_solution_start, df_live_verify_solution_end,
9715         df_live_verify_transfer_functions, df_chain_create_bb,
9716         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
9717         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9718         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9719         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
9720         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9721         df_byte_lr_transfer_function, df_byte_lr_top_dump,
9722         df_byte_lr_bottom_dump, df_create_unused_note,
9723         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
9724         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
9725         df_md_transfer_function, df_md_init, df_md_confluence_0,
9726         df_md_confluence_n,
9727         df_md_top_dump, df_md_bottom_dump): Update.
9728         (struct df_lr_problem_data): Embedd bitmap headers.
9729
9730 2010-06-04  Jan Hubicka  <jh@suse.cz>
9731
9732         * dce.c (dce_process_block): Do not re-scan already marked
9733         instructions.
9734
9735 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
9736
9737         PR rtl-optimization/39871
9738         PR rtl-optimization/40615
9739         PR rtl-optimization/42500
9740         PR rtl-optimization/42502
9741         * ira.c (init_reg_equiv_memory_loc: New function.
9742         (ira): Call it twice.
9743         * reload.h (calculate_elim_costs_all_insns): Declare.
9744         * ira-costs.c: Include "reload.h".
9745         (regno_equiv_gains): New static variable.
9746         (init_costs): Allocate it.
9747         (finish_costs): Free it.
9748         (ira_costs): Call calculate_elim_costs_all_insns.
9749         (find_costs_and_classes): Take estimated elimination costs
9750         into account.
9751         (ira_adjust_equiv_reg_cost): New function.
9752         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
9753         * reload1.c (init_eliminable_invariants, free_reg_equiv,
9754         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
9755         (elim_bb): New static variable.
9756         (reload): Move code out of here into init_eliminable_invariants and
9757         free_reg_equiv.  Call them.
9758         (calculate_elim_costs_all_insns): New function.
9759         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
9760         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
9761         but call note_reg_elim_costly if we turned a valid memory address
9762         into an invalid one.
9763         * Makefile.in (ira-costs.o): Depend on reload.h.
9764
9765 2010-06-04  Julian Brown  <julian@codesourcery.com>
9766
9767         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
9768         for pool ranges.
9769
9770 2010-06-04  Richard Guenther  <rguenther@suse.de>
9771
9772         PR lto/41584
9773         * cgraph.h (struct varpool_node): Add lto_file_data field.
9774         * lto-cgraph.c (input_varpool_node): Initialize it.
9775
9776 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9777
9778         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
9779         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
9780         predicate in "type" attribute calculation.
9781         (*addsi_1_zext): Ditto.
9782         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
9783         (*addsi_2_zext): Ditto.
9784         (*add<mode>_3): Ditto.
9785         (*addsi_3_zext): Ditto.
9786         (*add<mode>_5): Ditto.
9787
9788 2010-06-03  Jan Hubicka  <jh@suse.cz>
9789
9790         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
9791         of bitmap_bit_p.
9792         * cfganal.c (compute_dominance_frontiers_1): Likewise.
9793
9794 2010-06-03  Jan Hubicka  <jh@suse.cz>
9795
9796         * df-problems.c (df_create_unused_note, df_note_bb_compute):
9797         micro-optimize the checks when to add new note.
9798
9799 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
9800
9801         * final.c (output_asm_insn): Call
9802         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
9803         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
9804         (output_address): Call targetm.asm_out.print_operand_address.
9805         Update comments.
9806         * target.h (struct gcc_target): Add print_operand,
9807         print_operand_address, and print_operand_punct_valid_p fields.
9808         * targhooks.h (default_print_operand): Declare.
9809         (default_print_operand_address): Declare.
9810         (default_print_operand_punct_valid_p): Declare.
9811         * targhooks.c (default_print_operand): Define.
9812         (default_print_operand_address): Define.
9813         (default_print_operand_punct_valid_p): Define.
9814         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
9815         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
9816         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
9817         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
9818         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
9819         * vmsdbgout.c (addr_const_to_string): Update comment.
9820         * config/i386/i386.c (print_operand): Rename to...
9821         (ix86_print_operand): ...this.  Make static.
9822         (print_operand_address): Rename to...
9823         (ix86_print_operand_address): ...this.  Make static.  Call
9824         ix86_print_operand instead of PRINT_OPERAND.
9825         (ix86_print_operand_punct_valid_p): New function.
9826         (TARGET_PRINT_OPERAND): Define.
9827         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9828         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9829         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
9830         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9831         (PRINT_OPERAND): Delete.
9832         (PRINT_OPERAND_ADDRESS): Delete.
9833         * config/i386/i386-protos.h (print_operand): Delete prototype.
9834         (print_operand_address): Delete prototype.
9835
9836 2010-06-03  Richard Guenther  <rguenther@suse.de>
9837
9838         PR tree-optimization/44403
9839         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9840         Preserve pointer qualifiers.
9841         (vect_create_data_ref_ptr): Likewise.
9842
9843 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
9844
9845         PR c++/44294
9846         * defaults.h (MAX_FIXED_MODE_SIZE): New.
9847
9848         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
9849
9850 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
9851
9852         PR debug/44375
9853         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
9854         return false if merging the bbs would lead to goto_locus
9855         location being lost from the IL.
9856
9857 2010-06-03  Jan Hubicka  <jh@suse.cz>
9858             Jakub Jelinek  <jakub@redhat.com>
9859
9860         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
9861         set->regs[i] is NULL or has just one entry.
9862
9863 2010-06-03  Jan Hubicka  <jh@suse.cz>
9864
9865         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
9866         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
9867
9868 2010-06-03  Paul Brook  <paul@codesourcery.com>
9869
9870         * config/arm/arm.c (FL_TUNE): Define.
9871         (arm_default_cpu, arm_cpu_select): Remove.
9872         (all_cores): Populate core field.
9873         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
9874         (arm_find_cpu): New function.
9875         (arm_handle_option): Lookup cpu/architecture names.
9876         (arm_override_options): Cleanup mcpu/march/mtune handling.
9877         (arm_file_start): Ditto.
9878
9879 2010-06-03  Alan Modra  <amodra@gmail.com>
9880
9881         PR target/44169
9882         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
9883         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
9884         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
9885         (rs6000_emit_load_toc_table): Likewise.
9886
9887 2010-06-02  Jan Hubicka  <jh@suse.cz>
9888
9889         * passes.c (init_optimization_passes): Put ipa reference
9890         after ipa pure-const.
9891
9892 2010-06-02  Jan Hubicka  <jh@suse.cz>
9893
9894         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
9895         calls_read_all and calls_write_all.
9896         (get_reference_optimization_summary): Fix formatting.
9897         (is_proper_for_analysis): Check that decl is not readonly.
9898         (propagate_bits): Check CONST/PURE/noreturn flags.
9899         (ipa_init): Move all_module_statics to optimization_summary_obstack.
9900         (analyze_function): Ignore indirect edges.
9901         (copy_global_bitmap): For all module statics, do nothing.
9902         (generate_summary): Do not print calls_read_all/calls_write_all.
9903         (read_write_all_from_decl): Take node as argument; check
9904         cgraph_node_cannot_return.
9905         (propagate): Reorganize read_all/write_all computation;
9906         check indirect edges; check ecf flags; use all_module_statics
9907         in the results; do not free all_module_statics.
9908         (stream_out_bitmap): Handle all_module_statics.
9909         (ipa_reference_write_optimization_summary): Likewise; use
9910         varpool/cgraph encoders to get boundaries.
9911         (ipa_reference_read_optimization_summary): Read in all_module_statics;
9912         use it when possible.
9913
9914 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9915
9916         PR target/44218
9917         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
9918         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
9919
9920         * doc/extend.texi (powerpc builtins): Document vec_recip,
9921         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
9922
9923         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
9924         (rs6000_emit_swrsqrt): Ditto.
9925         (rs6000_emit_swdivsf): Delete.
9926         (rs6000_emit_swdivdf): Ditto.
9927         (rs6000_emit_swrsqrtsf): Ditto.
9928
9929         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
9930         describe the reciprocal estimate support for each type.
9931         (recip_options): Map -mrecip=<opt> into option bits.
9932         (gen_2arg_fn_t): New typedef for binary rtx gen function.
9933         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
9934         reciprocal estimate instructions.
9935         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
9936         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
9937         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
9938         cost information if -mdebug=cost or -mdebug=reg.
9939         (rs6000_override_options): Set -mrecip-precision for power6, and
9940         power7 machines.  If -mvsx or -mdfp, enable various options that
9941         came in previous instruction set ISAs, unless the option was
9942         explicitly disabled by the command line option.  Parse
9943         -mrecip=<opt> options.
9944         (rs6000_builtin_vectorized_function): Add support for vectorizing
9945         the reciprocal estimate builtins and expansions.
9946         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
9947         (bdesc_2arg): Add reciprocal estimate builtins.
9948         (bdesc_1arg): Add reciprocal square root estimate builtins.
9949         (rs6000_expand_builtin): Rewrite to use a switch statement,
9950         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
9951         (rs6000_init_builtins): Create declarations for reciprocal
9952         estimate builtins.
9953         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
9954         sized, prefer traditional floating point registers, if integer
9955         vector types, prefer altivec registers.  Don't actually look at
9956         the memory address any more.
9957         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
9958         builtins.
9959         (rs6000_load_constant_and_splat): New helper function to load up
9960         the constant for reciprocal estimate instructions.
9961         (rs6000_emit_madd): New helper function for generating
9962         multiply/add type instructions, based on the current switches.
9963         (rs6000_emit_msub): Ditto.
9964         (rs6000_emit_mnsub): Ditto.
9965         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
9966         replace a divide with a reciprocal estimate and fixup, adding
9967         support for machines with high precision and vectors.
9968         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
9969         low precision machines.
9970         (rs6000_emit_swdiv): New common function to be called to replace a
9971         division with reciprocal estimate and fixup.
9972         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
9973         for double and vector types.  Add support for high precision machines.
9974
9975         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
9976         the reciprocal estimate instructions can be generated.
9977         (TARGET_FRE): Ditto.
9978         (TARGET_FRSQRTES): Ditto.
9979         (TARGET_FRSQRTE): Ditto.
9980         (RS6000_RECIP_*): New macros for reciprocal estimate support.
9981
9982         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
9983         square root estimate on vectors.
9984         (re<mode>2): New insn for reciprocal division estimate on vectors.
9985
9986         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
9987         New builtin.
9988         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
9989         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
9990         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
9991         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
9992         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
9993         (RS6000_BUILTIN_RSQRT): Ditto.
9994         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
9995         floating point builtin.
9996
9997         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9998         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
9999         __RECIP_PRECISION__ based on the command line switches.
10000         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
10001
10002         * config/rs6000/rs6000.opt (-mrecip): Document add support for
10003         replacing division instructions with reciprocal estimate and fixup.
10004         (-mrecip=<opt>): New option.
10005         (-mrecip-precision): Ditto.
10006
10007         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
10008         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
10009         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
10010         precision scalar.
10011
10012         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
10013         (UNSPEC_VREFP): Ditto.
10014         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
10015         conterparts with regard to support of -mno-fused-madd and -ffast-math.
10016         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
10017         reciprocal estimate instructions to be generated.
10018         (altivec_vrefp): Ditto.
10019
10020         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
10021         estimate support.
10022         (rreg): New mode attribute for reciprocal estimate support.
10023         (recip<mode>3): New insn for division using reciprocal estimate
10024         and fixup builtins.
10025         (divide define_split): New define_split to convert floating point
10026         division to use reciprocal estimate if the user used the
10027         appropriate options and the split is run when we can add new
10028         pseudo registers for the fixup.
10029         (rsqrt<mode>2): New insn for reciprocal square root support.
10030         (recipsf3): Move into recip<mode>3.
10031         (recipdf3): Ditto.
10032         (fres): Use TARGET_FRES.
10033         (rsqrtsf2): Move into rsqrt<mode>2.
10034         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
10035         (copysignsf3): Add support for VSX.
10036         (fred): Use TARGET_FRE.
10037         (fred_fpr): Ditto.
10038         (rsqrtdf_internal1): New function for frsqrte instruciton.
10039
10040         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
10041         (vec_rsqrt): Ditto.
10042
10043 2010-06-03  Richard Guenther  <rguenther@suse.de>
10044
10045         PR middle-end/44291
10046         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
10047         (set_user_assembler_libfunc): Likewise.
10048
10049 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
10050
10051         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
10052         defaults.h.
10053         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
10054         to defaults.h
10055         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
10056         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
10057         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
10058         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
10059         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
10060         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
10061         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
10062         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
10063         * defaults.h: Updated for above mentioned changes.
10064
10065 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
10066
10067         * c-common.c: Remove header include of tm_p.h.
10068         * Makefile.in (c-common.o): Remove TM_P_H dependency.
10069
10070 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
10071
10072         * tree.h (struct tree_decl_map): New type.
10073         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
10074         (tree_decl_map_hash): New prototype.
10075         (debug_expr_for_decl, value_expr_for_decl): Change into
10076         tree_decl_map hashtab from tree_map.
10077         (init_ttree): Adjust initialization.
10078         (tree_decl_map_hash): New function.
10079         (decl_debug_expr_lookup, decl_debug_expr_insert,
10080         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
10081
10082 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10083
10084         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
10085         linker emulations.
10086         * configure: Regenerate.
10087         * config.in: Regenerate.
10088
10089         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
10090         (X86_64_EMULATION): Define.
10091         (TARGET_LD_EMULATION): Use them.
10092
10093         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
10094         (SPARC64_EMULATION): Define.
10095         (LINK_ARCH_SPEC): Use them.
10096
10097 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
10098
10099         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
10100         smallest_mode_for_size for computing the precision types of new
10101         graphite IVs.  Do not call lang_hooks.types.type_for_size.
10102
10103 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
10104
10105         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
10106         information.
10107         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
10108
10109 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
10110
10111         PR middle-end/44363
10112         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
10113         return false instead.
10114
10115 2010-06-02  Jan Hubicka  <jh@suse.cz>
10116
10117         PR middle-end/44295
10118         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
10119         create new cgraph node to check callee.
10120
10121 2010-06-02  Richard Guenther  <rguenther@suse.de>
10122
10123         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
10124
10125 2010-06-02  Richard Guenther  <rguenther@suse.de>
10126
10127         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
10128         (lto_wrapper_cleanup): ... this.  Do not exit.
10129         (fatal): Adjust.  Exit here.
10130         (fatal_perror): Likewise.
10131         (fatal_signal): New function.
10132         (main): Set up signal handlers to cleanup temporary files.
10133         * Makefile.in (lto-wrapper.o): Adjust dependencies.
10134
10135 2010-06-02  Richard Guenther  <rguenther@suse.de>
10136
10137         PR tree-optimization/44377
10138         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
10139
10140 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10141
10142         * config/s390/2097.md (z10_fhex): Remove insn reservation.
10143         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
10144         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
10145         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
10146         instruction.
10147         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
10148
10149 2010-06-02  Jan Hubicka  <jh@suse.cz>
10150
10151         * bitmap.c (bitmap_descriptor): Add search_iter.
10152         (bitmap_find_bit): Increment it.
10153         (print_statistics): Print it.
10154
10155 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
10156
10157         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
10158         instead of gimple_build_call_vec.  Delete unnecessary local variable.
10159
10160 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
10161
10162         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
10163         change from yesterday.
10164
10165 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
10166
10167         * c-ada-spec.c: Clean up redundant includes.
10168
10169 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
10170
10171         * gimplify.c: Do not include except.h and optabs.h.
10172         (gimplify_body): Do not initialize RTL profiling.
10173         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
10174         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
10175         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
10176         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
10177         langhooks.h.
10178
10179         * tree-pretty-print.h: Include pretty-print.h.
10180         * gimple-pretty-print.h: Include pretty-print.h.
10181
10182         * tree-pretty-print.c: Do not include diagnostic.h.
10183         * tree-vrp.c: Likewise.
10184         * tree-tailcall.c: Likewise
10185         * tree-scalar-evolution.c: Likewise
10186         * tree-ssa-dse.c: Likewise
10187         * tree-chrec.c: Likewise
10188         * tree-ssa-sccvn.c: Likewise
10189         * tree-ssa-copyrename.c: Likewise
10190         * tree-nomudflap.c: Likewise
10191         * tree-call-cdce.c: Likewise
10192         * tree-stdarg.c: Likewise
10193         * tree-ssa-math-opts.c: Likewise
10194         * tree-nrv.c: Likewise
10195         * tree-ssa-sink.c: Likewise
10196         * tree-browser.c: Likewise
10197         * tree-ssa-loop-ivcanon.c: Likewise
10198         * tree-ssa-loop.c: Likewise
10199         * tree-parloops.c: Likewise
10200         * tree-ssa-address.c: Likewise
10201         * tree-ssa-ifcombine.c: Likewise
10202         * tree-if-conv.c: Likewise
10203         * tree-data-ref.c: Likewise
10204         * tree-affine.c: Likewise
10205         * tree-ssa-phiopt.c: Likewise
10206         * tree-ssa-coalesce.c: Likewise
10207         * tree-ssa-pre.c: Likewise
10208         * tree-ssa-live.c: Likewise
10209         * tree-predcom.c: Likewise
10210         * tree-ssa-forwprop.c: Likewise
10211         * tree-ssa-dce.c: Likewise
10212         * tree-ssa-ter.c: Likewise
10213         * tree-ssa-loop-prefetch.c: Likewise
10214         * tree-optimize.c: Likewise
10215         * tree-ssa-phiprop.c: Likewise
10216         * tree-object-size.c: Likewise
10217         * tree-outof-ssa.c: Likewise
10218         * tree-ssa-structalias.c: Likewise
10219         * tree-switch-conversion.c: Likewise
10220         * tree-ssa-reassoc.c: Likewise
10221         * tree-ssa-operands.c: Likewise
10222         * tree-vectorizer.c: Likewise
10223         * tree-vect-data-refs.c: Likewise
10224         * tree-vect-generic.c: Likewise
10225         * tree-vect-stmts.c: Likewise
10226         * tree-vect-patterns.c: Likewise
10227         * tree-vect-slp.c: Likewise
10228         * tree-vect-loop.c: Likewise
10229         * tree-ssa-loop-ivopts.c: Likewise
10230         * tree-ssa-loop-im.c: Likewise
10231         * tree-ssa-loop-niter.c: Likewise
10232         * tree-ssa-loop-unswitch.c: Likewise
10233         * tree-ssa-loop-manip.c: Likewise
10234         * tree-ssa-loop-ch.c: Likewise
10235         * tree-dump.c: Likewise
10236         * tree-complex.c: Likewise
10237
10238         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
10239         * tree-ssa-uninit.c: Likewise
10240         * tree-ssa-threadupdate.c: Likewise
10241         * tree-ssa-uncprop.c: Likewise
10242         * tree-ssa-ccp.c: Likewise
10243         * tree-ssa-dom.c: Likewise
10244         * tree-ssa-propagate.c: Likewise
10245         * tree-ssa-alias.c: Likewise
10246         * tree-dfa.c: Likewise
10247         * tree-cfgcleanup.c: Likewise
10248         * tree-sra.c: Likewise
10249         * tree-ssa-copy.c: Likewise
10250         * tree-ssa.c: Likewise
10251         * tree-profile.c: Likewise
10252         * tree-cfg.c: Likewise
10253         * tree-ssa-threadedge.c: Likewise
10254         * tree-vect-loop-manip.c: Likewise
10255
10256         * tree-inline.c: Do not include diagnostic.h and expr.h.
10257         Include rtl.h.
10258         (copy_decl_for_dup_finish): Do not use NULL_RTX.
10259
10260         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
10261         * tree-loop-distribution.c: Likewise.
10262
10263 2010-06-01  Jan Hubicka  <jh@suse.cz>
10264
10265         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
10266
10267 2010-06-01  Jan Hubicka  <jh@suse.cz>
10268
10269         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
10270         remove return value.
10271         (split_bbs_on_noreturn_calls) .... here.
10272         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
10273         * tree-flow.h (fixup_noreturn_call): New.
10274
10275 2010-06-01  Jan Hubicka  <jh@suse.cz>
10276
10277         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
10278
10279 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
10280
10281         * tree.h (build_nt_call_list): Delete.
10282         * tree.c (build_nt_call_list): Delete.
10283
10284 2010-06-01  Jan Hubicka  <jh@suse.cz>
10285
10286         * fwprop.c: Make emit-rtl.h include last.
10287         * rtlanal.c: Include emit-rtl.h.
10288         * genautomata.c: Output emit-rtl include into insn-automata.c
10289         * df-scan.c: Include emit-rtl.h.
10290         * haifa-sched.c: Indlude emit-rtl.h.
10291         * mode-switching.c: Indlude emit-rtl.h.
10292         * graph.c: Indlude emit-rtl.h.
10293         * sel-sched.c: Include emit-rtl.h.
10294         * sel-sched-ir.c: Include emit-rtl.h.
10295         * ira-build.c: Include emit-rtl.h.
10296         * emit-rtl.c (first_insn, last_insn): Remove defines.
10297         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
10298         Move to emit-rtl.h.
10299         (set_new_first_and_last_insn, get_last_insn_anywhere,
10300         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
10301         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
10302         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
10303         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
10304         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
10305         Use accessor functions.
10306         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
10307          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
10308         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
10309         mem_expr_equal_p): Move here from rtl.h.
10310         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
10311         Move here from emit-rtl.c; make inline.
10312         * cfglayout.h: Include emit-rtl.h.
10313         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
10314          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
10315         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
10316         mem_expr_equal_p, get_insns, set_first-insn,
10317         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
10318         * reg-stack.c: Include emit-rtl.h.
10319         * dce.c: Likewise.
10320
10321 2010-06-01  Jan Hubicka  <jh@suse.cz>
10322
10323         * cgraph.h (tree_function_versioning): Update prototype.
10324         (cgraph_function_versioning): Update prototype.
10325         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
10326         bitmap.
10327         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
10328         (cgraph_materialize_clone, save_inline_function_body): Update use of
10329         tree_function_versioning.
10330         * tree-inline.c (copy_bb): Look for previous copied block to link
10331         after; fix debug output.
10332         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
10333         (copy_body): Likewise.
10334         (expand_call_inline): Update use of copy_body.
10335         (tree_function_versioning): Update use of copy body; accept
10336         blocks_to_copy and new_entry.
10337
10338 2010-06-01  Jan Hubicka  <jh@suse.cz>
10339
10340         * gegenrtl.c: Remove unnecesary prototypes.
10341         (gendecl): Remove.
10342         (gendef): Produce static inline.
10343         (gencode): Remove.
10344         (main): Do not decode parameters; generate header only.
10345         * Makefile.in (genrtl.c): Remove.
10346
10347 2010-06-01  Jan Hubicka  <jh@suse.cz>
10348
10349         * tree-switch-conversion.c (build_one_array): Make it readonly.
10350
10351 2010-06-01  Richard Guenther  <rguenther@suse.de>
10352
10353         * optabs.c (init_optabs): Guard all accesses to reinit.
10354         * ipa-pure-const.c (propagate): Fix another typo.
10355         * opts.c (common_handle_option): Split assignment to bool.
10356         * c-opts.c (c_common_handle_option): Likewise.
10357
10358 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
10359             Matthew Gingell  <gingell@adacore.com>
10360
10361         * doc/invoke.texi: Mention -fdump-ada-spec.
10362         * tree-dump.c (dump_files): Add ada-spec.
10363         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
10364         * tree-pass.h (tree_dump_index): Add TDI_ada.
10365         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
10366         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
10367         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
10368         * c-decl.c: Include c-ada-spec.h.
10369         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
10370         functions.
10371         (c_write_global_declarations): Add handling of -fdump-ada-spec.
10372         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
10373         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
10374         * c-ada-spec.h, c-ada-spec.c: New files.
10375
10376 2010-06-01  Richard Guenther  <rguenther@suse.de>
10377
10378         PR lto/43853
10379         * ipa-pure-const.c (get_function_state): Hand back varying state
10380         if we do not have one.
10381         (has_function_state): New function.
10382         (duplicate_node_data): Adjust.
10383         (remove_node_data): Likewise.
10384         (pure_const_write_summary): Likewise.
10385         (propagate): Likewise.  Fix typo.
10386
10387 2010-06-01  Jan Hubicka  <jh@suse.cz>
10388
10389         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
10390         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
10391         (execute_all_ipa_transforms): Do not play with the states.
10392
10393 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
10394
10395         * config/arm/t-linux-androideabi: New.
10396         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
10397
10398 2010-06-01  Jan Hubicka  <jh@suse.cz>
10399
10400         * tree-inline.c (estimate_num_insns): For stdarg functions look
10401         into call statement to count cost of argument passing.
10402
10403 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
10404
10405         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
10406         argument for fprintf.
10407         (ix86_output_addr_diff_elt): Likewise.
10408         (x86_function_profiler): Likewise.
10409         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
10410         (LPREFIX): Likewise.
10411         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10412
10413 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
10414
10415         PR target/44338
10416         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
10417         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
10418         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
10419         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
10420         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
10421         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
10422         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
10423         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
10424         TARGET_FUSED_MADD.
10425
10426 2010-05-31  Jan Hubicka  <jh@suse.cz>
10427
10428         * tree.h (tree_range_check_failed): Declare noreturn.
10429
10430 2010-05-31  Jan Hubicka  <jh@suse.cz>
10431
10432         * gimple.c (gimple_call_builtin_p): New function.
10433         * gimple.h (gimple_call_builtin_p): Declare.
10434         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
10435         to exit.
10436         (execute_warn_function_return): BUILT_IN_RETURN is return.
10437         (split_critical_edges): Return edges are not critical.
10438         (is_ctrl_altering_stmt): Builtin_in_return is altering.
10439         (gimple_verify_flow_info): Handle built_in_return.
10440         (execute_warn_function_return): Handle built_in_return.
10441         * ipa-pure-const.c (check_call): Ignore builtin_return.
10442
10443 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
10444
10445         PR middle-end/44337
10446         * expr.c (expand_assignment): Don't store anything for out-of-bounds
10447         array accesses with non-MEM.
10448
10449         PR tree-optimization/44182
10450         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
10451         newly needs to end a bb is followed by debug stmts, instead return
10452         true from the function at the end.
10453         (maybe_move_debug_stmts_to_successors): New function.
10454         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
10455
10456 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
10457
10458         PR target/44161
10459         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
10460
10461 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
10462
10463         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
10464         for nested functions in non-optimized compilation.
10465
10466 2010-05-31  Richard Guenther  <rguenther@suse.de>
10467
10468         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
10469
10470 2010-05-30  Jan Hubicka  <jh@suse.cz>
10471
10472         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
10473
10474 2010-05-30  Richard Guenther  <rguenther@suse.de>
10475
10476         PR lto/42975
10477         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
10478         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
10479         no longer needed.
10480
10481 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
10482
10483         * config/darwin.c (output_objc_section_asm_op): Add comment.
10484         (name_needs_quotes): Add '_' to list of valid comment chars.
10485         (machopic_output_function_base_name): Remove unneeded quotes.
10486         (darwin_encode_section_info): Adjust asm whitespace.
10487         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
10488         (ASM_OUTPUT_LOCAL): Ditto.
10489         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
10490         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
10491         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
10492
10493 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
10494
10495         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
10496         RS6000_OUTPUT_BASENAME unconditionally.
10497         (rs6000_output_function_epilogue): Likewise.
10498
10499 2010-05-30  Jan Hubicka  <jh@suse.cz>
10500
10501         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
10502         nodes.
10503
10504 2010-05-30  Richard Guenther  <rguenther@suse.de>
10505
10506         * tree-cfg.c (verify_gimple_assign_single): Implement
10507         verification for COND_EXPR rhs.
10508
10509 2010-05-30  Jan Hubicka  <jh@suse.cz>
10510
10511         * cgraph.h (cgraph_dump_file): Declare.
10512         * cgraphunit.c (cgraph_dump_file): Export.
10513         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
10514
10515 2010-05-30  Jan Hubicka  <jh@suse.cz>
10516
10517         * dwarf2out.c (reference_to_unused,
10518         premark_types_used_by_global_vars_helper): Avoid creation of new
10519         varpool nodes.
10520
10521 2010-05-30  Jan Hubicka  <jh@suse.cz>
10522
10523         * cgraph.h (cgraph_node_cannot_return,
10524         cgraph_edge_cannot_lead_to_return): New functions.
10525         * cgraph.c (cgraph_node_cannot_return,
10526         cgraph_edge_cannot_lead_to_return): Use them.
10527         * ipa-pure-const.c (pure_const_names): New static var.
10528         (check_call): Handle calls not leading to return.
10529         (pure_const_read_summary): Dump info read.
10530         (propagate): Dump info about propagation process; ignore side effects
10531         of functions not leading to exit; fix handling of pure functions.
10532
10533 2010-05-30  Jan Hubicka  <jh@suse.cz>
10534
10535         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
10536         for tail call epilogues.
10537
10538 2010-05-30  Jan Hubicka  <jh@suse.cz>
10539
10540         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
10541         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
10542         dump files.
10543
10544 2010-05-29  Jan Hubicka  <jh@suse.cz>
10545
10546         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
10547         node; remove references in node we no longer keep in cgrpah but need
10548         body of.
10549
10550 2010-05-29  Jan Hubicka  <jh@suse.cz>
10551
10552         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
10553
10554 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10555
10556         PR target/44165
10557         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
10558
10559 2010-05-29  Jan Hubicka  <jh@suse.cz>
10560
10561         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
10562         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
10563         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
10564         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
10565         debug_names_replaced_by, debug_update_ssa): Likewise.
10566         * sbitmap.c (debug_sbitmap): Likewise.
10567         * genrecog.c (debug_decision, debug_decision_list): Likewise.
10568         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
10569         debug_tree_chain): Likewise.
10570         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
10571         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
10572         * optabs.c (debug_optab_libfuncs): Likewise.
10573         (verify_loop_closed_ssa): Likewise.
10574         * value-prof.c (verify_histograms): Likewise.
10575         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
10576         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
10577         * cfghooks.c (verify_flow_info): Likewise.
10578         * fold-const.c (debug_fold_checksum): Likewise.
10579         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
10580         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
10581         Likewise.
10582         * omega.c (debug_omega_problem): Likewise.
10583         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
10584         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
10585         * dominance.c (verify_dominators, debug_dominance_info,
10586         debug_dominance_tree): Likewise.
10587         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
10588         * df_regno_debug, df_ref_debug,
10589         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
10590         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
10591         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
10592         * sel-sched.c (debug_state): Likewise.
10593         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
10594         Likewise.
10595         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
10596         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
10597         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
10598         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
10599         Likewise.
10600         * c-pretty-print.c (debug_c_tree): Likewise.
10601         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
10602         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
10603         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
10604         * ebitmap.c (debug_ebitmap): Likewise.
10605         * function.c (debug_find_var_in_block_tree): Likewise.
10606         * print-rtl.c (debug_rtx): Likewise.
10607         (debug_rtx_count): Likewise.
10608         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
10609         * stor-layout.c (debug_rli): Likewise.
10610         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
10611         * tree-data-ref.c (debug_data_references,
10612         debug_data_dependence_relations, debug_data_reference,
10613         debug_data_dependence_relation, debug_rdg_vertex,
10614         debug_rdg_component, debug_rdg): Likewise.
10615         * tree-affine.c (debug_aff): Likewise.
10616         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
10617         Likewise.
10618         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
10619         * emit-rtl.c (verify_rtl_sharing): Likewise.
10620         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
10621         debug_value_expressions): Likewise.
10622         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
10623         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
10624         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
10625         * cfglayout.c (verify_insn_chain): Likewise.
10626         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
10627         debug_clast_stmt, debug_generated_program): Likewise.
10628         * ggc-page.c (debug_print_page_list): Likewise.
10629         * tree-ssa-ter.c (debug_ter): Likewise.
10630         * graphite-dependences.c (debug_pddr): Likewise.
10631         * sched-deps.c (debug_ds): Likewise.
10632         * tree-ssa.c (verify_ssa): Likewise.
10633         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
10634         debug_scattering_functions, debug_iteration_domains, debug_pdr,
10635         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
10636         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
10637         * tree-inline.c (debug_find_tree): Likewise.
10638         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
10639         debug_ppl_powerset_matrix): Likewise.
10640         * var-tracking.c (debug_dv): Likewise.
10641         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
10642         * cfgloop.c (verify_loop_structure): Likewise.
10643         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
10644         * c-common.c (verify_sequence_points): Likewise.
10645         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
10646         debug_candidates, debug_rgn_dependencies): Likewise.
10647         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
10648         * debug_constraint_graph, debug_solution_for_var,
10649         debug_sa_points_to_info): Likewise.
10650         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
10651         Likewie.
10652         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
10653         debug_loops, debug_loop, debug_loop_num): Likewise.
10654         * passes.c (debug_pass): Likewise.
10655         (dump_properties): Likewise; add cfglayout property.
10656         (debug_properties): Likewise.
10657         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
10658         * varpool.c (debug_varpool): Likewise.
10659         * regcprop.c (debug_value_data): Likewise.
10660         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
10661         debug_immediate_uses_for): Likewise.
10662
10663 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
10664
10665         PR bootstrap/44315
10666         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
10667         Filter out insn-flags.h.
10668
10669 2010-05-29  Jan Hubicka  <jh@suse.cz>
10670
10671         * cgraph.h (struct varpool_node_set_def,
10672         struct cgraph_node_set_def): Remove unused AUX pointer.
10673         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
10674         VEC_empty macro.
10675
10676 2010-05-29  Jan Hubicka  <jh@suse.cz>
10677
10678         PR middle-end/44324
10679         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
10680
10681 2010-05-29  Richard Guenther  <rguenther@suse.de>
10682
10683         * lto-streamer.c (cached_bp): New global variable.
10684         (bitpack_create): Return the cached bitpack, if available.
10685         (bitpack_delete): Clear and cache the bitpack, if appropriate.
10686         (bp_pack_value): Remove redundant asserts.
10687
10688 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
10689
10690         PR middle-end/44306
10691         * tree-if-conv.c (is_true_predicate): New.
10692         (is_predicated): Use is_true_predicate.
10693         (add_to_predicate_list): Same.  Do not use unshare_expr.
10694         (add_to_dst_predicate_list): Same.
10695
10696 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
10697
10698         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
10699         field on edges.
10700         (predicate_bbs): Same.
10701         (clean_predicate_lists): Same.
10702         (find_phi_replacement_condition): Do not AND the predicate from
10703         edge->aux.
10704
10705 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
10706
10707         PR bootstrap/44315
10708         * Makefile.in (build/gencondmd.o): Add a missing `\'.
10709
10710 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10711
10712         PR target/44261
10713         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
10714         (negdf2): Adjust expander pattern and use negdf2_slow.
10715         (negsf2): Likewise.
10716
10717 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
10718
10719         * basic-block.h (struct control_flow_graph): Move last_label_uid field
10720         up.
10721         * df.h (struct df_base_ref): Move regno field up.
10722         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
10723         * expr.h (struct separate_ops): Move location field up.
10724         * optabs.h (struct optab_d): Move libcall_basename field down.
10725         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
10726         * config/i386/i386.h (struct machine_function): Convert call_abi field
10727         into a bitfield.  Move cfa field to the end of the structure.
10728
10729 2010-05-29  Jan Hubicka  <jh@suse.cz>
10730
10731         * varpool.c (varpool_get_node): Fix lookup.
10732
10733 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10734
10735         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
10736         RTL specific prototypes with #ifdef RTX_CODE.
10737         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
10738         * config/spu/t-spu-elf: Fix dependencies.
10739
10740         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
10741
10742 2010-05-29  Mike Stump  <mikestump@comcast.net>
10743
10744         PR bootstrap/44315
10745         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
10746         TM_H when building to avoid dependency loops.
10747
10748 2010-05-29  Jan Hubicka  <jh@suse.cz>
10749
10750         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
10751         refs and body; not the whole node for masters of materialized clones.
10752
10753 2010-05-29  Mike Stump  <mikestump@comcast.net>
10754
10755         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
10756
10757 2010-05-29  Jan Hubicka  <jh@suse.cz>
10758
10759         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
10760         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
10761         use of clone_function_name.
10762         * cgraph.h (cgraph_create_virtual_clone,
10763         cgraph_function_versioning): update prototypes.
10764         (clone_function_name): Declare.
10765         * ipa-cp.c (ipcp_insert_stage): Update call of
10766         cgraph_create_virtual_clone.
10767         * omp-low.c (create_omp_child_function_name): Use
10768         cgraph_create_virtual_clone.
10769         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
10770         (cgraph_function_versioning): Take SUFFIX argument; produce new name
10771         and make decl local.
10772
10773 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10774
10775         * vec.h: Include statistics.h
10776         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
10777         with VEC_H.
10778
10779 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10780
10781         * c-lex.c: Do not include c-tree.h.
10782         * c-pretty-print.c: Likewise.
10783         * c-opts.c: Likewise.
10784         * c-gimplify.c: Likewise.
10785         * c-common.c: Likewise.
10786         * c-dump.c: Likewise.  Include c-common.h.
10787
10788 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10789
10790         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
10791         before including diagnostic-core.h.
10792         (c_cpp_error): New prototype moved from c-tree.h.
10793         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
10794         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
10795         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
10796         (c_cpp_error): Prototype moved to c-common.h.
10797         * Makefile.in: Update dependency for C_COMMON_H.
10798
10799 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10800
10801         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
10802         * c-common.c (c_register_addr_space): Remove here.
10803         * c-decl.c (c_register_addr_space): Re-add here.
10804
10805 2010-05-28  Mike Stump  <mikestump@comcast.net>
10806
10807         * config/darwin-c.c: Remove c-tree.h include.
10808
10809 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10810
10811         * gcc.c: Include diagnostic.h.
10812         (error_count): Remove.  All users changed to use errorcount.
10813         (programname): Remove.  All users changed to use progname.
10814         (fancy_abort, internal_error, fatal_error, error, warning, inform,
10815         fnotice): Remove.
10816         (execute): Don't include "Internal error" and bug reporting
10817         information in argument of internal_error call.
10818         (process_command): Don't increment error_count after calling
10819         perror_with_name.
10820         (input_filename): Rename to gcc_input_filename.  All users
10821         changed.
10822         (main): Call diagnostic_initialize.  Register delete_temp_files
10823         with atexit.  Use seen_error to test for errors.
10824         * gcc.h: Include diagnostic-core.h.
10825         (fatal_error, error, warning): Remove.
10826         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
10827         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
10828         (gcc.o): Update dependencies.
10829
10830 2010-05-28  Jeff Law  <law@redhat.com>
10831
10832         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
10833         functions.
10834         * ira.h (ira_bad_reload_regno): Declare
10835         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
10836
10837         * ira-color.c (update_curr_costs): Free updated hard reg costs.
10838         (ira_reassign_conflict_allocnos): Remove bogus asserts.
10839         (allocno_reload_assign): Likewise.
10840
10841 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
10842
10843         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
10844         build1_stat.
10845
10846 2010-05-28  Richard Guenther  <rguenther@suse.de>
10847
10848         PR lto/44312
10849         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
10850         Stream fixed-point constants mode.
10851         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
10852         and TYPE_PRECISION.
10853         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
10854         Stream fixed-point constants mode.
10855         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
10856         and TYPE_PRECISION.
10857
10858 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10859
10860         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
10861         only place it was called from.
10862         (number_of_latch_executions): Do not return chrec_dont_know when the
10863         may_be_zero is a runtime condition: instead, return a COND_EXPR
10864         including the may_be_zero condition.
10865         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
10866         of nb_iterations.
10867         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
10868         COND_EXPRs.
10869
10870 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10871
10872         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
10873         generate COND_EXPRs for degenerate_phi_result.
10874
10875 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10876
10877         PR middle-end/44293
10878         * tree-if-conv.c (if_convertible_loop_p): Check the
10879         if-convertibility of phi nodes in non predicated BBs.
10880
10881 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10882
10883         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
10884
10885 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10886
10887         PR driver/15303
10888         * gcc.c (inform, warning, inform): New functions.
10889         (fatal_ice): Rename to internal_error; change cmsgid parameter to
10890         gmsgid.  All callers changed.
10891         (notice): Rename to fnotice; add parameter fp.  All callers changed.
10892         (fatal_error): Rename to fatal_signal.  All users changed.
10893         (fatal): Rename to fatal_error; change cmsgid parameter to
10894         gmsgid.  All callers changed.
10895         (process_command): Use warning instead of error for warnings.
10896         (end_going_arg): Don't use _() around argument of error.
10897         (do_spec_1): Use inform for message from %n specs.  Use warning
10898         instead of error for warnings.
10899         (main): Use inform for comparison messages.  Use warning for
10900         message about unused linker input.
10901         (error): Increment error_count.  Print "error: ".
10902         * gcc.h (fatal): Change to fatal_error.
10903         (warning): Declare.
10904         * config/darwin-driver.c (darwin_default_min_version): Use warning
10905         instead of fprintf for warnings.
10906         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
10907
10908 2010-05-28  Julian Brown  <julian@codesourcery.com>
10909
10910         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
10911         (*thumb2_addsi3_compare0_scratch): New.
10912         * config/arm/constraints.md (Pv): New.
10913         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
10914         for ARM mode only.
10915         (*addsi3_compare0_scratch): Likewise.
10916
10917 2010-05-28  Jan Hubicka  <jh@suse.cz>
10918
10919         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
10920         check.
10921         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
10922         only on local statics.
10923
10924 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
10925
10926         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
10927
10928 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
10929
10930         PR bootstrap/44314
10931         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
10932         (OPTION_GLIBC): Define.
10933
10934 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
10935
10936         PR debug/41048
10937         * dwarf2out.c (double_int_type_size_in_bits): New function.
10938         (round_up_to_align): Change first argument and return value to
10939         double_int.
10940         (field_byte_offset): Work internally on double_ints.
10941
10942         PR target/43636
10943         * builtins.c (expand_movstr): Use a temporary pseudo instead
10944         of target even when target is not NULL and not const0_rtx, but
10945         fails movstr predicate.
10946         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
10947
10948 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10949
10950         * final.c (rest_of_clean_state): Use %m in errors instead of
10951         strerror (errno).
10952         * gengtype.c (read_input_list, close_output_files): Use xstrerror
10953         instead of strerror.
10954         * toplev.c (process_options): Use %m in errors instead of strerror
10955         (errno).
10956         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
10957         (errno).
10958
10959 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
10960
10961         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
10962         (ix86_canonical_va_list_type): Make static.  Add declaration.
10963         (ix86_enum_va_list): Make static.  Reindent.
10964         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
10965         (ix86_canonical_va_list_type): Ditto.
10966         (ix86_enum_va_list): Ditto.
10967
10968 2010-05-28  Richard Guenther  <rguenther@suse.de>
10969
10970         * lto-wrapper.c (run_gcc): With -save-temps generate a
10971         user-visible ltrans filename.  Fixup ltrans unit numbering.
10972
10973 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
10974
10975         * c-common.c (c_common_nodes_and_builtins): Replace use
10976         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
10977         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
10978         to ix86_enum_va_list.
10979         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
10980         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
10981         (TARGET_ENUM_VA_LIST_P): Add hook description.
10982         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
10983         * target.h (gcc_target): Add enum_va_list hook.
10984
10985         PR bootstrap/44299
10986         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
10987         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
10988         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
10989
10990 2010-05-28  Alan Modra  <amodra@gmail.com>
10991
10992         PR target/44266
10993         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10994         emit_library_call machinery to set up __tls_get_addr calls.
10995
10996 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10997
10998         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
10999
11000 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
11001
11002         Revert fix for PR c++/44188
11003         * c-common.c (is_typedef_decl): Revert the moving of  this
11004         definition ...
11005         * tree.c (is_typedef_decl): ... here.
11006         (typdef_variant_p): Revert the moving of this  definition
11007         here from gcc/cp/tree.c.
11008         * c-common.h (is_typedef_decl): Revert the moving of this
11009         declaration ...
11010         * tree.h (is_typedef_decl): ... here.
11011         (typedef_variant_p): Revert the moving of this  declaration here
11012         from gcc/cp/cp-tree.h
11013         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
11014         (gen_tagged_type_die): Revert the splitting out of ...
11015         (gen_type_die_with_usage): ... this function. Revert the anonymous
11016         tagged type handling.
11017         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
11018         typedefs naming anonymous tagged types.
11019
11020 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
11021
11022         * config/rs6000/rs6000-modes.def (PSImode): Delete.
11023
11024 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
11025
11026         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
11027         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
11028         throughout.
11029         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
11030         "xer" to "ca".
11031         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
11032         XER_REGS to CA_REGS throughout.
11033         * config/rs6000/rs6000.h: Same.
11034         (ADDITIONAL_REGISTER_NAMES): Add "xer".
11035         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
11036         that mode_iterator "P" is the size for arithmetic carries as well.
11037         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
11038
11039 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
11040
11041         PR bootstrap/44255
11042         * combine.c (struct rtx_subst_pair): Define unconditionally.
11043         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
11044         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
11045         Call make_compound_operation on pair->to.
11046         (propagate_for_debug): Don't call make_compound_operation here.
11047         Always use simplify_replace_fn_rtx.
11048
11049 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
11050
11051         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
11052         * config/xtensa/xtensa.c (override_options): Check
11053           TARGET_FORCE_NO_PIC and set flag_pic.
11054         * config/xtensa/xtensa.opt: Document -mforce-no-pic
11055
11056 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
11057
11058         PR bootstrap/44299
11059         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
11060         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
11061
11062 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
11065         toplev.h.
11066         * diagnostic.c: Don't include toplev.h.
11067         (progname): Define.  Moved from toplev.c.
11068         (seen_error): New function.
11069         * diagnostic.h: Include diagnostic-core.h.
11070         (diagnostic_t, emit_diagnostic): Don't declare here.
11071         * toplev.c (progname): Move to toplev.c.
11072         (emit_debug_global_declarations, compile_file, finalize,
11073         do_compile, toplev_main): Use seen_error.
11074         * toplev.h: Include diagnostic-core.h.
11075         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
11076         internal_error, warning, warning_at, error, error_n, error_at,
11077         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
11078         verbatim, fnotice, progname): Move to diagnostic-core.h.
11079         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
11080         (expand_builtin_expect): Use seen_error.
11081         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
11082         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
11083         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
11084         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
11085         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
11086         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
11087         errorcount for errors.
11088         * c-opts.c (c_common_finish): Use seen_error.
11089         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
11090         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
11091         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
11092         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
11093         (get_coverage_counts): Use seen_error.
11094         * dwarf2out.c (dwarf2out_finish): Use seen_error.
11095         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
11096         gimplify_body): Use seen_error.
11097         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
11098         * ipa-pure-const.c (gate_pure_const): Use seen_error.
11099         * ipa-reference.c (gate_reference): Use seen_error.
11100         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
11101         * lambda-code.c: Include diagnostic-core.h instead of
11102         diagnostic.h.
11103         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
11104         * lto-compress.c: Include diagnostic-core.h instead of
11105         diagnostic.h.
11106         * lto-section-in.c: Include diagnostic-core.h instead of
11107         diagnostic.h.
11108         * lto-streamer-out.c: Include diagnostic-core.h instead of
11109         diagnostic.h.
11110         * lto-streamer.c: Include diagnostic-core.h instead of
11111         diagnostic.h.
11112         (gate_lto_out): Use seen_error.
11113         * matrix-reorg.c: Include diagnostic-core.h instead of
11114         diagnostic.h.
11115         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
11116         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
11117         (gate_expand_omp, lower_omp_1): Use seen_error.
11118         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
11119         (rest_of_decl_compilation, rest_of_type_compilation,
11120         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
11121         * tree-cfg.c (label_to_block_fn): Use seen_error.
11122         * tree-inline.c (optimize_inline_calls): Use seen_error.
11123         * tree-mudflap.c (mudflap_finish_file): Use
11124         seen_error.
11125         * tree-optimize.c (gate_all_optimizations,
11126         gate_all_early_local_passes, gate_all_early_optimizations): Use
11127         seen_error.
11128         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
11129         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
11130         (varpool_remove_unreferenced_decls,
11131         varpool_assemble_pending_decls): Use seen_error.
11132         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
11133         (TOPLEV_H, DIAGNOSTIC_H): Update.
11134         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
11135         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
11136         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
11137         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
11138         coverage.o, lambda-code.o): Update dependencies.
11139
11140 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
11141
11142         PR c++/44188
11143         * c-common.c (is_typedef_decl): Move this definition ...
11144         * tree.c (is_typedef_decl): ... here.
11145         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11146         * c-common.h (is_typedef_decl): Move this declaration ...
11147         * tree.h (is_typedef_decl): ... here.
11148         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11149         * dwarf2out.c (is_naming_typedef_decl): New function.
11150         (gen_tagged_type_die): Split out of ...
11151         (gen_type_die_with_usage): ... this function. When an anonymous
11152         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11153         is emitted for the typedef.
11154         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11155         anonymous tagged types.
11156
11157 2010-05-27  Jason Merrill  <jason@redhat.com>
11158
11159         * print-tree.c (debug_vec_tree): New fn.
11160         (print_vec_tree): New fn.
11161         * tree.h: Declare them.
11162         * gdbinit.in (pvt): New command.
11163
11164         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
11165
11166         * gdbinit.in (pdd): New command.
11167
11168 2010-05-27  Jan Hubicka  <jh@suse.cz>
11169
11170         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
11171         (update_caller_keys): Return early if there are no callers;
11172         only update fibheap when decresing the key.
11173         (update_callee_keys): Avoid recursion.
11174         (decide_inlining_of_small_functions): When badness does not match;
11175         re-insert into fibheap.
11176
11177 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
11178
11179         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
11180         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
11181         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
11182         (ALL_HOST_OBJS): Now a union of the above two.
11183         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
11184         all files in ALL_HOST_FRONTEND_OBJS.
11185         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
11186
11187         * c-common.c: Pretend to be a backend file by undefining
11188         IN_GCC_FRONTEND (still need rtl.h here).
11189
11190 2010-05-27  Jan Hubicka  <jh@suse.cz>
11191
11192         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
11193         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
11194
11195 2010-05-27  Jan Hubicka  <jh@suse.cz>
11196
11197         * sched-ebb.c: Rename struct deps to struct deps_desc.
11198         * ddg.c: Likewise.
11199         * sel-sched-ir.c: Likewise.
11200         * sched-deps.c: Likewise.
11201         * sched-int.h: Likewise.
11202         * sched-rgn.c: Likewise.
11203
11204 2010-05-27  Jon Beniston  <jon@beniston.com>
11205
11206         PR 43726
11207         * config/lm32/lm32.h: Remove definition of
11208         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
11209
11210 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11211
11212         PR lto/44230
11213         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
11214
11215 2010-05-27  Richard Guenther  <rguenther@suse.de>
11216
11217         PR tree-optimization/44284
11218         * tree-vect-stmts.c (vectorizable_assignment): Handle
11219         sign-changing conversions as simple copy.
11220
11221 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11222
11223         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
11224         Bionic C library.
11225         (__gthread_active_p): Check for pthread_create if compiling against
11226         Bionic C library.
11227
11228 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11229
11230         Support compilation for Android platform.  Reimplement -mandroid.
11231
11232         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
11233         (*android*): Set ANDROID_DEFAULT.
11234         (arm*-*-linux*): Include linux-android.h.
11235         (arm*-*-eabi*): Don't include previous -mandroid implementation.
11236         * config/arm/eabi.h: Remove, move Android-specific parts ...
11237         * config/linux-android.h: ... here.  New file.
11238         * config/arm/eabi.opt: Rename to ...
11239         * config/linux-android.opt: ... this.
11240         (mandroid): Allow -mno-android option.  Initialize based on
11241         ANDROID_DEFAULT.
11242         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
11243         Move logic to corresponding LINUX_TARGET_* macros.
11244         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
11245         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
11246         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
11247         Android definitions.
11248         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
11249         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
11250         Document.
11251
11252 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11253
11254         Add support for Bionic C library
11255
11256         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
11257         macro.
11258         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
11259         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
11260
11261         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
11262         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
11263         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
11264         to support multiple C libraries.  Handle Bionic.
11265         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
11266         (BIONIC_DYNAMIC_LINKER64): Define.
11267         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
11268         Update.
11269         (TARGET_HAS_SINCOS): Enable for Bionic.
11270
11271         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
11272         the last option specified on command line take effect.
11273         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
11274         (mbionic): New.
11275         (mglibc, muclibc): Update.
11276
11277         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
11278         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
11279         DEFAULT_LIBC.
11280
11281         * doc/invoke.texi (-mglibc, -muclibc): Update.
11282         (-mbionic): Document.
11283
11284 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11285
11286         * c-common.h (c_register_addr_space): Add prototype.
11287         (ADDR_SPACE_KEYWORD): Remove.
11288         * c-common.c (c_register_addr_space): New function.
11289         (c_addr_space_name): Reimplement.
11290         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
11291
11292         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
11293         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
11294
11295         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
11296         Remove TARGET_ADDR_SPACE_KEYWORDS.
11297
11298 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
11299
11300         * input.c: New file.
11301         * input.h (main_input_filename): Move declaration to toplev.h.
11302         * toplev.c (input_location, line_table): Move to input.c
11303         * toplev.h (main_input_filename): Move declaration from input.h.
11304         * tree.c (expand_location): Move to input.c.
11305         * Makefile.in (OBJS-common): Add input.o.
11306         (input.o): Add dependencies.
11307
11308 2010-05-27  Richard Guenther  <rguenther@suse.de>
11309
11310         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
11311         for non-existant files.
11312         (fork_execute): Mark args_name file as deleted.
11313
11314 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
11315
11316         PR bootstrp/44287
11317         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
11318         (narrow_signed_type): Likewise.
11319
11320 2010-05-26  Jan Hubicka  <jh@suse.cz>
11321
11322         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
11323         edge only when checking is enabled; check using former_clone_of;
11324         check inline clones too.
11325         (cgraph_materialize_clone): Record former_clone_of pointer.
11326         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
11327         combining redirections; dump args_to_skip bitmap
11328         (cgraph_materialize_all_clones): Do no redirection here.
11329         * ipa-inline.c (inline_transform): Do redirection here.
11330         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
11331         cheking only).
11332
11333 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11334
11335         * config/avr/avr-c.c: Do not include regs.h.
11336         Include cpplib.h for cpp_define and tree.h for c-common.h.
11337         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
11338         * config/avr/t-avr: Fix dependencies for avr-c.o.
11339
11340 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11341
11342         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
11343         string instead of SYMBOL_REF rtx.
11344         * rtl.h (set_stack_check_libfunc): Move prototype from here...
11345         * libfuncs.h: ...to here.  Adjust for explow.c change.
11346
11347 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
11348
11349         * pretty-print.c: Don't include ggc.h.
11350         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
11351         (identifier_to_locale): Use them for allocation.
11352         * pretty-print.h (identifier_to_locale_alloc,
11353         identifier_to_locale_free): Declare.
11354         * toplev.c (alloc_for_identifier_to_locale): New.
11355         (general_init): Set identifier_to_locale_alloc and
11356         identifier_to_locale_free.
11357         * Makefile.in (pretty-print.o): Update dependencies.
11358
11359 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
11360
11361         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
11362         pointer types if they have different alignment or mode.
11363
11364 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
11365
11366         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11367         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11368         * config/sparc/sparc-protos.h (function_value): Remove declaration.
11369         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
11370         sparc_function_value_regno_p): New functions.
11371         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11372         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11373         (function_value): Rename to...
11374         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
11375         argument to 'outgoing'.
11376         (function_arg_record_value, function_arg_union_value,
11377         function_arg_vector_value): Update comment.
11378
11379 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
11380
11381         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
11382         (fde_needed_for_eh_p): New predicate.
11383         (output_call_frame_info): Use it throughout to decide whether FDEs
11384         are needed for EH purpose.
11385         (dwarf2out_begin_prologue): Reorder assignments.
11386
11387 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11388
11389         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
11390         special case loop->header.
11391         (is_predicated): New.
11392         (if_convertible_loop_p): Call it.
11393
11394 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11395
11396         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
11397         iterator in parameter.  Do not generate code during the analysis.
11398         (tree_if_convert_cond_stmt): Removed.
11399         (tree_if_convert_stmt): Removed.
11400         (predicate_bbs): New.
11401         (if_convertible_loop_p): Call predicate_bbs.
11402         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
11403         now contains all the analysis part.
11404
11405 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11406
11407         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
11408         statements in the analysis part.
11409         (tree_if_convert_stmt): Update comment.
11410         (remove_conditions_and_labels): New.
11411         (combine_blocks): Call remove_conditions_and_labels.
11412         (tree_if_conversion): Update comment.
11413
11414 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11415
11416         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
11417         than 2 predecessors or more than 2 successors.
11418
11419 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11420
11421         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
11422         of loops in which the data dependence analysis fails.
11423
11424 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11425
11426         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
11427         CDI_POST_DOMINATORS.
11428         (tree_if_conversion): Same.
11429
11430 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11431
11432         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
11433
11434 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11435
11436         * tree-if-conv.c: Update copyright years.  Fix comments.
11437         Fix indentation.
11438
11439 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
11440
11441         * builtin-types.def (BT_INT128): New primitive type.
11442         (BT_UINT128): Likewise.
11443         * c-common.c (c_common_r): Add __int128 keyword.
11444         (c_common_type_for_size): Handle __int128.
11445         (c_common_type_for_mode): Likewise.
11446         (c_common_signed_or_unsigned_type): Likewise.
11447         (c_common_nodes_and_builtins): Add builtin type
11448         if target supports 128-bit integer scalar.
11449         * c-common.h (enum rid): Add RID_INT128.
11450         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
11451         if target supports 128-bit integer scalar.
11452         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
11453         (finish_declspecs): Likewise.
11454         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
11455         (c_token_starts_declspecs): Likewise.
11456         (c_parser_declspecs): Likewise.
11457         (c_parser_attributes): Likewise.
11458         (c_parser_objc_selector): Likewise.
11459         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
11460         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
11461         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
11462         * tree.c (make_or_reuse_type): Likewise.
11463         (make_unsigned_type): Likewise.
11464         (build_common_tree_nodes_2): Likewise.
11465         * tree.h (enum integer_type_kind): Add itk_int128 and
11466         itk_unsigned_int128.
11467         (int128_integer_type_node): New define.
11468         (int128_unsigned_type_node): New define.
11469         * doc/extend.texi: Add documentation about __int128 type.
11470
11471 2010-05-26  Richard Guenther  <rguenther@suse.de>
11472
11473         * tree-ssa-sccvn.c (copy_nary): Adjust.
11474         (copy_phis): Rename to ...
11475         (copy_phi): ... this.  Adjust.
11476         (copy_references): Rename to ...
11477         (copy_reference): ... this.  Adjust.
11478         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
11479         result into the valid table.
11480
11481 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11482
11483         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
11484         insn-config.h, insn-codes.h, recog.h, and optabs.h.
11485
11486 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11487
11488         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
11489
11490 2010-05-26  Richard Guenther  <rguenther@suse.de>
11491
11492         * opts.c (common_handle_option): Handle OPT_Ofast.
11493
11494 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
11495
11496         * diagnostic.c: Don't include opts.h.
11497         (permissive_error_option): Define.
11498         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
11499         for classify_diagnostic.  Don't use memset for
11500         classify_diagnostic.  Initialize new and recently added fields.
11501         (diagnostic_classify_diagnostic): Use context->n_opts instead of
11502         N_OPTS.
11503         (diagnostic_report_diagnostic): Pass context parameter to
11504         diagnostic_report_warnings_p.  Use option_enabled and option_name
11505         hooks from context.
11506         (emit_diagnostic): Use permissive_error_option.
11507         (permerror): Likewise.
11508         * diagnostic.h: Don't include options.h.
11509         (struct diagnostic_context): Add n_opts, opt_permissive,
11510         inhibit_warnings, warn_system_headers, option_enabled and
11511         option_name fields.  Change classify_diagnostic to a pointer.
11512         * opts-diagnostic.h: New file.
11513         * opts.c: Include opts-diagnostic.h.
11514         (common_handle_option): Set global_dc fields for -Wfatal-errors,
11515         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
11516         (option_name): New function.
11517         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
11518         (c_common_handle_option): Set global_dc->permissive for
11519         -fpermissive.
11520         * c-common.c (c_cpp_error): Save and restore
11521         global_dc->warn_system_headers, not variable warn_system_headers.
11522         * toplev.c: Include opts-diagnostic.h.
11523         (general_init): Update call to diagnostic_initialize.  Set
11524         global_dc->show_column, global_dc->option_enabled and
11525         global_dc->option_name.
11526         (process_options): Don't set global_dc fields here.
11527         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
11528         (diagnostic.o, opts.o, toplev.o): Update dependencies.
11529
11530 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
11531
11532         * config/picochip/picochip.md (movsi): Split a movsi from a
11533         const after reload.
11534
11535 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11536
11537         * ggc-zone.c: Update copyright year.
11538         (poison_region): Mark memory for Valgrind as undefined before
11539         memset () call and inaccessible afterwards.
11540         (ggc_pch_total_size): Change type of i to int.
11541
11542 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11543
11544         * ggc-common.c (ggc_free_overhead): Allow empty slot.
11545
11546 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11547
11548         * ggc-common.c: Update copyright year.
11549         (ggc_rlimit_bound): Remove prototype.  Compile only if
11550         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
11551         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
11552         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
11553         (ggc_min_heapsize_heuristic): Likewise.
11554
11555 2010-05-26  Richard Guenther  <rguenther@suse.de>
11556
11557         PR rtl-optimization/44164
11558         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
11559         no-common access-path disambiguation.
11560         (indirect_ref_may_alias_decl_p): Adjust.
11561         (indirect_refs_may_alias_p): Likewise.
11562         (refs_may_alias_p_1): Likewise.
11563
11564 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11565
11566         * c-typeck.c: Do not include expr.h.
11567
11568 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11569
11570         * rtl.h (decl_default_tls_model): Move prototype from here...
11571         * output.h: ...to here.
11572         * c-decl.c: Do not include rtl.h.
11573         * c-pragma.c: Likewise.
11574         * c-parser.c: Likewise.
11575         * c-gimplify.c: Likewise.  And also not hard-reg-set.
11576         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
11577         FIXME note for it.  Add a FIXME note for expr.h.
11578         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
11579         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
11580         defined.
11581
11582 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
11583
11584         PR target/44199
11585         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
11586         or total_size is larger than red zone size for non-V4 ABI, emit a
11587         stack_tie resp. frame_tie insn before stack pointer restore.
11588         * config/rs6000/rs6000.md (frame_tie): New insn.
11589
11590 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11591
11592         * function.h (struct function): Add can_throw_non_call_exceptions bit.
11593         * lto-streamer-in.c (input_function): Stream it in.
11594         * lto-streamer-out.c (output_function): Stream it out.
11595         * function.c (allocate_struct_function): Set it.
11596         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
11597         for flag_non_call_exceptions.
11598         * cfgbuild.c (control_flow_insn_p): Likewise.
11599         (make_edges): Likewise.
11600         * cfgexpand.c (expand_stack_alignment): Likewise.
11601         * combine.c (distribute_notes): Likewise.
11602         * cse.c (cse_extended_basic_block): Likewise.
11603         * except.c (insn_could_throw_p): Likewise.
11604         * gcse.c (simple_mem): Likewise.
11605         * ipa-pure-const.c (check_call): Likewise.
11606         (check_stmt ): Likewise.
11607         * lower-subreg.c (lower-subreg.c): Likewise.
11608         * optabs.c (emit_libcall_block): Likewise.
11609         (prepare_cmp_insn): Likewise.
11610         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
11611         * postreload.c (rest_of_handle_postreload): Likewise.
11612         * reload1.c (reload_as_needed): Likewise.
11613         (emit_input_reload_insns): Likewise.
11614         (emit_output_reload_insns): Likewise.
11615         (fixup_abnormal_edges): Likewise.
11616         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
11617         * store-motion.c (find_moveable_store): Likewise.
11618         * tree-eh.c (stmt_could_throw_p): Likewise.
11619         (tree_could_throw_p): Likewise.
11620         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11621         * config/arm/arm.c (arm_expand_prologue): Likewise.
11622         (thumb1_expand_prologue): Likewise.
11623         * config/rx/rx.md (cbranchsf4): Likewise.
11624         (cmpsf): Likewise.
11625         * config/s390/s390.c (s390_emit_prologue): Likewise.
11626         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
11627         (inline_forbidden_into_p): New predicate.
11628         (expand_call_inline): Use it to forbid inlining.
11629         (tree_can_inline_p): Likewise.
11630
11631 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11632
11633         * config/i386/i386-c.c: Do not include rtl.h.
11634         * config/i386/t-i386: Update dependencies.
11635
11636 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11637
11638         * attribs.c: Do not include rtl.h.
11639         * Makefile.in: Update dependencies.
11640
11641 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
11642
11643         * double-int.h (double_int_and): New.
11644         * combine.c (try_combine): Clean up, use double_int_* and
11645         immed_double_int_const functions.
11646
11647 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11648
11649         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
11650         stderr to /dev/null instead of grep -q.
11651         * configure: Regenerate.
11652
11653 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11654
11655         * Makefile.in (EXCEPT_H): Fix typo.
11656
11657 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
11658
11659         * ira-build.c (update_conflict_hard_reg_costs): New.
11660         (ira_build): Call update_conflict_hard_reg_costs.
11661
11662 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
11663
11664         PR debug/41371
11665         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
11666         ENABLE_CHECKING.
11667         (intersect_loc_chains): Walk the s2var's loc_chain together
11668         with s1node chain as long as the locations are equal, don't
11669         call find_loc_in_1pdv in that case.
11670
11671         PR debug/42801
11672         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
11673         (copy_bind_expr): ... instead of here.
11674         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
11675         if the block hasn't been remapped.
11676         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
11677         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
11678
11679 2010-05-25  Richard Guenther  <rguenther@suse.de>
11680
11681         PR middle-end/44069
11682         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
11683         out-of-bounds array accesses.
11684
11685 2010-05-25  Richard Guenther  <rguenther@suse.de>
11686
11687         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
11688         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
11689         (run_gcc): Re-organize to make cleanup easier.
11690
11691 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11692
11693         * config/s390/s390.c (optimization_options): Fix and move the
11694         flag_prefetch_loop_arrays override ...
11695         (override_options): ... here.
11696
11697 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
11698
11699         * diagnostic.c: Don't include plugin.h.
11700         (diagnostic_report_diagnostic): Don't handle plugins specially
11701         here.  Pass context to internal_error callback.
11702         * diagnostic.h (struct diagnostic_context): Add context parameter
11703         to internal_error callback.
11704         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
11705         * plugin.h (struct diagnostic_context): Declare.
11706         (warn_if_plugins, plugins_internal_error_function): Declare.
11707         * toplev.c (general_init): Set global_dc->internal_error.
11708         * Makefile.in (diagnostic.o): Update dependencies.
11709
11710 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
11711
11712         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
11713         * config/rs6000/t-darwin64: New.
11714         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
11715         build crt2.
11716
11717 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
11718
11719         PR 44203
11720         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
11721         match the original (and intended) behaviour before r159557.  This
11722         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
11723         in two ways.
11724
11725 2010-05-25  Richard Guenther  <rguenther@suse.de>
11726
11727         * doc/invoke.texi: Document -Ofast.
11728         * target.h (struct gcc_target): Add handle_ofast.
11729         * target-def.h (TARGET_HANDLE_OFAST): Add.
11730         (TARGET_INITIALIZER): Adjust.
11731         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
11732         * common.opt (Ofast): Add.
11733
11734 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
11735
11736         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
11737         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
11738
11739 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
11740
11741         PR target/43610
11742         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
11743         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
11744         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
11745         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
11746
11747 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
11748
11749         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
11750         DW_OP_minus with negated offset instead of DW_OP_plus.
11751         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
11752
11753 2010-05-25  Wei Guozhi  <carrot@google.com>
11754
11755         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
11756         tst instruction and a new alternative.
11757         * config/arm/constraints.md (Pu): New constraint.
11758
11759 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
11760
11761         * function.c (assign_stack_local_1): Initialize variable
11762         to avoid warning when bootstrapping at -O3.
11763
11764 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
11765
11766         * configure.ac (all_lang_makefiles): Remove everything related to it.
11767         * configure: Regenerate.
11768         * Makefile.in: Fix reference to ada Make-lang.in.
11769         Remove support for LANG_MAKEFILES.
11770
11771 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
11772             Sandra Loosemore  <sandra@codesourcery.com>
11773
11774         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
11775         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
11776         description.  Add arm_neon_fp16_ok.
11777         (Add Options): Add arm_neon and arm_neon_fp16.
11778
11779 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
11780
11781         * diagnostic.c: Don't include flags.h.
11782         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
11783         context parameters.  Check flags in the context passed as a parameter.
11784         (diagnostic_build_prefix): Add context parameter.  Check
11785         show_column flag in context.
11786         (diagnostic_action_after_output): Check fatal_errors flag in context.
11787         (diagnostic_report_current_module): Check show_column flag in context.
11788         (default_diagnostic_starter): Update call to
11789         diagnostic_build_prefix.
11790         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
11791         (emit_diagnostic): Pass context to permissive_error_kind.
11792         (permerror): Pass context to permissive_error_kind.
11793         * diagnostic.h (struct diagnostic_context): Add show_column,
11794         pedantic_errors, permissive and fatal_errors fields.
11795         (diagnostic_build_prefix): Update prototype.
11796         * langhooks.c
11797         * toplev.c (process_options): Set flags in global_dc from
11798         flag_show_column, flag_pedantic_errors, flag_permissive,
11799         flag_fatal_errors.
11800         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
11801         to diagnostic_build_prefix.
11802         * Makefile.in (diagnostic.o): Update dependencies.
11803
11804 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11805
11806         * config/i386/ia32intrin.h (__crc32q): Define only if
11807         __SSE4_2__ is defined.
11808
11809 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
11810
11811         PR target/44132
11812         PR middle-end/43602
11813         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
11814         DECL_VISIBILITY_SPECIFIED.
11815         (emutls_decl): Set DECL_PRESERVE_P and copy
11816         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
11817         (emutls_finalize_control_var): New callback.
11818         (emutls_finish): Finalize emutls control variables.
11819         * toplev.c (compile_file): Move the call to emutls_finish ()
11820         before varpool_assemble_pending_decls ().
11821
11822 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
11823
11824         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
11825         added to the preprocessor condition.
11826
11827 2010-05-24  Paul Brook  <paul@codesourcery.com>
11828
11829         * gengtype-lex.l: Add HARD_REG_SET.
11830         * expr.c (expand_expr_real_1): Record writes to hard registers.
11831         * function.c (rtl_data): Add asm_clobbers.
11832         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
11833         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
11834         Use crtl->asm_clobbers.
11835
11836 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11837
11838         * doc/makefile.texi (Makefile): Mention stages 'profile'
11839         and 'feedback' for profiledbootstrap.
11840
11841 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11842
11843         PR target/44245
11844         * config/i386/i386.c (def_builtin): Properly check
11845         OPTION_MASK_ISA_64BIT.
11846
11847 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
11848
11849         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
11850         typedefs with different but compatible types.  Allow duplicate
11851         typedefs with the same type except for pedantic non-C1X, but give
11852         warning for variably modified types.
11853         * c-typeck.c (tagged_types_tu_compatible_p,
11854         function_types_compatible_p, type_lists_compatible_p,
11855         comptypes_internal): Add parameter different_types_p; set
11856         *different_types_p for different but compatible types.  All
11857         callers changed.
11858         (comptypes_check_different_types): New.
11859         * c-tree.h (comptypes_check_different_types): Declare.
11860
11861 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
11862
11863         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
11864         * jump.c: Include basic-block.h.
11865         * profile.c: Likewise.
11866         * tree-profile.c: Likewise.
11867         * coverage.c: Likewise.
11868         * basic-block.h (optimize_function_for_size_p): Move to function.h.
11869         (optimize_function_for_speed_p): Likewise.
11870         * function.h (optimize_function_for_size_p,
11871         optimize_function_for_speed_p): Moved here from basic-block.h.
11872         * Makefile.in: Update dependencies.
11873
11874 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11875
11876         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
11877         before calling make; allow override through $MAKE.
11878         * doc/invoke.texi (Optimize Options): Document override.
11879
11880 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
11881
11882         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
11883         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11884         (rs6000_mode_dependent_address_ptr): Make static.
11885         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11886         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
11887         Remove.
11888
11889 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
11890
11891         PR target/43869
11892         * config/i386/i386.c: Make sure that the correct regparm is passed.
11893
11894 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
11895
11896         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
11897         * sbitmap.c: ...to here to internalize sbitmap element access.
11898         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
11899         Explain why basic-block.h is included.
11900         * function.h: Include tm.h for CUMULATIVE_ARGS.
11901         * Makefile.in: Update dependencies.
11902
11903 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
11904
11905         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
11906         New core types.
11907         * sbitmap.h (struct sbitmap_def): Do not typedef here.
11908         * sbitmap.c: Include sbitmap.h.
11909         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
11910         hard-reg-set.h.  Split everything related to regsets out from here...
11911         * regset.h: ...to here.  New file.
11912         * df.h: Include regset.h and sbitmap.h.
11913         * tree-flow.h: Likewise.
11914         * cfgloop.h: Likewise.
11915         * except.h: Do not include sbitmap.h.  Include hashtab.h.
11916         * cgraph.h: Include vec.h and function.h.
11917         * reload.h (struct insn_chain): Change types of live_throughout
11918         and dead_or_set from regset_head to bitmap_head.
11919         (compute_use_by_pseudos): Be defined also if regset.h is not included.
11920         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
11921         spilled_regs from regset_head to bitmap_head to avoid dependency
11922         in regset.h.
11923         * sel-sched-ir.h: Include regset.h.
11924         * reload.c: Include df.h before reload.h.
11925         * caller-save.c: Likewise.
11926         * reload1.c: Likewise.
11927         * ira.c: Likewise.
11928         (mark_elimination): Update type of r to bitmap, consistent with
11929         DF_LR_IN.
11930         * dominance.c: Include bitmap.h.
11931         * modulo-sched.c: Include df.h.
11932         * cfganal.c: Include bitmap.h and sbitmap.h.
11933         * cfgbuild.c: Include sbitmap.h.
11934         * lcm.c: Include sbitmap.h.
11935         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
11936         * domwalk.c: Include sbitmap.h, exclude ggc.h.
11937         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
11938         * cselib.c: Include bitmap.h.
11939         * tree-optimize.c: Include regset.h.
11940         * stmt.c: Include bitmap.h.
11941         * Makefile.in: Update dependencies.
11942
11943 2010-05-22  Jan Hubicka  <jh@suse.cz>
11944
11945         * cgraph.h (struct varpool_node): Add same_comdat_group.
11946         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
11947         pointer.
11948         (output_varpool): Update call of lto_output_varpool_node.
11949         (input_varpool): Read same_comdat_group pointer.
11950         (input_varpool_1): Fixup same_comdat_group pointer.
11951         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
11952         group is needed, all are.
11953         * varpool.c (varpool_remove_node): Remove node from same comdat group
11954         linklist too.
11955         (varpool_analyze_pending_decls): Walk same comdat groups.
11956
11957 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
11958
11959         * rtl.h (union rtunion_def): Remove rt_bit member.
11960         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
11961         * print-rtl (print_rtx): Do not print the member.
11962         * gengtype.c (adjust_field_rtx_def): Do not handle it.
11963         * gengenrtl.c (type_from_format): Likewise.
11964         (accessor_from_format): Likewise.
11965
11966 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
11967
11968         * dbgcnt.c: Include toplev.h instead of errors.h.
11969         * ira-emit.c: Don't include errors.h.
11970         * ira.c: Include toplev.h instead of errors.h.
11971         * lto-compress.c: Include toplev.h instead of errors.h.
11972         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
11973         ira.o, dbgcnt.o): Update dependencies.
11974
11975 2010-05-22  Richard Guenther  <rguenther@suse.de>
11976
11977         * gimple.c (gimple_types_compatible_p): Check type qualifications
11978         before merging pointer to complete and pointer to incomplete type.
11979         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
11980         we use our own resolution algorithm.  The gold linker plugin
11981         doesn't do the job we want it to do here.
11982
11983 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
11984
11985         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11986         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11987         (sparc_mode_dependent_address_p): New function.
11988
11989 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
11990
11991         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
11992
11993         * timevar.c: Do not include any core headers.
11994         (timevar_print): De-i18n-ize.
11995         (print_time): Likewise.
11996         * timevar.h (timevar_push, timevar_pop): Make inline functions.
11997
11998 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
11999
12000         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
12001         langhooks-def.h.
12002         (diagnostic_initialize): Initialize x_data not last_function.
12003         (diagnostic_report_current_function): Move to tree-diagnostic.c.
12004         (default_diagnostic_starter): Call
12005         diagnostic_report_current_module not
12006         diagnostic_report_current_function.
12007         (diagnostic_report_diagnostic): Initialize x_data not
12008         abstract_origin.
12009         (verbatim): Likewise.
12010         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
12011         x_data.
12012         (struct diagnostic_context): Change last_function to x_data.
12013         (diagnostic_auxiliary_data): Replace with
12014         diagnostic_context_auxiliary_data and
12015         diagnostic_info_auxiliary_data.
12016         (diagnostic_last_function_changed, diagnostic_set_last_function,
12017         diagnostic_report_current_function): Move to tree-diagnostic.h.
12018         (print_declaration, dump_generic_node, print_generic_stmt,
12019         print_generic_stmt_indented, print_generic_expr,
12020         print_generic_decl, debug_c_tree, dump_omp_clauses,
12021         print_call_name, debug_generic_expr, debug_generic_stmt,
12022         debug_tree_chain, default_tree_printer): Move to
12023         tree-pretty-print.h.
12024         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
12025         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
12026         gimple-pretty-print.h.
12027         * pretty-print.c: Don't include tree.h
12028         (pp_base_format): Don't handle %K here.
12029         (pp_base_tree_identifier): Move to tree-pretty-print.c.
12030         * pretty-print.h (text_info): Change abstract_origin to x_data.
12031         (pp_tree_identifier, pp_unsupported_tree,
12032         pp_base_tree_identifier): Move to tree-pretty-print.h.
12033         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
12034         tree-pretty-print.h: New files.
12035         * tree-pretty-print.c: Include tree-pretty-print.h.
12036         (percent_K_format): New.  Moved from pretty-print.c.
12037         (pp_base_tree_identifier): Move from pretty-print.c.
12038         * c-objc-common.c: Include tree-pretty-print.h.
12039         (c_tree_printer): Handle %K here.
12040         * langhooks.c: Include tree-diagnostic.h.
12041         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
12042         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
12043         (default_tree_printer): Handle %K using percent_K_format.
12044         (general_init): Use default_tree_diagnostic_starter.
12045         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
12046         (free_lang_data): Use default_tree_diagnostic_starter.
12047         * c-pretty-print.c: Include tree-pretty-print.h.
12048         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12049         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12050         * dwarf2out.c: Include tree-pretty-print.h.
12051         * except.c: Include tree-pretty-print.h.
12052         * gimple-pretty-print.c: Include tree-pretty-print.h and
12053         gimple-pretty-print.h.
12054         * gimplify.c: Include tree-pretty-print.h.
12055         * graphite-poly.c: Include tree-pretty-print.h and
12056         gimple-pretty-print.h.
12057         * ipa-cp.c: Include tree-pretty-print.h.
12058         * ipa-inline.c: Include gimple-pretty-print.h.
12059         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12060         * ipa-pure-const.c: Include gimple-pretty-print.h.
12061         * ipa-struct-reorg.c: Include tree-pretty-print.h and
12062         gimple-pretty-print.h.
12063         * ipa-type-escape.c: Include tree-pretty-print.h.
12064         * print-rtl.c: Include tree-pretty-print.h.
12065         * print-tree.c: Include gimple-pretty-print.h.
12066         * sese.c: Include tree-pretty-print.h.
12067         * tree-affine.c: Include tree-pretty-print.h.
12068         * tree-browser.c: Include tree-pretty-print.h.
12069         * tree-call-cdce.c: Include gimple-pretty-print.h.
12070         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12071         * tree-chrec.c: Include tree-pretty-print.h.
12072         * tree-data-ref.c: Include tree-pretty-print.h and
12073         gimple-pretty-print.h.
12074         * tree-dfa.c: Include tree-pretty-print.h.
12075         * tree-if-conv.c: Include tree-pretty-print.h and
12076         gimple-pretty-print.h.
12077         * tree-inline.c: Include tree-pretty-print.h.
12078         * tree-into-ssa.c: Include tree-pretty-print.h and
12079         gimple-pretty-print.h.
12080         * tree-nrv.c: Include tree-pretty-print.h.
12081         * tree-object-size.c: Include tree-pretty-print.h and
12082         gimple-pretty-print.h.
12083         * tree-outof-ssa.c: Include tree-pretty-print.h and
12084         gimple-pretty-print.h.
12085         * tree-parloops.c: Include tree-pretty-print.h and
12086         gimple-pretty-print.h.
12087         * tree-predcom.c: Include tree-pretty-print.h and
12088         gimple-pretty-print.h.
12089         * tree-scalar-evolution.c: Include tree-pretty-print.h and
12090         gimple-pretty-print.h.
12091         * tree-sra.c: Include tree-pretty-print.h.
12092         * tree-ssa-address.c: Include tree-pretty-print.h.
12093         * tree-ssa-alias.c: Include tree-pretty-print.h.
12094         * tree-ssa-ccp.c: Include tree-pretty-print.h and
12095         gimple-pretty-print.h.
12096         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
12097         * tree-ssa-copy.c: Include tree-pretty-print.h and
12098         gimple-pretty-print.h.
12099         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
12100         * tree-ssa-dce.c: Include tree-pretty-print.h and
12101         gimple-pretty-print.h.
12102         * tree-ssa-dom.c: Include tree-pretty-print.h and
12103         gimple-pretty-print.h.
12104         * tree-ssa-dse.c: Include gimple-pretty-print.h.
12105         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
12106         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
12107         * tree-ssa-live.c: Include tree-pretty-print.h and
12108         gimple-pretty-print.h.
12109         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
12110         gimple-pretty-print.h.
12111         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
12112         gimple-pretty-print.h.
12113         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
12114         gimple-pretty-print.h.
12115         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
12116         gimple-pretty-print.h.
12117         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
12118         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
12119         * tree-ssa-operands.c: Include tree-pretty-print.h and
12120         gimple-pretty-print.h.
12121         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
12122         gimple-pretty-print.h.
12123         * tree-ssa-pre.c: Include tree-pretty-print.h and
12124         gimple-pretty-print.h.
12125         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
12126         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
12127         gimple-pretty-print.h.
12128         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
12129         gimple-pretty-print.h.
12130         * tree-ssa-sink.c: Include gimple-pretty-print.h.
12131         * tree-ssa-ter.c: Include tree-pretty-print.h and
12132         gimple-pretty-print.h.
12133         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
12134         * tree-ssa.c: Include tree-pretty-print.h and
12135         gimple-pretty-print.h.
12136         * tree-stdarg.c: Include gimple-pretty-print.h.
12137         * tree-switch-conversion.c: Include gimple-pretty-print.h.
12138         * tree-tailcall.c: Include tree-pretty-print.h and
12139         gimple-pretty-print.h.
12140         * tree-vect-data-refs.c: Include tree-pretty-print.h and
12141         gimple-pretty-print.h.
12142         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
12143         gimple-pretty-print.h.
12144         * tree-vect-loop.c: Include tree-pretty-print.h and
12145         gimple-pretty-print.h.
12146         * tree-vect-patterns.c: Include gimple-pretty-print.h.
12147         * tree-vect-slp.c: Include tree-pretty-print.h and
12148         gimple-pretty-print.h.
12149         * tree-vect-stmts.c: Include tree-pretty-print.h and
12150         gimple-pretty-print.h.
12151         * tree-vectorizer.c: Include tree-pretty-print.h.
12152         * tree-vrp.c: Include tree-pretty-print.h and
12153         gimple-pretty-print.h.
12154         * value-prof.c: Include tree-pretty-print.h and
12155         gimple-pretty-print.h.
12156         * var-tracking.c: Include tree-pretty-print.h.
12157         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
12158         (tree-diagnostic.o): New dependencies.
12159         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
12160         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
12161         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
12162         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
12163         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
12164         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
12165         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
12166         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
12167         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
12168         tree-ssa-address.o, tree-ssa-loop-niter.o,
12169         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
12170         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
12171         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
12172         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
12173         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
12174         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
12175         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
12176         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
12177         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
12178         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
12179         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
12180         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
12181         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
12182         tree-switch-conversion.o, var-tracking.o, value-prof.o,
12183         cfgexpand.o, pretty-print.o): Update dependencies.
12184
12185 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
12186
12187         * tree-ssa-structalias.c: Remove tm_p.h from include.
12188
12189 2010-05-21  Jeff Law  <law@redhat.com>
12190
12191         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
12192
12193 2010-05-21  Jason Merrill  <jason@redhat.com>
12194
12195         * tree-eh.c (cleanup_is_dead_in): New.
12196         (lower_try_finally): Don't generate a dead cleanup region.
12197         (lower_cleanup): Likewise.
12198
12199 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
12200
12201         PR debug/44223
12202         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
12203         unchain each use from the cyclic next_regno_use chain first.
12204
12205 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
12206
12207         * real: Do not include gmp.h, mpfr.h, and mpc.h.
12208         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
12209         (real_value_negate, real_value_abs): New prototypes.
12210         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
12211         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
12212         new include file for interface between MPFR and REAL_VALUE_TYPE.
12213         * real.c: Include realmpfr.h.
12214         (real_arithmetic2): Remove legacy function.
12215         (real_value_negate): New.
12216         (real_value_abs): New.
12217         (mfpr_from_real, real_from_mpfr): Move from here...
12218         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
12219         * builtins.c: Include realmpfr.h.
12220         * fold-const.c: Include realmpfr.h.
12221         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
12222         (fold_negate_const): Likewise.
12223         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
12224         * toplev.c: Include realmpfr.h.
12225         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
12226         and real_value_negate.
12227         * fixed-value.c (check_real_for_fixed_mode): Likewise.
12228         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
12229         (vfp3_const_double_index): Likewise.
12230         (arm_print_operand): Likewise.
12231         * Makefile.in: Update dependencies.
12232
12233 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12234
12235         * config/s390/s390.c (override_options): Increase the default
12236         of max-completely-peel-times.
12237
12238 2010-05-21  Julian Brown  <julian@codesourcery.com>
12239             Mark Mitchell  <mark@codesourcery.com>
12240
12241         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
12242         sibling calls for Thumb-1.
12243         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
12244         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
12245         Thumb-2.
12246         (*call_insn, *call_value_insn): Don't use for Thumb-2.
12247         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
12248         for Thumb-2.
12249         (return): New expander.
12250         (*arm_return): New name for ARM return insn.
12251         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
12252
12253 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
12254
12255         * config.gcc (sparc64-*-rtems*): New target.
12256
12257 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
12258
12259         * tree.c (build_function_decl_skip_args): Fix grammar.
12260         (build_function_type_list_1): Fix typos, adjust formatting.
12261
12262 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
12263
12264         * tree.h: Include real.h and fixed-value.h as basic datatypes.
12265         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
12266         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
12267         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
12268         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
12269         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
12270         tree-pretty-print.c, tree-loop-distribution.c,
12271         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
12272         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
12273         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
12274         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
12275         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
12276         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
12277         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
12278         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
12279         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
12280         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
12281         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
12282         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
12283         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
12284         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
12285         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
12286         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
12287         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
12288         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
12289         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
12290         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
12291         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
12292         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
12293         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
12294         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
12295         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
12296         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
12297         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
12298         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
12299         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
12300         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
12301         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
12302         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
12303         config/score/score7.c, config/score/score.c, config/arm/arm.c,
12304         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
12305         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
12306         config/bfin/bfin.c: Clean up redundant includes.
12307         * Makefile.in: Update accordingly.
12308
12309 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
12310
12311         PR middle-end/44204
12312         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
12313         statement has no arguments.
12314
12315 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
12316
12317         PR/44139
12318         * varasm.c (emutls_decl): Merge attributes to new decl.
12319
12320 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12321
12322         PR middle-end/44101
12323         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
12324         around the uniquized constructor if its type requires a conversion.
12325
12326 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
12327
12328         PR debug/44205
12329         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
12330         at -O0 goto_locus of any of the incoming edges differs from
12331         goto_locus of outgoing edge, or gimple_location of any of the
12332         labels differs.
12333
12334 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
12335
12336         * ira.c (ira_non_ordered_class_hard_regs): Define.
12337         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
12338         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
12339         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
12340         cost of unaligned hard regs when allocating multi-reg pseudos.
12341
12342 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
12343
12344         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
12345         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
12346         for TARGET_NO_FLOAT.
12347         * config/mips/mips.c (mips_file_start): Expand conditional expression
12348         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
12349         (mips_override_options): Move -mno-float override -msoft-float and
12350         -mhard-float.
12351         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
12352         Condition(TARGET_SUPPORTS_NO_FLOAT).
12353         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
12354         __mips_no_float here.
12355         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
12356         (TARGET_SUPPORTS_NO_FLOAT): Define.
12357         * config/mips/sdemtk.opt: Delete.
12358
12359 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
12360
12361         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
12362
12363 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
12364
12365         PR target/43733
12366         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
12367         * configure: Regenerate.
12368         * config.in: Regenerate.
12369         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
12370         instead of sahf only for 64bit targets.
12371
12372 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
12373
12374         PR debug/44178
12375         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
12376         setup_ref_regs for DEBUG_INSNs.
12377
12378 2010-05-20  Jan Hubicka  <jh@suse.cz>
12379
12380         PR middle-end/44197
12381         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
12382
12383 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
12384
12385         PR bootstrap/43870
12386         * df-scan.c (df_ref_compare): Stabilize sort.
12387
12388 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
12389
12390         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
12391         argument.  Don't use DW_OP_piece if offset is non-zero,
12392         put offset into second DW_OP_bit_piece argument.
12393         (dw_sra_loc_expr): Adjust callers.  For memory expressions
12394         compute offset.
12395
12396 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
12397
12398         PR target/44202
12399         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
12400         settings for 16-bit-constant "addo" alternative.
12401
12402 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
12403
12404         * config/mips/mips-dsp.md (add<DSPV:mode>3,
12405         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
12406
12407         PR target/43764
12408         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
12409         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
12410         Use it.
12411
12412 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
12413
12414         * diagnostic.c (FLOAT, FFS): Don't undefine.
12415         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
12416         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
12417         include ordering.
12418
12419 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
12420
12421         * combine.c (propagate_for_debug): Call make_compound_operation
12422         on the source value.
12423         (try_combine): When implementing a split chosen by find_split_point,
12424         either copy i2src or set it to null.  Assert that i2src is not null
12425         before substituting into CALL_INSN_FUNCTION_USAGE.
12426
12427 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
12428
12429         * double-int.h (double_int_ior): New function.
12430         * tree.h (build_int_cst_wide_type): Remove.
12431         * tree.c (build_int_cst_wide_type): Remove.
12432         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
12433         of build_int_cst_wide_type.
12434         * stor-layout.c (set_sizetype): (Ditto.).
12435         * dojump.c (do_jump): Use build_int_cstu instead of
12436         build_int_cst_wide_type.
12437
12438 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12439
12440         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
12441         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
12442         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
12443         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
12444         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
12445         propagate the 'data' argument to copy_tree_r.
12446         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
12447         Propagate 'data' argument to walk_tree.
12448         (copy_if_shared): New function.
12449         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
12450         (unmark_visited): New function.
12451         (unshare_body): Call copy_if_shared instead of doing it manually.
12452         (unvisit_body): Call unmark_visited instead of doing it manually.
12453
12454 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
12455
12456         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
12457         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
12458         * hooks.c: Likewise.
12459         * target-def.h (TARGET_FOLD_BUILTIN): Define to
12460         hook_tree_tree_int_treep_bool_null.
12461         * target.h (struct gcc_target): Update signature of fold_builtin
12462         field.
12463         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
12464         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
12465         instead of the call expression.
12466         (fold_builtin_call_array): Pass n and argarray directly.
12467         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
12468         consing a list.
12469         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
12470         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
12471         `i' and use it in place of `arity'.
12472         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
12473         Dereference `args' directly.
12474         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
12475
12476 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12477
12478         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12479         3dnow, sse3, sse2.
12480         (Directives): Document optional dg-require-effective-target
12481         selector.
12482
12483 2010-05-19  Richard Guenther  <rguenther@suse.de>
12484
12485         PR lto/44196
12486         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
12487
12488 2010-05-19  Richard Guenther  <rguenther@suse.de>
12489
12490         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
12491         * common.opt (fwhopr=): New.
12492         * opts.c (common_handle_option): Handle OPT_fwhopr.
12493         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
12494         * collect2.c (main): Match -fwhopr*.
12495         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
12496         Execute ltrans stage in parallel when jobs is bigger than 1.
12497
12498 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12499
12500         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12501         pentiumpro on Solaris 8/x86 with Sun as.
12502         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
12503         hidden alias bug.
12504         (gcc_cv_as_ix86_quad): Check for .quad directive.
12505         * configure: Regenerate.
12506         * config.in: Regenerate.
12507         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
12508
12509 2010-05-19  Martin Jambor  <mjambor@suse.cz>
12510
12511         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
12512         also for indirect edges.  Actual printing moved...
12513         (ipa_print_node_jump_functions_for_edge): ...here.
12514         (ipa_compute_jump_functions): Renamed to
12515         ipa_compute_jump_functions_for_edge and made static.
12516         (ipa_compute_jump_functions): New function.
12517         (make_edge_direct_to_target): Check if the number of arguments on
12518         the newly direct edge is the same as the number of parametrs of
12519         the callee.
12520         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
12521         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
12522         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12523         analysis functions unconditionally, call the new
12524         ipa_analyze_params_uses on the node instead of every edge.
12525
12526 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
12527
12528         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
12529         to tree.
12530         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
12531         also checks for a constant int vs.  non-constant but
12532         loop-invariant steps.
12533         (find_or_create_group): Change the sort algorithm to only consider
12534         steps that are constant ints.
12535         (idx_analyze_ref): Adopt code to handle a tree instead of a
12536         HOST_WIDE_INT for step.
12537         (gather_memory_references_ref): Handle tree instead of int and be
12538         prepared to see a NULL_TREE.
12539         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
12540         prefetches if the step cannot be calculated at compile time.
12541         (issue_prefetch_ref): Issue prefetches for non-constant but
12542         loop-invariant steps.
12543
12544 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
12545
12546         Revert:
12547         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
12548
12549         * tree.h (build_call_list): Remove.
12550         * tree.c (build_call_list): Remove.
12551
12552 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
12553
12554         * tree.h (build_call_list): Remove.
12555         * tree.c (build_call_list): Remove.
12556
12557 2010-05-18  Jan Hubicka  <jh@suse.cz>
12558
12559         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
12560
12561 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
12562
12563         PR rtl-optimization/43332
12564         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
12565
12566 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
12567
12568         * tree.h (build_int_cstu): Implement as static inline.
12569         * tree.c (build_int_cstu): Remove function.
12570         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
12571         sign extended.
12572
12573 2010-05-18  Richard Guenther  <rguenther@suse.de>
12574
12575         PR lto/44143
12576         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
12577         (debug): Initialize from -save-temps.
12578         (collect_execute): Print command-line when verbose.
12579         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
12580         for ltrans invocation.  Produce -dumpbase flag again.
12581         (process_args): Remove.
12582         (main): Simplify.
12583         * collect2.c (maybe_run_lto_and_relink): Only pass object
12584         files to lto-wrapper.
12585         * gcc.c (LINK_COMMAND_SPEC): Likewise.
12586
12587 2010-05-18  Jan Hubicka  <jh@suse.cz>
12588
12589         * opts.c (decode_options): Do not disable whopr at ipa_cp.
12590         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
12591
12592 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
12593
12594         PR lto/44184
12595         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
12596         in a GIMPLE_ASM.
12597         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
12598         in a GIMPLE_ASM.
12599
12600 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
12601
12602         PR debug/41371
12603         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
12604         rtx_equal_p inline.
12605
12606 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
12607
12608         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
12609         lto-macho as lto_binary_reader.
12610
12611         * darwin.c (darwin_asm_named_section): Do not add assembler comment
12612         after .section directive; just print it before the directive instead.
12613
12614 2010-05-17  Jan Hubicka  <jh@suse.cz>
12615
12616         * cgraph.c (cgraph_create_virtual_clone): Only check
12617         versionable_function_p when not in wpa and checking is enabled.
12618         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
12619         there are no more functions to materialize.
12620
12621 2010-05-17  Jan Hubicka  <jh@suse.cz>
12622
12623         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
12624         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
12625         New functions.
12626         (output_cgraph): Call output_cgraph_opt_summary.
12627         (input_cgrpah): Call input_cgraph_opt_summary.
12628         (output_cgraph_opt_summary_p, output_node_opt_summary,
12629         input_node_opt_summary, input_cgraph_opt_section): New functions.
12630         * lto-section-in.c (lto_section_name): Add cgraphopt.
12631         * tree-inline.c (tree_function_versioning): Handle parm_num.
12632         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
12633         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
12634
12635 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
12636
12637         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
12638         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
12639         the insn to prefetch ratio heuristic to loops with known trip count.
12640
12641 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
12642
12643         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
12644         (schedule_prefetches): Do not generate a prefetch if the unroll factor
12645         is far from what is required by the prefetch.
12646
12647 2010-05-17  Jan Hubicka  <jh@suse.cz>
12648
12649         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
12650         (ipcp_estimate_growth): Likewise.
12651         (ipcp_const_param_count): Likewise.
12652         (ipcp_insert_stage): Likewise.
12653         * ipa-prop.c (visit_load_for_mod_analysis): New function.
12654         (visit_store_addr_for_mod_analysis): Set used flag.
12655         (ipa_detect_param_modifications): Set used flag for SSE params;
12656         update use of walk_stmt_load_store_addr_ops.
12657         (ipa_print_node_params): Print used flag.
12658         (ipa_write_node_info): Stream used flag.
12659         (ipa_read_node_info): Likewise.
12660         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
12661         (ipa_is_param_used): New function.
12662         (lto_ipa_fixup_call_notes): Remove unused declaration.
12663
12664 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12665
12666         PR target/44074
12667         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
12668         * configure: Regenerate.
12669         * config.in: Regenerate.
12670         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
12671         !HAVE_AS_IX86_REP_LOCK_PREFIX.
12672         Don't emit whitespace.
12673         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
12674         (*rep_movsi): Likewise.
12675         (*rep_movsi_rex64): Likewise.
12676         (*rep_movqi): Likewise.
12677         (*rep_movqi_rex64): Likewise.
12678         (*rep_stosdi_rex64): Likewise.
12679         (*rep_stossi): Likewise.
12680         (*rep_stossi_rex64): Likewise.
12681         (*rep_stosqi): Likewise.
12682         (*rep_stosqi_rex64): Likewise.
12683         (*cmpstrnqi_nz_1): Use {%;} after repz.
12684         (*cmpstrnqi_nz_rex_1): Likewise.
12685         (*cmpstrnqi_1): Likewise.
12686         (*cmpstrnqi_rex_1): Likewise.
12687         (*strlenqi_1): Use {%;} after repnz.
12688         (*strlenqi_rex_1): Likewise.
12689         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
12690         (*sync_compare_and_swap<mode>): Likewise.
12691         (sync_double_compare_and_swap<mode>): Likewise.
12692         (*sync_double_compare_and_swapdi_pic): Likewise.
12693         (sync_old_add<mode>): Likewise.
12694         (sync_add<mode>): Likewise.
12695         (sync_sub<mode>): Likewise.
12696         (sync_<code><mode>): Likewise.
12697
12698 2010-05-17  Martin Jambor  <mjambor@suse.cz>
12699
12700         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
12701         otr_token and polymorphic.
12702         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
12703         (cgraph_clone_edge): Copy the above fields.
12704         * tree.c (get_binfo_at_offset): New function.
12705         * tree.h (get_binfo_at_offset): Declare.
12706         * ipa-prop.h (enum jump_func_type): Added known_type jump function
12707         type, reordered items, updated comments.
12708         (union jump_func_value): Added base_type field, reordered fields.
12709         (enum ipa_lattice_type): Moved down in the file.
12710         (struct ipa_param_descriptor): New field polymorphic.
12711         (ipa_is_param_polymorphic): New function.
12712         * ipa-prop.c: Include gimple.h and gimple-fold.h.
12713         (ipa_print_node_jump_functions): Print known type jump functions.
12714         (compute_complex_pass_through): Renamed to...
12715         (compute_complex_assign_jump_func): this.
12716         (compute_complex_ancestor_jump_func): New function.
12717         (compute_known_type_jump_func): Likewise.
12718         (compute_scalar_jump_functions): Create known type and complex ancestor
12719         jump functions.
12720         (ipa_note_param_call): New parameter polymorphic, set the corresponding
12721         flag in the call note accordingly.
12722         (ipa_analyze_call_uses): Renamed to...
12723         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
12724         variable var only in the block where it is used.
12725         (ipa_analyze_virtual_call_uses): New function.
12726         (ipa_analyze_call_uses): Likewise.
12727         (combine_known_type_and_ancestor_jfs): Likewise.
12728         (update_jump_functions_after_inlining): Implemented handling of a
12729         number of new jump function types combination.
12730         (print_edge_addition_message): Removed.
12731         (make_edge_direct_to_target): New function.
12732         (try_make_edge_direct_simple_call): Likewise.
12733         (try_make_edge_direct_virtual_call): Likewise.
12734         (update_call_notes_after_inlining): Renamed to...
12735         (update_indirect_edges_after_inlining): this.  Moved edge creation for
12736         indirect calls to try_make_edge_direct_simple_call, also calls
12737         try_make_edge_direct_virtual_call for virtual calls.
12738         (ipa_print_node_params): Changed the header message.
12739         (ipa_write_jump_function): Stream also known type jump functions.
12740         (ipa_read_jump_function): Likewise.
12741         (ipa_write_indirect_edge_info): Stream new fields in
12742         cgraph_indirect_call_info.
12743         (ipa_read_indirect_edge_info): Likewise.
12744         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
12745         GIMPLE_FOLD_H.
12746
12747 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12748
12749         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
12750
12751 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
12752
12753         * tree.h (CALL_EXPR_ARGS): Delete.
12754         (call_expr_arglist): Delete.
12755         * tree.c (call_expr_arglist): Delete.
12756         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
12757         targetm.fold_builtin.
12758         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
12759         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
12760         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
12761         arglist parameter.  Use CALL_EXPR_ARG.
12762         (picochip_expand_builtin_3op): Likewise.
12763         (picochip_expand_builtin_2opvoid): Likewise.
12764         (picochip_expand_array_get): Likewise.
12765         (picochip_expand_array_put): Likewise.
12766         (picochip_expand_array_testport): Likewise.
12767         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
12768         rather than arglist.
12769         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
12770         CALL_EXPR_ARGS.
12771         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
12772         than TREE_VALUE and TREE_CHAIN.
12773         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
12774         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
12775         the arglist.
12776
12777 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
12778
12779         PR bootstrap/42347
12780         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
12781         to have no fallthru edge.
12782
12783         PR middle-end/44102
12784         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
12785         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
12786         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
12787         add BARRIER after previous bb if needed.
12788
12789 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
12790
12791         * tree.c (build_function_type_list_1): Remove bogus assert condition.
12792
12793 2010-05-17  Alan Modra  <amodra@gmail.com>
12794
12795         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
12796         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
12797         with copy_reg rtx param.
12798         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
12799         Correct cases where code for ABI_V4 did not initialise the reg
12800         used to access frame.  Also leave frame_reg_rtx as sp for large
12801         frames that save no regs.
12802
12803 2010-05-17  Martin Jambor  <mjambor@suse.cz>
12804
12805         PR middle-end/44133
12806         * tree-sra.c (create_access_replacement): New parameter rename, mark
12807         the replaement for renaming only when it is true.
12808         (get_access_replacement): Pass true in the rename parameter of
12809         create_access_replacement.
12810         (get_unrenamed_access_replacement): New function.
12811         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
12812         replacement declaration from it.
12813
12814 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
12815
12816         * function.c (try_fit_stack_local, add_frame_space): New static
12817         functions.
12818         (assign_stack_local_1): Use them.  Look for opportunities to use
12819         space previously wasted on alignment.
12820         * function.h (struct frame_space): New.
12821         (struct rtl_data): Add FRAME_SPACE_LIST member.
12822         * reload1.c (something_was_spilled): New static variable.
12823         (alter_reg): Set it.
12824         (reload): Test it in addition to testing if the frame size changed.
12825
12826 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
12827
12828         * config/s390/s390.c: Define sane prefetch settings and activate
12829         flag_prefetch_loop_arrays on -O3.
12830         * config/s390/s390.h: Declare that read can use write prefetch.
12831
12832 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
12833
12834         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
12835         build.
12836
12837 2010-05-16  Jan Hubicka  <jh@suse.cz>
12838
12839         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
12840         function body; do not check stdarg field of struct function.
12841
12842 2010-05-16  Jan Hubicka  <jh@suse.cz>
12843
12844         * cgraph.c (dump_cgraph_node): Dump versionable flag.
12845         * cgraph.h (cgraph_local_info): Add versionable flag.
12846         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
12847         (ipcp_versionable_function_p): Use it.
12848         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12849         versionable flag.
12850
12851 2010-05-16  Jan Hubicka  <jh@suse.cz>
12852
12853         * cgraph.c (cgraph_clone_node): Take decl argument and insert
12854         clone into hash when it is different from orig.
12855         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
12856         * cgraph.h (cgraph_clone_node): Update prototype.
12857         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
12858         (lto_cgraph_encoder_delete): Delete body map.
12859         (lto_cgraph_encoder_size): Move to header.
12860         (lto_cgraph_encoder_encode_body_p,
12861         lto_set_cgraph_encoder_encode_body): New.
12862         (lto_output_node): Do not take written_decls argument; output clone_of
12863         pointer.
12864         (add_node_to): Add include_body_argument; call
12865         lto_set_cgraph_encoder_encode_body on master of the clone.
12866         (add_references): Update use of add_node_to.
12867         (compute_ltrans_boundary): Likewise.
12868         (output_cgraph): Do not create written_decls bitmap.
12869         (input_node): Take nodes argument; stream in clone_of correctly.
12870         (input_cgraph_1): Update use of input_node.
12871         * lto-streamer-out.c (lto_output): Use encoder info to decide
12872         what bodies to output.
12873         * ipa-inline.c (cgraph_clone_inlined_nodes,
12874         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
12875         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
12876         (lto_cgraph_encoder_size): Define here.
12877         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
12878         Declare.
12879
12880 2010-05-16  Richard Guenther  <rguenther@suse.de>
12881
12882         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
12883         -fipa-type-escape.
12884         * ipa-type-escape.c (gate_type_escape_vars): Run when
12885         -fipa-struct-reorg runs.
12886         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
12887         * common.opt (fipa-type-escape): Remove.
12888
12889 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12890
12891         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
12892         (decode_options): Likewise.
12893         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
12894
12895 2010-05-16  Jan Hubicka  <jh@suse.cz>
12896
12897         * ipa.c (function_and_variable_visibility): Also bring local all
12898         aliases.
12899
12900 2010-05-16  Richard Guenther  <rguenther@suse.de>
12901
12902         * alias.c (nonoverlapping_memrefs_p): Remove use of
12903         IPA type-escape information.
12904
12905 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
12906
12907         * c-common.c (c_common_reswords): Add _Static_assert for C.
12908         * c-parser.c (c_token_starts_declaration,
12909         c_parser_next_token_starts_declaration,
12910         c_parser_static_assert_declaration_no_semi,
12911         c_parser_static_assert_declaration): New.
12912         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
12913         Handle static assertions if static_assert_ok.
12914         (c_parser_external_declaration, c_parser_declaration_or_fndef,
12915         c_parser_compound_statement_nostart, c_parser_label,
12916         c_parser_for_statement, c_parser_objc_methodprotolist,
12917         c_parser_omp_for_loop): All callers of
12918         c_parser_declaration_or_fndef changed.
12919         (c_parser_struct_declaration): Handle static assertions.
12920         (c_parser_compound_statement_nostart): Use
12921         c_parser_next_token_starts_declaration and
12922         c_token_starts_declaration to detect start of declarations.
12923         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
12924         Likewise.
12925
12926 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
12927
12928         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12929         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12930         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12931         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12932         (mmix_function_outgoing_value): Rename to...
12933         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
12934         (mmix_function_value_regno_p): Make static.
12935         (mmix_libcall_value): New function.
12936         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
12937         mmix_function_value_regno_p): Remove declaration.
12938
12939 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12940
12941         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
12942         BUILT_IN_ALLOCA if stack checking is enabled.
12943
12944 2010-05-16  Richard Guenther  <rguenther@suse.de>
12945
12946         * var-tracking.c (vars_copy_1): Inline ...
12947         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
12948         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
12949         (variable_merge_over_cur): Adjust.  Merge asserts.
12950         (variable_merge_over_src): Likewise.
12951         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
12952         (variable_post_merge_new_vals): Merge asserts.
12953         (variable_post_merge_perm_vals): Likewise.
12954         (find_mem_expr_in_1pdv): Likewise.
12955         (dataflow_set_different_value): Remove.
12956         (onepart_variable_different_p): Merge asserts.
12957         (variable_different_p): Likewise.
12958         (dataflow_set_different_1): Inline ...
12959         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
12960         (emit_notes_for_differences_1): Merge asserts.
12961
12962 2010-05-16  Richard Guenther  <rguenther@suse.de>
12963
12964         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
12965         * optabs.c (libfunc_decl_hash): Likewise.
12966         * varasm.c (emutls_decl): Likewise.
12967
12968 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
12969
12970         * c-decl.c: Don't include gimple.h.
12971         (merge_decls): Do not copy gimple_body.
12972
12973 2010-05-15  Jason Merrill  <jason@redhat.com>
12974
12975         * c.opt: Add -fnothrow-opt.
12976
12977 2010-05-15  Jan Hubicka  <jh@suse.cz>
12978
12979         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
12980         analyzed.
12981         * passes.c (ipa_write_summaries): Write all analyzed nodes.
12982
12983 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
12984
12985         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
12986         * Makefile.in: Add it.
12987         Fix all other Makefile dependencies for changes below.
12988         * tree.h: Include it instead of defining VEC primitives here.
12989         * gimple.h: Likewise.
12990         * rtl.h: Likewise.
12991         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
12992         * except.h: Include vecir.h, break dependence on tree.h.
12993
12994         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
12995         Move from here...
12996         * tree-iterator.c: ...to here.
12997         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
12998
12999         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
13000         tm_p.h.
13001         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
13002         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
13003         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
13004         tree-mudflap.h, and target.h.
13005         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
13006         predict.h, tree-inline.h, gimple.h, and langhooks.h.
13007         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
13008         Add FIXME for why gimple.h is still included (should be unnecessary
13009         since GCC 4.5 gimplification unit-at-a-time).
13010         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
13011         * c-pragma.c: Add FIXME for why function.h needs to be included just
13012         for cfun, at front-end level.
13013         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
13014         Do not include ggc.h, but include vecprim.h for VEC(char).
13015         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
13016         Explain why target.h is included.
13017         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
13018         Explain why gimple.h is included.
13019         * c-ppoutput.c: Do not include tm.h.
13020         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
13021         * c-parses.c: Explain why rtl.h is included, and that this (and only
13022         this) is also why tm.h must be included.
13023         Do not include except.h.
13024         * c-lang.c: Do not include ggc.h.
13025
13026 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
13027
13028         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
13029
13030 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
13031
13032         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
13033         unions by default if those structs and unions have no tags.  Do
13034         not condition anonymous struct and unions handling on flag_iso.
13035         Allow anonymous structs and unions for C1X.
13036         (finish_struct): Do not diagnose lack of named fields when
13037         anonymous structs and unions present for C1X.  Accept flexible
13038         array members in structure with anonymous structs or unions but no
13039         directly named fields.
13040         * doc/extend.texi (Unnamed Fields): Update.
13041
13042 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
13043
13044         * gimple.h (compare_field_offset): Rename into...
13045         (gimple_compare_field_offset): ...this.
13046         * gimple.c (compare_field_offset): Rename into...
13047         (gimple_compare_field_offset): ...this.  Compare the full access if
13048         the offset is self-referential.
13049         (gimple_types_compatible_p): Adjust for above renaming.
13050         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
13051         DECL_NONADDRESSABLE_P flag of fields before merging them.
13052
13053 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
13054
13055         * tree.h (ctor_to_list): Delete.
13056         * tree.c (ctor_to_list): Delete.
13057
13058 2010-05-15  Jan Hubicka  <jh@suse.cz>
13059
13060         * ipa-reference.c: Include toplev.h
13061         (is_proper_for_analysis): Only add to all_module_statics
13062         if it is allocated.
13063         (write_node_summary_p, stream_out_bitmap,
13064         ipa_reference_write_optimization_summary,
13065         ipa_reference_read_optimization_summary): New.
13066         (struct ipa_opt_pass_d pass_ipa_reference): Add
13067         optimization summary streaming.
13068         * lto-cgraph.c (referenced_from_this_partition_p,
13069         reachable_from_this_partition_p): New functions.
13070         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13071         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
13072         * opts.c (decode_options): Enable ipa_reference.
13073         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
13074         * lto-streamer.h (referenced_from_this_partition_p,
13075         reachable_from_this_partition_p): Declare.
13076
13077 2010-05-15  Richard Guenther  <rguenther@suse.de>
13078
13079         PR tree-optimization/44038
13080         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
13081         taking the address of a V_C_E of a constant.
13082
13083 2010-05-14  Jan Hubicka  <jh@suse.cz>
13084
13085         * tree.h (memory_identifier_string): Remove.
13086         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
13087         (ipa_reference_global_vars_info_d): Remove statics_not_read and
13088         statics_not_written.
13089         (ipa_reference_optimization_summary_d): New structure.
13090         (ipa_reference_optimization_summary_t): New type and vector.
13091         (ipa_reference_vars_info_d): Embedd structures instead of using
13092         pointers.
13093         (reference_vars_to_consider): Remove out of GGC space.
13094         (module_statics_escape): Remove.
13095         (global_info_obstack): Rename to ...
13096         (optimization_summary_obstack): ... this one.
13097         (initialization_status_t): Remove.
13098         (memory_identifier_string): Remove.
13099         (get_reference_vars_info): Fix indenting.
13100         (set_reference_vars_info): Likewise.
13101         (get_reference_optimization_summary): New.
13102         (set_reference_optimization_summary): New.
13103         (get_global_reference_vars_info): Remove.
13104         (ipa_reference_get_read_global): Remove.
13105         (ipa_reference_get_written_global): Remove.
13106         (ipa_reference_get_not_read_global): Update.
13107         (ipa_reference_get_not_written_global): Update.
13108         (is_proper_for_analysis): Outlaw addressable.
13109         (propagate_bits): Update for new datastructures.
13110         (analyze_variable): Remove.
13111         (init_function_info): Update for new datastructures.
13112         (clean_function_local_data): Remove.
13113         (clean_function): Remove.
13114         (copy_global_bitmap): Use optimizations_summary_obstack.
13115         (duplicate_node_data): Duplicate optimization summary only.
13116         (remove_node_data): Remove optimization summary only.
13117         (generate_summary): Do not analyze variables; do not compute
13118         module_statics_escape; do not prune solutions by it.
13119         (read_write_all_from_decl): Fix typos in comments.
13120         (propagate): Doscover readonly and nonaddressable first;
13121         update for new datastructures; share global bitmaps.
13122         * ipa-reference.h (ipa_reference_get_read_global,
13123         ipa_reference_get_written_global): Remove.
13124         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
13125         * Makefile.in: Remove ipa-refereference from GT files.
13126
13127 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
13128
13129         PR debug/44112
13130         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
13131         for all SYMBOL_REF_DECLs.
13132
13133 2010-05-14  Jan Hubicka  <jh@suse.cz>
13134
13135         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
13136         (varpool_all_refs_explicit_p): New inline function.
13137         * ipa-reference.c: Update comment.
13138         (module_statics_written): Remove.
13139         (get_static_decl): Remove.
13140         (ipa_init): Do not initialize module_statics_written.
13141         (analyze_function): Likewise.
13142         (generate_summary): Likewise; do not compute module_statics_readonly
13143         and do not update variable flags.
13144         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
13145         * ipa.c: Inlucde flags.h
13146         (cgraph_local_node_p): New.
13147         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
13148         promote functions to local.
13149         (ipa_discover_readonly_nonaddressable_vars): New function.
13150         (function_and_variable_visibility): Use cgraph_local_node_p.
13151         * varpool.c (varpool_finalize_decl): Set force_output for
13152         DECL_PRESERVE_P vars.
13153
13154 2010-05-14  Jan Hubicka  <jh@suse.cz>
13155
13156         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
13157
13158 2010-05-14  Richard Guenther  <rguenther@suse.de>
13159
13160         PR tree-optimization/44119
13161         * tree-ssa-pre.c (eliminate): Properly mark replacement of
13162         a PHI node necessary.
13163
13164 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13165
13166         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
13167
13168 2010-05-14  Jason Merrill  <jason@redhat.com>
13169
13170         PR c++/44127
13171         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
13172         (gimple_call_set_nothrow): New.
13173         * gimple.c (gimple_build_call_from_tree): Call it.
13174         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
13175
13176         PR c++/44127
13177         * gimplify.c (gimplify_seq_add_stmt): No longer static.
13178         * gimple.h: Declare it.
13179         * gimple.c (gimple_build_eh_filter): No ops.
13180
13181 2010-05-14  Jan Hubicka  <jh@suse.cz>
13182
13183         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
13184         nodes already in queue.
13185         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
13186         re-enqueueing node.
13187
13188 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
13189
13190         PR debug/44136
13191         * cfgexpand.c (expand_debug_expr): If non-memory op0
13192         has BLKmode, return NULL.
13193
13194 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
13195
13196         * config.gcc: Add support for --with-cpu option for bdver1.
13197         * config/i386/i386.h (TARGET_BDVER1): New macro.
13198         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
13199         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
13200         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
13201         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
13202         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
13203         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
13204         (processor_type): Add PROCESSOR_BDVER1.
13205         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
13206         processor_type in config/i386/i386.h.
13207         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
13208         movaps <reg, reg> instead of movapd <reg, reg> when replacing
13209         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
13210         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
13211         to emit packed xor instead of packed double/packed integer
13212         xor for SSE and AVX when moving a zero value.
13213         * config/i386/sse.md: Add check for
13214         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
13215         movapd/movdqa for SSE and AVX.
13216         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
13217         single logical operations i.e and, or and xor instead of packed double
13218         logical operations for SSE and AVX.
13219         * config/i386/i386-c.c (ix86_target_macros_internal):
13220         Add PROCESSOR_BDVER1.
13221         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
13222         (has_fma4, has_xop): New.
13223         * config/i386/i386.c (bdver1_cost): New variable.
13224         (m_BDVER1): New macro.
13225         (m_AMD_MULTIPLE): Add m_BDVER1.
13226         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
13227         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
13228         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
13229         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
13230         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
13231         x86_tune_sse_partial_reg_dependency,
13232         x86_tune_sse_unaligned_load_optimal,
13233         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
13234         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
13235         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
13236         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
13237         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
13238         Enable/disable for bdver1.
13239         (processor_target_table): Add bdver1_cost.
13240         (cpu_names): Add bdver1.
13241         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
13242          processor_alias_table.
13243         (ix86_expand_vector_move_misalign): Change.
13244         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
13245         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
13246         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
13247         of movupd/movdqu for SSE and AVX.
13248         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
13249         (ix86_tune_adjust_cost): Add code for bdver1.
13250         (standard_sse_constant_opcode): Add check for
13251         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
13252         of packed double xor for SSE and AVX.
13253
13254 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
13255
13256         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
13257         result to unsigned.
13258
13259 2010-05-14  Tristan Gingold  <gingold@adacore.com>
13260
13261         * toplev.c (default_debug_hooks): Remove this variable.
13262         (process_options): Remove assignments to default_debug_hooks.
13263
13264 2010-05-14  Martin Jambor  <mjambor@suse.cz>
13265
13266         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
13267         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
13268         * langhooks.h (struct lang_hooks_for_decls): Removed field
13269         fold_obj_type_ref.
13270         * tree.c (free_lang_data): Remove assignment to
13271         lang_hooks.fold_obj_type_ref.
13272         * tree.def (OBJ_TYPE_REF): Update comment.
13273
13274 2010-05-14  Richard Guenther  <rguenther@suse.de>
13275
13276         PR tree-optimization/44124
13277         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
13278
13279 2010-05-14  Alan Modra  <amodra@gmail.com>
13280
13281         PR target/44075
13282         * config/rs6000/rs6000.c (struct machine_function): Reorder
13283         fields for better packing.  Add lr_save_state.
13284         (rs6000_ra_ever_killed): Return lr_save_state if set.
13285         (rs6000_emit_eh_reg_restore): Set lr_save_state.
13286
13287 2010-05-13  Jan Hubicka  <jh@suse.cz>
13288
13289         * varpool.c (decide_is_variable_needed): Drop code checking
13290         TREE_SYMBOL_REFERENCED.
13291
13292 2010-05-13  Jan Hubicka  <jh@suse.cz>
13293
13294         * final.c (output_addr_const): Do not call mark_decl_referenced.
13295         * cgraphunit.c (process_function_and_variable_attributes): Use
13296         mark_needed_node dirrectly.
13297         (assemble_thunk): Do not call mark_decl_referenced.
13298
13299 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
13300
13301         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
13302
13303 2010-05-13  Jeff Law  <law@redhat.com>
13304
13305         * ira-conflicts.c (print_allocno_conflicts): New function broken out
13306         from...
13307         (print_conflicts): Call print_allocno_conflicts.
13308
13309 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
13310
13311         PR debug/44104
13312         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
13313         if it is NULL.
13314
13315 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
13316
13317         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
13318         t-mingw-w64 or t-mingw-w32 for multilib configuration.
13319         * config/i386/t-mingw-w32: New.
13320         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
13321
13322 2010-05-13  Martin Jambor  <mjambor@suse.cz>
13323
13324         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
13325         gimple-fold.c).
13326         * gimple-fold.c (get_base_binfo_for_type): New function.
13327         (gimple_get_relevant_ref_binfo): Likewise.
13328         (gimple_fold_obj_type_ref_known_binfo): Likewise.
13329         (gimple_fold_obj_type_ref): Likewise.
13330         (fold_gimple_call): Simplify condition for folding virtual calls
13331         and call gimple_fold_obj_type_ref.
13332         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
13333         (gimple_fold_obj_type_ref_known_binfo): Likewise.
13334
13335 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
13336
13337         * config/rs6000/rs6000-protos.h
13338         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
13339         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
13340         (rs6000_debug_mode_dependent_address)
13341         (rs6000_mode_dependent_address_ptr): Likewise.
13342
13343 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
13344
13345         PR debug/43983
13346         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
13347         by SRA.
13348         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
13349         * tree-sra.c (create_access_replacement): Call unshare_expr before
13350         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
13351         * dwarf2out.c: Include tree-flow.h.
13352         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
13353         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
13354         Handle DW_OP_bit_piece.
13355         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
13356         construct_piece_list, adjust_piece_list): New functions.
13357         (add_var_loc_to_decl): Handle SRA optimized variables.
13358         Adjust for var_loc_note to loc field renaming.
13359         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
13360         in VAR_LOCATION note.
13361         (new_loc_descr_op_bit_piece): New function.
13362         (dw_sra_loc_expr): New function.
13363         (dw_loc_list): Use it.  Don't handle the last range after the
13364         loop, handle it inside of the loop.  Adjust for var_loc_note
13365         to loc field renaming.
13366         (add_location_or_const_value_attribute): Only special case
13367         single entry loc lists if loc is NOTE_P.  Adjust for
13368         var_loc_note to loc field renaming.
13369         (dwarf2out_var_location): Don't set newloc->var_loc_note
13370         and newloc->next here.
13371
13372 2010-05-12  Jan Hubicka  <jh@suse.cz>
13373
13374         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
13375         flag.
13376         * cgraph.h (cgraph_only_called_directly_p,
13377         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
13378         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
13379         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
13380         (assemble
13381         * ipa.c (cgraph_remove_unreachable_nodes): Use
13382         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
13383         flags.
13384         * tree-inline.c (copy_bb): Check address_taken flag.
13385         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
13386         externally_visible flag.
13387
13388 2010-05-12  Jason Merrill  <jason@redhat.com>
13389
13390         PR bootstrap/44048
13391         PR target/44099
13392         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
13393         * sdbout.c (plain_type_1): Likewise.
13394         * dwarf2out.c (is_base_type): Likewise.
13395         (gen_type_die_with_usage): Likewise.  Generate
13396         DW_TAG_unspecified_type for any LANG_TYPE.
13397
13398 2010-05-12  Jan Hubicka  <jh@suse.cz>
13399
13400         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
13401         indrect edges too.
13402         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
13403         (cgraph_clone_edge): Update.
13404         (cgraph_node_remove_callees): Remove indirect calls too.
13405         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
13406         (cgraph_create_indirect_edge): Update prototype.
13407         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
13408         is_proper_for_analysis.
13409         (add_new_function, visited_nodes, function_insertion_hook_holder,
13410         get_local_reference_vars_info, mark_address_taken, mark_address,
13411         mark_load, mark_store, check_asm_memory_clobber, check_call,
13412         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
13413         (ipa_init): Do not initialize visited_nodes;
13414         function_insertion_hook_holder.
13415         (analyze_variable): Rewrite.
13416         (analyze_function): Rewrite.
13417         (copy_local_bitmap): Remove.
13418         (duplicate_node_dat): Do not duplicate local info.
13419         (generate_summary): Simplify to only walk cgraph.
13420         (write_node_summary_p, ipa_reference_write_summary,
13421         ipa_reference_read_summary): Remove.
13422         (propagate): Do not remove function insertion;
13423         generate summary.
13424         (pass_ipa_reference): NULLify summary handling fields.
13425         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
13426         (input_edge): Input ecf_flags.
13427         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
13428         (update_indirect_edges_after_inlining): Ignore edges with unknown
13429         param.
13430
13431 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
13432
13433         * implicit-zee.c: New file.
13434         * tree-pass.h (pass_implicit_zee): Declare.
13435         * passes.c (init_optimization_passes): Add zee pass.
13436         * common.opt (fzee): New flag.
13437         * timevar.def (TV_ZEE): Define.
13438         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
13439         and beyond.
13440         * Makefile.in (implicit-zee.o): Add new build file.
13441
13442 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
13443             Nathan Froyd  <froydnj@codesourcery.com>
13444
13445         * c-common.c (sync_resolve_params): Remove write-only variable.
13446
13447 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
13448
13449         * target.h (struct gcc_target): Add mode_dependent_address_p field.
13450         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
13451         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
13452         * targhooks.c (default_mode_dependent_address_p): New function.
13453         * targhooks.h (default_mode_dependent_address_p): Declare function.
13454         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
13455         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
13456         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
13457         target hook. Change return type to bool.
13458         * recog.h (mode_dependent_address_p): Change return type to bool.
13459
13460 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
13461             Nathan Froyd  <froydnj@codesourcery.com>
13462
13463         * tree-mudflap.c (build_function_type_0, build_function_type_1,
13464         build_function_type_2, build_function_type_3): Remove.
13465         (mudflap_init): Use build_function_type_list.
13466
13467 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
13468             Nathan Froyd  <froydnj@codesourcery.com>
13469
13470         * coverage.c (build_fn_info_value): Call build_constructor instead of
13471         build_constructor_from_list.
13472         (build_ctr_info_value): Likewise.
13473         (build_gcov_info): Likewise.
13474
13475 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
13476
13477         * tree.c (build_constructor): Compute TREE_CONSTANT for the
13478         resultant constructor.
13479         (build_constructor_single): Don't set TREE_CONSTANT.
13480         (build_constructor_from_list): Don't compute TREE_CONSTANT.
13481
13482 2010-05-12  Jan Hubicka  <jh@suse.cz>
13483
13484         * cgraph.h (struct varpool_node): Add aux.
13485         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
13486         * varpool.c (varpool_remove_node): Do not remove initializer.
13487         (varpool_reset_queue): Export.
13488         (varpool_finalize_decl): Volatile vars are forced to be output.
13489         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
13490         replaced decl.
13491         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
13492         process_references, varpool_can_remove_if_no_refs): New functions.
13493         (cgraph_remove_unreachable_nodes): Handle variables too.
13494
13495 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13496
13497         PR target/44088
13498         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
13499
13500 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
13501
13502         PR middle-end/44085
13503         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
13504         change value of ORT_TASK.
13505         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
13506         (omp_notice_threadprivate_variable): New function.
13507         (omp_notice_variable): Call it for threadprivate variables.
13508         If enclosing ctx is a task, print enclosing task rather than
13509         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
13510         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
13511         if task has untied clause.
13512
13513         PR debug/42278
13514         * dwarf2out.c (base_type_die): Don't add name attribute here.
13515         (modified_type_die): Instead of sizetype use
13516         its underlying original type.  If a DW_TAG_base_type doesn't
13517         have name added, add __unknown__.
13518         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
13519         always call force_type_die instead.
13520
13521 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
13522
13523         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
13524         for __stack_chk_guard.
13525
13526 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
13527
13528         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
13529         don't call start_source_file debug hook here...
13530         (finish_options): ... but here, after outputting predefined and
13531         command line defines and undefs.
13532
13533         PR middle-end/44071
13534         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
13535         no fallthru edge.
13536         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
13537         optimizing away empty bb with no successors, move over its
13538         footer chain to fallthru predecessor.
13539         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
13540         (rtl_split_edge): For asm goto call patch_jump_insn even if
13541         splitting fallthru edge.
13542
13543         PR c++/44059
13544         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
13545         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
13546         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
13547         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
13548         on DW.ref.* decls.
13549
13550         PR c++/44062
13551         * c-parser.c (c_parser_expression): Mark LHS of a comma
13552         expression as read if it is a decl, handled component or
13553         COMPOUND_EXPR with that on the RHS.
13554         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
13555         if it is a decl or handled component.
13556
13557 2010-05-11  Jan Hubicka  <jh@suse.cz>
13558
13559         * lto-symtab.c (lto_symtab_free): New function.
13560         * lto-streamer.h (lto_symtab_free): Declare.
13561
13562 2010-05-11  Jan Hubicka  <jh@suse.cz>
13563
13564         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
13565         that if function is needed it is reachable.
13566         (lto_output_node): See if it the function is reachable or referenced.
13567         (output_cgraph): Update call of lto_output_node.
13568         * lto-streamer.h (reachable_from_other_partition_p): Declare.
13569
13570 2010-05-11  Jan Hubicka  <jh@suse.cz>
13571
13572         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
13573         Mark as used.
13574
13575 2010-05-11  Jan Hubicka  <jh@suse.cz>
13576
13577         PR tree-optimize/44063
13578         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
13579         queue.
13580         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
13581         limits.
13582         (estimate_function_body_sizes): Compute sizes even when disregarding.
13583
13584 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
13585
13586         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
13587
13588 2010-05-11  Jan Hubicka  <jh@suse.cz>
13589
13590         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
13591         into every boundary.
13592
13593 2010-05-11  Jan Hubicka  <jh@suse.cz>
13594
13595         * matrix-reorg.c (matrix_reorg): Rebuild edges.
13596
13597 2010-05-11  Jan Hubicka  <jh@suse.cz>
13598
13599         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
13600         lto_streamer_cache_delete): Put nodes into heap.
13601         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
13602         heap.
13603
13604 2010-05-11  Jan Hubicka  <jh@suse.cz>
13605
13606         * cgraphbuild.c (cgraph_rebuild_references): New.
13607         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
13608         out extern inlines.
13609         * cgraph.h (cgraph_rebuild_references): Declare.
13610         * tree-inline.c (tree_function_versioning): Use it.
13611         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
13612
13613 2010-05-11  Jan Hubicka  <jh@suse.cz>
13614
13615         * cgraph.c: Include ipa-utils.h
13616         (cgraph_create_virtual_clone): Update references.
13617         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
13618
13619 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
13620
13621         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
13622         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
13623         cache size.
13624
13625 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
13626
13627         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
13628
13629 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
13630
13631         * gcc.c (execute): For -### don't quote arguments that
13632         contain just alphanumerics and _/-. characters.
13633         * doc/invoke.texi: Document that change for -###.
13634
13635         PR debug/44023
13636         * df-problems.c (struct dead_debug): Add to_rescan field.
13637         (dead_debug_init): Clear to_rescan field.
13638         (dead_debug_finish): Rescan all debug insns in to_rescan
13639         bitmap and free the bitmap.
13640         (dead_debug_insert_before): Instead of rescanning debug insns
13641         immediately queue their rescanning until dead_debug_finish.
13642         (df_note_bb_compute): After dead_debug_add do continue instead
13643         of break.
13644
13645 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
13646
13647         PR debug/44028
13648         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
13649         clear also INSN_REG_USE_LIST.
13650
13651 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13652
13653         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
13654
13655 2010-05-10  Jan Hubicka  <jh@suse.cz>
13656
13657         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
13658         commited change.
13659
13660 2010-05-10  Jan Hubicka  <jh@suse.cz>
13661
13662         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
13663         Allocate encoders.
13664         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
13665         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
13666         (lto_streamer_cache_create): Init alloc pool.
13667         (lto_streamer_cache_delete): Free alloc pool.
13668         * lto-streamer.h: Include alloc pool.
13669         (lto_streamer_cache_d): Use alloc pool.
13670         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
13671
13672 2010-05-10  Jan Hubicka  <jh@suse.cz>
13673
13674         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
13675         * cgraphbuild.c: Include except.h
13676         (record_type_list, record_eh_tables): New function.
13677         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
13678
13679 2010-05-10  Jan Hubicka  <jh@suse.cz>
13680
13681         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
13682         __frame_dummy_init_array_entry, force_to_data): Attribute as used
13683         rather than unused.
13684
13685 2010-05-10  Michael Matz  <matz@suse.de>
13686
13687         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
13688         (can_reassociate_p): Use FLOAT_TYPE_P.
13689         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
13690         (vect_force_simple_reduction): ... this.
13691         * tree-parloops.c (gather_scalar_reductions): Use
13692         vect_force_simple_reduction.
13693         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
13694         vect_is_simple_reduction, add modify argument, if true rewrite
13695         "a-b" into "a+(-b)".
13696         (vect_is_simple_reduction, vect_force_simple_reduction): New
13697         functions.
13698         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
13699
13700 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13701             Vladimir Makarov  <vmakarov@redhat.com>
13702
13703         PR rtl-optimization/44012
13704         * ira-build.c (remove_unnecessary_allocnos): Nullify
13705         regno_allocno_map of the removed allocno.
13706
13707 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13708
13709         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
13710         to /dev/null.
13711         * configure: Regenerate.
13712
13713 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13714
13715         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
13716         unused.
13717         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
13718         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
13719         support in Sun ld.
13720         * configure: Regenerate.
13721
13722 2010-05-10  Richard Guenther  <rguenther@suse.de>
13723
13724         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
13725         marked if the entry identifier is marked.
13726
13727 2010-05-10  Richard Guenther  <rguenther@suse.de>
13728
13729         * c-common.c (struct c_common_attributes): Add fnspec attribute.
13730         (handle_fnspec_attribute): New function.
13731         * gimple.h (gimple_call_return_flags): Declare.
13732         (gimple_call_arg_flags): Likewise.
13733         * gimple.c (gimple_call_arg_flags): New function.
13734         (gimple_call_return_flags): Likewise.
13735         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
13736         New argument flags.
13737         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
13738         return value flags.
13739         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
13740         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
13741         main work to ...
13742         (make_heapvar_for): ... this new function.
13743         (handle_rhs_call): Handle fnspec attribute argument specifiers.
13744         (handle_lhs_call): Likewise.
13745         (find_func_aliases): Adjust.
13746
13747 2010-05-10  Richard Guenther  <rguenther@suse.de>
13748
13749         PR tree-optimization/44050
13750         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
13751
13752 2010-05-10  Wei Guozhi  <carrot@google.com>
13753
13754         PR target/42879
13755         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
13756
13757 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
13758
13759         PR c/10676
13760         * c-typeck.c (lookup_field): Take a type directly.  Update
13761         recursive calls.
13762         (build_component_ref): Update call to lookup_field.
13763         (set_init_label): Use lookup_field to find initialized field.
13764         Handle returned list of fields like a sequence of designators.
13765
13766 2010-05-09  Richard Guenther  <rguenther@suse.de>
13767
13768         PR middle-end/44024
13769         * fold-const.c (tree_single_nonzero_warnv_p): Properly
13770         handle &FUNCTION_DECL.
13771
13772 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
13773
13774         PR c/4784
13775         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
13776         structures and unions recursively.
13777         (detect_field_duplicates): Move duplicate detection with a hash to
13778         detect_field_duplicates_hash.  Always use a hash if anonymous
13779         structures or unions are present.
13780         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
13781         give errors.
13782
13783 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13784
13785         PR target/44046
13786         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
13787         detect Atom, Core 2 and Core i7.
13788
13789 2010-05-09  Richard Guenther  <rguenther@suse.de>
13790
13791         * gcc.c (store_arg): Handle temporary file deletion for
13792         joined arguments.
13793
13794 2010-05-09  Richard Guenther  <rguenther@suse.de>
13795
13796         PR middle-end/44043
13797         * ipa-inline.c (estimate_function_body_sizes): Return after
13798         disregarding inline limits.
13799
13800 2010-05-09  Richard Guenther  <rguenther@suse.de>
13801
13802         * gcc.c (store_arg): Revert last change.
13803
13804 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
13805
13806         PR middle-end/28685
13807         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
13808         (optimize_ops_list): Call it.
13809
13810 2010-05-08  Richard Guenther  <rguenther@suse.de>
13811
13812         PR tree-optimization/44030
13813         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
13814         NECESSARY flag if we propagate from a inserted expression.
13815
13816 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13817
13818         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
13819         domain types as equal if they are both PLACEHOLDER_EXPRs.
13820
13821 2010-05-08  Richard Guenther  <rguenther@suse.de>
13822
13823         * lto-wrapper.c (run_gcc): Remove linker output from
13824         command line for LTRANS invocation.
13825
13826 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
13827
13828         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13829         lto-macho as lto_binary_reader.
13830         * target.h (struct gcc_target): New hooks lto_start and lto_end.
13831         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
13832         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
13833         in lto_start and lto_end calls.
13834         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
13835         magic numbers.
13836         (scan_prog_file): Update is_elf_or_coff call.
13837         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
13838
13839         * collect2.c (main): Fix enum comparison.
13840
13841         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
13842         Add prototypes.
13843         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
13844         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
13845         and TARGET_ASM_LTO_END.
13846         * darwin.c: Include obstack.h and lto-streamer.h.
13847         (lto_section_names_offset, lto_section_names_obstack,
13848         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
13849         global variables.
13850         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
13851         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
13852         to a temporary file.
13853         (darwin_asm_lto_end): New function.  Restore asm_out_file.
13854         (darwin_asm_named_section): For LTO sections, replace the name with
13855         the offset of the section name in a string table, and build this
13856         table.
13857         (darwin_file_start): Initialize global vars for LTO support.
13858         (darwin_file_end): If output to asm_out_file was redirected, append it
13859         to the proper asm_out_file here.  Add the section names section.
13860
13861 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
13862
13863         * c-pragma.c (pending_weak_d, pending_weak): New.
13864         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
13865         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
13866         handle_pragma_weak): Update the uses of pending_weaks.
13867
13868 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13869
13870         PR documentation/44016
13871         * doc/standards.texi (Standards): Link to unversioned
13872         cxx0x_status.html page.
13873
13874 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
13875
13876         PR target/43708
13877         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
13878         in addition to TREE_USED, to avoid "set but unused" warnings.
13879
13880 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13881
13882         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
13883         (is_loop_prefetching_profitable): Do not insert prefetches
13884         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
13885         times the prefetch ahead distance.
13886
13887 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13888
13889         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
13890         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
13891         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
13892         the unroll_factor.
13893
13894 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13895
13896         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
13897         a diagnostic info when the insn-to-mem ratio is too small.
13898
13899 2010-05-07  Richard Guenther  <rguenther@suse.de>
13900
13901         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
13902         the linker plugin.
13903         (store_arg): Queue temp_filename for deletion instead of
13904         the whole argument.
13905
13906 2010-05-07  Richard Guenther  <rguenther@suse.de>
13907
13908         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
13909         (run_gcc): Handle LTRANS phase invocation.
13910         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
13911
13912 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
13913
13914         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
13915         this is also meaningful on PARM_DECLs and RESULT_DECLs.
13916
13917 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13918
13919         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
13920
13921 2010-05-07  Richard Guenther  <rguenther@suse.de>
13922
13923         PR tree-optimization/44020
13924         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
13925         code when PRE is not yet initialized.
13926
13927 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13928
13929         * config/mips/dbxmdebug.h: Remove.
13930         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
13931
13932 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
13933
13934         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
13935         with null pointer and also warn about ordered comparison of zero with
13936         pointer if -Wextra.
13937
13938 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13939
13940         * graphite-blocking.c
13941         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
13942         * graphite-clast-to-gimple.c
13943         (clast_to_gcc_expression): Same.
13944         (precision_for_value): Same.
13945         (precision_for_interval): Same.
13946         (gcc_type_for_interval): Same.
13947         (graphite_create_new_guard): Same.
13948         (compute_bounds_for_level): Same.
13949         (graphite_create_new_loop_guard): Same.
13950         * graphite-interchange.c
13951         (build_linearized_memory_access): Same.
13952         (pdr_stride_in_loop): Same.
13953         (memory_strides_in_loop_1): Same.
13954         (memory_strides_in_loop): Same.
13955         (extend_scattering): Same.
13956         (psct_scattering_dim_for_loop_depth): Same.
13957         (pbb_number_of_iterations): Same.
13958         * graphite-poly.h
13959         (debug_iteration_domains): Same.
13960         * graphite-ppl.c
13961         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13962         (ppl_set_inhomogeneous_gmp): Same.
13963         (ppl_strip_loop): Same.
13964         (ppl_lexico_compare_linear_expressions): Same.
13965         (ppl_read_polyhedron_matrix): Same.
13966         (ppl_max_for_le_pointset): Same.
13967         * graphite-ppl.h
13968         (ppl_read_polyhedron_matrix): Same.
13969         (tree_int_to_gmp): Same.
13970         (gmp_cst_to_tree): Same.
13971         (ppl_set_inhomogeneous): Same.
13972         (ppl_set_inhomogeneous_tree): Same.
13973         (ppl_set_coef): Same.
13974         (ppl_set_coef_tree): Same.
13975         * graphite-sese-to-poly.c
13976         (build_pbb_scattering_polyhedrons): Same.
13977         (build_scop_scattering): Same.
13978         (scan_tree_for_params_right_scev): Same.
13979         (scan_tree_for_params): Same.
13980         (find_params_in_bb): Same.
13981         (find_scop_parameters): Same.
13982         (add_upper_bounds_from_estimated_nit): Same.
13983         (build_loop_iteration_domains): Same.
13984         (add_condition_to_domain): Same.
13985         (pdr_add_memory_accesses): Same.
13986
13987 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13988
13989         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
13990         CLooG's value_* macros to their respective mpz_* counterparts.
13991         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
13992         (graphite_create_new_loop_guard): Same.
13993         * graphite-interchange.c (build_linearized_memory_access): Same.
13994         (pdr_stride_in_loop): Same.
13995         (memory_strides_in_loop_1): Same.
13996         (1st_interchange_profitable_p): Same.
13997         * graphite-poly.c (extend_scattering): Same.
13998         (psct_scattering_dim_for_loop_depth): Same.
13999         (pbb_number_of_iterations): Same.
14000         (pbb_number_of_iterations_at_time): Same.
14001         * graphite-poly.h (new_1st_loop): Same.
14002         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
14003         (oppose_constraint): Same.
14004         (insert_constraint_into_matrix): Same.
14005         (ppl_set_inhomogeneous_gmp): Same.
14006         (ppl_set_coef_gmp): Same.
14007         (ppl_strip_loop): Same.
14008         (ppl_lexico_compare_linear_expressions): Same.
14009         (ppl_max_for_le_pointset): Same.
14010         (ppl_min_for_le_pointset): Same.
14011         (ppl_build_realtion): Same.
14012         * graphite-ppl.h (gmp_cst_to_tree): Same.
14013         (ppl_set_inhomogeneous): Same.
14014         (ppl_set_inhomogeneous_tree): Same.
14015         (ppl_set_coef): Same.
14016         (ppl_set_coef_tree): Same.
14017         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14018         (build_scop_scattering): Same.
14019         (add_value_to_dim): Same.
14020         (scan_tree_for_params_right_scev): Same.
14021         (scan_tree_for_params_int): Same.
14022         (scan_tree_for_params): Same.
14023         (find_params_in_bb): Same.
14024         (find_scop_parameters): Same.
14025         (add_upper_bounds_from_estimated_nit): Same.
14026         (build_loop_iteration_domains): Same.
14027         (create_linear_expr_from_tree): Same.
14028         (add_condition_to_domain): Same.
14029         (pdr_add_memory_accesses): Same.
14030
14031 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
14032             Jason Merrill  <jason@redhat.com>
14033
14034         * c-common.c (c_common_reswords): Add nullptr.
14035         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
14036         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
14037         (gen_type_die_with_usage): Likewise.
14038         * dbxout.c (dbxout_type): Likewise.
14039         * sdbout.c (plain_type_1): Likewise.
14040
14041 2010-05-06  Jason Merrill  <jason@redhat.com>
14042
14043         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
14044         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
14045         ret appropriately.
14046         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
14047
14048         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
14049         stripping WITH_SIZE_EXPR.
14050         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
14051         change.
14052
14053 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14054
14055         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
14056         list of obsolete configurations.
14057         Disabled check for obsolete configurations.
14058         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
14059         Removed support for previous versions.
14060         * config/mips/iris.h: Removed.
14061         * config/mips/iris5.h: Removed.
14062         * config/mips/iris6.h: Merged old iris.h contents.
14063         (TARGET_IRIX): Removed.
14064         (DRIVER_SELF_SPECS): Removed mabi=32.
14065         (IDENT_ASM_OP): Removed undef.
14066         (STARTFILE_SPEC): Removed mabi=32.
14067         (ENDFILE_SPEC): Likewise.
14068         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
14069         (MACHINE_TYPE): Update for IRIX 6.5.
14070         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
14071         TARGET_IRIX by TARGET_IRIX6.
14072         (mips_file_start): Likewise.
14073         (mips_output_external): Remove IRIX 5/6 O32 support.
14074         (mips_output_function_prologue): Likewise.
14075         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
14076         TARGET_IRIX6.
14077         (TARGET_CPU_CPP_BUILTINS): Likewise.
14078         (TARGET_IRIX): Removed.
14079         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
14080         (MULTILIB_DIRNAMES): Removed 32.
14081         (MULTILIB_OSDIRNAMES): Removed ../lib.
14082         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
14083         (Specific, mips-sgi-irix5): Document removal.
14084         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
14085         Remove references to older IRIX 6 releases and the O32 ABI.
14086
14087 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
14088
14089         PR bootstrap/43994
14090         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
14091         instead of DF_REF_REAL_REG.
14092
14093 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
14094
14095         PR target/43888
14096         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
14097         handling to still return true for x64 targets.
14098
14099 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
14100
14101         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
14102
14103 2010-05-06  Jan Hubicka  <jh@suse.cz>
14104
14105         PR tree-optimization/43791
14106         * ipa-inline.c (update_caller_keys): Remove bogus
14107         disregard_inline_limits check.
14108
14109 2010-05-06  Michael Matz  <matz@suse.de>
14110
14111         PR tree-optimization/43984
14112         * tree-ssa-pre.c (inserted_phi_names): Remove.
14113         (inserted_exprs): Change to bitmap.
14114         (create_expression_by_pieces): Set bits, don't append to vector.
14115         (insert_into_preds_of_block): Don't handle inserted_phi_names.
14116         (eliminate): Don't look at inserted_phi_names, remove deleted
14117         insns from inserted_exprs.
14118         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
14119         (init_pre, fini_pre): Allocate and free bitmaps.
14120         (execute_pre): Insert insns on edges before elimination.
14121
14122 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
14123
14124         * tree.c (initializer_zerop): Handle STRING_CST.
14125
14126 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14127
14128         PR 40989
14129         * doc/invoke.texi (Wimplicit): Document as C only.
14130         * opts.c (common_handle_option): Add argument kind.
14131         (handle_option): Rename as read_cmdline_option. Factor out code to...
14132         (handle_option): ... here. New.
14133         (handle_options): Rename as read_cmdline_options.
14134         (decode_options): Update call.
14135         (set_option): Use option index instead of option pointer. Classify
14136         diagnostics correctly.
14137         (enable_warning_as_error): Call handle_option.
14138         * opts.h (set_option): Update declaration.
14139         (handle_option): Declare.
14140         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
14141         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
14142         * c-opts.c (set_Wimplicit): Delete.
14143         (c_family_lang_mask): New static constant.
14144         (c_common_handle_option): Add argument kind. Use handle_option
14145         instead of set_Wimplicit.
14146         (c_common_post_options): warn_implicit and warn_implicit_int
14147         are disabled by default.
14148         * c-common.c (warn_implicit): Do not define here.
14149         * c-common.h (warn_implicit): Do not declare here.
14150         (c_common_handle_option): Update declaration.
14151         * lto-opts.c (lto_reissue_options): Update call to set_option.
14152
14153 2010-05-06  Richard Guenther  <rguenther@suse.de>
14154
14155         PR tree-optimization/43571
14156         * domwalk.c (walk_dominator_tree): Walk the dominator
14157         sons in more optimal order.
14158
14159 2010-05-06  Richard Guenther  <rguenther@suse.de>
14160
14161         PR tree-optimization/43934
14162         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
14163         (stmt_cost): Likewise.
14164         (extract_true_false_args_from_phi): New helper.
14165         (determine_max_movement): For PHI nodes verify we can hoist them
14166         and compute their cost.
14167         (determine_invariantness_stmt): Handle PHI nodes.
14168         (move_computations_stmt): Likewise.  Hoist PHI nodes in
14169         if-converted form using COND_EXPRs.
14170         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
14171         (tree_ssa_lim): Likewise.
14172         * tree-flow.h (tree_ssa_lim): Adjust prototype.
14173         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
14174
14175 2010-05-06  Richard Guenther  <rguenther@suse.de>
14176
14177         PR tree-optimization/43987
14178         * tree-ssa-structalias.c (could_have_pointers): For possibly
14179         address-taken variables force pointers to be recorded.
14180         (create_variable_info_for_1): Likewise.
14181         (push_fields_onto_fieldstack): Pass in wheter all fields
14182         must have pointers.
14183         (find_func_aliases): Query types instead of vars whether
14184         they contain pointers where appropriate.
14185
14186 2010-05-06  Jan Hubicka  <jh@suse.cz>
14187
14188         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
14189         (record_reference, mark_address, mark_load, mark_store): Record
14190         references.
14191         (record_references_in_initializer): Update call of record_references.
14192         (rebuild_cgraph_edges): Remove all references before rebuiding.
14193         * cgraph.c (cgraph_create_node): Clear ref list.
14194         (cgraph_remove_node): Remove references.
14195         (dump_cgraph_node): Dump references.
14196         (cgraph_clone_node): Clone references.
14197         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
14198         (struct cgraph_node, varpool_node): Add ref_lst.
14199         * ipa-ref.c: New file.
14200         * ipa-ref.h: New file.
14201         * ipa-ref-inline.h: New file.
14202         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
14203         (referenced_from_other_partition_p): New function.
14204         (lto_output_varpool_node): Take set arugment; call
14205         referenced_from_other_partition.
14206         (lto_output_ref): New.
14207         (add_references): New.
14208         (output_refs): New.
14209         (output_cgraph): Compute boundary based on references; output refs.
14210         (output_varpool): Accept cgraph_node_set argument.
14211         (input_ref): New.
14212         (input_refs): New.
14213         (input_cgraph): Call input_refs.
14214         * lto-section-in.c (lto_section_name): Add refs.
14215         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
14216         (ipa-ref.o): New file.
14217         * varpool.c (varpool_node): Clear ipa ref list.
14218         (varpool_remove_node): Remove references.
14219         (dump_varpool_node): Dump references.
14220         (varpool_assemble_decl): Only compile finalized ones.
14221         (varpool_extra_name_alias): Initialize ref list.
14222         * lto-streamer.c (lto-get_section_name): Add .refs section.
14223         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
14224         (referenced_from_other_partition_p): Declared.
14225
14226 2010-05-06  Ira Rosen  <irar@il.ibm.com>
14227
14228         PR tree-optimization/43901
14229         * tree-vect-stmts.c (vectorizable_call): Assert that vector
14230         type is not NULL if it's transformation phase, and return
14231         FALSE if it's analysis.
14232         (vectorizable_conversion, vectorizable_operation,
14233         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
14234
14235 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
14236
14237         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14238         Delete.
14239         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14240         New define.
14241         * config/mips/mips-protos.h
14242         (mips_small_register_classes_for_mode_p): Delete prototype.
14243
14244 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
14245
14246         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
14247         * config/arm/arm.c (multiple_operation_profitable_p,
14248         compute_offset_order): New static functions.
14249         (load_multiple_sequence, store_multiple_sequence): Use them.
14250         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
14251         memory offsets, not register numbers.
14252         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
14253
14254 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
14255
14256         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
14257         (get_pending_sizes, put_pending_size, put_pending_sizes):
14258         Update the uses of pending_sizes.
14259         * c-decl.c (store_parm_decls): Likewise.
14260         * c-tree.h (struct c_arg_info): Likewise.
14261         * tree.h: Update the prototype for get_pending_sizes and
14262         put_pending_sizes.
14263
14264 2010-05-05  Jason Merrill  <jason@redhat.com>
14265
14266         PR debug/43370
14267         * c-common.c (handle_aligned_attribute): Respect
14268         ATTR_FLAG_TYPE_IN_PLACE.
14269
14270         PR testsuite/43758
14271         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
14272         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14273         (TARGET_INITIALIZER): Use it.
14274         * c-common.c (attribute_takes_identifier_p): Call it.
14275         * c-common.h: Update prototype.
14276         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
14277         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14278
14279 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
14280
14281         PR debug/43950
14282         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
14283         DW_ID_down_case for Fortran compilation units.
14284
14285 2010-05-05  Jan Hubicka  <jh@suse.cz>
14286
14287         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
14288         handle aliases.
14289
14290 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
14291
14292         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
14293         a variable-sized RESULT_DECL.
14294
14295 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
14296
14297         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
14298
14299 2010-05-05  Jason Merrill  <jason@redhat.com>
14300
14301         PR c++/43787
14302         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
14303         returns GS_OK.
14304         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
14305
14306 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
14307             Jakub Jelinek  <jakub@redhat.com>
14308
14309         PR debug/43478
14310         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
14311         (dead_debug_init, dead_debug_finish): New functions.
14312         (dead_debug_add, dead_debug_insert_before): Likewise.
14313         (df_note_bb_compute): Initialize a dead_debug object, add dead
14314         debug uses to it, insert debug bind insns before death insns,
14315         reset debug insns that refer to pending uses at the end.
14316         * rtl.h (make_debug_expr_from_rtl): New prototype.
14317         * varasm.c (make_debug_expr_from_rtl): New function.
14318
14319 2010-05-05  Jan Hubicka  <jh@suse.cz>
14320
14321         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
14322         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
14323         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
14324         lto_varpool_encoder_deref, lto_varpool_encoder_size,
14325         lto_varpool_encoder_encode_initializer_p,
14326         lto_set_varpool_encoder_encode_initializer): New functions.
14327         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
14328         call output_varpool.
14329         (input_varpool_node): Do not always set analyzed.
14330         (input_cgraph_1): Return vector of cgraph nodes.
14331         (input_varpool_1): Return vector of varpools.
14332         (input_cgraph): Free the vectors.
14333         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14334         output only initializers needed.
14335         (lto_output): Only call output_cgraph.
14336         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
14337         * lto-section-out.c (lto_new_out_decl_state): Initialize
14338         state->varpool_node_encoder.
14339         * lto-streamer.h (lto_varpool_encoder_d): New.
14340         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
14341         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
14342         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
14343         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
14344         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
14345         Declare.
14346         (output_varpool, input_varpool): Remove declarations.
14347
14348 2010-05-05  Jan Hubicka  <jh@suse.cz>
14349
14350         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
14351         with body can prevail.
14352
14353 2010-05-05  Jan Hubicka  <jh@suse.cz>
14354
14355         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
14356         size.
14357
14358 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14359
14360         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
14361
14362         * gengtype.h (erro_at_line): Constify pos argument.
14363
14364         * gengtype.c: Include hashtab.h.
14365         (enum gc_used): Document GC_MAYBE_POINTED_TO.
14366         (error_at_line): Constify pos argument.
14367         (do_typedef): Initialize p->opt field.
14368         (get_file_gtfilename): Fix comment typo.
14369         (struct walk_type_data): Constify line field.
14370         (get_output_file_for_structure): New function.
14371         (write_local_func_for_structure): Constify orig_s argument.
14372         Use get_output_file_for_structure.
14373         (write_func_for_structure): Use get_output_file_for_structure.
14374         (INDENT): New define.
14375         (dump_pair, dump_type, dump_type_list, dump_typekind)
14376         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
14377         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
14378         functions.
14379         (seen_types): New variable.
14380         (main): New variable do_dump.  Process "-d" command line option.
14381         Call dump_everything if dump requested.
14382
14383 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
14384
14385         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
14386         in a temporary instead of invoking the macro multiple times.
14387         (track_expr_p): Likewise.
14388
14389 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
14390
14391         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
14392         per new semantics.
14393         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
14394         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
14395         conditions for printing notes.
14396         * common.opt (-Wcoverage-mismatch): Allow negative, default to
14397         true, update documentation.
14398         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
14399
14400 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
14401
14402         PR c/43981
14403         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
14404         on dimen.
14405
14406 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14407
14408         PR target/43799
14409         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
14410         (*sse_prologue_save_insn1): Likewise.
14411         (SSE prologue save splitter): Likewise.
14412
14413 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14414
14415         * tree.c (free_lang_data_in_one_sizepos): New inline function.
14416         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
14417         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
14418         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
14419         all decls.  Call it on DECL_FIELD_OFFSET of fields.
14420         (find_decls_types_r): Follow DECL_VALUE_EXPR.
14421         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
14422
14423 2010-05-04  Martin Jambor  <mjambor@suse.cz>
14424
14425         * tree-sra.c (build_access_from_expr_1): The first parameter type
14426         changed to simple tree.
14427         (build_access_from_expr): Likewise, gsi parameter was eliminated.
14428         (scan_assign_result): Renamed to assignment_mod_result, enum elements
14429         renamed as well.
14430         (build_accesses_from_assign): Removed all parameters except for a
14431         simple gimple statement.  Now returns a simple bool.
14432         (scan_function): All non-analysis parts moved to separate functions
14433         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
14434         parameters and updated both callers.
14435         (sra_modify_expr): Removed parameter data.
14436         (sra_modify_function_body): New function.
14437         (perform_intra_sra): Call sra_modify_function_body to modify the
14438         function body.
14439         (replace_removed_params_ssa_names): Parameter data changed into
14440         adjustments vector.
14441         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
14442         changed the parameter dont_convert to convert with the opposite
14443         meaning.
14444         (sra_ipa_modify_assign): Parameter data changed into adjustments
14445         vector, return value changed to bool.
14446         (ipa_sra_modify_function_body): New function.
14447         (sra_ipa_reset_debug_stmts): Updated a comment.
14448         (modify_function): Use ipa_sra_modify_function_body to modify function
14449         body.
14450
14451 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14452
14453         PR middle-end/43671
14454         * alias.c (true_dependence): Handle the same VALUE in x and mem.
14455         (canon_true_dependence): Likewise.
14456         (write_dependence_p): Likewise.
14457
14458 2010-05-04  Jan Hubicka  <jh@suse.cz>
14459
14460         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
14461         * cgraphbuild.c: Include ipa-utils.h
14462         (record_reference_ctx): New struct.
14463         (record_reference): Simplify to work on initializers; not statements.
14464         (mark_address, mark_load, mark_store): New.
14465         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
14466         walk PHI nodes too.
14467         (record_references_in_initializer): Update use of record_reference.
14468         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
14469         walk PHI nodes too.
14470
14471 2010-05-04  Jan Hubicka  <jh@suse.cz>
14472
14473         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
14474         node will be removed anyway.
14475         (lto_varpool_replace_node): Allow also unanalyzed nodes;
14476         relink aliases of node into prevailing node.
14477         * varpool.c (varpool_remove_node): Remove aliases properly;
14478         when removing node, remove all its aliases too; remove DECL_INITIAL
14479         of removed node; ggc_free the varpool node.
14480
14481 2010-05-04  Richard Guenther  <rguenther@suse.de>
14482
14483         PR tree-optimization/43879
14484         * tree-ssa-structalias.c (alias_get_name): Use
14485         DECL_ASSEMBLER_NAME if available.
14486         (create_function_info_for): Return the varinfo node.
14487         (ipa_pta_execute): Associate same-body aliases and extra names
14488         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
14489
14490 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14491
14492         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
14493
14494 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
14495
14496         PR bootstrap/43964
14497         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
14498         only if HONOR_REG_ALLOC_ORDER is not defined.
14499
14500 2010-05-04  Richard Guenther  <rguenther@suse.de>
14501
14502         PR tree-optimization/43949
14503         * tree-vrp.c (extract_range_from_binary_expr): Only handle
14504         TRUNC_MOD_EXPR.
14505
14506 2010-04-26  Jason Merrill  <jason@redhat.com>
14507
14508         * c.opt (-fstrict-enums): New.
14509         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
14510
14511 2010-05-03  David Ung  <davidu@mips.com>
14512             James E. Wilson  <wilson@codesourcery.com>
14513
14514         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
14515         emit the trap instruction before the divide for TUNE_74K.
14516
14517 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
14518
14519         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
14520         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
14521         based on the above, for new target hook.
14522
14523         * hooks.c (hook_bool_mode_true): New generic hook.
14524         * hooks.h (hook_bool_mode_true): Add prototype.
14525
14526         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
14527         target hook.
14528         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
14529         target hook, set to hook_bool_mode_false.
14530         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
14531         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
14532         with targetm.small_register_classes_for_mode_p.
14533         (find_reusable_reload): Likewise.
14534         (combine_reloads): Likewise.
14535         * reload1.c (reload_as_needed): Likewise.
14536         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
14537         * ifcvt.c (noce_process_if_block, check_cond_move_block,
14538         dead_or_predicable): Likewise.
14539         * regmove.c (optimize_reg_copy_1): Likewise.
14540         * calls.c (prepare_call_address): Likewise.
14541         (precompute_register_parameters): Likewise.
14542
14543         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
14544         hook definition.
14545         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
14546         implementation of the hook that considers all register classes
14547         small except for SH64.
14548         (sh_override_options): Use the new hook.
14549         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
14550         Add prototype.
14551
14552         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
14553         hook definition.
14554         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
14555         implementation of the hook that considers all register classes
14556         small for THUMB1.
14557         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
14558         Add prototype.
14559
14560         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
14561         hook definition.
14562         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
14563         implementation of the hook that considers all register classes
14564         small for MIPS16.
14565         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
14566         Add prototype.
14567
14568         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
14569         hook definition.
14570         * config/m32c/m32c.h: Likewise.
14571         * config/pdp11/pdp11.h: Likewise.
14572         * config/avr/avr.h: Likewise.
14573         * config/xtensa/xtensa.h: Likewise.
14574         * config/m68hc11/m68hc11.h: Likewise.
14575         * config/mn10300/mn10300.h: Likewise.
14576         * config/mcore/mcore.h: Likewise.
14577         * config/h8300/h8300.h: Likewise.
14578         * config/bfin/bfin.h: Likewise.
14579
14580         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
14581         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
14582
14583 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
14584
14585         * double-int.h (tree_to_double_int): Remove macro.
14586         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
14587         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
14588         (tree_to_double_int): New function.
14589         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
14590         Move ...
14591         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
14592
14593 2010-05-03  Richard Guenther  <rguenther@suse.de>
14594
14595         PR tree-optimization/43971
14596         * tree-ssa-structalias.c (get_constraint_for_1): Fix
14597         constraints in the !flag_delete_null_pointer_checks case.
14598
14599 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
14600
14601         PR debug/43972
14602         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
14603         result mode matches original rtl mode.
14604
14605 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
14606
14607         PR target/43888
14608         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
14609
14610 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14611
14612         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
14613         when processing flag options.
14614
14615 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14616
14617         * gcov-iov.c (main): Change format string placeholder
14618         from %#08x to 0x%08x.
14619         * genchecksum.c (dosum): Change format string placeholder
14620         from %#02x to 0x%02x.
14621
14622 2010-05-02  Richard Guenther  <rguenther@suse.de>
14623
14624         PR tree-optimization/43879
14625         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
14626
14627 2010-05-02  Bruno Haible  <bruno@clisp.org>
14628
14629         * doc/extend.texi (Function Attributes): Fix a typo.
14630
14631 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14632
14633         Revert:
14634         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
14635         placeholder from 0x%x to %#x.
14636         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14637         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
14638         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
14639         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
14640         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
14641         * config/i386/i386.c (ix86_target_string): Ditto.
14642         * config/i386/i386.c (output_pic_addr_const): Ditto.
14643         (print_operand): Ditto.
14644
14645 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14646
14647         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
14648         placeholder from 0x%x to %#x.
14649         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
14650         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
14651         (ASM_OUTPUT_DEBUG_DATA): Ditto.
14652         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
14653         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
14654         * optc-gen.awk: Ditto.
14655         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
14656         (HOST_WIDE_INT_PRINT_HEX): Ditto.
14657         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
14658         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14659
14660 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
14661
14662         * target.h (struct calls): Add function_value_regno_p field.
14663         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
14664         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
14665         * targhooks.c (default_function_value_regno_p): New function.
14666         * targhooks.h (default_function_value_regno_p): Declare function.
14667         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
14668         * builtins.c. (apply_result_size): (Ditto.).
14669         * combine.c. (likely_spilled_retval_p): (Ditto.).
14670         * mode-switching.c. Include 'target.h'.
14671         (create_pre_exit): Use function_value_regno_p hook.
14672         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
14673         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
14674         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
14675
14676         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
14677         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
14678         (ix86_function_value_regno_p): Declare as static, change argument
14679         type to const unsigned int.
14680         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
14681
14682 2010-05-01  Richard Guenther  <rguenther@suse.de>
14683
14684         PR tree-optimization/43949
14685         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
14686         types.
14687         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
14688
14689 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
14690
14691         * rtl.h (CONST_DOUBLE_P): Define.
14692         (rtx_to_double_int): Declare.
14693         * emit-rtl.c (rtx_to_double_int): New function.
14694         * dwarf2out.c (insert_double): New function.
14695         (loc_descriptor, add_const_value_attribute): Clean up, use
14696         rtx_to_double_int and insert_double functions.
14697
14698 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
14699
14700         * doc/extend.texi (Inline): Add missing return keyword to examples.
14701         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
14702         "command-line".
14703
14704 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
14705
14706         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
14707         the variable part of the offset as well.  Use highest_pow2_factor for
14708         all alignment checks.
14709
14710 2010-04-30  Richard Guenther  <rguenther@suse.de>
14711
14712         PR tree-optimization/43879
14713         * tree-ssa-structalias.c (type_could_have_pointers): Functions
14714         can have pointers.
14715
14716 2010-04-30  Jan Hubicka  <jh@suse.cz>
14717
14718         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
14719         varpool.
14720         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
14721
14722 2010-04-30  Jan Hubicka  <jh@suse.cz>
14723
14724         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
14725         New.
14726         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
14727         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
14728         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
14729         cgraph_node_set_needs_ltrans_p): Remove.
14730
14731 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
14732
14733         * sdbout.c: Include vec.h, do not include varray.h.
14734         (deferred_global_decls, sdbout_global_decl,
14735         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
14736         * toplev.c: Do not include varray.h.
14737         (dump_memory_report): Do not dump VARRAY statistics.
14738         * gengtype.c (open_base_file): Ignore varray.h.
14739         * Makefile.in: Update for abovementioned changes.
14740         Remove all traces of varray.c and varray.h.
14741         * varray.c: Remove file.
14742         * varray.h: Remove file.
14743
14744 2010-04-30  Jan Hubicka  <jh@suse.cz>
14745
14746         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
14747         references.
14748
14749 2010-04-30  Jan Hubicka  <jh@suse.cz>
14750
14751         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
14752         needed.
14753
14754 2010-04-30  Richard Guenther  <rguenther@suse.de>
14755
14756         * tree-ssa-structalias.c (get_constraint_for_1): Generate
14757         constraints for CONSTRUCTOR.
14758
14759 2010-04-30  Richard Guenther  <rguenther@suse.de>
14760
14761         PR lto/43946
14762         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
14763         first after all lowering passes.
14764
14765 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
14766
14767         * toplev.c: Include varray.h for statistics dumping.
14768         * tree.h: Do not declare varray_head_tag.
14769         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
14770         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
14771         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
14772         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
14773         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
14774         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
14775         c-common.c, c-common.h, reg-stack.c, basic-block.h,
14776         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
14777         include varray.h.
14778         * Makefile.in: Update for abovementioned changes.
14779
14780 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
14781
14782         PR debug/43942
14783         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
14784
14785 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14786
14787         * config/picochip/picochip.c (picochip_legitimize_address): Define.
14788         Use this function to do machine-specific conversion.
14789         (picochip_legitimize_reload_address): Likewise.
14790         (picochip_legitimate_address_p): Check valid base register only if
14791         strict.
14792         (picochip_check_conditional_copy): Check for modw only if opnd is
14793         register.
14794         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
14795         to call the function in c.
14796         * config/picochip/picochip-protos.h
14797         (picochip_legitimize_reload_address): Define.
14798         * config/picochip/picochip.md (supported_compare1): Define.
14799
14800 2010-04-30  Jan Hubicka  <jh@suse.cz>
14801
14802         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
14803         (cgraph_global_info): Remove inlined.
14804         (LTO_cgraph_tag_names): Remove.
14805         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
14806         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
14807         simplify cgraph tags and document.
14808         (lto_output_node): Use only LTO_cgraph_unavail_node and
14809         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
14810         for_functions_valid, global info, process and output flags.
14811         (input_overwrite_node): Initialize estimated stack size and
14812         estimated growth.  Do not read flags we no longer store.
14813         (input_node): Likewise do not read info no longer stored.
14814         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
14815         flag.
14816
14817 2010-04-30  Richard Guenther  <rguenther@suse.de>
14818
14819         PR tree-optimization/43879
14820         * tree-ssa-structalias.c (get_constraint_for_1): Properly
14821         handle non-zero initializers.
14822
14823 2010-04-30  Richard Guenther  <rguenther@suse.de>
14824
14825         * builtins.c (fold_builtin_1): Delete free (0).
14826
14827 2010-04-29  Jan Hubicka  <jh@suse.cz>
14828
14829         * gengtype.c (open_base_files): Add lto-streamer.h
14830         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
14831         (pass_ipa_cp): GGC collect.
14832         * toplev. (compile_file): Do not output symbols.
14833         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
14834         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
14835         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
14836         * lto-section-in.c: Include ggc.h
14837         (lto_new_in_decl_state): Alloc in GGC.
14838         (lto_delete_in_decl_state): Likewise.
14839         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
14840         Collect.
14841
14842 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
14843
14844         PR target/42895
14845         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
14846         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
14847         (HONOR_REG_ALLOC_ORDER): Describe new macro.
14848         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
14849         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
14850         account only if HONOR_REG_ALLOC_ORDER is not defined.
14851         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
14852         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
14853
14854 2010-04-29  Jon Grant  <04@jguk.org>
14855
14856         * collect2.c (vflag): Change type from int to bool.
14857         (debug): Likewise.
14858         (helpflag): New global bool.
14859         (main): Set vflag and debug with boolean, not integer truth values.
14860         Accept new "--help" option and output usage text if found.
14861         * collect2.h (vflag): Update prototype.
14862         (debug): Likewise.
14863
14864 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14865
14866         PR bootstrap/43936
14867         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
14868
14869 2010-04-29  Richard Guenther  <rguenther@suse.de>
14870
14871         PR bootstrap/43935
14872         * plugin.h (invoke_plugin_callbacks): Annotate arguments
14873         with ATTRIBUTE_UNUSED.
14874
14875 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14876
14877         PR target/43921
14878         * config/i386/i386.c (get_some_local_dynamic_name): Replace
14879         INSN_P with NONDEBUG_INSN_P.
14880         (distance_non_agu_define): Likewise.
14881         (distance_agu_use): Likewise.
14882
14883 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
14884
14885         From Dominique d'Humieres  <dominiq@lps.ens.fr>
14886         PR bootstrap/43858
14887         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
14888         test_set.
14889
14890 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
14891
14892         * plugin.h (invoke_plugin_callbacks): New inline function.
14893         * plugin.c (flag_plugin_added): New global flag.
14894         (add_new_plugin): Initialize above flag.
14895         (invoke_plugin_callbacks): Rename to ...
14896         (invoke_plugin_callbacks_full): ... this.
14897
14898 2010-04-28  Jan Hubicka  <jh@suse.cz>
14899
14900         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
14901         (lto_varpool_replace_node): New.
14902         (lto_symtab_resolve_symbols): Resolve varpool nodes.
14903         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
14904         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
14905         * cgraph.h (varpool_node_ptr): New type.
14906         (varpool_node_ptr): New vector.
14907         (varpool_node_set_def): New structure.
14908         (varpool_node_set): New type.
14909         (varpool_node_set): New vector.
14910         (varpool_node_set_element_def): New structure.
14911         (varpool_node_set_element, const_varpool_node_set_element): New types.
14912         (varpool_node_set_iterator): New type.
14913         (varpool_node): Add prev pointers, add used_from_other_partition,
14914         in_other_partition.
14915         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
14916         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
14917         varpool_get_node, varpool_remove_node): Declare.
14918         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
14919         varpool_node_set_size): New inlines.
14920         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
14921         * tree-pass.h (varpool_node_set_def): Forward declare.
14922         (ipa_opt_pass_d): Summary writting takes vnode sets too.
14923         (ipa_write_optimization_summaries): Update prototype.
14924         * ipa-cp.c (ipcp_write_summary): Update.
14925         * ipa-reference.c (ipa_reference_write_summary): Update.
14926         * lto-cgraph.c (lto_output_varpool_node): New static function.
14927         (output_varpool): New function.
14928         (input_varpool_node): New static function.
14929         (input_varpool_1): New function.
14930         (input_cgraph): Input varpool.
14931         * ipa-pure-const.c (pure_const_write_summary): Update.
14932         * lto-streamer-out.c (lto_output): Update, output varpool too.
14933         (write_global_stream): Kill WPA hack.
14934         (produce_asm_for_decls): Update.
14935         (output_alias_pair_p): Handle variables.
14936         (output_unreferenced_globals): Output only needed partition of varpool.
14937         * ipa-inline.c (inline_write_summary): Update.
14938         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
14939         cgraph.
14940         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
14941         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
14942         varpool_node_set_new, varpool_node_set_add,
14943         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
14944         debug_varpool_node_set): New functions.
14945         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
14946         (execute_one_pass): Process new decls too.
14947         (ipa_write_summaries_2): Pass around vsets.
14948         (ipa_write_summaries_1): Likewise.
14949         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
14950         to add.
14951         (ipa_write_optimization_summaries_1): Pass around vsets.
14952         (ipa_write_optimization_summaries): Likewise.
14953         * varpool.c (varpool_get_node): New.
14954         (varpool_node): Update doubly linked lists.
14955         (varpool_remove_node): New.
14956         (dump_varpool_node): More dumping.
14957         (varpool_enqueue_needed_node): Update doubly linked lists.
14958         (decide_is_variable_needed): Kill ltrans hack.
14959         (varpool_finalize_decl): Kill lto hack.
14960         (varpool_assemble_decl): Skip decls in other partitions.
14961         (varpool_assemble_pending_decls): Update doubly linkes lists.
14962         (varpool_empty_needed_queue): Likewise.
14963         (varpool_extra_name_alias): Likewise.
14964         * lto-streamer.c (lto_get_section_name): Add vars section.
14965         * lto-streamer.h (lto_section_type): Update.
14966         (output_varpool, input_varpool): Declare.
14967
14968 2010-04-28  Mike Stump  <mikestump@comcast.net>
14969
14970         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
14971
14972 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14973
14974         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
14975         record or union type with RECORD_OR_UNION_TYPE_P predicate.
14976         (lto_input_ts_type_tree_pointers): Likewise.
14977         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
14978         (lto_output_ts_type_tree_pointers): Likewise.
14979
14980 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14981
14982         Uniquization of constants at the Tree level
14983         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
14984         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
14985         bit to the end.
14986         (tree_output_constant_def): Declare.
14987         * gimplify.c (gimplify_init_constructor): When using block copy, first
14988         uniquize the constant constructor on the RHS.
14989         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
14990         DECL_IN_CONSTANT_POOL flag.
14991         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
14992         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
14993         constant pool.
14994         (assemble_variable): Deal with symbols belonging to the tree constant
14995         pool.
14996         (get_constant_section): Add ALIGN parameter and simplify.
14997         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
14998         (assemble_constant_contents): Use the expression of the VAR_DECL.
14999         (output_constant_def_contents): Use the alignment of the VAR_DECL.
15000         (tree_output_constant_def): New global function.
15001         (mark_constant): Use the expression of the VAR_DECL.
15002         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
15003         its expression.
15004         (output_object_block): Likewise and assemble the expression.
15005
15006 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
15007
15008         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
15009         hash_tree, eq_tree): New tree hash table.
15010         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
15011         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
15012         lto_orig_address_remove): Reimplement.
15013
15014 2010-04-28  Xinliang David Li  <davidxl@google.com>
15015
15016         PR c/42643
15017         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
15018         (compute_uninit_opnds_pos): New function.
15019         (is_non_loop_exit_postdominating): New function.
15020         (compute_control_dep_chain): New function.
15021         (find_pdom): New function.
15022         (convert_control_dep_chain_into_preds): New function.
15023         (find_predicates): New function.
15024         (find_control_equiv_block): New function.
15025         (collect_phi_def_edges): New function.
15026         (find_def_preds): New function.
15027         (find_dom): New function.
15028         (dump_predicates): New function.
15029         (get_cmp_code): New function.
15030         (is_value_included_in): New function.
15031         (find_matching_predicate_in_rest_chains): New function.
15032         (use_pred_not_overlap_with_undef_path_pred): New function.
15033         (is_use_properly_guarded): New function.
15034         (normalize_cond_1): New function.
15035         (is_and_or_or): New function.
15036         (normalize_cond): New function.
15037         (is_gcond_subset_of): New function.
15038         (is_subset_of_any): New function.
15039         (is_or_set_subset_of): New function.
15040         (is_and_set_subset_of): New function.
15041         (is_norm_cond_subset_of): New function.
15042         (is_pred_expr_subset_of): New function.
15043         (is_pred_chain_subset_of): New function.
15044         (is_included_in): New function.
15045         (is_superset_of): New function.
15046         (find_uninit_use): New function.
15047         (warn_uninitialized_phi): New function.
15048         (compute_possibly_undefined_names): New function.
15049         (ssa_undefined_value_p): New function.
15050         (execute_late_warn_uninitialized): New function.
15051         * tree-ssa.c (ssa_undefined_value_p): Removed.
15052         (warn_uninit): Changed to extern.
15053         (warn_uninitialized_phi): Removed.
15054         (warn_uninitialized_vars): Changed to extern.
15055         (execute_late_warn_uninitialized): Removed
15056         * tree-flow.h: Add new prototypes.
15057         * timevar.def: Add new time variable.
15058         * Makefile.in: Add new build file.
15059
15060 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
15061
15062         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
15063         type if available.
15064
15065 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15066
15067         PR target/22224
15068         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
15069
15070 2010-04-28  Martin Jambor  <mjambor@suse.cz>
15071
15072         * cgraph.h (struct cgraph_node): New field indirect_calls.
15073         (struct cgraph_indirect_call_info): New type.
15074         (struct cgraph_edge): Removed field indirect_call. New fields
15075         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
15076         (cgraph_create_indirect_edge): Declare.
15077         (cgraph_make_edge_direct): Likewise.
15078         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
15079         * ipa-prop.h (struct ipa_param_call_note): Removed.
15080         (struct ipa_node_params): Removed field param_calls.
15081         (ipa_create_all_structures_for_iinln): Declare.
15082         * cgraph.c: Described indirect edges and uids in initial comment.
15083         (cgraph_add_edge_to_call_site_hash): New function.
15084         (cgraph_edge): Search also among the indirect edges, use
15085         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
15086         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
15087         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
15088         site hash.
15089         (initialize_inline_failed): Assign a reason to indirect edges.
15090         (cgraph_create_edge_1): New function.
15091         (cgraph_create_edge): Moved some functionality to
15092         cgraph_create_edge_1.
15093         (cgraph_create_indirect_edge): New function.
15094         (cgraph_edge_remove_callee): Add an assert checking for
15095         non-indirectness.
15096         (cgraph_edge_remove_caller): Special-case indirect edges.
15097         (cgraph_remove_edge): Likewise.
15098         (cgraph_set_edge_callee): New function.
15099         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
15100         (cgraph_make_edge_direct): New function.
15101         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
15102         the declaration of the call statement matches.
15103         (cgraph_node_remove_callees): Special-case indirect edges.
15104         (cgraph_clone_edge): Likewise.
15105         (cgraph_clone_node): Clone also the indirect edges.
15106         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
15107         indirect_call, dump count of indirect_calls edges.
15108         * ipa-prop.c (iinlining_processed_edges): New variable.
15109         (ipa_note_param_call): Create indirect edges instead of
15110         creating notes.  New parameter node.
15111         (ipa_analyze_call_uses): New parameter node, pass it on to
15112         ipa_note_param_call.
15113         (ipa_analyze_stmt_uses): Likewise.
15114         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
15115         (print_edge_addition_message): Work on edges rather than on notes.
15116         (update_call_notes_after_inlining): Likewise, renamed to
15117         update_indirect_edges_after_inlining.
15118         (ipa_create_all_structures_for_iinln): New function.
15119         (ipa_free_node_params_substructures): Do not free notes.
15120         (ipa_edge_duplication_hook): Propagate bits within
15121         iinlining_processed_edges bitmap.
15122         (ipa_node_duplication_hook): Do not duplicate notes.
15123         (free_all_ipa_structures_after_ipa_cp): Renamed to
15124         ipa_free_all_structures_after_ipa_cp.
15125         (free_all_ipa_structures_after_iinln): Renamed to
15126         ipa_free_all_structures_after_iinln.
15127         (ipa_write_param_call_note): Removed.
15128         (ipa_read_param_call_note): Removed.
15129         (ipa_write_indirect_edge_info): New function.
15130         (ipa_read_indirect_edge_info): Likewise.
15131         (ipa_write_node_info): Do not stream notes, do stream information
15132         in indirect edges.
15133         (ipa_read_node_info): Likewise.
15134         (lto_ipa_fixup_call_notes): Removed.
15135         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
15136         * ipa-inline.c (pass_ipa_inline): Likewise.
15137         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
15138         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
15139         * tree-inline.c (copy_bb): Removed an unnecessary double check for
15140         is_gimple_call.
15141         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
15142         edges.
15143         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
15144         (output_cgraph): Stream also indirect edges.
15145         (lto_output_edge): Added capability to stream indirect edges.
15146         (input_edge): Likewise.
15147         (input_cgraph_1): Likewise.
15148         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
15149         of indirect edges.
15150
15151 2010-04-28  Richard Guenther  <rguenther@suse.de>
15152
15153         PR tree-optimization/43879
15154         PR tree-optimization/43909
15155         * tree-ssa-structalias.c (struct variable_info): Add
15156         only_restrict_pointers flag.
15157         (new_var_info): Initialize it.  Increment stats.total_vars here.
15158         (create_function_info_for): Do not increment stats.total_vars here.
15159         (get_function_part_constraint): Fix build with C++.
15160         (insert_into_field_list): Remove.
15161         (push_fields_onto_fieldstack): Properly merge fields.
15162         (create_variable_info_for): Split and simplify.
15163         (create_variable_info_for_1): New piece.
15164         (intra_create_variable_infos): Properly make restrict constraints
15165         from parameters.
15166
15167 2010-04-28  Richard Guenther  <rguenther@suse.de>
15168
15169         PR c++/43880
15170         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
15171
15172 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15173             Jan Hubicka  <hubicka@ucw.cz>
15174
15175         * doc/invoke.texi (-Wsuggest-attribute=const,
15176         -Wsuggest-attribute=pure): Document.
15177         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
15178         (function_always_visible_to_compiler_p,
15179         suggest_attribute, warn_function_pure, warn_function_const):
15180         New functions.
15181         (check_call): Improve debug info.
15182         (analyze_function): Do not check availability.
15183         (add_new_function): Check availability.
15184         (propagate): Output warnings.
15185         (skip_function_for_local_pure_const): New function.
15186         (local_pure_const): Use it; output warnings.
15187         * common.opt (Wsuggest-attribute=const,
15188         Wsuggest-attribute=pure): New.
15189
15190 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
15191
15192         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
15193         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
15194         or DW_CFA_def_cfa_offset{,_sf}.
15195
15196 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15197
15198         * tree.h: Fix truncated long macros.
15199
15200 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
15201
15202         * collect2.c (TARGET_64BIT): Redefine to target's default.
15203         * tlink.c: Likewise.
15204         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
15205         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
15206         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
15207         for underscoring __USER_LABEL_PREFIX__.
15208         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
15209         (SUB_LINK_ENTRY32): New.
15210         (SUB_LINK_ENTRY64): New.
15211         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
15212         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
15213         (SUB_LINK_ENTRY64): New.
15214         (SUB_LINK_ENTRY): New.
15215         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
15216         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
15217         x64 target is choosen.
15218         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
15219         * configure: Regenerated.
15220         * configure.ac (leading-mingw64-underscores): Option added.
15221
15222 2010-04-27  Jan Hubicka  <jh@suse.cz>
15223
15224         * doc/invoke.texi (-fipa-profile): Document.
15225         * opts.c (decode_options): Enable ipa-profile at -O1.
15226         * timevar.def (TV_IPA_PROFILE): Define.
15227         * common.opt (fipa-profile): Add.
15228         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
15229         flag for clones.
15230         (cgraph_propagate_frequency): Handle only local ones.
15231         * tree-pass.h (pass_ipa_profile): Declare.
15232         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
15233         (pass_ipa_profile): Use TV_IPA_PROFILE.
15234         * ipa.c (ipa_profile): New function.
15235         (gate_ipa_profile): Likewise.
15236         (pass_ipa_profile): New global variable.
15237         * passes.c (pass_ipa_profile): New.
15238
15239 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
15240
15241         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
15242
15243 2010-04-27  Martin Jambor  <mjambor@suse.cz>
15244
15245         PR middle-end/43812
15246         * ipa.c (dissolve_same_comdat_group_list): New function.
15247         (function_and_variable_visibility): Call
15248         dissolve_same_comdat_group_list when comdat group contains external or
15249         newly local nodes.
15250         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
15251         lists are circular and that they contain only DECL_ONE_ONLY nodes.
15252
15253 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15254
15255         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
15256         (const_hash_1) <VECTOR_CST>: New case.
15257         (compare_constant) <VECTOR_CST>: Likewise.
15258         <ADDR_EXPR>: Deal with LABEL_REFs.
15259         (copy_constant) <VECTOR_CST>: New case.
15260
15261 2010-04-27  Jan Hubicka  <jh@suse.cz>
15262
15263         * cgraph.c (cgraph_propagate_frequency): New function.
15264         * cgraph.h (cgraph_propagate_frequency): Declare.
15265         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
15266         cgraph_propagate_frequency.
15267
15268 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
15269
15270         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
15271
15272 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
15273
15274         PR target/40657
15275         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
15276         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
15277         here to determine which regs to push and how much stack to reserve.
15278
15279 2010-04-27  Jie Zhang  <jie@codesourcery.com>
15280
15281         * doc/gimple.texi (gimple_statement_with_ops): Remove
15282         addresses_taken field.
15283         (gimple_statement_with_memory_ops): Likewise.
15284
15285 2010-04-27  Jan Hubicka  <jh@suse.cz>
15286
15287         * tree-inline.c (eni_inlining_weights): Remove.
15288         (estimate_num_insns): Special case more builtins.
15289
15290 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
15291
15292         PR c/32207
15293         * c-typeck.c (build_binary_op): Move forward check for comparison
15294         pointer with null pointer constant and adjust the diagnostic message.
15295
15296 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
15297
15298         PR lto/42776
15299         * configure.ac (gcc_cv_as_section_has_align): Set if installed
15300         binutils supports extended .section directive needed by LTO, or
15301         warn if older binutils found.
15302         (LTO_BINARY_READER): New AC_SUBST'd variable.
15303         (LTO_USE_LIBELF): Likewise.
15304         * gcc/config.gcc (lto_binary_reader): New target-specific configure
15305         variable.
15306         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
15307         (LTO_USE_LIBELF): Likewise.
15308         * configure: Regenerate.
15309
15310         * collect2.c (is_elf): Rename from this ...
15311         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
15312          object files in addition to ELF-formatted ones.
15313         (scan_prog_file): Caller updated.  Also allow for LTO info marker
15314         symbol to be prefixed or not by an extra underscore.
15315
15316         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
15317         * config/i386/winnt.c: Also #include lto-streamer.h
15318         (i386_pe_asm_named_section): Specify 1-byte section alignment for
15319         LTO named sections.
15320         (i386_pe_asm_output_aligned_decl_common): Add comment.
15321         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
15322
15323 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
15324
15325         PR target/43889
15326         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
15327         Add missing earlyclobber for second alternative.
15328
15329 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
15330
15331         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
15332         bits for artificial defs at the top of the block.
15333         * fwprop.c (single_def_use_enter_block): Don't call it.
15334
15335 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
15336
15337         PR 43715
15338         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
15339         instead of "$gcc_cv_objdump -T".
15340         Use "-undefined dynamic_lookup" on darwin.
15341         * gcc/configure: Regenerate.
15342
15343 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
15344
15345         PR c/43893
15346         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
15347
15348 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
15349
15350         * c-parser.c (struct c_token): Move location field up.
15351         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
15352         (struct c_declspecs): Convert typespec_word, storage_class, and
15353         default_int_p into bitfields.
15354         (struct c_declarator): Move loc field up.
15355
15356 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
15357
15358         * cfgloop.h (struct loop): Move can_be_parallel field up.
15359         * ipa-prop.h (struct ip_node_params): Move bitfields up.
15360         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
15361         down.
15362         (struct iv_cand): Convert pos field into a bitfield.
15363         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
15364         field up.
15365         (struct _stmt_vec_info): Shuffle fields for better packing.
15366
15367 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
15368
15369         * varasm.c (IN_NAMED_SECTION): Remove guard.
15370         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
15371         (IN_NAMED_SECTION_P): ...this.
15372         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
15373         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
15374
15375 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
15376
15377         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
15378         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
15379         of shadowing it.  Fix comments.
15380
15381 2010-04-26  Jan Hubicka  <jh@suse.cz>
15382
15383         * cgraph.c (cgraph_create_node): Set node frequency to normal.
15384         (cgraph_clone_node): Copy function frequency.
15385         * cgraph.h (node_frequency): New enum
15386         (struct cgraph_node): Add.
15387         * final.c (rest_of_clean_state): Update.
15388         * lto-cgraph.c (lto_output_node): Output node frequency.
15389         (input_overwrite_node): Input node frequency.
15390         * tre-ssa-loop-ivopts (computation_cost): Update.
15391         * lto-streamer-out.c (output_function): Do not output function
15392         frequency.
15393         * predict.c (maybe_hot_frequency_p): Update and handle functions
15394         executed once.
15395         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
15396         attribute lookup.
15397         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
15398         (compute_function_frequency): Set noreturn functions to be executed
15399         once.
15400         (choose_function_section): Update.
15401         * lto-streamer-in.c (input_function): Do not input function frequency.
15402         * function.c (allocate_struct_function): Do not initialize function
15403         frequency.
15404         * function.h (function_frequency): Remove.
15405         (struct function): Remove function frequency.
15406         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
15407         (try_update): Update.
15408         * tree-inline.c (initialize_cfun): Do not update function frequency.
15409         * passes.c (pass_init_dump_file): Update.
15410         * i386.c (ix86_compute_frame_layout): Update.
15411         (ix86_pad_returns): Update.
15412
15413 2010-04-26  Jie Zhang  <jie@codesourcery.com>
15414
15415         PR tree-optimization/43833
15416         * tree-vrp.c (range_int_cst_p): New.
15417         (range_int_cst_singleton_p): New.
15418         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
15419         when both operands are constants.  Use range_int_cst_p in
15420         BIT_IOR_EXPR case.
15421
15422 2010-04-26  Jan Hubicka  <jh@suse.cz>
15423
15424         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
15425
15426 2010-04-26  Richard Guenther  <rguenther@suse.de>
15427
15428         PR lto/43080
15429         * gimple.c (gimple_decl_printable_name): Deal gracefully
15430         with a NULL DECL_NAME.
15431
15432 2010-04-26  Richard Guenther  <rguenther@suse.de>
15433
15434         PR lto/42425
15435         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
15436         if emitting debug information and it is either a function
15437         or a namespace decl.
15438
15439 2010-04-26  Ira Rosen  <irar@il.ibm.com>
15440
15441         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
15442         determine if the statement is vectorizable, and a macro to access it.
15443         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15444         Skip statements that can't be vectorized. If the analysis fails,
15445         mark the statement as unvectorizable if vectorizing basic block.
15446         (vect_compute_data_refs_alignment): Likewise.
15447         (vect_verify_datarefs_alignment): Skip statements marked as
15448         unvectorizable. Add print.
15449         (vect_analyze_group_access): Skip statements that can't be
15450         vectorized. If the analysis fails, mark the statement as
15451         unvectorizable if vectorizing basic block.
15452         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
15453         * tree-vect-stmts.c (vectorizable_store): Fix the number of
15454         generated stmts for SLP.
15455         (new_stmt_vec_info): Initialize the new field.
15456         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
15457         statements marked as unvectorizable.
15458
15459 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
15460
15461         * c-common.c (flag_isoc1x): New.
15462         (flag_isoc99): Update comment.
15463         * c-common.h (flag_isoc1x): New.
15464         (flag_isoc99): Update comment.
15465         * c-cppbuiltin.c (builtin_define_float_constants): Also define
15466         __<type>_DECIMAL_DIG__.
15467         * c-opts.c (set_std_c1x): New.
15468         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
15469         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
15470         * c.opt (-std=c1x, -std=gnu1x): New options.
15471         * doc/cpp.texi: Mention -std=c1x.
15472         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
15473         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
15474         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
15475         * doc/standards.texi: Mention C1X.
15476         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
15477         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
15478         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
15479         Define for C1X.
15480
15481 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
15482
15483         * config/i386/gmon-sol2.c (_mcleanup): Change format string
15484         placeholder from 0x%x to %#x.
15485         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15486         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15487         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15488         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15489         * config/i386/i386.c (ix86_target_string): Ditto.
15490         (output_pic_addr_const): Ditto.
15491         (print_operand): Ditto.
15492
15493 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
15494
15495         * combine.c (find_split_point): Add third argument.  Use it
15496         to find nested multiply-accumulate instructions.  Adjust calls.
15497         (try_combine): Adjust call to find_split_point.
15498
15499 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
15500
15501         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
15502
15503 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
15504
15505         PR tree-optimization/41442
15506         * fold-const.c (merge_truthop_with_opposite_arm): New function.
15507         (fold_binary_loc): Call it.
15508
15509 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15510
15511         * toplev.c (general_init): Set default for fdiagnostics-show-option.
15512         * opts.c (common_handle_option): Allow disabling it.
15513         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
15514
15515 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
15516
15517         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
15518         between modes if both types are integral.
15519
15520 2010-04-23  Richard Guenther  <rguenther@suse.de>
15521
15522         PR tree-optimization/43572
15523         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
15524
15525 2010-04-23  Richard Guenther  <rguenther@suse.de>
15526
15527         PR lto/43455
15528         * tree-inline.c (tree_can_inline_p): Also check compatibility
15529         of return types.
15530
15531 2010-04-23  Martin Jambor  <mjambor@suse.cz>
15532
15533         PR tree-optimization/43846
15534         * tree-sra.c (struct access): New flag grp_assignment_read.
15535         (build_accesses_from_assign): Set grp_assignment_read.
15536         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
15537         (enum mark_read_status): New type.
15538         (analyze_access_subtree): Propagate grp_assignment_read, create
15539         accesses also if both direct_read and root->grp_assignment_read.
15540
15541 2010-04-23  Martin Jambor  <mjambor@suse.cz>
15542
15543         PR middle-end/43835
15544         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
15545         function does not have type attributes.
15546
15547 2010-04-23  Richard Guenther  <rguenther@suse.de>
15548
15549         PR lto/42653
15550         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
15551         of FUNCTION_DECLs.
15552
15553 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15554
15555         * sese.h (create_if_region_on_edge): Remove.
15556
15557         * sese.c (create_if_region_on_edge): Make static.
15558
15559         * tree-inline.c: Do not include ggc.h.
15560
15561         * expr.c: Do not include ggc.h.
15562
15563         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
15564         dependencies.
15565
15566 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
15567
15568         PR target/43744
15569         * config/sh/sh.c (find_barrier): Don't emit a constant pool
15570         in the middle of insns for casesi_worker_2.
15571
15572 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
15573
15574         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
15575
15576 2010-04-22  Ira Rosen  <irar@il.ibm.com>
15577
15578         PR tree-optimization/43842
15579         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
15580         loop unrolling in update of exit phis. Fix comment.
15581         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
15582         least two reduction statements in the loop before starting SLP
15583         analysis.
15584
15585 2010-04-22  Nick Clifton  <nickc@redhat.com>
15586
15587         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
15588
15589 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
15590
15591         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
15592         to simplify a + ~a.
15593
15594 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15595
15596         * tree-parloops.c (loop_parallel_p): New argument
15597         parloop_obstack.  Pass it down.
15598         (parallelize_loops): New variable parloop_obstack.  Initialize it,
15599         pass it down, free it.
15600
15601         * tree-loop-linear.c (linear_transform_loops): Pass down
15602         lambda_obstack.
15603
15604         * tree-data-ref.h (lambda_compute_access_matrices): New argument
15605         of type struct obstack *.
15606
15607         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
15608         scratch_obstack.  Initialize it, pass down, free it.
15609
15610         * lambda.h (lambda_loop_new): Remove.
15611         (lambda_matrix_new, lambda_matrix_inverse)
15612         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
15613         argument of type struct obstack *.
15614
15615         * lambda-trans.c (lambda_trans_matrix_new): New argument
15616         lambda_obstack.  Pass it down, use obstack allocation for ret.
15617         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
15618         it down.
15619
15620         * lambda-mat.c (lambda_matrix_get_column)
15621         (lambda_matrix_project_to_null): Remove.
15622         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
15623         allocation for mat.
15624         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
15625         lambda_obstack.
15626
15627         * lambda-code.c (lambda_loop_new): New function.
15628         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
15629         (lambda_compute_auxillary_space, lambda_compute_target_space)
15630         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
15631         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
15632         (build_access_matrix): New argument lambda_obstack.  Use obstack
15633         allocation for am.
15634         (lambda_compute_step_signs, lambda_compute_access_matrices): New
15635         argument lambda_obstack.  Pass it down.
15636
15637 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15638
15639         * optabs.h (expand_widening_mult): Declare.
15640
15641 2010-04-22  Richard Guenther  <rguenther@suse.de>
15642
15643         PR tree-optimization/43845
15644         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
15645         lookup the CALL_EXPR function and arguments.
15646
15647 2010-04-22  Nick Clifton  <nickc@redhat.com>
15648
15649         * config/stormy16/stormy16.c
15650         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
15651         * config/stormy16/stormy16.h: Tidy up formatting.
15652         (DONT_USE_BUILTIN_SETJMP): Remove definition.
15653         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
15654         (ineqbranchsi): Delete pattern.
15655         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
15656         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
15657         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
15658         stormy16-lib2-ucmpsi2.c.
15659
15660 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15661
15662         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
15663         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
15664         extra set merge_set_noclobber, and use it to relax the final test
15665         slightly.
15666         * df.h (df_simulate_find_noclobber_defs): Declare.
15667         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
15668         conditional defs.
15669         (df_simulate_find_noclobber_defs): New function.
15670
15671 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
15672
15673         * config/i386/i386.md: Use {} around multi-line preparation statements.
15674
15675 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15676
15677         * c-tree.h (push_init_level, pop_init_level, set_init_index)
15678         (process_init_element): New argument of type struct obstack *.
15679
15680         * c-typeck.c (push_init_level, pop_init_level, set_designator)
15681         (set_init_index, set_init_label, set_nonincremental_init)
15682         (set_nonincremental_init_from_string, find_init_member)
15683         (output_init_element, output_pending_init_elements)
15684         (process_init_element): New argument braced_init_obstack.  Pass it
15685         down.
15686         (push_range_stack, add_pending_init): New argument
15687         braced_init_obstack.  Use obstack allocation.
15688
15689         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
15690         braced_init_obstack.  Pass it down.
15691         (c_parser_braced_init): New variables ret, braced_init_obstack.
15692         Initialize obstack, pass it down and finally free it.
15693
15694 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15695
15696         PR middle-end/29274
15697         * tree-pass.h (pass_optimize_widening_mul): Declare.
15698         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
15699         gate_optimize_widening_mul): New static functions.
15700         (pass_optimize_widening_mul): New.
15701         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
15702         <case MULT_EXPR>: Remove support for widening multiplies.
15703         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
15704         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
15705         simplify_gen_unary rather than directly building extensions.
15706         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
15707         WIDEN_MULT_EXPR.
15708         * expmed.c (expand_widening_mult): New function.
15709         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
15710
15711 2010-04-21  Jan Hubicka  <jh@suse.cz>
15712
15713         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
15714         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
15715         * lto-wpa-fixup.c: Remove.
15716         * Makefile.in (lto-wpa-fixup.o): Remove.
15717         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
15718         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
15719         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
15720
15721 2010-04-21  Jan Hubicka  <jh@suse.cz>
15722
15723         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
15724         add write_optimization_summary, read_optimization_summary.
15725         (ipa_write_summaries_of_cgraph_node_set): Remove.
15726         (ipa_write_optimization_summaries): Declare.
15727         (ipa_read_optimization_summaries): Declare.
15728         * ipa-cp.c (pass_ipa_cp): Update.
15729         * ipa-reference.c (pass_ipa_reference): Update.
15730         * ipa-pure-const.c (pass_ipa_pure_const): Update.
15731         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
15732         Update.
15733         * ipa-inline.c (pass_ipa_inline): Update.
15734         * ipa.c (pass_ipa_whole_program): Update.
15735         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
15736         * passes.c (ipa_write_summaries_1): Do not test wpa.
15737         (ipa_write_optimization_summaries_1): New.
15738         (ipa_write_optimization_summaries): New.
15739         (ipa_read_summaries): Do not test ltrans.
15740         (ipa_read_optimization_summaries_1): New.
15741         (ipa_read_optimization_summaries): New.
15742
15743 2010-04-21  Jan Hubicka  <jh@suse.cz>
15744
15745         * lto-cgraph.c (lto_output_node): Do not output comdat groups
15746         for boundary nodes.
15747         (output_cgraph): Do not arrange comdat groups for boundary nodes.
15748
15749 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15750
15751         PR debug/40040
15752         * dwarf2out.c (add_name_and_src_coords_attributes): Add
15753         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
15754
15755 2010-04-21  Jan Hubicka  <jh@suse.cz>
15756
15757         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
15758
15759 2010-04-21  Jan Hubicka  <jh@suse.cz>
15760
15761         * varpool.c (decide_is_variable_needed): Variable is always needed
15762         during ltrans.
15763
15764 2010-04-21  Jan Hubicka  <jh@suse.cz>
15765
15766         * opts.c (decode_options): Enable pure-const pass for whopr.
15767
15768 2010-04-21  Jan Hubicka  <jh@suse.cz>
15769
15770         * cgraph.c (dump_cgraph_node): Dump also assembler name.
15771         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
15772         at WPA dumping.
15773         (cgraph_decide_inlining): Do not expect callee to be removed in all
15774         cases.
15775
15776 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
15777
15778         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
15779
15780 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
15781
15782         * config/i386/i386.md (x86_shrd): Add athlon_decode and
15783         amdfam10_decode attributes.
15784
15785 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15786
15787         PR middle-end/43570
15788         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
15789         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
15790         (lower_copyprivate_clauses): Use private var in outer
15791         context instead of original var.  Make sure the types
15792         are correct for VLAs.
15793
15794 2010-04-21  Richard Guenther  <rguenther@suse.de>
15795
15796         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
15797         to non-pointer objects.
15798
15799 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15800
15801         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
15802         last chain entry if it starts with the still current label.
15803         (add_location_or_const_value_attribute): Check that
15804         loc_list->first->next is NULL instead of comparing ->first with ->last.
15805         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
15806         to add_var_loc_to_decl.
15807
15808         * dwarf2out.c (output_call_frame_info): For dw_cie_version
15809         >= 4 add also address size and segment size fields into CIE header.
15810
15811         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
15812         long as address size is the same as sizeof (void *) and
15813         segment size is 0.
15814         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
15815         address size or segment size is unexpected, return DW_EH_PE_omit.
15816         (classify_object_over_fdes): If get_cie_encoding returned
15817         DW_EH_PE_omit, return -1.
15818         (init_object): If classify_object_over_fdes returned -1,
15819         pretend there were no FDEs at all.
15820
15821 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
15822
15823         * config/i386/i386.md (bswap<mode>2): Macroize expander from
15824         bswap{si,di}2 using SWI48 mode iterator.
15825         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
15826         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
15827         set modrm attribute of bswap insn to 0 and remove length attribute.
15828         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
15829         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
15830         set mode attribute to <MODE> and remove length attribute.
15831
15832 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
15833
15834         PR rtl-optimization/43520
15835         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
15836         zero available registers.
15837
15838 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15839
15840         * builtins.c (fold_builtin_cproj): Fold more cases.
15841
15842 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15843
15844         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
15845         (fold_builtin_1): Fold builtin cproj.
15846         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
15847         Use ATTR_CONST_NOTHROW_LIST.
15848
15849 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
15850
15851         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
15852         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
15853         ffsi2_no_cmove for !TARGET_CMOVE.
15854         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
15855         (ffssi2): Remove expander.
15856         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
15857         mode iterator.
15858         (ctz<mode>2): Ditto from ctz{si,di}2.
15859         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
15860         mode iterator.
15861         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
15862         mode iterator.
15863
15864 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15865
15866         * dwarf2out.c (AT_linkage_name): Define.
15867         (clone_as_declaration): Handle DW_AT_linkage_name.
15868         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
15869         of DW_AT_MIPS_linkage_name.
15870         (move_linkage_attr): Likewise.
15871         (dwarf2out_finish): Likewise.
15872
15873 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
15874
15875         PR middle-end/41952
15876         * fold-const.c (fold_comparison): New folding rule.
15877
15878 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
15879
15880         * double-int.h (double_int_setbit): Declare.
15881         * double-int.c (double_int_setbit): New function.
15882         * rtl.h (immed_double_int_const): Declare.
15883         * emit-rtl.c (immed_double_int_const): New function.
15884         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
15885         and immed_double_int_const functions.
15886         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
15887         expand_copysign_bit): (Ditto.).
15888         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
15889         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
15890         * dojump.c (prefer_and_bit_test): (Ditto.).
15891         * expr.c (convert_modes, reduce_to_bit_field_precision,
15892         const_vector_from_tree): (Ditto.).
15893         * expmed.c (mask_rtx, lshift_value): (Ditto.).
15894
15895 2010-04-20  Jan Hubicka  <jh@suse.cz>
15896
15897         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
15898         (dump_cgraph_node): Dump new flags.
15899         * cgraph.h (struct cgraph_node): Add flags
15900         reachable_from_other_partition and in_other_partition.
15901         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
15902         other partition can not be removed.
15903         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
15904         the other partition must be output; silence sanity checking on
15905         leaking functions bodies from other paritition.
15906         * lto-cgraph.c (reachable_from_other_partition_p): New function.
15907         (lto_output_node): Output new flags; do not sanity check that inline
15908         clones are output; drop lto_forced_extern_inline_p code; do not mock
15909         visibility flags at partition boundaries.
15910         (add_node_to): New function.
15911         (output_cgraph): Use it to sort functions so masters appear before
15912         clones.
15913         (input_overwrite_node): Input new flags.
15914         * passes.c (ipa_write_summaries): Do not call
15915         lto_new_extern_inline_states.
15916         * lto-section-out.c (forced_extern_inline,
15917         lto_new_extern_inline_states lto_delete_extern_inline_states,
15918         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
15919         * lto-streamer.h (lto_new_extern_inline_states,
15920         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
15921         lto_forced_extern_inline_p): Kill.
15922
15923 2010-04-20  Richard Guenther  <rguenther@suse.de>
15924
15925         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
15926         from vars that can have pointers.
15927         (process_constraint): Dump useless constraints.
15928
15929 2010-04-20  Richard Guenther  <rguenther@suse.de>
15930
15931         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
15932         (dump_sa_points_to_info): Remove asserts.
15933         (init_base_vars): nothing_id isn't an escape point nor does it
15934         have pointers.
15935
15936 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15937
15938         * tree.h (TYPE_REF_IS_RVALUE): Define.
15939         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
15940         should_move_die_to_comdat, prune_unused_types_walk): Handle
15941         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
15942         (modified_type_die, gen_reference_type_die): Emit
15943         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
15944         if TYPE_REF_IS_RVALUE and -gdwarf-4.
15945
15946 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15947
15948         PR target/43635
15949         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
15950         calls for -fpic -m31 if they have been sibcall optimized.
15951
15952 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
15953
15954         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
15955         ar.lc fixed and call-used.
15956
15957         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
15958
15959 2010-04-19  Jan Hubicka  <jh@suse.cz>
15960
15961         * opts.c (decode_options): Disable whpr incompatible passes.
15962         * lto/lto.c (lto_1_to_1_map): Skip clones.
15963         (read_cgraph_and_symbols): Do not mark everything as needed.
15964         (do_whole_program_analysis): Do map only after optimizing;
15965         set proper cgraph_state; use passmanager.
15966
15967 2010-04-19  DJ Delorie  <dj@redhat.com>
15968
15969         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
15970         POINTER_PLUS_EXPR and fix them.
15971
15972 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
15973
15974         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
15975         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
15976         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
15977         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
15978         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
15979         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
15980         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
15981         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
15982         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
15983         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
15984         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
15985
15986 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
15987
15988         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
15989         (check_cond_move_block): Likewise.
15990         (cond_move_process_if_block): Likewise.
15991         (noce_find_if_block): Improve formatting.
15992         (find_if_header): Pass 0 to memset and tweak conditions.
15993         (cond_exec_find_if_block): Fix long lines and tweak conditions.
15994
15995 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
15996
15997         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
15998         for -gdwarf-4.
15999
16000         PR middle-end/43337
16001         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
16002         with non-local decl doesn't need chain.
16003
16004 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
16005
16006         * ira-color.c (allocno_reload_assign): Avoid accumulating
16007         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
16008
16009 2010-04-19  Martin Jambor  <mjambor@suse.cz>
16010
16011         * gimple.h (create_tmp_reg): Declare.
16012         * gimplify.c (create_tmp_reg): New function.
16013         (gimplify_return_expr): Use create_tmp_reg.
16014         (gimplify_omp_atomic): Likewise.
16015         (gimple_regimplify_operands): Likewise.
16016         * tree-dfa.c (make_rename_temp): Likewise.
16017         * tree-predcom.c (predcom_tmp_var): Likewise.
16018         (reassociate_to_the_same_stmt): Likewise.
16019         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
16020         (get_replaced_param_substitute): Likewise.
16021         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16022         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
16023         * tree-ssa-pre.c (get_representative_for): Likewise.
16024         (create_expression_by_pieces): Likewise.
16025         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
16026         (create_tailcall_accumulator): Likewise.
16027
16028 2010-04-19  Martin Jambor  <mjambor@suse.cz>
16029
16030         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
16031         new_stmt.
16032         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
16033
16034 2010-04-19  Richard Guenther  <rguenther@suse.de>
16035
16036         PR tree-optimization/43796
16037         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
16038         from SCEV in the lattice.
16039         (vrp_visit_phi_node): Dump change.
16040
16041 2010-04-19  Richard Guenther  <rguenther@suse.de>
16042
16043         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
16044         * configure: Re-generated.
16045
16046 2010-04-19  Richard Guenther  <rguenther@suse.de>
16047
16048         PR tree-optimization/43783
16049         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
16050         constant ARRAY_REF operands two and three if possible.
16051
16052 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
16053
16054         PR target/43766
16055         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
16056
16057 2010-04-19  Jie Zhang  <jie@codesourcery.com>
16058
16059         PR target/43662
16060         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
16061
16062 2010-04-19  Ira Rosen  <irar@il.ibm.com>
16063
16064         PR tree-optimization/37027
16065         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
16066         and macro to access it.
16067         (vectorizable_reduction): Add argument.
16068         (vect_get_slp_defs): Likewise.
16069         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
16070         statements for possible use in SLP.
16071         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
16072         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
16073         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
16074         add new argument.
16075         (vectorizable_reduction): Likewise.
16076         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
16077         vect_get_slp_defs.
16078         (vectorizable_type_demotion, vectorizable_type_promotion,
16079         vectorizable_store): Likewise.
16080         (vect_analyze_stmt): Update call to vectorizable_reduction.
16081         (vect_transform_stmt): Likewise.
16082         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
16083         (vect_build_slp_tree): Fix indentation. Check that there are no loads
16084         from different interleaving chains in same node.
16085         (vect_slp_rearrange_stmts): New function.
16086         (vect_supported_load_permutation_p): Allow load permutations for
16087         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
16088         inside SLP nodes if necessary.
16089         (vect_analyze_slp_instance): Handle reductions.
16090         (vect_analyze_slp): Try to build SLP instances originating from groups
16091         of reductions.
16092         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
16093         (vect_get_constant_vectors): Create initial vectors for reductions
16094         according to reduction code. Add new argument.
16095         (vect_get_slp_defs): Add new argument, pass it to
16096         vect_get_constant_vectors.
16097         (vect_schedule_slp_instance): Remove SLP tree root statements.
16098
16099 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
16100
16101         * tree.h (ENUM_IS_SCOPED): Define.
16102         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
16103         for ENUM_IS_SCOPED enums.
16104
16105 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16106
16107         * fold-const.c (fold_comparison): Use ssizetype.
16108         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16109         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
16110         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
16111         * tree-object-size.c (compute_object_sizes): Use size_type_node.
16112
16113         * tree.h (initialize_sizetypes): Remove parameter.
16114         (build_common_tree_nodes): Remove second parameter.
16115         * stor-layout.c (initialize_sizetypes): Remove parameter.
16116         Always create an unsigned type.
16117         (set_sizetype): Assert that the passed type is unsigned and simplify.
16118         * tree.c (build_common_tree_nodes): Remove second parameter.
16119         Adjust call to initialize_sizetypes.
16120         * c-decl.c (c_init_decl_processing): Remove second argument in call to
16121         build_common_tree_nodes.
16122
16123 2010-04-18  Matthias Klose  <doko@ubuntu.com>
16124
16125         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
16126
16127 2010-04-18  Ira Rosen  <irar@il.ibm.com>
16128
16129         PR tree-optimization/43771
16130         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
16131         load permutation doesn't have gaps.
16132
16133 2010-04-18  Jan Hubicka  <jh@suse.cz>
16134
16135         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
16136         (sse_prologue_save_insn expander): Use new pattern.
16137         (sse_prologue_save_insn1): New pattern and splitter.
16138         (sse_prologue_save_insn): Update to deal also with 64bit aligned
16139         blocks.
16140         * i386.c (setup_incoming_varargs_64): Do not compute jump
16141         destination here.
16142         (ix86_gimplify_va_arg): Update alignment needed.
16143         (ix86_local_alignment): Do not align all local arrays to 128bit.
16144
16145 2010-04-17  Jan Hubicka  <jh@suse.cz>
16146
16147         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
16148
16149 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16150
16151         * arm.md (negdi2): Remove redundant code to force values into a
16152         register.
16153
16154 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16155
16156         * arm/bpabi.S: Add EABI alignment attributes to objects.
16157         * arm/bpabi-v6m.S: Likewise.
16158         * arm/crti.asm: Likewise.
16159         * arm/crtn.asm: Likewise.
16160         * arm/lib1funcs.asm: Likewise.
16161         * arm/libunwind.S: Likewise.
16162
16163 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16164
16165         * arm-protos.h (tune_params): New structure.
16166         * arm.c (current_tune): New variable.
16167         (arm_constant_limit): Delete.
16168         (struct processors): Add pointer to the tune parameters.
16169         (arm_slowmul_tune): New tuning option.
16170         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
16171         (all_cores): Adjust to pick up the tuning model.
16172         (arm_constant_limit): New function.
16173         (arm_override_options): Select the appropriate tuning model.  Delete
16174         initialization of arm_const_limit.
16175         (arm_split_constant): Use the new constant-limit model.
16176         (arm_rtx_costs): Pick up the current tuning model.
16177         * arm.md (is_strongarm, is_xscale): Delete.
16178         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
16179         for Xscale variant architectures.
16180         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
16181
16182 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16183
16184         * config/arm/arm.c (arm_gen_constant): Remove unused variable
16185         can_shift.
16186         (arm_rtx_costs_1): Remove unused variable extra_cost.
16187         (arm_unwind_emit_set): Use variable offset.
16188         (thumb1_output_casesi): Remove unused variable flags.
16189
16190 2010-04-16  Jeff Law  <law@redhat.com>
16191
16192         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
16193         needing assignment rather than doing a two-phase assignment.  Remove
16194         unused variable 'm'.
16195
16196 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
16197
16198         PR bootstrap/43767
16199         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
16200
16201 2010-04-16  Doug Kwan  <dougkwan@google.com>
16202
16203         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
16204         (next_operand_entry_id): New static variable.
16205         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
16206         (add_to_ops_vec): Assigned unique ID to operand entry.
16207         (struct oecount_s): New field ID.
16208         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
16209         (undistribute_ops_list): Assign unique IDs to oecounts.
16210         (init_reassoc): reset next_operand_entry_id.
16211
16212 2010-04-16  Doug Kwan  <dougkwan@google.com>
16213
16214         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
16215         missing left parenthesis.
16216
16217 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
16218
16219         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
16220         *btdi_rex64 using SWI48 mode iterator.
16221         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
16222         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
16223         *jcc_btdi_mask_rex64.
16224
16225 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
16226
16227         * double-int.h (tree_to_double_int): Convert to macro.
16228         * double-int.c (tree_to_double_int): Remove.
16229
16230 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
16231
16232         PR debug/43762
16233         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
16234         with want_address 2 and in case a single element list might be
16235         possible, call it again with want_address 0.
16236
16237 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16238
16239         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
16240         case 'W' print operands for HI mode.
16241         * config/h8300/h8300.h (Y0, Y2) : New constraints.
16242         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
16243         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
16244         * config/h8300/predicate.md (bit_register_indirect_operand): New.
16245
16246         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
16247
16248         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
16249         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
16250         #xx:3 and #xx:4 mode.
16251
16252         * config/h8300/h8300.md (inverted load with HImode dest): Add
16253         support for H8300SX.
16254
16255         * config/h8300/predicate.md (bit_operand): Allow immediate values that
16256         satisfy 'U' constraint.
16257
16258 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16259
16260         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
16261         * configure: Regenerate.
16262         * config.in: Regenerate.
16263         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
16264         works.
16265
16266 2010-04-16  Richard Guenther  <rguenther@suse.de>
16267
16268         * tree.h (struct tree_decl_minimal): Move pt_uid ...
16269         (struct tree_decl_common): ... here.
16270         (DECL_PT_UID): Adjust.
16271         (SET_DECL_PT_UID): Likewise.
16272         (DECL_PT_UID_SET_P): Likewise.
16273
16274 2010-04-16  Richard Guenther  <rguenther@suse.de>
16275
16276         PR tree-optimization/43572
16277         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
16278         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
16279         * tree-flow.h (is_call_clobbered): Remove.
16280         * tree-flow-inline.h (is_call_clobbered): Likewise.
16281         * tree-dfa.c (dump_variable): Do not dump call clobber state.
16282         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
16283         (execute_return_slot_opt): Adjust.
16284         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
16285         check for call clobbered vars here.
16286         (find_tail_calls): Move tailcall verification to the
16287         proper place.
16288
16289 2010-04-16  Diego Novillo  <dnovillo@google.com>
16290
16291         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
16292
16293 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
16294
16295         PR target/40603
16296         * config/arm/arm.md (cbranchqi4): New pattern.
16297         * config/arm/predicates.md (const0_operand,
16298         cbranchqi4_comparison_operator): New predicates.
16299
16300 2010-04-16  Richard Guenther  <rguenther@suse.de>
16301
16302         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
16303         (dump_gimple_stmt): Likewise.
16304
16305 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
16306
16307         * recog.h (struct recog_data): New field is_operator.
16308         (struct insn_operand_data): New field is_operator.
16309         * recog.c (extract_insn): Set recog_data.is_operator.
16310         * genoutput.c (output_operand_data): Emit code to set the
16311         is_operator field.
16312         * reload.c (find_reloads): Use it rather than testing for an
16313         empty constraint string.
16314
16315         PR target/41514
16316         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
16317         If the previous insn is a cbranchsi4_insn with the same arguments,
16318         omit the compare instruction.
16319
16320         * config/arm/arm.md (addsi3_cbranch): If destination is a high
16321         register, inputs must be low registers and we need a low register
16322         scratch.  Handle alternative 2 like alternative 3.
16323
16324 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
16325
16326         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
16327         don't call get_addr on both.  If one expression is a VALUE and
16328         the other a REG, check VALUE's locs if the REG isn't among them.
16329
16330 2010-04-16  Christian Bruel  <christian.bruel@st.com>
16331
16332         * config/sh/sh.h (sh_frame_pointer_required): New function.
16333         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
16334         (flag_omit_frame_pointer) Set.
16335         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
16336         (rounded_frame_size): Adjust size with outgoing_args_size.
16337         (sh_set_return_address): Must return from stack pointer.
16338         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
16339         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
16340         (ACCUMULATE_OUTGOING_ARGS): Define.
16341         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
16342         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
16343
16344 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
16345
16346         PR target/43471
16347         * config/sh/sh.c (sh_legitimize_reload_address): Use
16348         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
16349         Remove a unneeded check for offset_base.
16350
16351 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
16352
16353         * configure: Regenerated.
16354
16355 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16356
16357         * config/s390/s390.c (s390_call_save_register_used): Switch back
16358         to HARD_REGNO_NREGS.
16359
16360 2010-04-15  Richard Guenther  <rguenther@suse.de>
16361
16362         * alias.c (alias_set_subset_of): Handle alias-set zero
16363         child properly.
16364
16365 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
16366             Julian Brown  <julian@codesourcery.com>
16367
16368         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
16369         alternatives according to use of high and low regs.
16370         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16371         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
16372         optimizing for size on Thumb-2.
16373
16374 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
16375
16376         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
16377
16378 2010-04-15  Richard Guenther  <rguenther@suse.de>
16379
16380         * tree-ssa-structalias.c (struct variable_info): Add
16381         is_fn_info flag.
16382         (new_var_info): Initialize it.
16383         (dump_constraints): Support printing last added constraints.
16384         (debug_constraints): Adjust.
16385         (dump_constraint_graph): Likewise.
16386         (make_heapvar_for): Check for NULL cfun.
16387         (get_function_part_constraint): New function.
16388         (get_fi_for_callee): Likewise.
16389         (find_func_aliases): Properly implement IPA PTA constraints.
16390         (process_ipa_clobber): New function.
16391         (find_func_clobbers): Likewise.
16392         (insert_into_field_list_sorted): Remove.
16393         (create_function_info_for): Properly allocate vars for IPA mode.
16394         Do not use insert_into_field_list_sorted.
16395         (create_variable_info_for): Properly generate constraints for
16396         global vars in IPA mode.
16397         (dump_solution_for_var): Always dump the solution.
16398         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
16399         (find_what_var_points_to): Adjust.
16400         (pt_solution_set): Change.
16401         (pt_solution_ior_into): New function.
16402         (pt_solution_empty_p): Export.
16403         (pt_solution_includes_global): Adjust.
16404         (pt_solution_includes_1): Likewise.
16405         (pt_solutions_intersect_1): Likewise.
16406         (dump_sa_points_to_info): Check some invariants.
16407         (solve_constraints): Move constraint dumping ...
16408         (compute_points_to_sets): ... here.
16409         (ipa_pta_execute): ... and here.
16410         (compute_may_aliases): Do not re-compute points-to info
16411         locally if IPA info is available.
16412         (ipa_escaped_pt): New global var.
16413         (ipa_pta_execute): Properly implement IPA PTA.
16414         * tree-into-ssa.c (dump_decl_set): Support dumping
16415         decls not in referenced-vars.
16416         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
16417         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
16418         (dump_points_to_solution): Likewise.
16419         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
16420         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
16421         (remap_gimple_stmt): Reset call clobber/use information if necessary.
16422         (copy_decl_to_var): Copy DECL_PT_UID.
16423         (copy_result_decl_to_var): Likewise.
16424         * tree.c (make_node_stat): Initialize DECL_PT_UID.
16425         (copy_node_stat): Copy it.
16426         * tree.h (DECL_PT_UID): New macro.
16427         (SET_DECL_PT_UID): Likewise.
16428         (DECL_PT_UID_SET_P): Likewise.
16429         (struct tree_decl_minimal): Add pt_uid member.
16430         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
16431         (pt_solution_empty_p): Declare.
16432         (pt_solution_set): Adjust.
16433         (ipa_escaped_pt): Declare.
16434         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
16435         * gimple-pretty-print.c (pp_points_to_solution): New function.
16436         (dump_gimple_call): Dump call clobber/use information.
16437         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
16438         * tree-pass.h (TDF_ALIAS): New dump option.
16439         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
16440         * doc/invoke.texi (-fipa-pta): Update documentation.
16441
16442 2010-04-15  Richard Guenther  <rguenther@suse.de>
16443
16444         * Makefile.in (OBJS-common): Add gimple-fold.o.
16445         (gimple-fold.o): New rule.
16446         * tree.h (maybe_fold_offset_to_reference,
16447         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
16448         prototypes ...
16449         * gimple.h: ... here.
16450         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
16451         may_propagate_address_into_dereference): Move prototypes ...
16452         * gimple.h: ... here.
16453         * tree-ssa-ccp.c (get_symbol_constant_value,
16454         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
16455         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
16456         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
16457         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
16458         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
16459         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
16460         gimplify_and_update_call_from_tree): Move ...
16461         * gimple-fold.c: ... here.  New file.
16462         (ccp_fold_builtin): Rename to ...
16463         (gimple_fold_builtin): ... this.
16464         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
16465
16466 2010-04-15  Richard Guenther  <rguenther@suse.de>
16467
16468         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
16469         fit_double_type, force_fit_type_double, add_double_with_sign,
16470         neg_double, mul_double_with_sign, lshift_double, rshift_double,
16471         lrotate_double, rrotate_double, div_and_round_double): Move ...
16472         * double-int.c: ... here.
16473         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
16474         add_double, neg_double, mul_double_with_sign, mul_double,
16475         lshift_double, rshift_double, lrotate_double, rrotate_double,
16476         div_and_round_double): Move prototypes ...
16477         * double-int.h: ... here.
16478
16479 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
16480
16481         PR target/43742
16482         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
16483         matching constraints to ensure inputs match the output.
16484
16485 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
16486
16487         PR target/43742
16488         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
16489         in an input-only operand.
16490
16491 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
16492
16493         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
16494         (double_int_not, double_int_lshift, double_int_rshift): Declare.
16495         (double_int_negative_p): Convert to static inline function.
16496         * double-int.c (double_int_lshift, double_int_lshift): New functions.
16497         (double_int_negative_p): Remove.
16498         * tree.h (lshift_double, rshift_double):
16499         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
16500         * fold-const.c (fold_convert_const_int_from_real,
16501         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
16502         (lshift_double): Change type of arith argument to bool.
16503         (rshift_double): Change type of arith argument to bool. Correct
16504         comment.
16505         * expmed.c (mask_rtx, lshift_value): (Ditto.).
16506
16507 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
16508
16509         PR target/21803
16510         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
16511         at the start and end of the then/else blocks, and omit them from the
16512         conversion.
16513         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
16514         argument; all callers changed.  Pass zero to old_insns_match_p instead.
16515         (flow_find_head_matching_sequence): New function.
16516         (old_insns_match_p): Check REG_EH_REGION notes for calls.
16517         * basic-block.h (flow_find_cross_jump,
16518         flow_find_head_matching_sequence): Declare functions.
16519
16520 2010-04-14  Jason Merrill  <jason@redhat.com>
16521
16522         PR c++/36625
16523         * c-common.c (attribute_takes_identifier_p): New fn.
16524         * c-common.h: Declare it.
16525
16526 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16527
16528         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
16529         splitter condition.
16530         (*udivmod<mode>4): Ditto.
16531
16532 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16533
16534         * config/i386/i386.md (maxmin_int): Rename code attribute from
16535         maxminiprefix and update all users.
16536         (maxmin_float): Ditto from maxminfprefix.
16537         (logic): Ditto from logicprefix.
16538         (absneg_mnemonic): Ditto from absnegprefix.
16539         * config/i386/mmx.md: Update all users of maxminiprefix,
16540         maxminfprefix and logicprefix for rename.
16541         * config/i386/sse.md: Ditto.
16542         * config/i386/sync.md (sync_<code><mode>): Update for
16543         logicprefix rename.
16544
16545 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16546
16547         PR 42966
16548         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
16549         warnings converted to errors.
16550
16551 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16552
16553         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
16554         used insn_type variable.
16555         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
16556         to avoid set-but-not-used warning.
16557
16558 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16559
16560         * df-core.c (df_ref_debug): Change format string placeholder
16561         from 0x%x to %#x.
16562         * dwarf2asm.c (dw2_asm_output_data_raw,
16563         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
16564         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
16565         * dwarf2out.c (output_cfi, output_cfi_directive,
16566         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
16567         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
16568         Ditto.
16569         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
16570         * print-rtl.c (print_rtx): Ditto.
16571
16572 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16573
16574         PR middle-end/42694
16575         * builtins.c (expand_builtin_pow_root): New function to expand pow
16576         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
16577         series of sqrt and cbrt calls under -ffast-math.
16578         (expand_builtin_pow): Call it.
16579
16580 2010-04-14  Michael Matz  <matz@suse.de>
16581
16582         PR tree-optimization/42963
16583         * tree-cfg.c (touched_switch_bbs): New static variable.
16584         (group_case_labels_stmt): New function broken out from ...
16585         (group_case_labels): ... here, use the above.
16586         (start_recording_case_labels): Allocate touched_switch_bbs.
16587         (end_recording_case_labels): Deallocate it, call
16588         group_case_labels_stmt.
16589         (gimple_redirect_edge_and_branch): Remember index of affected BB.
16590
16591 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16592
16593         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
16594         from insn template.
16595
16596 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16597
16598         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
16599
16600 2010-04-13  Jan Hubicka  <jh@suse.cz>
16601
16602         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
16603         of optimized out static functions.
16604         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
16605         cost computation.  Also sanity check for overflows.
16606         (update_caller_keys): Update cgraph_edge_badness call; properly
16607         update fibheap and sanity check that it is up to date.
16608         (add_new_edges_to_heap): Update cgraph_edge_badness.
16609         (cgraph_decide_inlining_of_small_function): Likewise;
16610         add sanity checking that badness in heap is up to date;
16611         improve dumping of reason; Update badness of calls to the
16612         offline copy of function currently inlined; dump badness
16613         of functions not inlined because of unit growth limits.
16614
16615 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
16616
16617         PR middle-end/32628
16618         * c-common.c (pointer_int_sum): Disregard overflow that occured only
16619         because of sign-extension change when converting to sizetype here...
16620         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
16621
16622         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
16623         the folding to constants.  Remove redundant final conversion.
16624         (fold_binary) <associate>: Do not associate if the re-association of
16625         constants alone overflows.
16626         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
16627         to the end of the list.
16628         (multiple_of_p) <COND_EXPR>: New case.
16629
16630 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16631
16632         * opt-functions.awk (opt_sanitized_name): New.
16633         (opt_enum): New.
16634         * optc-gen.awk: Use it
16635         * opth-gen.awk: Use it.
16636
16637 2010-04-13  Martin Jambor  <mjambor@suse.cz>
16638
16639         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
16640         (sra_modify_assign): Delete stmts loading dead data even if racc has no
16641         children.  Call replace_uses_with_default_def_ssa_name to handle
16642         SSA_NAES on lhs.
16643
16644 2010-04-13  Michael Matz  <matz@suse.de>
16645
16646         PR middle-end/43730
16647         * builtins.c (expand_builtin_interclass_mathfn): Also create
16648         a register if the predicate doesn't match.
16649
16650 2010-04-13  Diego Novillo  <dnovillo@google.com>
16651
16652         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
16653         * c-pch.c: Include timevar.h.
16654         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
16655         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
16656         * ggc-common.c: Include timevar.h.
16657         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
16658         * timevar.def (TV_PCH_SAVE): Define.
16659         (TV_PCH_CPP_SAVE): Define.
16660         (TV_PCH_PTR_REALLOC): Define.
16661         (TV_PCH_PTR_SORT): Define.
16662         (TV_PCH_RESTORE): Define.
16663         (TV_PCH_CPP_RESTORE): Define.
16664
16665 2010-04-13  Michael Matz  <matz@suse.de>
16666
16667         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
16668         into MINUS_EXPRs.
16669         (can_reassociate_p): New function.
16670         (break_up_subtract_bb, reassociate_bb): Use it.
16671
16672 2010-04-13  Richard Guenther  <rguenther@suse.de>
16673
16674         PR bootstrap/43737
16675         * builtins.c (c_readstr): Fix assert.
16676
16677 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
16678
16679         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
16680         when generating cltd insn.
16681
16682         (*ashl<mode>3_1): Remove special handling for register operand 2.
16683         (*ashlsi3_1_zext): Ditto.
16684         (*ashlhi3_1): Ditto.
16685         (*ashlhi3_1_lea): Ditto.
16686         (*ashlqi3_1): Ditto.
16687         (*ashlqi3_1_lea): Ditto.
16688         (*<shiftrt_insn><mode>3_1): Ditto.
16689         (*<shiftrt_insn>si3_1_zext): Ditto.
16690         (*<shiftrt_insn>qi3_1_slp): Ditto.
16691         (*<rotate_insn><mode>3_1): Ditto.
16692         (*<rotate_insn>si3_1_zext): Ditto.
16693         (*<rotate_insn>qi3_1_slp): Ditto.
16694
16695 2010-04-13  Richard Guenther  <rguenther@suse.de>
16696
16697         * tree-ssa-structalias.c (callused_id): Remove.
16698         (call_stmt_vars): New.
16699         (get_call_vi): Likewise.
16700         (lookup_call_use_vi): Likewise.
16701         (lookup_call_clobber_vi): Likewise.
16702         (get_call_use_vi): Likewise.
16703         (get_call_clobber_vi): Likewise.
16704         (make_transitive_closure_constraints): Likewise.
16705         (handle_const_call): Adjust to do per-call call-used handling.
16706         (handle_pure_call): Likewise.
16707         (find_what_var_points_to): Remove general callused handling.
16708         (init_base_vars): Likewise.
16709         (init_alias_vars): Initialize call_stmt_vars.
16710         (compute_points_to_sets): Process call-used and call-clobbered
16711         vars for call statements.
16712         (delete_points_to_sets): Free call_stmt_vars.
16713
16714 2010-04-13  Richard Guenther  <rguenther@suse.de>
16715
16716         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16717         Only add RW dependence for dependence distance zero.
16718         Adjust maximal vectorization factor according to dependences.
16719         Move alignment handling ...
16720         (vect_find_same_alignment_drs): ... here.  New function.
16721         (vect_analyze_data_ref_dependences): Adjust.
16722         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
16723         (vect_analyze_data_refs): Adjust minimal vectorization factor
16724         according to data references.
16725         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
16726         dependences before determining the vectorization factor.
16727         Analyze alignment after determining the vectorization factor.
16728         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
16729         dependences before alignment.
16730         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
16731         Adjust prototype.
16732         (vect_analyze_data_refs): Likewise.
16733         (MAX_VECTORIZATION_FACTOR): New define.
16734
16735 2010-04-13  Duncan Sands  <baldrick@free.fr>
16736
16737         * except.h (lang_eh_type_covers): Remove.
16738         * except.c (lang_eh_type_covers): Likewise.
16739
16740 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16741             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16742
16743         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
16744         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
16745         UNITS_PER_LONG where it is ABI relevant.
16746         (s390_return_addr_rtx): Likewise.
16747         (s390_back_chain_rtx): Likewise.
16748         (s390_frame_area): Likewise.
16749         (s390_frame_info): Likewise.
16750         (s390_initial_elimination_offset): Likewise.
16751         (save_gprs): Likewise.
16752         (s390_emit_prologue): Likewise.
16753         (s390_emit_epilogue): Likewise.
16754         (s390_function_arg_advance): Likewise.
16755         (s390_function_arg): Likewise.
16756         (s390_va_start): Likewise.
16757         (s390_gimplify_va_arg): Likewise.
16758         (s390_function_profiler): Likewise.
16759         (s390_optimize_prologue): Likewise.
16760         (s390_rtx_costs): Likewise.
16761         (s390_secondary_reload): Likewise.
16762         (s390_promote_function_mode): Likewise.
16763         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
16764         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
16765         registers available.
16766         (s390_unwind_word_mode): New function.
16767         (s390_function_value): Split 64 bit values into register pair if
16768         used as return value.
16769         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
16770         function call parameters.  Handle parallels.
16771         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
16772         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
16773         (DWARF_CIE_DATA_ALIGNMENT): New macro.
16774         (s390_expand_setmem): Remove unused variable src_addr.
16775         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
16776         deal with 64 bit registers.
16777         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
16778         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
16779         (UNITS_PER_LONG): New macro.
16780         * libjava/include/s390-signal.h: Define extended ucontext
16781         structure containing the upper halfs of the 64 bit registers.
16782
16783 2010-04-13  Simon Baldwin  <simonb@google.com>
16784
16785         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
16786
16787 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
16788
16789         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
16790         rvalue on the RHS if the LHS is of a non-renamable type.
16791         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
16792
16793 2010-04-13  Matthias Klose  <doko@ubuntu.com>
16794
16795         * gcc.c (cc1_options): Handle -iplugindir before processing
16796         the cc1 spec. Only add -iplugindir once.
16797         (cpp_unique_options): Add -iplugindir option if -fplugin* options
16798         found.
16799         * common.opt (iplugindir): Remove `Separate' property, initialize.
16800         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
16801         option.
16802         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
16803         (distclean): Remove plugin dir.
16804         * doc/invoke.texi: Document -iplugindir.
16805
16806 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
16807
16808         * doc/plugins.texi (Loading Plugins): Document short
16809         -fplugin=foo option.
16810         (Plugin API): Mention default_plugin_dir_name function.
16811
16812         * gcc.c (find_file_spec_function): Add new declaration.
16813         (static_spec_func): Use it for "find-file".
16814         (find_file_spec_function): Add new function.
16815         (cc1_options): Add -iplugindir option if -fplugin* options found.
16816
16817         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
16818
16819         * plugin.c (add_new_plugin): Updated comment, and handle short
16820         plugin name.
16821         (default_plugin_dir_name): Added new function.
16822
16823         * common.opt (iplugindir): New option to set the plugin directory.
16824
16825 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
16826
16827         * config/i386/i386.md (any_rotate): New code iterator.
16828         (rotate_insn): New code attribute.
16829         (rotate): Ditto.
16830         (SWIM124): New mode iterator.
16831         (<rotate_insn>ti3): New expander.
16832         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
16833         any_rotate code iterator.
16834         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
16835         using any_rotate code iterator and SWIM124 mode iterator.
16836         (ix86_rotlti3): New insn_and_split pattern.
16837         (ix86_rotrti3): Ditto.
16838         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
16839         ix86_rotl{di,ti}3 patterns.
16840         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
16841         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
16842         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
16843         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
16844         code iterator and SWI mode iterator.
16845         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
16846         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
16847         code iterator.
16848         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
16849         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
16850         (bswap rotatert splitter): Add splitter.
16851         (bswap splitter): Macroize splitter using any_rotate code iterator.
16852         Add insn predicate to split only for TARGET_USE_XCHGB or when
16853         optimizing function for size.
16854
16855 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16856
16857         * config/pa/pa.c (emit_move_sequence): Remove use of
16858         deleted variable flag_argument_noalias.
16859
16860 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16861
16862         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
16863         configurations.
16864         Add to unsupported targets list.
16865         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
16866         sparc*-sun-solaris2.[567]* from target lists.
16867         * configure: Regenerate.
16868         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
16869         removal.
16870         Remove Solaris 7 patch references.
16871         (Specific, sparc-sun-solaris2.7): Removed.
16872         (sparc-sun-solaris2*): Update Solaris 7 example.
16873         (sparc64-*-solaris2*): Likewise.
16874
16875 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16876
16877         * config.build (alpha*-dec-osf4*): Remove.
16878         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
16879         of obsolete configurations.
16880         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
16881         support.
16882         * config/alpha/t-osf4: Renamed to ...
16883         * config/alpha/t-osf5: ... this.
16884         * config/alpha/osf.h: Renamed to ...
16885         * config/alpha/osf5.h: ... this.
16886         Merged old osf5.h contents.
16887         Update comments.
16888         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
16889         (EXTRA_SPECS): Removed.
16890         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
16891         reflect removal of Tru64 UNIX V4.0/V5.0 support.
16892         Document that.
16893
16894 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16895
16896         * doc/contrib.texi (Contributors, Rainer Orth): Update.
16897
16898 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
16899
16900         PR/43702
16901         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
16902         __thiscall convention.
16903
16904 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16905
16906         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
16907         orig_base.
16908         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
16909
16910 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16911
16912         * function.c (assign_parms_initialize_all): Add unused attribute
16913         to fntype.
16914
16915 2010-04-12  Richard Guenther  <rguenther@suse.de>
16916
16917         * gsstruct.def (GSS_CALL): New.
16918         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
16919         * gimple.h: Include tree-ssa-alias.h.
16920         (struct gimple_statement_call): New.
16921         (union gimple_statement_struct_d): Add gimple_call member.
16922         (gimple_call_reset_alias_info): Declare.
16923         (gimple_call_use_set): New function.
16924         (gimple_call_clobber_set): Likewise.
16925         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
16926         * gimple.c (gimple_call_reset_alias_info): New function.
16927         (gimple_build_call_1): Call it.
16928         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16929         * tree-inline.c (remap_gimple_stmt): Likewise.
16930         (expand_call_inline): Remove callused handling.
16931         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
16932         * tree-dfa.c (dump_variable): Likewise.
16933         * tree-parloops.c (parallelize_loops): Likewise.
16934         * tree-ssa.c (init_tree_ssa): Likewise.
16935         (delete_tree_ssa): Likewise.
16936         * tree-flow-inline.h (is_call_used): Remove.
16937         * tree-flow.h (struct gimple_df): Remove callused member.
16938         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
16939         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
16940         (ref_maybe_used_by_call_p_1): Simplify.
16941         (call_may_clobber_ref_p_1): Likewise.
16942         * tree-ssa-structalias.c (compute_points_to_sets): Set
16943         the call stmt used and clobbered sets.
16944         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
16945         (find_tail_calls): Verify the tail call.
16946
16947 2010-04-12  Richard Guenther  <rguenther@suse.de>
16948
16949         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
16950         single-iteration always-inline inlining.
16951         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
16952         (cgraph_decide_inlining): Do not handle always-inline specially.
16953         (try_inline): Remove always-inline cycle detection special case.
16954         Do not recurse on always-inlines.
16955         (cgraph_early_inlining): Do not iterate if not optimizing.
16956         (cgraph_gate_early_inlining): remove.
16957         (pass_early_inline): Run unconditionally.
16958         (gate_cgraph_decide_inlining): New function.
16959         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
16960         not inlining or optimizing.
16961         (cgraph_decide_inlining_of_small_functions): Also consider
16962         always-inline functions.
16963         (cgraph_default_inline_p): Return true for nodes which should
16964         disregard inline limits.
16965         (estimate_function_body_sizes): Assume zero size and time for
16966         nodes which are marked as disregarding inline limits.
16967         (cgraph_decide_recursive_inlining): Do not perform recursive
16968         inlining on always-inline nodes.
16969
16970 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
16971
16972         PR bootstrap/43699
16973         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
16974         for exprs satisfying handled_component_p.
16975
16976 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
16977
16978         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
16979         non-constant aggregate elements.
16980
16981         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
16982         is a real initialization.
16983
16984 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
16985
16986         PR c/36774
16987         * c-decl.c (start_function): Move forward check for nested function.
16988
16989 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16990
16991         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
16992         * config/sh/sh.c: Include reload.h.
16993         (sh_legitimize_reload_address): New.
16994         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
16995         sh_legitimize_reload_address.
16996
16997 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16998
16999         * config/sh/sh.md (*movqi_pop): New insn pattern.
17000         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
17001
17002 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
17003
17004         * config/i386/i386.md (any_shiftrt): New code iterator.
17005         (shiftrt_insn): New code attribute.
17006         (shiftrt): Ditto.
17007         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
17008         using any_shiftrt code iterator.
17009         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
17010         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
17011         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
17012         pattern from corresponding peephole2 patterns.
17013         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
17014         using any_shiftrt code iterator.
17015         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
17016         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
17017         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
17018         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
17019         *{ashr,lshr}<mode>3_cmp_zext.
17020         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
17021
17022 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
17023
17024         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
17025         scratch register.
17026         (*lshr<mode>3_cconly): Ditto.
17027
17028 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
17029
17030         * config/i386/i386.md (lshr<mode>3): Macroize expander from
17031         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17032         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
17033         pattern from *lshr{di,ti}3_1 and corresponding splitters using
17034         DWI mode iterator.
17035         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17036         from corresponding peephole2 patterns.
17037         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
17038         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
17039         and *lshrdi3_1_rex64 using SWI mode iterator.
17040         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
17041         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
17042         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
17043         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
17044         and *lshrdi3_cmp_rex64 using SWI mode iterator.
17045         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
17046         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
17047         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
17048         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
17049         SWI mode iterator.
17050
17051 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
17052
17053         * config/i386/i386.md (ashr<mode>3): Macroize expander from
17054         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17055         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
17056         pattern from *ashr{di,ti}3_1 and corresponding splitters using
17057         DWI mode iterator.
17058         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17059         from corresponding peephole2 patterns.
17060         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
17061         (ashrsi3_cvt): Rename from ashrsi3_31.
17062         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
17063         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
17064         and x86_64_shift_adj_3 using SWI48 mode iterator.
17065         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
17066         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
17067         and *ashrdi3_1_rex64 using SWI mode iterator.
17068         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
17069         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
17070         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
17071         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
17072         and *ashrdi3_cmp_rex64 using SWI mode iterator.
17073         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
17074         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
17075         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
17076         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
17077         SWI mode iterator.
17078         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
17079         * config/i386/i386.c (ix86_split_ashr): Update for renamed
17080         x86_shift<mode>_adj_3 expanders.
17081
17082 2010-04-10  Wei Guozhi  <carrot@google.com>
17083
17084         PR target/42601
17085         * config/arm/arm.c (arm_pic_static_addr): New function.
17086         (legitimize_pic_address): Call arm_pic_static_addr when it detects
17087         a static symbol.
17088         (arm_output_addr_const_extra): Output expression for new pattern.
17089         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
17090
17091 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
17092
17093         * ira-costs.c (record_reg_classes): Ignore alternatives that are
17094         not enabled.
17095
17096         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
17097         * web.c: Include "insn-config.h" and "recog.h".
17098         (union_match_dups): New function.
17099         (web_main): Call it.
17100         (union_defs): Don't try to recognize match_dups.
17101
17102         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
17103         if doing so would replace the entire pattern.
17104
17105 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
17106
17107         PR target/43707
17108         PR target/43709
17109         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
17110         and splitter pattern.  Change splitter operand 1 predicate to
17111         nonmemory_operand.
17112
17113 2010-04-09  Martin Jambor  <mjambor@suse.cz>
17114
17115         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
17116         lattices are addresses of CONST_DECLs with the same initial value.
17117         (ipcp_print_all_lattices): Print values of CONST_DECLs.
17118         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
17119
17120 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
17121             Bernd Schmidt  <bernds@codesourcery.com>
17122
17123         * loop-invariant.c (replace_uses): New static function.
17124         (move_invariant_reg): Use it to ensure we can replace the uses.
17125
17126 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
17127
17128         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
17129         function template.
17130         (picochip_override_options): Enable section anchors only above -O1.
17131         (picochip_reorg): Fixed a couple of build warnings.
17132
17133 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17134
17135         * configure.ac (plugin -rdynamic test): Log result.
17136         * configure: Regenerate.
17137         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
17138         (RDYNAMIC_SPEC): Define.
17139         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
17140
17141 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17142
17143         * configure.ac: Determine Sun ld version numbers.
17144         (comdat_group): Restrict GNU ld version checks to gld.
17145         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
17146         (enable_comdat): Support --enable-comdat.
17147         * configure: Regenerate.
17148         * doc/install.texi (Configuration): Document --enable-comdat.
17149
17150 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17151
17152         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
17153         * config/sol2-gld.h: ... here.
17154         * config.gcc (sparc*-*-solaris2*): Reflect this.
17155         (i[34567]86-*-solaris2*): Use it.
17156
17157 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
17158
17159         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
17160         setup_clocks_p.
17161         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
17162
17163 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17164
17165         PR 42965
17166         * diagnostic.c (diagnostic_initialize): Initialize
17167         some_warnings_are_errors.
17168         (diagnostic_finish): New.
17169         (diagnostic_action_after_output): Call it before exiting.
17170         (diagnostic_report_diagnostic): Do not print message here. Set
17171         some_warnings_are_errors.
17172         * diagnostic.h (diagnostic_context): Delete
17173         issue_warnings_are_errors_message. Add some_warnings_are_errors.
17174         (diagnostic_finish): Declare.
17175         * toplev.c (toplev_main): Call it before exit.
17176
17177 2010-04-09  Jason Merrill  <jason@redhat.com>
17178
17179         PR c++/42623
17180         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
17181         for incomplete type.
17182
17183         PR c++/41788
17184         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
17185         based on a warning flag.
17186
17187 2010-04-09  Richard Guenther  <rguenther@suse.de>
17188
17189         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
17190
17191 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
17192
17193         PR bootstrap/43684
17194         * varasm.c (default_assemble_visibility): Wrap vars that are
17195         set, but unused, by targets without GAS.
17196         * config/rs6000/rs6000.c (paired_emit_vector_compare):
17197         Remove set, but unused, vars.
17198         (rs6000_legitimize_tls_address): Likewise.
17199         (altivec_expand_dst_builtin): Likewise.
17200         * config/darwin.c (machopic_classify_symbol): Likewise.
17201         (machopic_indirection_name): Likewise.
17202
17203 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
17204
17205         * config/i386/i386.md (DWI): New mode iterator.
17206         (S): New mode attribute.
17207         (shift_operand): Ditto.
17208         (shift_immediate_operand): Ditto.
17209         (ashl_input_operand): Ditto.
17210         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
17211         using SDWIM mode iterator.
17212         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
17213         pattern from *ashl{di,ti}3_1 and corresponding splitters using
17214         DWI mode iterator.
17215         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
17216         from corresponding peephole2 patterns.
17217         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
17218         and x86_64_shift_adj_1 using SWI48 mode iterator.
17219         (x86_shift<mode>_adj_2): Ditto.
17220         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
17221         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
17222         using SWI48 mode iterator.
17223         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
17224         *ashldi3_cmp_rex64 using SWI mode iterator.
17225         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
17226         *ashldi3_cconly_rex64 using SWI mode iterator.
17227         * config/i386/i386.c (ix86_split_ashl): Update for renamed
17228         x86_shift<mode>_adj_{1,2}.
17229         (ix86_split_ashr): Ditto.
17230         (ix86_split_lshr): Ditto.
17231
17232 2010-04-09  Richard Guenther  <rguenther@suse.de>
17233
17234         * target.h (builtin_conversion): Pass in input and output types.
17235         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
17236         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
17237         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
17238         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
17239
17240         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
17241         Handle AVX modes.
17242         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
17243
17244 2010-04-09  Richard Guenther  <rguenther@suse.de>
17245
17246         PR target/43152
17247         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
17248
17249 2010-04-09  Richard Guenther  <rguenther@suse.de>
17250
17251         * tree-vectorizer.h (struct _stmt_vec_info): Document
17252         that vectype is the type of the LHS.
17253         (supportable_widening_operation, supportable_narrowing_operation):
17254         Get both input and output vector types as arguments.
17255         (vect_is_simple_use_1): Declare.
17256         (get_same_sized_vectype): Likewise.
17257         * tree-vect-loop.c (vect_determine_vectorization_factor):
17258         Set STMT_VINFO_VECTYPE to the vector type of the def.
17259         (vectorizable_reduction): Adjust.
17260         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
17261         Adjust.  Specify the output vector type.
17262         (vect_pattern_recog_1): Adjust.
17263         * tree-vect-stmts.c (get_same_sized_vectype): New function.
17264         (vectorizable_call): Adjust.
17265         (vectorizable_conversion): Likewise.
17266         (vectorizable_operation): Likewise.
17267         (vectorizable_type_demotion): Likewise.
17268         (vectorizable_type_promotion): Likewise.
17269         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
17270         the def.
17271         (vect_is_simple_use_1): New function.
17272         (supportable_widening_operation): Get both input and output
17273         vector types.
17274         (supportable_narrowing_operation): Likewise.
17275         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
17276
17277 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
17278
17279         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
17280         __thiscall and _thiscall as predefined macros.
17281         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
17282         thiscall attribute handling.
17283         (ix86_comp_type_attributes): Likewise.
17284         (ix86_function_regparm): Likewise.
17285         (ix86_return_pops_args): Likewise.
17286         (init_cumulative_args): Likewise.
17287         (find_drap_reg): Likewise.
17288         (ix86_static_chain): Likewise.
17289         (x86_this_parameter): Likewise.
17290         (x86_output_mi_thunk): Likewise.
17291         (ix86_attribute_table): Add description for thiscall attribute.
17292         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
17293         * doc/extend.texi: Add documentation for thiscall.
17294
17295 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17296
17297         PR c++/28584
17298         * c.opt (Wint-to-pointer-cast): Available in C++.
17299         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
17300
17301 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
17302
17303         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
17304         * calls.c (expand_call): Pass the function type to aggregate_value_p.
17305         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
17306         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
17307         function type instead.  Reorder and simplify checks.
17308
17309         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
17310
17311 2010-04-08  Jing Yu  <jingyu@google.com>
17312             Zdenek Dvorak  <ook@ucw.cz>
17313
17314         PR tree-optimization/42720
17315         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
17316         loop unswitch conditions here from ...
17317         (tree_unswitch_single_loop): ... here.
17318
17319 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
17320
17321         * tree-if-conv.c: Fix comments and simplify logic.
17322
17323 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
17324
17325         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
17326         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
17327         (main_tree_if_conversion): Update call to tree_if_conversion.
17328
17329 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17330
17331         PR 42485
17332         * doc/invoke.texi (-b,-V): Delete.
17333         * doc/tm.texi: Do not mention -b.
17334         * gcc.c (display_help): Delete -b and -V.
17335         (process_command): Delete -b and -V.
17336         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
17337
17338 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
17339             Wolfgang Gellerich  <gellerich@de.ibm.com>
17340
17341         Implement target hook for loop unrolling
17342         * target.h (loop_unroll_adjust): Add a new target hook function.
17343         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
17344         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
17345         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
17346         (s390_loop_unroll_adjust): Implement the new target hook for s390.
17347         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
17348         target hook.
17349         (decide_unroll_stupid): Likewise.
17350
17351 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17352
17353         PR target/43643
17354         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
17355
17356 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17357
17358         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
17359         (Specific, *-*-solaris2*): Likewise.
17360         Don't prefer Sun as over GNU as.
17361
17362 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
17363
17364         * config/s390/s390.c (override_options): Adjust the z10 defaults
17365         for max-unroll-times, max-completely-peeled-insns
17366         and max-completely-peel-times.
17367
17368 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17369
17370         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
17371         instructions for z10.
17372         (s390_expand_setmem): Likewise.
17373         (s390_expand_cmpmem): Likewise.
17374
17375 2010-04-08  Richard Guenther  <rguenther@suse.de>
17376
17377         PR tree-optimization/43679
17378         * tree-ssa-pre.c (eliminate): Only propagate copies.
17379
17380 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
17381
17382         PR bootstrap/43681
17383         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
17384         set but not used variable warning.
17385
17386 2010-04-08  Wei Guozhi  <carrot@google.com>
17387
17388         PR target/41653
17389         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
17390         (arm_size_rtx_costs): Call the new function when optimized for size.
17391
17392 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
17393
17394         PR debug/43670
17395         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
17396         op0 is not a MEM, just return NULL instead of assertion
17397         failure.
17398         (discover_nonconstant_array_refs): Don't walk debug stmts.
17399
17400 2010-04-08  Doug Kwan  <dougkwan@google.com>
17401
17402         * configure.ac: Recognize gold and do not use its version number
17403         to test ld features.
17404         * configure: Regenerate.
17405
17406 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
17407
17408         PR middle-end/40815
17409         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
17410         (negate_value): Move code to push elements to broken_up_substracts ...
17411         (eliminate_plus_minus_pair): ... here.  Push operands that have no
17412         negative pair to plus_negates.
17413         (repropagate_negates, init_reassoc, fini_reassoc): Update.
17414
17415 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17416
17417         * doc/install.texi (Configuration): Move description of
17418         --enable-lto, --with-libelf*, --enable-gold from Java section to
17419         general section.
17420
17421         * doc/generic.texi (Working with declarations)
17422         (Function Properties, C and C++ Trees): Fix typos.
17423         * doc/sourcebuild.texi (Top Level): Likewise.
17424
17425 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
17426
17427         PR c/18624
17428         * tree.h (DECL_READ_P): Define.
17429         (struct tree_decl_common): Add decl_read_flag.
17430         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
17431         a set but not used warning.
17432         (merge_decls): Merge DECL_READ_P flag.
17433         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
17434         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
17435         * c-common.c (handle_used_attribute, handle_unused_attribute):
17436         Likewise.
17437         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
17438         New prototypes.
17439         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
17440         New functions.
17441         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
17442         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
17443         c_parser_binary_expression, c_parser_cast_expression,
17444         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
17445         Call default_function_array_read_conversion instead of
17446         default_function_array_conversion where needed.
17447         (c_parser_unary_expression, c_parser_conditional_expression,
17448         c_parser_postfix_expression_after_primary, c_parser_initelt):
17449         Likewise.  Call mark_exp_read where needed.
17450         (c_parser_statement_after_labels, c_parser_asm_operands,
17451         c_parser_typeof_specifier, c_parser_sizeof_expression,
17452         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
17453         where needed.
17454         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
17455         New.
17456         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
17457         (warn_unused_but_set_parameter): Default to warn_unused
17458         && extra_warnings.
17459         * doc/invoke.texi: Document -Wunused-but-set-variable and
17460         -Wunused-but-set-parameter.
17461
17462         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
17463         used count variable.
17464         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
17465         when operandN variables aren't used in the body of the expander
17466         or splitter.
17467         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
17468         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
17469         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
17470         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
17471         FOR_EACH_IMM_USE_ON_STMT): Likewise.
17472         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
17473         * tree.c (PROCESS_ARG): Likewise.
17474
17475 2010-04-07  Simon Baldwin  <simonb@google.com>
17476
17477         * diagnostic.h (diagnostic_override_option_index): New macro to
17478         set a diagnostic's option_index.
17479         * c-tree.h (c_cpp_error): Add warning reason argument.
17480         * opts.c (_warning_as_error_callback): New.
17481         (register_warning_as_error_callback): Store callback for
17482         warnings enabled via enable_warning_as_error.
17483         (enable_warning_as_error): Call callback, minor code tidy.
17484         * opts.h (register_warning_as_error_callback): Declare.
17485         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
17486         response to -Werror=.
17487         (c_common_init_options): Register warning_as_error_callback in opts.c.
17488         * common.opt: Add -Wno-cpp option.
17489         * c-common.c (struct reason_option_codes_t): Map cpp warning
17490         reason codes to gcc option indexes.
17491         * (c_option_controlling_cpp_error): New function, lookup the gcc
17492         option index for a cpp warning reason code.
17493         * (c_cpp_error): Add warning reason argument, call
17494         c_option_controlling_cpp_error for diagnostic_override_option_index.
17495         * doc/invoke.texi: Document -Wno-cpp.
17496
17497 2010-04-07  Richard Guenther  <rguenther@suse.de>
17498
17499         * ipa-reference.c (mark_load): Use get_base_address.
17500         (mark_store): Likewise.
17501
17502         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
17503         inserting GIMPLE_NOPs into the IL.
17504         * tree-ssa-structalias.c (get_constraint_for_component_ref):
17505         Explicitly strip handled components and indirect references.
17506
17507         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
17508         folding address expressions.
17509         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
17510         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
17511         operand_equal_p to compare decls.
17512         (ptr_deref_may_alias_decl_p): Likewise.
17513         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
17514         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
17515         Handle reversed comparison ops.
17516         * tree-sra.c (asm_visit_addr): Use get_base_address.
17517         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
17518         * ipa-reference.c (mark_address): Use get_base_address.
17519
17520 2010-04-07  Richard Guenther  <rguenther@suse.de>
17521
17522         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
17523         Propagate constants everywhere.
17524
17525 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
17526
17527         PR debug/43516
17528         * tree.c (MAX_INT_CACHED_PREC): Define.
17529         (nonstandard_integer_type_cache): New array.
17530         (build_nonstandard_integer_type): Cache results for precision
17531         <= MAX_INT_CACHED_PREC.
17532
17533 2010-04-07  Richard Guenther  <rguenther@suse.de>
17534
17535         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
17536         -fargument-noalias-global, -fargument-noalias-anything): Remove.
17537         * common.opt: Likewise.
17538         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
17539         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
17540         (nonoverlapping_memrefs_p): Likewise.
17541         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
17542         * opts.c (common_handle_option): Handle OPT_fargument_alias,
17543         OPT_fargument_noalias, OPT_fargument_noalias_anything and
17544         OPT_fargument_noalias_global for backward compatibility.
17545
17546 2010-04-07  Richard Guenther  <rguenther@suse.de>
17547
17548         PR tree-optimization/43270
17549         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
17550         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
17551         * tree-ssa-pre.c (phi_translate_1): Adjust.
17552         (fully_constant_expression): Split out vn_reference handling to ...
17553         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
17554         Fold reads from constant strings.
17555         (vn_reference_lookup): Handle fully constant references.
17556         (vn_reference_lookup_pieces): Likewise.
17557         * Makefile.in (expmed.o-warn): Add -Wno-error.
17558
17559 2010-04-07  Martin Jambor  <mjambor@suse.cz>
17560
17561         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
17562
17563 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
17564
17565         PR driver/41594
17566         * gcc.c: Add -static-libstdc++ to list of recognized options.
17567
17568 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17569
17570         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
17571
17572 2010-04-07  Richard Guenther  <rguenther@suse.de>
17573
17574         PR middle-end/42617
17575         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
17576         bases build simple mem attributes to retain points-to information.
17577
17578 2010-04-07  Richard Guenther  <rguenther@suse.de>
17579
17580         PR middle-end/42617
17581         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
17582         preserve points-to related information.
17583
17584 2010-04-07  Richard Guenther  <rguenther@suse.de>
17585
17586         PR middle-end/42617
17587         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
17588         discard plain indirect references.
17589         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
17590         * tree.c (tree_nop_conversion): Likewise.
17591
17592 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
17593
17594         PR debug/43628
17595         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
17596
17597 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
17598
17599         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
17600         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
17601
17602 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
17603
17604         * tree-if-conv.c: Fix indentation and comments.
17605
17606 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
17607
17608         * tree-if-conv.c: Sort static functions in topological order.
17609
17610 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
17611
17612         * tree-if-conv.c: Fix indentation and comments.
17613
17614 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17615
17616         PR middle-end/43519
17617         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
17618         lang_hooks.types.type_for_size instead of
17619         build_nonstandard_integer_type.
17620         When converting an unsigned type to signed, double its precision.
17621         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
17622         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
17623         (graphite_create_new_loop_guard): When ub + 1 wraps around,
17624         use lb <= ub.
17625
17626 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17627
17628         PR middle-end/43519
17629         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
17630         POINTER_PLUS_EXPR for pointer types.
17631
17632 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17633
17634         PR middle-end/43519
17635         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
17636         * graphite-clast-to-gimple.c: Include langhooks.h.
17637         (max_signed_precision_type): New.
17638         (max_precision_type): Takes two types as arguments.
17639         (precision_for_value): New.
17640         (precision_for_interval): New.
17641         (gcc_type_for_interval): New.
17642         (gcc_type_for_value): New.
17643         (gcc_type_for_clast_term): New.
17644         (gcc_type_for_clast_red): New.
17645         (gcc_type_for_clast_bin): New.
17646         (gcc_type_for_clast_expr): Split up into several functions.
17647         (gcc_type_for_clast_eq): Rewritten.
17648         (compute_bounds_for_level): New.
17649         (compute_type_for_level_1): New.
17650         (compute_type_for_level): New.
17651         (gcc_type_for_cloog_iv): Removed.
17652         (gcc_type_for_iv_of_clast_loop): Rewritten.
17653         (graphite_create_new_loop): Compute the lower and upper bound types
17654         with gcc_type_for_clast_expr.
17655         (graphite_create_new_loop_guard): Same.
17656         (find_cloog_iv_in_expr): Removed.
17657         (compute_cloog_iv_types_1): Removed.
17658         (compute_cloog_iv_types): Removed.
17659         (gloog): Do not call compute_cloog_iv_types.
17660         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
17661         GBB_CLOOG_IV_TYPES.
17662         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
17663         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
17664         (GBB_CLOOG_IV_TYPES): Removed.
17665
17666 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17667
17668         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
17669         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
17670         (detect_commutative_reduction): Same.
17671
17672 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17673
17674         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
17675         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
17676         argument.
17677         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
17678         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
17679         (rewrite_commutative_reductions_out_of_ssa): Same.
17680         * passes.c (execute_function_todo): Call verify_ssa for every pass
17681         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
17682         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
17683         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
17684         with an extra argument.
17685         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
17686         verify_ssa only when the extra argument is true.
17687         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
17688         with an extra argument.
17689         (tree_transform_and_unroll_loop): Same.
17690
17691 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17692
17693         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
17694         for all the passes of the LNO having LOOP_CLOSED_SSA.
17695         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
17696         * tree-loop-distribution.c (pass_loop_distribution): Same.
17697         * tree-pass.h (TODO_verify_loops): Removed.
17698         * tree-ssa-loop.c (pass_tree_loop_init): Same.
17699         (pass_lim): Same.
17700         (pass_tree_unswitch): Same.
17701         (pass_predcom): Same.
17702         (pass_vectorize): Same.
17703         (pass_linear_transform): Same.
17704         (pass_graphite_transforms): Same.
17705         (pass_iv_canon): Same.
17706         (pass_complete_unroll): Same.
17707         (pass_complete_unrolli): Same.
17708         (pass_parallelize_loops): Same.
17709         (pass_loop_prefetch): Same.
17710         (pass_iv_optimize): Same.
17711
17712 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
17713
17714         PR middle-end/32824
17715         * passes.c (init_optimization_passes): Move pass_lim before
17716         pass_copy_prop and pass_dce_loop.
17717
17718 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
17719
17720         PR target/43667
17721         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
17722         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
17723         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
17724         MULTI_* defines for 4 argument vpermil2p* builtins.
17725
17726 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
17727
17728         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
17729         * config/i386/i386.c (x86_maybe_negate_const_int): New.
17730         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
17731         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
17732         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
17733         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
17734         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
17735         Use x86_maybe_negate_const_int to output insn mnemonic.
17736         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
17737         check from instruction predicate.  Update comments.
17738         * config/i386/sync.md (sync_add<mode>): Use
17739         x86_maybe_negate_const_int to output insn mnemonic.
17740
17741 2010-04-06  Jan Hubicka  <jh@suse.cz>
17742
17743         PR tree-optimization/42906
17744         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
17745         IGNORE_SELF argument.  Set visited_control_parents for fully
17746         processed BBs.
17747         (find_obviously_necessary_stmts): Update call of
17748         mark_control_dependent_edges_necessary.
17749         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
17750
17751 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
17752
17753         * config/i386/i386.md: Remove comment about 'e' and 'E'
17754         operand modifier.
17755
17756 2010-04-06  Richard Guenther  <rguenther@suse.de>
17757
17758         PR tree-optimization/43627
17759         * tree-vrp.c (extract_range_from_unary_expr): Widenings
17760         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
17761         not varying.
17762
17763 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
17764
17765         * BASE-VER: Change to 4.6.0.
17766
17767         PR target/43638
17768         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
17769         handling.
17770
17771 2010-04-06  Richard Guenther  <rguenther@suse.de>
17772
17773         PR middle-end/43661
17774         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
17775
17776 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17777
17778         * doc/invoke.texi (Optimize Options): Document that LTO
17779         won't remove object access purely due to incompatible
17780         declarations.
17781
17782 2010-04-04  Matthias Klose  <doko@ubuntu.com>
17783
17784         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
17785         Initialize variable.
17786
17787 2010-04-03  Richard Guenther  <rguenther@suse.de>
17788
17789         PR middle-end/42509
17790         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
17791         require a non-NULL MEM_OFFSET.
17792
17793 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
17794
17795         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
17796         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
17797         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
17798         config/alpha/predicates.md, config/arm/arm.md,
17799         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
17800         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
17801         config/darwin9.h, config/darwin.c, config/darwin.h,
17802         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
17803         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
17804         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
17805         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
17806         config/mips/mips.md, config/mn10300/mn10300.c,
17807         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
17808         config/rs6000/aix.h, config/rs6000/dfp.md,
17809         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
17810         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
17811         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
17812         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
17813         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
17814         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
17815         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
17816         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
17817         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
17818         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
17819         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
17820         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
17821         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
17822         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
17823         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
17824         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
17825         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
17826         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
17827         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
17828         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
17829         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
17830         opt-functions.awk, opth-gen.awk, params.def, passes.c,
17831         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
17832         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
17833         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
17834         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
17835         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
17836         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17837         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
17838         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
17839         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
17840         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
17841         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
17842         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
17843         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
17844         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
17845
17846 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17847
17848         PR other/43620
17849         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
17850         * aclocal.m4: Regenerate.
17851
17852 2010-04-02  Richard Guenther  <rguenther@suse.de>
17853
17854         PR tree-optimization/43629
17855         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
17856         if we have seen a constant value.
17857
17858 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
17859
17860         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
17861
17862 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
17863
17864         PR target/43469
17865         * arm.c (legitimize_tls_address): Adjust call to
17866         gen_tls_load_dot_plus_four.
17867         (arm_note_pic_base): New function.
17868         (arm_cannot_copy_insn_p): Use it.
17869         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
17870         constraint.
17871
17872 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17873
17874         PR bootstrap/43531
17875
17876         Revert:
17877         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17878
17879         * Makefile.in ($(out_object_file)): Depend on
17880         gt-$(basename $(notdir $(out_file))).h.
17881
17882 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
17883
17884         * config.gcc (lm32-*-rtems*): Add t-lm32.
17885
17886 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
17887
17888         * config.gcc: Add lm32-*-rtems*.
17889         * config/lm32/rtems.h: New file.
17890
17891 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
17892
17893         PR target/42609
17894         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
17895
17896 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
17897
17898         * dwarf2out.c (output_compilation_unit_header): For
17899         -gdwarf-4 use version 4 instead of version 3.
17900         (output_line_info): For version 4 and above emit additional
17901         maximum ops per insn header field.
17902         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
17903
17904         * dwarf2out.c (is_c_family, is_java): Remove.
17905         (lower_bound_default): New function.
17906         (add_bound_info, gen_descr_array_type_die): Use it.
17907
17908 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
17909
17910         PR debug/43325
17911         * dwarf2out.c (gen_variable_die): Allow debug info for variable
17912         re-declaration when it happens in a function.
17913
17914 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
17915
17916         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
17917         (cgraph_remove_function_insertion_hook): Same.
17918         (cgraph_call_function_insertion_hooks): Same.
17919
17920 2010-04-01  Richard Guenther  <rguenther@suse.de>
17921
17922         PR middle-end/43614
17923         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
17924         and TREE_THIS_VOLATILE.
17925         (copy_ref_info): Likewise.
17926         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
17927         * tree.c (build6_stat): Ignore side-effects of all but arg5
17928         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
17929         TARGET_MEM_REF.
17930
17931 2010-04-01  Richard Guenther  <rguenther@suse.de>
17932
17933         PR tree-optimization/43607
17934         * ipa-type-escape.c (check_call): Do not access non-existing
17935         arguments.
17936
17937 2010-04-01  Richard Guenther  <rguenther@suse.de>
17938
17939         PR middle-end/43602
17940         Revert
17941         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
17942                     Jack Howarth  <howarth@bromo.med.uc.edu>
17943
17944         * tree-profile.c (tree_init_ic_make_global_vars): Make static
17945         variables TLS.
17946
17947 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17948
17949         * doc/install.texi (Prerequisites): Document libelf usability on
17950         IRIX 5/6 and Solaris 2.
17951         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
17952         Update GNU as, GNU ld requirements.
17953         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
17954         Document Sun Studio compiler download.
17955         Update and simplify as, ld recommendations.
17956         (Specific, *-*-solaris2.7): Note obsoletion, removal.
17957
17958 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17959
17960         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
17961         with_tune_32 to pentium4.
17962
17963 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
17964
17965         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
17966
17967 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17968
17969         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
17970         obsoletion, removal.
17971         Update IDO URL.
17972         Document GNU as requirement.
17973         Update configure requirements.
17974         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
17975         Recomment IRIX 6.5.18+.
17976         Document IDF/IDL requirement.
17977         Document GNU as requirement.
17978         Document GNU ld bootstrap failure.
17979         Remove freeware.sgi.com reference.
17980
17981 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17982
17983         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
17984         UNIX V4.0, V5.0 obsoletion, removal.
17985         Remove --with-gc=simple reference.
17986         Update VM requirements during bootstrap.
17987         Remove -oldas bootstrap description.
17988         Update binutils reference.
17989         Remove comparison failure note.
17990
17991 2010-03-31  Richard Guenther  <rguenther@suse.de>
17992             Zdenek Dvorak  <ook@ucw.cz>
17993             Sebastian Pop  <sebastian.pop@amd.com>
17994
17995         PR middle-end/43464
17996         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
17997         with multiple arguments.
17998         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
17999
18000 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18001
18002         * graphite-dependences.c (print_pddr): Call print_pdr with an
18003         extra argument.
18004         * graphite-poly.c (debug_pdr): Add an extra argument for the
18005         verbosity level.
18006         (print_pdr): Same.
18007         (print_pbb_domain): Same.
18008         (print_pbb): Same.
18009         (print_scop_context): Same.
18010         (print_scop): Same.
18011         (print_cloog): Same.
18012         (debug_pbb_domain): Same.
18013         (debug_pbb): Same.
18014         (print_pdrs): Same.
18015         (debug_pdrs): Same.
18016         (debug_scop_context): Same.
18017         (debug_scop): Same.
18018         (debug_cloog): Same.
18019         (print_scop_params): Same.
18020         (debug_scop_params): Same.
18021         (print_iteration_domain): Same.
18022         (print_iteration_domains): Same.
18023         (debug_iteration_domain): Same.
18024         (debug_iteration_domains): Same.
18025         (print_scattering_function): Same.
18026         (print_scattering_functions): Same.
18027         (debug_scattering_function): Same.
18028         (debug_scattering_functions): Same.
18029         * graphite-poly.h (debug_pdr): Update declaration.
18030         (print_pdr): Same.
18031         (print_pbb_domain): Same.
18032         (print_pbb): Same.
18033         (print_scop_context): Same.
18034         (print_scop): Same.
18035         (print_cloog): Same.
18036         (debug_pbb_domain): Same.
18037         (debug_pbb): Same.
18038         (print_pdrs): Same.
18039         (debug_pdrs): Same.
18040         (debug_scop_context): Same.
18041         (debug_scop): Same.
18042         (debug_cloog): Same.
18043         (print_scop_params): Same.
18044         (debug_scop_params): Same.
18045         (print_iteration_domain): Same.
18046         (print_iteration_domains): Same.
18047         (debug_iteration_domain): Same.
18048         (debug_iteration_domains): Same.
18049         (print_scattering_function): Same.
18050         (print_scattering_functions): Same.
18051         (debug_scattering_function): Same.
18052         (debug_scattering_functions): Same.
18053
18054 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18055
18056         * graphite-poly.c (print_scattering_function_1): New.
18057         (print_scattering_function): Call it.
18058         (print_scop_params): Remove spaces at the end of lines.
18059         (print_cloog): New.
18060         (debug_cloog): New.
18061         * graphite-poly.h (print_cloog): Declared.
18062         (debug_cloog): Declared.
18063
18064 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18065
18066         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
18067         in loop->header.
18068         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
18069         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
18070         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
18071         to switch between adding the IV bump in loop->latch or in loop->header.
18072
18073 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18074
18075         * graphite-poly.c (print_scattering_function): Pretty print following
18076         the scoplib format.
18077         (print_pdr): Same.
18078         (print_pbb_domain): Same.
18079         (dump_gbb_cases): Same.
18080         (dump_gbb_conditions): Same.
18081         (print_pdrs): Same.
18082         (print_pbb): Same.
18083         (print_scop_params): Same.
18084         (print_scop_context): Same.
18085         (print_scop): Same.
18086         (print_pbb_body): New.
18087         (lst_indent_to): New.
18088         (print_lst): Start new lines with a #.
18089         * graphite-poly.h (pbb_bb): New.
18090         (pbb_index): Use pbb_bb.
18091         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
18092         disjuncts.
18093         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
18094
18095 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
18096
18097         * dwarf2out.c (size_of_die): For -gdwarf-4 use
18098         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
18099         and 0 instead of 1 for dw_val_class_flag.
18100         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
18101         dw_val_class_range_list, dw_val_class_loc_list,
18102         dw_val_class_lineptr and dw_val_class_macptr, use
18103         DW_FORM_flag_present for dw_val_class_flag and
18104         DW_FORM_exprloc for dw_val_class_loc.
18105         (output_die): For -gdwarf-4 print dw_val_class_loc
18106         size as uleb128 instead of 1 or 2 bytes and don't print
18107         anything for dw_val_class_flag.
18108
18109         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
18110         instead of cselib_lookup following by tweaking locs->setting_insn.
18111
18112         PR bootstrap/43596
18113         * cselib.c (cselib_process_insn): Clear cselib_current_insn
18114         even before returning from label, setjmp call or volatile asm
18115         handling.
18116
18117 2010-03-31  Richard Guenther  <rguenther@suse.de>
18118
18119         PR middle-end/43600
18120         * cgraphunit.c (cgraph_output_in_order): Do not allocate
18121         temporary data on stack.
18122
18123 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18124
18125         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
18126         (PUSHSECTION_ASM_OP): Remove.
18127         (POPSECTION_ASM_OP): Remove.
18128         (PUSHSECTION_FORMAT): Remove.
18129         * config/sol2.h (PUSHSECTION_FORMAT): Define.
18130         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
18131         * config/sol2.c (solaris_output_init_fini): Use it.
18132
18133 2010-03-31  Jie Zhang  <jie@codesourcery.com>
18134
18135         PR 43574
18136         * opt-functions.awk (var_type_struct): Use signed char type
18137         for simple variables.
18138
18139 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18140
18141         * config/sol2.c: Include output.h.
18142         (solaris_assemble_visibility): New function.
18143         * config/t-sol2 (sol2.o): Add output.h dependency.
18144         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
18145         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
18146         Redefine.
18147
18148 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
18149
18150         PR target/43580
18151         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
18152         V2SImode or XFmode on PRE_DEC.
18153
18154         PR debug/43557
18155         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
18156         BLKmode.
18157
18158 2010-03-31  Jie Zhang  <jie@codesourcery.com>
18159
18160         PR 43562
18161         * reload.h (caller_save_initialized_p): Declare.
18162         * toplev.c (backend_init_target): Don't call
18163         init_caller_save but set caller_save_initialized_p to false.
18164         * caller-save.c (caller_save_initialized_p): Define.
18165         (init_caller_save): Check caller_save_initialized_p.
18166         * ira.c (ira): Call init_caller_save if flag_caller_saves.
18167
18168 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18169
18170         PR target/39048
18171         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
18172         and soft-fp/t-softfp to tmake_file.
18173         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
18174         (LIBGCC2_TF_CEXT): Define.
18175         (TF_SIZE): Define.
18176
18177 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
18178
18179         PR debug/42977
18180         * cselib.c (n_useless_values): Document handling of debug locs.
18181         (n_useless_debug_values, n_debug_values): New variables.
18182         (new_elt_loc_list): Don't add to debug values, keep count.
18183         (promote_debug_loc): New.
18184         (cselib_reset_table): Zero new variables.
18185         (entry_and_rtx_equal_p): Promote debug locs.
18186         (discard_useless_locs): Increment n_useless_debug_values for
18187         debug values.
18188         (remove_useless_values): Adjust n_useless_values and n_debug_values
18189         with n_useless_debug_values.
18190         (add_mem_for_addr): Promote debug locs.
18191         (cselib_lookup_mem): Likewise.
18192         (cselib_lookup_addr): Renamed to...
18193         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
18194         (cselib_log_lookup): ... this.  Turn into...
18195         (cselib_lookup_addr): ... new wrapper.
18196         (cselib_lookup_from_insn): New.
18197         (cselib_invalidate_regno): Increment n_useless_debug_values for
18198         debug values.
18199         (cselib_invalidate_mem): Likewise.
18200         (cselib_process_insn): Take n_deleted and n_debug_values into
18201         account to guard remove_useless_value call.
18202         (cselib_finish): Zero n_useless_debug_values.
18203         * cselib.h (cselib_lookup_from_insn): Declare.
18204         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
18205         (sched_analyze_2): Likewise.
18206
18207 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
18208
18209         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
18210         functions.
18211         (adjust_mems): Replace narrowing SUBREG of expression containing
18212         just PLUS, MINUS, MULT and ASHIFT of registers and constants
18213         with operations in the narrower mode.
18214
18215         PR debug/43593
18216         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
18217         regs_invalidated_by_call instead all call_used_reg_set registers.
18218
18219 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
18220
18221         PR middle-end/43430
18222         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
18223         pointer comparisons with types_compatible_p.
18224         * tree-vect-stmts.c (vectorizable_call): Same.
18225         (vectorizable_condition): Same.
18226
18227 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18228
18229         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
18230         stack check if the mask would be zero.
18231
18232 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
18233             Jack Howarth  <howarth@bromo.med.uc.edu>
18234
18235         * tree-profile.c (tree_init_ic_make_global_vars): Make static
18236         variables TLS.
18237
18238 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
18239
18240         PR other/25232
18241         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
18242         and __unordtf2.
18243         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
18244         Include ___unordxf2 and ___unordtf2.
18245         * config/i386/libgcc-glibc.ver: Do not define inheritance from
18246         GCC_4.4.0 here.
18247
18248 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
18249
18250         * config/lm32/t-lm32: New file.
18251         * config.gcc: Use the above file when targetting lm32.
18252
18253 2010-03-28  Duncan Sands  <baldrick@free.fr>
18254
18255         * Makefile.in (PLUGIN_HEADERS): Add except.h.
18256
18257 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
18258
18259         PR middle-end/43431
18260         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
18261         Improve vectorization cost model diagnostic.
18262
18263 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
18264
18265         PR middle-end/43436
18266         * tree-vect-data-refs.c (vect_analyze_data_refs): When
18267         compute_data_dependences_for_loop returns false, early exit
18268         and output an extra diagnostic for the failed data reference
18269         analysis.
18270
18271 2010-03-29  Richard Guenther  <rguenther@suse.de>
18272
18273         PR tree-optimization/43560
18274         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
18275         (can_sm_ref_p): Treat stores to readonly locations as trapping.
18276
18277 2010-03-29  Jie Zhang  <jie@codesourcery.com>
18278
18279         PR 43564
18280         * toplev.c (process_options): Set optimization_default_node
18281         and optimization_current_node.
18282         * opts.c (decode_options): Don't set optimization_default_node
18283         and optimization_current_node.
18284
18285 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
18286
18287         * config/rtems.h: Abandon -qrtems_debug.
18288
18289 2010-03-28  Jan Hubicka  <jh@suse.cz>
18290
18291         PR tree-optimization/43505
18292         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
18293         map should not be copied.
18294
18295 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18296
18297         PR middle-end/41674
18298         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
18299         cdtors, set DECL_PRESERVE_P.
18300         * ipa.c (cgraph_externally_visible_p): Return true if declaration
18301         should be preseved.
18302
18303 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
18304
18305         PR tree-optimization/43528
18306         * stor-layout.c (place_field): Check that constant fits into
18307         unsigned HWI when skipping calculation of MS bitfield layout.
18308
18309 2010-03-27  Jan Hubicka  <jh@suse.cz>
18310
18311         PR middle-end/43391
18312         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
18313         notice_global_symbol work.
18314
18315 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
18316
18317         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
18318         instead of dwarf2out_decl.
18319         (struct var_loc_node): Remove section_label field.
18320         (dwarf2out_function_decl): New function.
18321         (dwarf2out_var_location): Don't set section_label field.
18322         (dwarf2out_begin_function): Don't empty decl_loc_table here.
18323
18324 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
18325
18326         PR tree-optimization/43544
18327         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18328         First argument for builtin vectorized function hook is now a
18329         tree to be able to distinguish between machine specific and
18330         standard builtins.
18331         * targhooks.c (default_builtin_vectorized_function): Ditto.
18332         * targhooks.h (default_builtin_vectorized_function): Ditto.
18333         * target.h (struct gcc_target): Ditto.
18334         * tree-vect-stmts.c (vectorizable_function): Ditto.
18335         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
18336         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
18337         Ditto.
18338
18339 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
18340
18341         PR c/43381
18342         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
18343         nested binding iff it is a FUNCTION_DECL.
18344         (store_parm_decls_newstyle): Pass nested=true to bind for
18345         FUNCTION_DECLs amongst parameters.
18346
18347 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
18348
18349         * var-tracking.c (vt_expand_loc_callback): Don't run
18350         cselib_expand_value_rtx_cb in dummy mode if
18351         cselib_dummy_expand_value_rtx_cb returned false.
18352
18353         * var-tracking.c (emit_note_insn_var_location): For one part
18354         notes with offset 0, don't add EXPR_LIST around the location.
18355         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
18356         add_location_or_const_value_attribute): Adjust for that change.
18357
18358         PR debug/43540
18359         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
18360         into first operand and location into second.
18361         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
18362         dw_cfi_oprnd_loc for DW_CFA_expression.
18363         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
18364         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
18365         assume first argument is regnum and second argument is location.
18366
18367 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
18368
18369         PR target/42113
18370         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
18371         of scratch register to DImode.  Split to DImode comparison operator.
18372         Use SImode subreg of scratch register in the multiplication.
18373         (*cmp_sadd_sidi): Ditto.
18374         (*cmp_ssub_si): Ditto.
18375         (*cmp_ssub_sidi): Ditto.
18376
18377 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
18378
18379         PR target/43524
18380         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
18381         Remove invalid assert and wrong comment.
18382
18383 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
18384
18385         PR debug/43516
18386         * flags.h (final_insns_dump_p): New extern.
18387         * final.c (final_insns_dump_p): New variable.
18388         (rest_of_clean_state): Set it before -fdump-final-insns=
18389         dumping, clear afterwards.
18390         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
18391         MEM_ALIAS_SET on MEMs.
18392
18393 2010-03-26  David S. Miller  <davem@davemloft.net>
18394
18395         * configure.ac: Fix sparc GOTDATA_OP bug check.
18396         * configure: Rebuild.
18397
18398 2010-03-26  Alan Modra  <amodra@gmail.com>
18399
18400         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
18401
18402 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18403
18404         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
18405         TLS_SECTION_ASM_FLAG.
18406
18407 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
18408
18409         PR bootstrap/43511
18410         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
18411         Clear first_function_block_is_cold.
18412
18413         PR c/43385
18414         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
18415         argument if the argument is truth_value_p.
18416
18417 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18418
18419         * config/rs6000/constraints.md: Update copyright year for my changes.
18420
18421         PR target/43484
18422         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
18423         used in reg+reg addressing, swap registers.
18424
18425 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
18426
18427         PR debug/43293
18428         * target.h (struct gcc_target): Add code_end hook.
18429         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
18430         if not yet defined.
18431         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
18432         * toplev.c (compile_file): Call targetm.asm_out.code_end
18433         hook before unwind info/debug info output.
18434         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
18435         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
18436         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
18437         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
18438         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
18439         * config/i386/i386.c (ix86_file_end): Renamed to...
18440         (ix86_code_end): ... this.  Make static.  Don't call
18441         file_end_indicate_exec_stack.  Emit unwind info using
18442         final_start_function/final_end_function.
18443         (darwin_x86_file_end): Remove.
18444         (TARGET_ASM_CODE_END): Define.
18445         * config/i386/i386.h (TARGET_ASM_FILE_END,
18446         NEED_INDICATE_EXEC_STACK): Don't define.
18447         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
18448         (TARGET_ASM_FILE_END): Define to darwin_file_end.
18449         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
18450         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
18451
18452         PR target/43498
18453         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
18454         at the beginning and final_end_function at the end.
18455         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18456
18457 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18458
18459         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
18460         and Sun as TLS syntax.
18461         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
18462         * configure: Regenerate.
18463         * config.in: Regenerate.
18464         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
18465         (default_elf_asm_named_section): Use it.
18466         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
18467         (i386_output_dwarf_dtprel): Likewise.
18468         (output_addr_const_extra): Likewise.
18469         (output_pic_addr_const): Lowercase @GOTTPOFF.
18470         (output_addr_const_extra): Likewise.
18471         (output_pic_addr_const): Lowercase @GOTNTPOFF.
18472         (output_addr_const_extra): Likewise.
18473         (output_pic_addr_const): Lowercase @INDNTPOFF.
18474         (output_addr_const_extra): Likewise.
18475         (output_pic_addr_const): Lowercase @NTPOFF.
18476         (output_addr_const_extra): Likewise.
18477         (output_pic_addr_const): Lowercase @TPOFF.
18478         (output_addr_const_extra): Likewise.
18479         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
18480         (*tls_global_dynamic_64): Likewise.
18481         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
18482         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
18483
18484         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
18485         (ASM_OUTPUT_TLS_COMMON): Use it.
18486         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
18487
18488         PR target/38118
18489         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
18490         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18491         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
18492         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
18493         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
18494         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
18495
18496 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18497
18498         * config/i386/i386.c (override_options): Don't accept
18499         -mtls-dialect=sun any longer.
18500         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
18501         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
18502         (*tls_local_dynamic_base_32_sun): Likewise.
18503         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
18504
18505 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
18506
18507         PR debug/43508
18508         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18509         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
18510
18511         PR debug/43479
18512         * ira.c (adjust_cleared_regs): New function.
18513         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
18514
18515         PR debug/19192
18516         PR debug/43479
18517         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
18518         from gimple_block.
18519         * expr.c (expand_expr_real): Restore previous
18520         curr_insn_source_location and curr_insn_block after
18521         expand_expr_real_1 call.
18522         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
18523         instead of expand_expr_real_1.
18524
18525 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
18526
18527         PR rtl-optimization/43413
18528         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
18529         hard regs too.
18530
18531 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
18532
18533         PR target/43348
18534         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
18535         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
18536
18537 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18538
18539         * config/i386/i386.c (ix86_target_string): Add -mfma.
18540         Fix a typo in comment.
18541
18542 2010-03-22  Mike Stump  <mikestump@comcast.net>
18543
18544         PR target/23071
18545         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
18546         Don't overly align based upon packed packed fields.
18547
18548 2010-03-22  Jason Merrill  <jason@redhat.com>
18549
18550         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
18551         Use () rather than [], and move before the element type.
18552
18553 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18554
18555         * doc/configfiles.texi (Configuration Files): Removed
18556         fixinc/Makefile*, intl/Makefile.*.
18557         * doc/makefile.texi: Fixed markup. Abstract from version
18558         control system used.
18559         (Makefile): Removed obsolete gcc/java/parse.y example.
18560         * doc/sourcebuild.texi: Likewise.
18561         (Top Level): Added config, gnattools, libdecnumber, libgcc,
18562         libgomp, libssp.  Removed fastjar.
18563         (Miscellaneous Docs): Clarify location.
18564         Added COPYING3, COPYING3.LIB.
18565         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
18566
18567 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18568
18569         PR target/38085
18570         * config/i386/i386.c (x86_function_profiler)
18571         [!NO_PROFILE_COUNTERS]: Fix typo.
18572         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
18573         instead of callq.
18574
18575 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
18576             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18577
18578         * doc/sourcebuild.texi (Test Directives): Split into six
18579         subsections, with most of the current text in new subsections
18580         Directives, Selectors, and Final Actions.
18581         (Directives): Split list of test directives into multiple
18582         subsubsections.
18583         (Selectors): Describe use and syntax of selectors.
18584         (Effective-Target Keywords): Describe all existing keywords.
18585         (Add Options): Describe features for dg-add-options.
18586         (Require Support): Describe variants of dg-require-support.
18587         (Final Actions): Describe commands to use in dg-final.
18588
18589 2010-03-22  Michael Matz  <matz@suse.de>
18590
18591         PR middle-end/43475
18592         * recog.c (validate_replace_rtx_group): Replace also in
18593         REG_EQUAL and REG_EQUIV notes.
18594
18595 2010-03-22  Richard Guenther  <rguenther@suse.de>
18596
18597         PR tree-optimization/43390
18598         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
18599         sure vector extracts are type correct.
18600
18601 2010-03-22  Richard Guenther  <rguenther@suse.de>
18602
18603         PR middle-end/40106
18604         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
18605         x * sqrt (x) even when optimizing for size if the target
18606         has native support for sqrt.
18607
18608 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
18609
18610         * varasm.c (make_decl_rtl_for_debug): Also clear
18611         flag_mudflap for the duration of make_decl_rtl call.
18612
18613         PR debug/43443
18614         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
18615         locs from preserved VALUEs.
18616
18617 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18618
18619         PR middle-end/42718
18620         * pa.md (movmemsi): Set align to one if zero.
18621         (movmemdi): Likewise.
18622
18623 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
18624
18625         PR target/42321
18626         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
18627         with their corresponding prologue pushes.
18628
18629 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
18630
18631         PR target/43156
18632         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
18633         at the begining or end.
18634         (spu_expand_epilogue): Likewise.
18635
18636 2010-03-20  Richard Guenther  <rguenther@suse.de>
18637
18638         PR rtl-optimization/43438
18639         * combine.c (make_extraction): Properly zero-/sign-extend an
18640         extraction of the low part of a CONST_INT.  Also handle
18641         CONST_DOUBLE.
18642
18643 2010-03-19  Mike Stump  <mikestump@comcast.net>
18644
18645         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
18646         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
18647         (override_options): Use SUBTARGET32_DEFAULT_CPU.
18648
18649 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
18650
18651         PR c/43211
18652         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
18653         an error.
18654
18655 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
18656
18657         PR rtl-optimization/42258
18658         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
18659         use that may match DEF.
18660
18661         PR target/40697
18662         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
18663         the cost of loading the constant rather than assuming
18664         COSTS_N_INSNS (1).
18665         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
18666         outer code is AND, do the same tests as the andsi3 expander and
18667         return COSTS_N_INSNS (1) if and is cheap.
18668
18669         * optabs.c (avoid_expensive_constant): Fix formatting.
18670
18671 2010-03-19  Michael Matz  <matz@suse.de>
18672
18673         PR c++/43116
18674         * attribs.c (decl_attributes): When rebuilding a function pointer
18675         type use the same qualifiers as the original pointer type.
18676
18677 2010-03-19  Martin Jambor  <mjambor@suse.cz>
18678
18679         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
18680         and is_gimple_ip_invariant_address.
18681
18682 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18683
18684         Revert
18685         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18686
18687         * config/arm/arm.c (arm_override_options): Turn off
18688         flag_dwarf2_cfi_asm for AAPCS variants.
18689
18690 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18691
18692         PR target/43399
18693         * config/arm/arm.c (emit_multi_reg_push): Update comments.
18694         Use PRE_MODIFY instead of PRE_DEC.
18695         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
18696         (vfp_emit_fstmd): Likewise.
18697
18698 2010-03-19  Michael Matz  <matz@suse.de>
18699
18700         PR target/43305
18701         * builtins.c (expand_builtin_interclass_mathfn,
18702         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
18703         if that fails.
18704
18705 2010-03-19  Richard Guenther  <rguenther@suse.de>
18706
18707         PR tree-optimization/43415
18708         * tree-ssa-pre.c (phi_translate): Split out worker to ...
18709         (phi_translate_1): ... this.
18710         (phi_translate): Move all caching here.  Cache all NARY
18711         and REFERENCE translations.
18712
18713 2010-03-19  David S. Miller  <davem@davemloft.net>
18714
18715         With help from Eric Botcazou.
18716         * config/sparc/sparc.c: Include dwarf2out.h.
18717         (emit_pic_helper): Delete.
18718         (pic_helper_symbol_name): Delete.
18719         (pic_helper_emitted_p): Delete.
18720         (pic_helper_needed): New.
18721         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
18722         (get_pc_thunk_name): New.
18723         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
18724         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
18725         Set pic_helper_needed to true.  Don't call emit_pic_helper.
18726         (sparc_expand_prologue): Update load_pic_register call.
18727         (sparc_output_mi_thunk): Likewise.
18728         (sparc_file_end): Emit a hidden comdat symbol for the PIC
18729         thunk if possible.  Output CFI information as needed.
18730
18731 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18732             Jack Howarth  <howarth@bromo.med.uc.edu>
18733
18734         PR target/36399
18735         * config/i386/i386.h: Fix ABI on darwin x86-32.
18736
18737 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
18738
18739         * tree.h: Declare make_decl_rtl_for_debug.
18740         * varasm.c (make_decl_rtl_for_debug): New.
18741         * dwarf2out.c (rtl_for_decl_location): Call it.
18742         * cfgexpand.c (expand_debug_expr): Call it.
18743
18744 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
18745
18746         PR bootstrap/43399
18747         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
18748         mem_mode.
18749
18750         PR bootstrap/43403
18751         * var-tracking.c (vt_init_cfa_base): Do nothing if
18752         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
18753
18754 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
18755
18756         PR debug/42873
18757         * var-tracking.c (canonicalize_vars_star): New.
18758         (dataflow_post_merge_adjust): Use it.
18759
18760 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
18761
18762         PR debug/43058
18763         * var-tracking.c (non_suitable_const): New function.
18764         (add_uses): For DEBUG_INSNs with constants, don't record any
18765         value, instead just the constant value itself.
18766         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
18767         is not VAR_LOC_UNKNOWN_P, set var to the constant.
18768         (emit_notes_in_bb): Likewise.
18769         (emit_note_insn_var_location): For onepart variables if
18770         cur_loc is a VOIDmode constant, use DECL_MODE.
18771
18772 2010-03-18  Martin Jambor  <mjambor@suse.cz>
18773
18774         PR middle-end/42450
18775         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
18776         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
18777         all non-clones.  Moved call redirection...
18778         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
18779         (cgraph_materialize_all_clones): Dispose of all
18780         combined_args_to_skip bitmaps.
18781         (verify_cgraph_node): Do not check for edges pointing to wrong
18782         nodes in inline clones.
18783         * tree-inline.c (copy_bb): Call
18784         cgraph_redirect_edge_call_stmt_to_callee.
18785         * ipa.c (cgraph_remove_unreachable_nodes): Call
18786         cgraph_node_remove_callees even when there are used clones.
18787
18788 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
18789
18790         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
18791
18792 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
18793
18794         PR target/43383
18795         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
18796         for 32bit.
18797
18798 2010-03-18  Michael Matz  <matz@suse.de>
18799
18800         PR middle-end/43419
18801         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
18802         into sqrt(x) if we need to preserve signed zeros.
18803
18804 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
18805             Eric Botcazou  <ebotcazou@adacore.com>
18806
18807         PR rtl-optimization/43360
18808         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
18809         note if we don't know its invariant status.
18810
18811 2010-03-18  Michael Matz  <matz@suse.de>
18812
18813         PR tree-optimization/43402
18814         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
18815         PHI chains of ssa names registered for update.
18816
18817 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
18818
18819         PR target/42427
18820         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
18821         non-offsettable and pre_modify update addressing.
18822         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
18823         and "2" alternatives "#".
18824         (*movdd_softfloat32): Make all alternatives "#";
18825         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
18826         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
18827         (*movdf_softfloat32): Make all alternatives "#";
18828         (movdi): Use the new DIFD mode iterator to create a common splitter
18829         for movdi, movdf and movdd patterns.
18830
18831 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
18832
18833         * common.opt (dumpdir): Remove redundant tab.
18834
18835 2010-03-17  Martin Jambor  <mjambor@suse.cz>
18836
18837         PR tree-optimization/43347
18838         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
18839         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
18840
18841 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18842
18843         PR rtl-optimization/42216
18844         * regrename.c (create_new_chain): New function, broken out from...
18845         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
18846         appending a use to an empty chain.
18847         (build_def_use): Remove previous changes that convert OP_INOUT to
18848         OP_OUT operands; instead detect the case where an OP_INOUT operand
18849         uses a previously untracked register and create an empty chain for it.
18850
18851 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18852
18853         * doc/extend.texi (Function Attributes): Rewrite unfinished
18854         sentence in ms_abi documentation.
18855
18856 2010-03-17  Alan Modra  <amodra@gmail.com>
18857
18858         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
18859         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
18860         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
18861         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
18862
18863 2010-03-16  Richard Henderson  <rth@redhat.com>
18864
18865         PR middle-end/43365
18866         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
18867         (lower_try_finally): Save and restore eh_seq around the expansion
18868         of the try-finally.
18869
18870 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
18871
18872         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
18873         statements before splitting block.
18874
18875 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18876
18877         * doc/sourcebuild.texi (Testsuites): Fix markup.
18878         Use pathnames relative to gcc/testsuite.
18879         (Test Directives): Move description of how timeout is determined.
18880         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
18881         (C Tests): Correct gcc.misc-tests directory.
18882         Framework tests now live in gcc.test-framework.
18883
18884 2010-03-16  Richard Guenther  <rguenther@suse.de>
18885
18886         PR middle-end/43379
18887         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
18888         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
18889
18890 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
18891             Alexandre Oliva  <aoliva@redhat.com>
18892
18893         PR tree-optimization/42917
18894         * lambda-code.c (remove_iv): Skip debug statements.
18895         (lambda_loopnest_to_gcc_loopnest): Likewise.
18896         (not_interesting_stmt): Debug statements are not interesting.
18897
18898 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
18899
18900         PR debug/43051
18901         PR debug/43092
18902         * cselib.c (cselib_preserve_constants,
18903         cfa_base_preserved_val): New static variables.
18904         (preserve_only_constants): New function.
18905         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
18906         clear its REG_VALUES.  If cselib_preserve_constants, don't
18907         empty the whole hash table, but preserve there VALUEs with constants,
18908         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
18909         (cselib_preserve_cfa_base_value): New function.
18910         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
18911         (cselib_init): Change argument to int bitfield.  Set
18912         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
18913         is in it.
18914         (cselib_finish): Clear cselib_preserve_constants and
18915         cfa_base_preserved_val.
18916         * cselib.h (enum cselib_record_what): New enum.
18917         (cselib_init): Change argument to int.
18918         (cselib_preserve_cfa_base_value): New prototype.
18919         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
18920         * dse.c (dse_step1): Likewise.
18921         * cfgcleanup.c (thread_jump): Likewise.
18922         * sched-deps.c (sched_analyze): Likewise.
18923         * gcse.c (local_cprop_pass): Likewise.
18924         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
18925         If FN is non-NULL, call the callback always and whenever it returns
18926         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
18927         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
18928         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
18929         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
18930         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
18931         * var-tracking.c: Include recog.h.
18932         (bb_stack_adjust_offset): Remove.
18933         (vt_stack_adjustments): Don't call it, instead just gather the
18934         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
18935         (adjust_stack_reference): Remove.
18936         (compute_cfa_pointer): New function.
18937         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
18938         (struct adjust_mem_data): New type.
18939         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
18940         functions.
18941         (get_address_mode): New function.
18942         (replace_expr_with_values): Use it.
18943         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
18944         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
18945         (adjust_sets): Remove.
18946         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
18947         Use get_address_mode.
18948         (get_adjusted_src): Remove.
18949         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
18950         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
18951         (add_with_sets): Don't call adjust_sets.
18952         (fp_setter, vt_init_cfa_base): New functions.
18953         (vt_initialize): Change return type to bool.  Move most of pool etc.
18954         initialization to the beginning of the function from end.  Pass
18955         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
18956         If !frame_pointer_needed, call vt_stack_adjustment before mos
18957         vector is filled, call vt_init_cfa_base if argp/framep has been
18958         eliminated to sp.  If frame_pointer_needed and argp/framep has
18959         been eliminated to hard frame pointer, set
18960         hard_frame_pointer_adjustment and call vt_init_cfa_base after
18961         encountering fp setter in the prologue.  For MO_ADJUST, call
18962         log_op_type before pusing the op into mos vector, not afterwards.
18963         Call adjust_insn before cselib_process_insn/add_with_sets,
18964         call cancel_changes (0) afterwards.
18965         (variable_tracking_main_1): Adjust for vt_initialize calling
18966         vt_stack_adjustments and returning whether it succeeded or not.
18967
18968 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
18969
18970         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
18971         debug statements.
18972
18973 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
18974
18975         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
18976         has been set.
18977         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
18978         drap_reg has not been set.
18979
18980 2010-03-15  Michael Matz  <matz@suse.de>
18981
18982         PR middle-end/43300
18983         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
18984         use it to expand block copies.
18985         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18986         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
18987         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
18988
18989 2010-03-15  Richard Guenther  <rguenther@suse.de>
18990
18991         PR tree-optimization/43367
18992         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
18993         elimination check.
18994
18995 2010-03-15  Richard Guenther  <rguenther@suse.de>
18996
18997         PR tree-optimization/43317
18998         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
18999
19000 2010-03-15  Martin Jambor  <mjambor@suse.cz>
19001
19002         PR tree-optimization/43141
19003         * tree-sra.c (create_abstract_origin): New function.
19004         (modify_function): Call create_abstract_origin.
19005
19006 2010-03-15  Chris Demetriou  <cgd@google.com>
19007
19008         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
19009         wasn't copied.
19010
19011 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19012
19013         PR middle-end/43354
19014         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
19015         call insert_out_of_ssa_copy for default definitions.
19016
19017 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19018
19019         * graphite-clast-to-gimple.c (my_long_long): Defined.
19020         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
19021         * graphite-sese-to-poly.c (my_long_long): Defined.
19022         (scop_ivs_can_be_represented): Use it.
19023
19024 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19025
19026         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
19027         graphite-max-bbs-per-function, and loop-block-tile-size.
19028         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
19029         with "maximum".
19030         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
19031
19032 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19033
19034         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
19035         forward declaration.
19036         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
19037         (add_upper_bounds_from_estimated_nit): New.
19038         (build_loop_iteration_domains): Use it.
19039
19040 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19041
19042         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
19043
19044 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19045
19046         PR middle-end/43306
19047         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
19048         should be an INTEGER_CST.  Also handle CASE_CONVERT.
19049
19050 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19051
19052         * graphite.c (graphite_initialize): To bound the number of bbs per
19053         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
19054         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
19055         * doc/invoke.texi: Document it.
19056
19057 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19058
19059         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
19060         * graphite-sese-to-poly.h (build_poly_scop): Same.
19061
19062 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19063
19064         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
19065         the number of parameters in the scop.  Use as an upper bound
19066         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
19067         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
19068         * doc/invoke.texi: Document it.
19069
19070 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
19071
19072         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
19073         * doc/c-tree.texi: Remove.
19074         * doc/generic.texi: Merge c-tree.texi here.
19075         * doc/gccint.texi (Trees): Remove menu entry.
19076         (c-tree.texi): Remove @include.
19077         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
19078         * doc/languages.texi (Reading RTL): Ditto.
19079
19080 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
19081
19082         PR target/42869
19083         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
19084
19085 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19086
19087         PR middle-end/42431
19088         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
19089         code added to work around reload clobbering CONST insns.
19090
19091 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
19092
19093         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
19094         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
19095         (cselib_preserve_only_values): Remove retain argument, don't
19096         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
19097         * cselib.h (cselib_preserve_only_values): Remove retain argument.
19098         * var-tracking.c (micro_operation): Move insn field before union.
19099         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
19100         (struct variable_tracking_info_def): Remove n_mos field, change
19101         mos into a vector of micro_operations.
19102         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
19103         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
19104         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
19105         changing into a vector.
19106         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
19107         come before all other uops generated by add_stores.
19108         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
19109         argument removal.
19110         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
19111         a vector.  Run just one pass over the bbs instead of separate counting
19112         and computation phase.
19113         (vt_finalize): Free VTI (bb)->mos vector instead of array.
19114
19115         PR debug/43329
19116         * tree-inline.c (remap_decls): Put old_var rather than origin_var
19117         into *nonlocalized_list vector.
19118         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
19119         even if origin is non-NULL.
19120         (gen_variable_die): Likewise.
19121         (process_scope_var): Don't change origin.
19122         (gen_decl_die): Likewise.
19123         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
19124         before adding new edges instead of after it, fix moving over
19125         debug stmts.
19126
19127 2010-03-11  David S. Miller  <davem@davemloft.net>
19128
19129         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
19130         of four.
19131         * configure: Rebuild.
19132
19133 2010-03-11  Martin Jambor  <mjambor@suse.cz>
19134
19135         PR tree-optimization/43257
19136         * tree.c (assign_assembler_name_if_neeeded): New function.
19137         (free_lang_data_in_cgraph): Assembler name assignment moved to the
19138         above new function.
19139         * tree.h (assign_assembler_name_if_neeeded): Declare.
19140         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
19141         the function if needed.
19142
19143 2010-03-11  Chris Demetriou  <cgd@google.com>
19144
19145         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
19146         include/stdint-gcc.h, and include/stdint.h world-readable.
19147
19148 2010-03-11  Richard Guenther  <rguenther@suse.de>
19149
19150         PR tree-optimization/43255
19151         * tree-vrp.c (process_assert_insertions_for): Do not insert
19152         asserts for trivial conditions.
19153
19154 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19155
19156         PR tree-optimization/43280
19157         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
19158         generation.  Move calculation of size out of the if branch.
19159         (find_bswap): Modify compare number generation.
19160
19161 2010-03-11  Richard Guenther  <rguenther@suse.de>
19162
19163         PR lto/43200
19164         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
19165         (input_gimple_stmt): Fixup handled component types during
19166         operand read.  Also fix up decls in ADDR_EXPRs.
19167
19168 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
19169
19170         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
19171         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
19172
19173 2010-03-10  Jan Hubicka  <jh@suse.cz>
19174
19175         PR c/43288
19176         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
19177         * varasm.c (get_variable_section): Don't do that here...
19178         (make_decl_rtl): ... and here.
19179         (do_assemble_alias): Produce decl RTL.
19180         (assemble_alias): Likewise.
19181
19182 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
19183
19184         PR debug/43290
19185         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
19186         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
19187         of fde->vdrap_reg.
19188         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
19189         (based_loc_descr): Only express drap or vdrap regno based expressions
19190         using DW_OP_fbreg when not optimizing.
19191         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
19192         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
19193         REG_CFA_SET_VDRAP note.
19194
19195 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
19196
19197         PR tree-optimization/43236
19198         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
19199         error in calculation of base address in reverse iteration case.
19200         (generate_builtin): Take number of latch executions if the statement
19201         is in the latch.
19202
19203 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
19204
19205         PR middle-end/42859
19206         * tree-eh.c: Include pointer-set.h.
19207         (lower_eh_dispatch): Filter out duplicate case labels and
19208         remove the unneeded edge when the label is unused.  Return
19209         true when some edges are removed.
19210         (execute_lower_eh_dispatch): When any lowering resulted in
19211         removing an edge, also delete unreachable blocks.
19212
19213 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
19214
19215         PR bootstrap/43287
19216         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19217         UNSPEC_MACHOPIC_OFFSET.
19218
19219 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
19220
19221         PR target/43294
19222         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
19223         (m68k_delegitimize_address): New function.
19224
19225 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
19226
19227         PR debug/43299
19228         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
19229
19230         PR debug/43299
19231         * var-tracking.c (adjust_sets): New function.
19232         (count_with_sets, add_with_sets): Use it.
19233         (get_adjusted_src): New inline function.
19234         (add_stores): Use it.
19235
19236         PR debug/43304
19237         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
19238         call cselib_dummy_expand_value_rtx_cb instead of
19239         cselib_expand_value_rtx_cb.
19240
19241         PR debug/43293
19242         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
19243         * config/i386/i386.c: Include debug.h and dwarf2out.h.
19244         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
19245         and .cfi_endproc around the pic thunks.
19246         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
19247         all queued unwind info register saves are saved before the call.
19248         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
19249         considered as sp-=4 for unwind info and the pop as sp+=4 which
19250         also clobbers dest, but doesn't actually restore it.
19251
19252         PR debug/43290
19253         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
19254         RTX_FRAME_RELATED_P.
19255
19256 2010-03-09  Jie Zhang  <jie@codesourcery.com>
19257
19258         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
19259         whitespaces in output template.
19260
19261 2010-03-09  Jie Zhang  <jie@codesourcery.com>
19262
19263         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
19264         out array boundary.
19265
19266 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
19267
19268         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
19269         builtins.exp in a separate job.
19270
19271 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19272
19273         * graphite-sese-to-poly.c (add_param_constraints): Use
19274         lower_bound_in_type and upper_bound_in_type.
19275
19276 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19277
19278         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
19279         instead of unsigned_type_node.
19280
19281 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19282             Reza Yazdani  <reza.yazdani@amd.com>
19283
19284         PR middle-end/43065
19285         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
19286         on pointer type parameters.
19287
19288 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
19289
19290         PR middle-end/42644
19291         PR middle-end/42130
19292         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
19293         handle conversions from pointer to integers.
19294         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
19295         induction variable, to be able to work with code generated by CLooG.
19296         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
19297         (build_poly_scop): Bail out if we cannot codegen a loop.
19298
19299 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
19300
19301         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
19302         code generation with gloog_error.
19303
19304 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19305
19306         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
19307         Call fold_convert on all the returned values.
19308         (expand_scalar_variables_expr): Pass to
19309         expand_scalar_variables_ssa_name the type of the resulting expression.
19310
19311 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19312
19313         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
19314         ppl_min_for_le_pointset.
19315         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
19316         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
19317
19318 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19319
19320         * graphite-dependences.c (map_into_dep_poly): Removed.
19321         (dependence_polyhedron_1): Use combine_context_id_scat.
19322
19323 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19324
19325         * graphite-poly.h (struct poly_scattering): Add layout documentation.
19326         (struct poly_bb): Same.
19327         (combine_context_id_scat): New.
19328
19329 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19330
19331         PR middle-end/42326
19332         * sese.c (name_defined_in_loop_p): Return false for default
19333         definitions.
19334
19335 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19336
19337         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
19338         and clean up the logic.
19339
19340 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19341
19342         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
19343         early return.
19344
19345 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
19346
19347         * var-tracking.c (remove_cselib_value_chains): Define only for
19348         ENABLE_CHECKING.
19349         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
19350         delete_slot_part, emit_notes_for_differences_1): Don't call
19351         remove_cselib_value_chains here.
19352         (set_slot_part, emit_notes_for_differences_2): Don't call
19353         add_cselib_value_chains here.
19354         (preserved_values): New vector.
19355         (preserve_value): New function.
19356         (add_uses, add_stores, vt_add_function_parameters): Use it
19357         instead of cselib_preserve_value.
19358         (changed_values_stack): New vector.
19359         (check_changed_vars_0): New function.
19360         (check_changed_vars_1, check_changed_vars_2): Use it.
19361         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
19362         changed_values_stack VALUEs.
19363         (vt_emit_notes): For all preserved_values call
19364         add_cselib_value_chains.  If ENABLE_CHECKING call
19365         remove_cselib_value_chains before verifying value_chains is empty.
19366         Initialize and free changed_values_stack.
19367         (vt_initialize): Initialize preserved_values.
19368         (vt_finalize): Free preserved_values.
19369
19370 2010-03-08  Richard Guenther  <rguenther@suse.de>
19371
19372         PR tree-optimization/43269
19373         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
19374         region detection.
19375
19376 2010-03-08  Martin Jambor  <mjambor@suse.cz>
19377
19378         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
19379         (ipa_is_param_called): Removed.
19380         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
19381         (ipa_print_node_params): Do not print the called flag.
19382         (ipa_write_node_info): Do not stream the called flag.
19383         (ipa_read_node_info): Likewise.
19384
19385 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
19386
19387         PR debug/43176
19388         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
19389         * cselib.c (struct expand_value_data): Add dummy field.
19390         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
19391         dummy to false.
19392         (cselib_dummy_expand_value_rtx_cb): New function.
19393         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
19394         any rtl.
19395         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
19396         * var-tracking.c: Include pointer-set.h.
19397         (variable): Change n_var_parts to char from int.  Add
19398         cur_loc_changed and in_changed_variables fields.
19399         (variable_canonicalize): Remove.
19400         (shared_var_p): New inline function.
19401         (unshare_variable): Maintain cur_loc_changed and
19402         in_changed_variables fields.  If var was in changed_variables,
19403         replace it there with new_var.  Just copy cur_loc instead of
19404         resetting it to something else.
19405         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
19406         (dataflow_set_union): Don't call variable_canonicalize.
19407         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
19408         of their DEBUG_EXPR_TREE_DECLs.
19409         (canonicalize_loc_order_check): Verify that cur_loc is NULL
19410         and in_changed_variables and cur_loc_changed is false.
19411         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
19412         and cur_loc_changed.  Don't update cur_loc here.
19413         (variable_merge_over_src): Don't call variable_canonicalize.
19414         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
19415         removing loc that is equal to cur_loc, clear cur_loc,
19416         set cur_loc_changed and ensure variable_was_changed is called.
19417         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
19418         compare pointers in cur_loc check, if it is equal to loc,
19419         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
19420         (variable_different_p): Remove compare_current_location argument,
19421         don't compare cur_loc.
19422         (dataflow_set_different_1): Adjust variable_different_p caller.
19423         (variable_was_changed): If dv had some var in changed_variables
19424         already, reset in_changed_variables flag for it and propagate
19425         cur_loc_changed over to the new variable.  On empty var
19426         always set cur_loc_changed.  Set in_changed_variables on whatever
19427         var is added to changed_variables.
19428         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
19429         Use shared_var_p.  When removing loc that is equal to cur_loc,
19430         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
19431         end, don't set it to something else, just call variable_was_changed.
19432         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
19433         loc being removed, clear cur_loc and set cur_loc_changed.
19434         Set cur_loc_changed if all locations have been removed.
19435         (struct expand_loc_callback_data): New type.
19436         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
19437         allocated.  Always create SUBREGs if simplify_subreg failed.
19438         Prefer to use cur_loc, when that fails and still in
19439         changed_variables (and seen first time) recompute it.  Set
19440         cur_loc_changed of variables which had to change cur_loc and
19441         compute elcd->cur_loc_changed if any of the subexpressions used
19442         had to change cur_loc.
19443         (vt_expand_loc): Adjust to pass arguments in
19444         expand_loc_callback_data structure.
19445         (vt_expand_loc_dummy): New function.
19446         (emitted_notes): New variable.
19447         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
19448         that weren't used for any other decl in current
19449         emit_notes_for_changes call call vt_expand_loc_dummy to update
19450         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
19451         first loc_chain location if NULL before.  Always use just
19452         cur_loc instead of first loc_chain location.  When cur_loc_changed
19453         is false, when not --enable-checking=rtl just don't emit any note.
19454         When rtl checking, compute the note and assert it is the same
19455         as previous note.  Clear cur_loc_changed and in_changed_variables
19456         at the end before removing from changed_variables.
19457         (check_changed_vars_3): New function.
19458         (emit_notes_for_changes): Traverse changed_vars to call
19459         check_changed_vars_3 on each changed var.
19460         (emit_notes_for_differences_1): Clear cur_loc_changed and
19461         in_changed_variables.  Recompute cur_loc of new_var.
19462         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
19463         (vt_emit_notes): Initialize and destroy emitted_notes.
19464
19465 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
19466
19467         PR rtl-optimization/42220
19468         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
19469         Use verify_reg_tracked to determine if we should use OP_OUT rather
19470         than OP_INOUT.
19471         (build_def_use): If we see an in-out operand for a register that we
19472         know nothing about, treat is an output if possible, fail the block if
19473         not.
19474
19475 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
19476
19477         PR debug/42897
19478         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
19479         permanently.
19480
19481 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
19482
19483         PR debug/42897
19484         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
19485         uses of relevant DEFs that are dead outside the loop too.
19486
19487 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
19488
19489         * var-tracking.c (dataflow_set_merge): Swap src and src2.
19490         Reverted:
19491         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
19492         PR debug/41371
19493         * var-tracking.c (values_to_unmark): New variable.
19494         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19495         values_to_unmark vector.  Moved body to...
19496         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
19497         instead queue it into values_to_unmark vector.
19498         (vt_find_locations): Free values_to_unmark vector.
19499
19500 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
19501
19502         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
19503         (site.exp): Export them when plugins are enabled.
19504
19505 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
19506
19507         PR middle-end/42326
19508         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
19509         that contain scevs.
19510         (chrec_fold_multiply): Same.
19511
19512 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
19513
19514         PR c/43248
19515         * c-decl.c (build_compound_literal): Return early if init is
19516         an error_mark_node.
19517
19518 2010-03-04  Martin Jambor  <mjambor@suse.cz>
19519
19520         PR tree-optimization/43164
19521         PR tree-optimization/43191
19522         * tree-sra.c (type_consists_of_records_p): Reject records with
19523         zero-size bit-fields at the end.
19524
19525 2010-03-04  Mike Stump  <mikestump@comcast.net>
19526
19527         * Makefile.in (TAGS): Remove *.y.
19528
19529 2010-03-04  Richard Guenther  <rguenther@suse.de>
19530
19531         PR tree-optimization/40761
19532         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
19533         in reverse order.
19534         (my_rev_post_order_compute): New function.
19535         (init_pre): Call it.
19536
19537 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
19538
19539         PR middle-end/43209
19540         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
19541         decrease the cost of an IV candidate when the cost is infinite.
19542
19543 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19544
19545         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
19546         Use '3DNow!' for the extension of that name, ensure normal space
19547         after the string.
19548         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
19549
19550 2010-03-03  Jeff Law  <law@redhat.com>
19551
19552         * PR middle-end/32693
19553         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
19554         than gen_rtx_SUBREG.
19555         (extract_bit_field_1): Likewise.
19556
19557 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
19558
19559         * doc/sourcebuild.texi (Test directives): Document that arguments
19560         include-opts and exclude-opts are now optional for dg-skip-if,
19561         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
19562
19563 2010-03-03  Jason Merrill  <jason@redhat.com>
19564
19565         PR c++/12909
19566         * cgraph.h (varpool_node): Add extra_name field.
19567         * varpool.c (varpool_extra_name_alias): New.
19568         (varpool_assemble_decl): Emit extra name aliases.
19569         (varpool_mark_needed_node): Look past an extra name alias.
19570         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
19571         * lto-streamer-in.c (lto_input_tree): Read it.
19572         * lto-streamer-out.c (output_unreferenced_globals): Write it.
19573
19574 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
19575
19576         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
19577         (sparc*-*-solaris2*): ...this.
19578
19579 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
19580
19581         PR debug/43229
19582         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
19583         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
19584         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
19585         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
19586
19587         PR debug/43237
19588         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
19589         fallthrough to default handling, just with want_address 0 instead of 2.
19590         For single element lists, add_AT_loc directly, otherwise create an
19591         artificial variable DIE and stick location list to it.
19592
19593         PR debug/43177
19594         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
19595         (VAL_EXPR_HAS_REVERSE): Define.
19596         (reverse_op): New function.
19597         (add_stores): For reversible operations add an extra MO_VAL_USE.
19598
19599 2010-03-02  Jason Merrill  <jason@redhat.com>
19600
19601         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
19602
19603 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
19604
19605         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
19606         (sparc64-*-linux*): Likewise.
19607         (sparc64-*-solaris2*): Include assembler files before linker ones.
19608         (sparc-*-solaris2*): Simplify and reorder to match previous case.
19609         * config/sparc/gas.h: Delete.
19610         * config/sparc/sol2-64.h: Add copyright notice.
19611         * config/sparc/sol2-gas-bi.h: Likewise.
19612         * config/sparc/sol2-gld.h: Likewise.
19613         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
19614         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
19615         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
19616         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
19617         (sparc_elf_asm_named_section): Rename into...
19618         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
19619
19620 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
19621
19622         * config/alpha/alpha.c (override_options): Fix -mtune error message.
19623
19624 2010-03-02  Jeff Law  <law@redhat.com>
19625
19626         PR middle-end/42431
19627         * reload1.c (rtx_p, substitute_stack): Declare.
19628         (substitute): Record addresses of changed rtxs.
19629         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
19630         Restore the original rtx when complete.
19631         (reload): Free subsitute_stack when complete.
19632
19633 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
19634
19635         * doc/gccint.texi (menu): Add Testsuites as a chapter.
19636         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
19637         new chapter.
19638         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
19639         LTO Testing, gcov Testing, profopt Testing, compat Testing,
19640         Torture Tests): Change from subsection to section.
19641
19642 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
19643             Steven Bosscher  <steven@gcc.gnu.org>
19644
19645         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
19646         instead of bb.
19647
19648 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
19649
19650         PR middle-end/42640
19651         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
19652         the assignment from the new induction variable to the assignment
19653         of the value from the original loop PHI function.
19654
19655 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
19656             Daniel Jacobowitz  <dan@codesourcery.com>
19657
19658         * doc/sourcebuild.texi (Test directives): Clarify options to
19659         dg-skip-if.
19660
19661 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19662
19663         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
19664         Disable cfi directives unless GCC and gas agree on using read-only
19665         .eh_frame sections for 64-bit.
19666         * configure: Regenerate.
19667
19668 2010-03-01  Richard Guenther  <rguenther@suse.de>
19669
19670         PR tree-optimization/43220
19671         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
19672         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
19673
19674 2010-03-01  Richard Guenther  <rguenther@suse.de>
19675             Martin Jambor  <mjambor@suse.cz>
19676
19677         PR middle-end/41250
19678         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
19679         gimplified parameters.
19680
19681 2010-03-01  Christian Bruel  <christian.bruel@st.com>
19682
19683         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
19684
19685 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
19686
19687         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
19688
19689 2010-03-01  Richard Guenther  <rguenther@suse.de>
19690
19691         PR middle-end/43213
19692         * expr.c (expand_assignment): Use the alias-oracle to tell
19693         if the rhs aliases the result decl.
19694
19695 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19696
19697         PR pch/14940
19698         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
19699         to sol_gt_pch_get_address.
19700         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
19701         64-bit, SPARC and x86.
19702         (sol_gt_pch_get_address): New function.
19703
19704 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
19705
19706         * toplev.h (inform_n, error_n): Declare.
19707         * diagnostic.c (inform_n, error_n): New function.
19708
19709 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
19710
19711         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
19712         has no rtl yet when processing local_decls, queue it and recheck
19713         if deferred stack allocation hasn't assigned it rtl.
19714
19715 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
19716
19717         * config/sh/sh.c (unspec_bbr_uid): New.
19718         (gen_block_redirect): Use it instead of INSN_UID.
19719         (gen_far_branch): Likewise.
19720
19721 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
19722
19723         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
19724         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
19725
19726 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19727
19728         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
19729         (Warning Options): -Wno-conversion-null is valid for
19730         Objective-C++ as well.
19731         * doc/tm.texi (Named Address Spaces): Likewise.
19732         * doc/plugins.texi (Plugins): Replace TABs with spaces.
19733         * doc/tree-ssa.texi (Tree SSA): Likewise.
19734
19735 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19736
19737         PR bootstrap/43202
19738         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
19739         by default.  Don't set the default arch for
19740         i[34567]86-*-darwin*|x86_64-*-darwin*.
19741
19742 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19743
19744         PR bootstrap/43202
19745         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
19746         default.  Set the default 32bit/64bit archs with $with_arch
19747         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
19748
19749 2010-02-27  Richard Guenther  <rguenther@suse.de>
19750
19751         PR tree-optimization/43186
19752         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
19753         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
19754         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
19755         unroller iterations.
19756
19757 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19758
19759         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
19760         required and i[34567]86-*-* targets don't support 64bit ISA.
19761
19762 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
19763
19764         PR ada/43096
19765         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19766         the same alias set.
19767
19768 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
19769
19770         * config.gcc: Set the default arch at least to Prescott for
19771         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
19772         if SSE math is enabled.
19773
19774 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19775
19776         * diagnostic.c (diagnostic_initialize): Update.
19777         (diagnostic_report_diagnostic): Test inhibit_notes_p for
19778         informative notes.
19779         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
19780         (diagnostic_inhibit_notes): New.
19781         * toplev.c (process_options): inhibit notes with -fcompare-debug.
19782
19783 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19784
19785         PR c/20631
19786         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
19787         * doc/standards.texi: Likewise.
19788         * doc/extend.texi: Likewise.
19789         * doc/trouble.texi: Likewise.
19790         * doc/cppopts.texi: Likewise.
19791         * doc/install.texi: Likewise.
19792         * c.opt (std=c90,std=gnu90): New options.
19793         * c-opts.c (c_common_handle_option): Handle them.
19794
19795 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19796
19797         PR c/24577
19798         * c-decl.c (undeclared_variable): Use an informative note.
19799
19800 2010-02-26  Richard Guenther  <rguenther@suse.de>
19801
19802         PR tree-optimization/43186
19803         * gimple.h (gimple_fold): Remove.
19804         * gimple.c (gimple_fold): Remove.  Inline into single user ...
19805         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
19806         Try harder for conditions.
19807
19808 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
19809
19810         PR debug/43190
19811         * function.c (used_types_insert): Don't skip through named pointer
19812         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
19813         and it is different from the main variant's type.
19814
19815 2010-02-26  Nick Clifton  <nickc@redhat.com>
19816
19817         * config/rx/rx.md (sminsi3): Remove bogus alternative.
19818
19819 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
19820
19821         * config.gcc: Support --with-fpmath=sse for x86.
19822
19823         * config/i386/ssemath.h: New.
19824
19825         * doc/install.texi (--with-fpmath=sse): Documented.
19826
19827 2010-02-26  Richard Guenther  <rguenther@suse.de>
19828
19829         PR tree-optimization/43188
19830         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
19831         vector types of over-aligned element type.
19832
19833 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
19834
19835         PR target/43175
19836         * config/i386/i386.c (expand_vec_perm_blend): Use correct
19837         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
19838
19839 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
19840
19841         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
19842
19843 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
19844
19845         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
19846         * var-tracking.c: Include diagnostic.h.
19847         (debug_dv): New function.
19848         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
19849
19850         PR debug/43160
19851         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
19852         (add_value_chain, add_value_chains, remove_value_chain,
19853         remove_value_chains): Handle DEBUG_EXPRs.
19854         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
19855
19856         PR debug/43161
19857         * regcprop.c (struct queued_debug_insn_change): New type.
19858         (struct value_data_entry): Add debug_insn_changes field.
19859         (struct value_data): Add n_debug_insn_changes field.
19860         (debug_insn_changes_pool): New variable.
19861         (free_debug_insn_changes, apply_debug_insn_changes,
19862         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
19863         (kill_value_one_regno): Call free_debug_insn_changes if needed.
19864         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
19865         fields.
19866         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
19867         changes for them.
19868         (copyprop_hardreg_forward_1): Don't call apply_change_group for
19869         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
19870         changes, call cprop_find_used_regs via note_stores.
19871         (copyprop_hardreg_forward): When copying vd from predecessor
19872         which has any queued DEBUG_INSN changes, make sure the pointers are
19873         cleared.  At the end call df_analyze and then if there are any
19874         DEBUG_INSN changes queued at the end of some basic block for still
19875         live registers, apply them.
19876         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
19877
19878 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
19879
19880         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
19881         (arm*-*-*): Ditto.
19882
19883 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
19884
19885         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
19886         targets.  Set the default with_cpu/with_arch from arch/cpu.
19887         Allow x86-64 and native for with_cpu/with_arch.
19888
19889 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
19890
19891         * ebitmap.c: Change calls to verify_popcount with calls to
19892         sbitmap_verify_popcount.
19893         (ebitmap_clear_bit): Fixed map->cacheindex test and
19894         map>cache update when bit clearing results in an empty
19895         element.
19896
19897 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19898
19899         PR target/43154
19900         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
19901         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
19902         and support both V2DF and V2DI modes.
19903         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
19904         support both V2DF and V2DI modes.
19905         (general): Delete trailing whitespace from a few patterns.
19906
19907         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19908         V2DF/V2DI interleave high/low builtins.
19909
19910         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
19911         new VSX builtins.
19912
19913         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
19914         interleave high/low functions.
19915
19916 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
19917
19918         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
19919         #pragma extern_prefix.
19920
19921 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
19922
19923         PR debug/43166
19924         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
19925         BLKmode, assert op0 is a MEM and just adjust its mode.
19926
19927         PR debug/43165
19928         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
19929         if bitpos isn't multiple of mode's bitsize.
19930
19931 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19932
19933         * c.opt (-ftemplate-depth=): New.
19934         (-ftemplate-depth-): Deprecate.
19935         * optc-gen.awk: Handle -ftemplate-depth=.
19936         * opth-gen.awk: Likewise.
19937         * c-opts.c (c_common_handle_option): Likewise.
19938         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
19939
19940 2010-02-24  Jason Merrill  <jason@redhat.com>
19941
19942         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
19943
19944 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19945
19946         * cfg.c (alloc_aux_for_block): Remove inline.
19947         (alloc_aux_for_edge): Likewise.
19948
19949 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19950
19951         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
19952
19953 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19954
19955         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
19956         * config/i386/sol2-gas.h: New file.
19957         * config.gcc (i[34567]86-*-solaris2*): Use it.
19958
19959 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19960
19961         PR c/43128
19962         * c-typeck.c (ep_convert_and_check): New.
19963         (build_conditional_expr): Use it.
19964         (build_binary_op): Likewise.
19965
19966 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
19967
19968         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
19969
19970         PR debug/43150
19971         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
19972         bounds even for -O+.
19973         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
19974         expr needs to have DECL_NAME set.
19975
19976 2010-02-24  Nick Clifton  <nickc@redhat.com>
19977
19978         * config/mep/mep.c: Include gimple.h.
19979         (mep_function_uses_sp): Delete unused function.
19980         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
19981         parameters.  Use unsigned integers to count args.  Return a
19982         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
19983
19984 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
19985
19986         PR target/43107
19987         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
19988         greater or equal to nelt instead of 2 * nelt.
19989         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
19990         with nelt - 1.
19991
19992 2010-02-23  Jason Merrill  <jason@redhat.com>
19993
19994         PR debug/42800
19995         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
19996         in cfun->local_decls even if they have register types.
19997
19998         PR c++/42837
19999         * stor-layout.c (place_field): Don't warn about unnecessary
20000         DECL_PACKED if the type is packed.
20001
20002 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
20003
20004         PR target/43139
20005         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
20006         GOTOFF relocs, even when the base reg isn't pic pointer.
20007
20008 2010-02-23  Michael Matz  <matz@suse.de>
20009
20010         PR debug/43077
20011         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
20012         (expand_gimple_basic_block): Generate and use debug temps if there
20013         are debug uses left after the last real use of TERed ssa names.
20014         Unlink debug immediate uses when they are expanded.
20015
20016 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20017
20018         PR 43123
20019         * config/i386/i386.c (override_options): Reorganise to provide
20020         better error messages.
20021
20022 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
20023
20024         PR middle-end/43083
20025         * graphite-scop-detection.c (create_single_exit_edge): Move
20026         the call to find_single_exit_edge to....
20027         (create_sese_edges): ...here.  Don't handle multiple edges
20028         exiting the function.
20029         (build_graphite_scops): Don't handle multiple edges
20030         exiting the function.
20031
20032 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
20033
20034         PR middle-end/43097
20035         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
20036         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
20037
20038 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
20039
20040         PR middle-end/43026
20041         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
20042
20043 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20044
20045         PR c++/43126
20046         * c-typeck.c (convert_arguments): Print declaration location.
20047         * c-common.c (validate_nargs): Rename as
20048         builtin_function_validate_nargs.
20049         (check_builtin_function_arguments): Update.
20050
20051 2010-02-22  Richard Guenther  <rguenther@suse.de>
20052
20053         PR lto/43045
20054         * tree-inline.c (declare_return_variable): Use the type of
20055         the call stmt lhs if available.
20056
20057 2010-02-22  Duncan Sands  <baldrick@free.fr>
20058
20059         * passes.c (register_pass): Always consider all pass lists when
20060         ref_pass_instance_number is zero.
20061
20062 2010-02-22  Richard Guenther  <rguenther@suse.de>
20063
20064         PR tree-optimization/42749
20065         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
20066         parameter.  Do arithmetic in the original type.
20067         (update_accumulator_with_ops): Likewise.
20068         (adjust_accumulator_values): Adjust.
20069
20070 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20071
20072         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
20073         (QI to BLKmode splitter): New splitter.
20074
20075 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
20076
20077         * config/i386/i386.c (initial_ix86_tune_features): Turn on
20078         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
20079
20080 2010-02-22  Richard Guenther  <rguenther@suse.de>
20081
20082         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
20083
20084 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
20085
20086         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
20087         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
20088         ($(T)crti.o, $(T)crtn.o): Remove rules.
20089
20090 2010-02-21  Tobias Burnus  <burnus@net-b.de>
20091
20092         PR fortran/35259
20093         * doc/invoke.texi (-fassociative-math): Document that this
20094         option is automatically enabled for Fortran.
20095
20096 2010-02-20  David S. Miller  <davem@davemloft.net>
20097
20098         * configure.ac: Test if linker and assembler properly support
20099         GOTDATA_OP relocations.
20100         * configure: Rebuild.
20101         * config.in: Likewise.
20102         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
20103         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
20104         (movsi_high_pic): Likewise.
20105         (movdi_lo_sum_pic): Likewise.
20106         (movdi_high_pic): Likewise.
20107         (movsi_pic_gotdata_op): New pattern.
20108         (movdi_pic_gotdata_op): Likewise.
20109         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
20110         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
20111
20112 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
20113
20114         PR target/43067
20115         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
20116         attribute to ssemul.
20117         (xop_mulv2div2di3_high): Ditto.
20118
20119 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20120
20121         PR c++/35669
20122         * c.opt (Wconversion-null): New option.
20123         * doc/invoke.texi (Wconversion-null): Document.
20124
20125 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20126
20127         * common.opt (Wlarger-than-): Add Undocumented.
20128
20129 2010-02-19  Mike Stump  <mikestump@comcast.net>
20130
20131         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
20132
20133 2010-02-19  Jason Merrill  <jason@redhat.com>
20134
20135         PR target/40332
20136         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
20137         * configure: Likewise.
20138
20139 2010-02-20  Alan Modra  <amodra@gmail.com>
20140
20141         PR middle-end/42344
20142         * cgraph.h (cgraph_make_decl_local): Declare.
20143         * cgraph.c (cgraph_make_decl_local): New function.
20144         (cgraph_make_node_local): Use it.
20145         * cgraphunit.c (cgraph_function_versioning): Likewise.
20146         * ipa.c (function_and_variable_visibility): Likewise.
20147
20148 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20149
20150         PR bootstrap/43121
20151         * except.c (sjlj_emit_function_enter): Don't call
20152         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
20153         directly.
20154         * rtl.h (add_reg_br_prob_note): Remove prototype.
20155
20156 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20157
20158         PR 41779
20159         * c-common.c (conversion_warning): Remove widening conversions
20160         before checking the conversion of integers to reals.
20161
20162 2010-02-19  Mike Stump  <mikestump@comcast.net>
20163
20164         PR middle-end/43125
20165         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
20166
20167         PR objc/43061
20168         * cgraphunit.c (process_function_and_variable_attributes): Check
20169         DECL_PRESERVE_P instead of looking up attribute "used".
20170         * ipa-pure-const.c (check_decl): Likewise.
20171         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
20172         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
20173         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
20174         instead of attribute "used".
20175         * config/sol2-c.c (solaris_pragma_init): Likewise.
20176         (solaris_pragma_fini): Likewise.
20177
20178 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20179
20180         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
20181         Use XCNEW instead of xcalloc.
20182         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
20183         XNEW instead of xmalloc.
20184         (get_fields): Use XNEWVEC instead of xmalloc.
20185
20186         PR debug/43084
20187         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
20188         populate vars array.
20189         (create_new_general_access): For debug stmts just reset value.
20190         (get_stmt_accesses): For accesses within debug stmts just record them
20191         using add_access_to_acc_sites instead of preventing the peeling or
20192         counting them as accesses.
20193
20194         PR middle-end/42233
20195         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
20196
20197 2010-02-19  Richard Guenther  <rguenther@suse.de>
20198
20199         PR tree-optimization/42916
20200         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
20201         instructions.
20202
20203 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20204
20205         * configure.ac: Replace all uses of changequote in macro arguments
20206         with proper quoting.
20207
20208 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20209
20210         PR middle-end/42233
20211         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
20212
20213 2010-02-19  Richard Guenther  <rguenther@suse.de>
20214
20215         PR tree-optimization/42944
20216         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
20217         test for aliasing with errno.
20218
20219 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20220
20221         PR middle-end/42233
20222         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
20223         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
20224         * dojump.c: Include output.h.
20225         (inv): New inline function.
20226         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
20227         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
20228         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
20229         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
20230         argument, pass it down to other calls.
20231         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
20232         add REG_BR_PROB note to the conditional jump.
20233         * cfgexpand.c (add_reg_br_prob_note): Removed.
20234         (expand_gimple_cond): Don't call it, add the probability
20235         as last argument to jumpif_1/jumpifnot_1.
20236         * Makefile.in (dojump.o): Depend on output.h.
20237         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
20238         callers.
20239         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
20240         * stmt.c (do_jump_if_equal): Likewise.
20241         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
20242         * loop-unswitch.c (compare_and_jump_seq): Likewise.
20243         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
20244         Likewise.
20245         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
20246         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
20247         jumpifnot_1 callers.
20248         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
20249         callers.
20250         (store_expr): Adjust jumpifnot caller.
20251         (store_constructor): Adjust jumpif caller.
20252
20253         PR middle-end/42233
20254         * gimplify.c (gimple_boolify): For __builtin_expect call
20255         gimple_boolify also on its first argument.
20256
20257 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
20258
20259         * configure.ac (gnu-unique-object): Wrap regexps using [] in
20260         changequote block.
20261         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
20262         * configure: Regenerated.
20263
20264 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20265
20266         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
20267         lang_hooks.types_compatible_p instead of comptypes.
20268
20269 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20270
20271         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
20272         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
20273         if __prefer_thumb__ is defined.
20274
20275 2010-02-18  Martin Jambor  <mjambor@suse.cz>
20276
20277         PR tree-optimization/43066
20278         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
20279         array with zero-sized element type.
20280
20281 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
20282
20283         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
20284         rtx, allocate struct var_loc_node here and return it to the
20285         caller, and only if it is actually needed.
20286         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
20287         move it earlier and return immediately if it returns NULL.
20288
20289 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
20290
20291         * config/sparc/gas.h: New file.  Restore
20292         TARGET_ASM_NAMED_SECTION to its ELF default.
20293         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
20294         check !HAVE_GNU_AS.
20295         * config/sparc/sparc.c (sparc_elf_asm_named_section):
20296         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
20297         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
20298         after sparc/sysv4.h.
20299
20300 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
20301
20302         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
20303
20304 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
20305
20306         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
20307         patterns from predicated pattern.
20308
20309 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
20310
20311         PR target/43103
20312         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
20313         for insn mnemonic suffix.
20314
20315 2010-02-17  Richard Guenther  <rguenther@suse.de>
20316
20317         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
20318         to loop PHI nodes.
20319
20320 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
20321
20322         PR debug/42918
20323         * caller-save.c (save_call_clobbered_regs): If BB ends with
20324         a DEBUG_INSN, move any notes in between last real insn and the last
20325         DEBUG_INSN after the last DEBUG_INSN.
20326
20327 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
20328
20329         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
20330         Fix return type.  Fix argument type.  Explain meaning of return value.
20331
20332 2010-02-16  Richard Guenther  <rguenther@suse.de>
20333
20334         PR tree-optimization/41043
20335         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
20336         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
20337         statements ...
20338         (vrp_visit_phi_node): ... but only for loop PHI nodes.
20339
20340 2010-02-16  Ira Rosen  <irar@il.ibm.com>
20341
20342         PR tree-optimization/43074
20343         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
20344         * tree-vect-loop.c (vect_analyze_loop_operations): Add
20345         vectorizable cycles in hybrid SLP check.
20346         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
20347
20348 2010-02-16  Richard Guenther  <rguenther@suse.de>
20349
20350         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
20351         (true_dependence): If memrefs_conflict_p computes must-alias
20352         trust it.  Move TBAA check after offset-based disambiguation.
20353         (canon_true_dependence): Likewise.
20354
20355 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
20356
20357         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
20358         * doc/invoke.texi: Document it.
20359         * var-tracking.c: Include toplev.h and params.h.
20360         (vt_find_locations): Return bool indicating success.  Compute
20361         hash sizes unconditionally.  Check new parameter, report.
20362         (variable_tracking_main_1): Check vt_find_locations results and
20363         retry.  Renamed from...
20364         (variable_tracking_main): ... this.  New wrapper to preserve
20365         flag_var_tracking_assignments.
20366         * Makefile.in (var-tracking.o): Adjust dependencies.
20367
20368 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
20369             Jakub Jelinek  <jakub@redhat.com>
20370
20371         PR target/42854
20372         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
20373         if weak_import attribute is present.
20374         * config/darwin.c (machopic_select_section): Likewise.
20375
20376 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
20377
20378         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
20379         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
20380         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
20381         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
20382
20383         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
20384         types.
20385
20386         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
20387         Fix argument types.
20388
20389         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
20390         Rewrite text to refer to the names.
20391
20392 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
20393
20394         * config/i386/i386-builtin-types.def
20395         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
20396         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
20397         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
20398         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
20399         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
20400         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
20401         IX86_BUILTIN_VPERMIL2PS256.
20402         (MULTI_ARG_4_DF2_DI_I): Defined.
20403         (MULTI_ARG_4_DF2_DI_I1): Defined.
20404         (MULTI_ARG_4_SF2_SI_I): Defined.
20405         (MULTI_ARG_4_SF2_SI_I1): Defined.
20406         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
20407         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
20408         __builtin_ia32_vpermil2ps256.
20409         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
20410         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
20411         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
20412         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
20413         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
20414         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
20415         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
20416         CODE_FOR_xop_vpermil2v8sf3.
20417         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
20418         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
20419         * config/i386/xopintrin.h (_mm_permute2_pd): New.
20420         (_mm256_permute2_pd): New.
20421         (_mm_permute2_ps): New.
20422         (_mm256_permute2_ps): New.
20423
20424 2010-02-15  Nick Clifton  <nickc@redhat.com>
20425
20426         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
20427         boolean parameters.  Use emit_jump_insn when emitting a pop
20428         instruction containing a return insn.
20429         (push): Use 'true' rather than '1' as second parameter to F.
20430         (h8300_expand_prologue): Likewise.
20431         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
20432         (h8300_expand_epilogue): Likewise.
20433
20434 2010-02-15  Richard Guenther  <rguenther@suse.de>
20435
20436         PR middle-end/43068
20437         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
20438         if that is zero.
20439
20440 2010-02-15  Nick Clifton  <nickc@redhat.com>
20441
20442         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
20443         delta.
20444
20445 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
20446
20447         * intl.c (fake_ngettext): New function.
20448         * intl.h (fake_ngettext): Declare.
20449         (ngettext): Define macro.
20450         * collect2.c (notice_translated): New function.
20451         (main): Use notice_translated and ngettext.
20452         * collect2.h (notice_translated): Declare.
20453
20454 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
20455
20456         * reorg.c (delete_computation): Comment fixes.
20457         * caller-save.c (setup_save_areas): Idem.
20458         * sel-sched-dump.c (dump_lv_set): Idem.
20459         * rtl.def: Idem.
20460
20461 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20462
20463         * config/s390/s390.c (s390_sched_init): New function.
20464         (TARGET_SCHED_INIT): Target hook defined.
20465
20466 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
20467             Jack Howarth  <howarth@bromo.med.uc.edu>
20468             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
20469
20470         PR target/42982
20471         Partial revert of unintended change in fix for PR41605.
20472         * config/darwin.h: Fix typo.
20473         * config/darwin9.h: Same.
20474
20475 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
20476
20477         * c-pch.c (pch_init): Clear v.
20478
20479 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
20480
20481         PR middle-end/42930
20482         * graphite-scop-detection.c (graphite_can_represent_scev): Call
20483         graphite_can_represent_init for MULT_EXPR.
20484
20485 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
20486
20487         PR middle-end/42914
20488         PR middle-end/42530
20489         * graphite-sese-to-poly.c (remove_phi): New.
20490         (translate_scalar_reduction_to_array): Call remove_phi.
20491
20492 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
20493
20494         PR middle-end/42771
20495         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
20496         * graphite-clast-to-gimple.h (gloog): Update declaration.
20497         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
20498         * graphite-poly.h (struct poly_bb): Add missing comments.
20499         (struct scop): Add poly_scop_p field.
20500         (POLY_SCOP_P): New.
20501         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
20502         * graphite.c (graphite_transform_loops): Build the polyhedral
20503         representation for each scop before code generation.
20504         * sese.c (rename_variables_in_operand): Removed.
20505         (rename_variables_in_expr): Return the renamed expression.
20506         (rename_sese_parameters): New.
20507         * sese.h (rename_sese_parameters): Declared.
20508
20509 2010-02-11  Richard Guenther  <rguenther@suse.de>
20510
20511         PR tree-optimization/42998
20512         * tree-ssa-pre.c (create_expression_by_pieces): Treat
20513         POINTER_PLUS_EXPR properly.
20514
20515 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
20516             Changpeng Fang  <changpeng.fang@amd.com>
20517
20518         PR middle-end/40886
20519         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
20520         the cost of an IV candidate when the IV is used in a test against zero.
20521
20522         * gcc.dg/tree-ssa/ivopts-3.c: New.
20523
20524 2010-02-11  Richard Guenther  <rguenther@suse.de>
20525
20526         PR lto/41664
20527         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
20528         pointer-vs-decl case by swapping refs.  Handle some cases
20529         of pointer-vs-decl disambiguations more conservatively.
20530         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
20531         to false after expanding.
20532
20533 2010-02-11  Richard Guenther  <rguenther@suse.de>
20534
20535         PR driver/43021
20536         * gcc.c (process_command): Handle LTO file@offset case more
20537         appropriately.
20538
20539 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
20540
20541         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
20542         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
20543         of DEBUG_INSNs.
20544         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
20545
20546         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
20547         if MEM's mode size isn't DWARF2_ADDR_SIZE.
20548         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
20549         Optimize eq/ne comparisons when both arguments are known to be
20550         zero-extended.
20551         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
20552         Don't mask operands unnecessarily if they are known to be already
20553         zero-extended.
20554
20555 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
20556
20557         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
20558         instead of loop.
20559
20560 2010-02-10  Richard Guenther  <rguenther@suse.de>
20561
20562         PR tree-optimization/43017
20563         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
20564         for wrapping signed arithmetic.
20565
20566 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
20567
20568         PR debug/43010
20569         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
20570         if no debug info should be emitted for it.
20571
20572 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
20573
20574         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
20575         note when flag_exceptions is set.
20576
20577 2010-02-10  Duncan Sands  <baldrick@free.fr>
20578
20579         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
20580
20581 2010-02-10  Richard Guenther  <rguenther@suse.de>
20582
20583         PR c/43007
20584         * tree.c (get_unwidened): Handle constants.
20585         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
20586
20587 2010-02-10  Martin Jambor  <mjambor@suse.cz>
20588
20589         PR lto/42985
20590         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
20591         check for variable argument counts independently.
20592
20593 2010-02-10  Christian Bruel  <christian.bruel@st.com>
20594
20595         PR target/42841
20596         * config/sh/sh.c (find_barrier): Increase length for non delayed
20597         conditional branches.
20598
20599 2010-02-10  Christian Bruel  <christian.bruel@st.com>
20600
20601         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
20602
20603 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
20604
20605         * builtins.c (set_builtin_user_assembler_name): Also handle
20606         ffs if int is smaller than word.
20607
20608 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
20609
20610         PR middle-end/42973
20611         * ira-conflicts.c (get_dup): Remove.
20612         (process_reg_shuffles): Add new parameter.  Use it as an
20613         additional guard for copy generation.
20614         (add_insn_allocno_copies): Rewrite.
20615
20616 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
20617
20618         * common.opt (fsched2-use-traces): Preserved for backward
20619         compatibility.
20620         * doc/invoke.texi: Remove the documentation about option
20621         -fsched2-use-traces.
20622         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
20623         flag_sched2_use_traces.
20624         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
20625         the backward compatibility flag section.
20626
20627 2010-02-09  Richard Guenther  <rguenther@suse.de>
20628
20629         PR tree-optimization/43008
20630         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
20631         make HEAP variables initialized from global memory if they
20632         are not known builtin functions.
20633         (find_func_aliases): Adjust.
20634
20635 2010-02-09  Richard Guenther  <rguenther@suse.de>
20636
20637         PR tree-optimization/43000
20638         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
20639         arithmetic manually.
20640
20641 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
20642
20643         PR tree-optimization/42931
20644         * tree-loop-linear.c (try_interchange_loops): Don't call
20645         double_int_mul if estimated_loop_iterations failed.
20646
20647 2010-02-08  Martin Jambor  <mjambor@suse.cz>
20648
20649         PR middle-end/42898
20650         * tree-sra.c (build_accesses_from_assign): Do not mark in
20651         should_scalarize_away_bitmap if stmt has volatile ops.
20652         (sra_modify_assign): Do not process assigns piecemeal if if stmt
20653         has volatile ops.
20654
20655 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
20656
20657         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
20658
20659 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
20660
20661         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
20662         before the pattern.
20663
20664 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
20665
20666         PR middle-end/42946
20667         * df-core.c (df_finish_pass): Change type of saved_flags to int.
20668
20669 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
20670
20671         PR middle-end/42988
20672         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
20673         to unknown_dependence.
20674         (graphite_legal_transform_dr): Handle the unknown_dependence.
20675         (graphite_carried_dependence_level_k): Same.
20676
20677 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
20678
20679         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
20680
20681 2010-02-07  Richard Guenther  <rguenther@suse.de>
20682
20683         PR middle-end/42991
20684         * expr.c (get_inner_reference): Always initialize *pbitsize.
20685
20686 2010-02-07  Richard Guenther  <rguenther@suse.de>
20687
20688         PR middle-end/42956
20689         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
20690         new ARRAY_REFs on variable size element or minimal index arrays.
20691         Complete.
20692         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
20693         gimple_fold_indirect_ref.
20694
20695 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
20696
20697         PR target/42957
20698         * arm.c (arm_override_options): Just return if the user has specified
20699         an invalid fpu name.
20700
20701 2010-02-03  Jason Merrill  <jason@redhat.com>
20702
20703         PR c++/42870
20704         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
20705         i386_pe_maybe_record_exported_symbol.
20706
20707 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
20708
20709         PR target/42924
20710         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
20711         (pa_delegitimize_address): New function.
20712
20713 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
20714
20715         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
20716         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
20717
20718 2010-02-05  Richard Guenther  <rguenther@suse.de>
20719
20720         PR lto/42762
20721         * lto-streamer-in.c (get_resolution): Deal with references
20722         to undefined functions.
20723
20724 2010-02-05  Richard Guenther  <rguenther@suse.de>
20725
20726         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
20727         (fold_const_aggregate_ref): Likewise.
20728         (ccp_fold_stmt): Substitute loads.
20729         (maybe_fold_reference): Verify types before substituting.
20730         Unshare properly.
20731         (fold_gimple_assign): Unshare properly.
20732         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
20733
20734 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
20735
20736         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
20737         for rs6000_gen_cell_microcode.
20738
20739 2010-02-04  Richard Guenther  <rguenther@suse.de>
20740
20741         PR rtl-optimization/42952
20742         * dse.c (const_or_frame_p): Remove MEM handling.
20743
20744 2010-02-04  Nick Clifton  <nickc@redhat.com>
20745
20746         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
20747         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20748         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
20749         (mn10300_asm_output_mi_thunk): New function.
20750         (mn10300_can_output_mu_thunk): New function.
20751         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
20752         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
20753         (FUNCTION_ARG): Delete incorrect comment.
20754
20755 2010-02-03  Jason Merrill  <jason@redhat.com>
20756
20757         PR c++/40138
20758         * fold-const.c (operand_equal_p): Handle erroneous types.
20759
20760 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20761
20762         * config/h8300/h8300.md (can_delay): Fix attibute condition.
20763
20764 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
20765
20766         PR rtl-optimization/42941
20767         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
20768         of xmalloc.
20769
20770 2010-02-03  Jason Merrill  <jason@redhat.com>
20771
20772         PR c++/35652
20773         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
20774
20775 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
20776
20777         PR debug/42896
20778         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
20779         (cselib_reset_table): Renamed from...
20780         (cselib_reset_table_with_next_value): ... this.
20781         (cselib_get_next_uid): Renamed from...
20782         (cselib_get_next_unknown_value): ... this.
20783         * cselib.c (next_uid): Renamed from...
20784         (next_unknown_value): ... this.
20785         (cselib_clear_table): Adjust.
20786         (cselib_reset_table): Adjust.  Renamed from...
20787         (cselib_reset_table_with_next_value): ... this.
20788         (cselib_get_next_uid): Adjust.  Renamed from...
20789         (cselib_get_next_unknown_value): ... this.
20790         (get_value_hash): Use hash.
20791         (cselib_hash_rtx): Likewise.
20792         (new_cselib_val): Adjust.  Set and dump uid.
20793         (cselib_lookup_mem): Pass next_uid as hash.
20794         (cselib_subst_to_values): Likewise.
20795         (cselib_log_lookup): Dump uid.
20796         (cselib_lookup): Pass next_uid as hash.  Adjust.
20797         (cselib_process_insn): Adjust.
20798         (cselib_init): Initialize next_uid.
20799         (cselib_finish): Adjust.
20800         (dump_cselib_table): Likewise.
20801         * dse.c (canon_address): Dump value uid.
20802         * print-rtl.c (print_rtx): Print value uid.
20803         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
20804         (dvuid): New type.
20805         (dv_uid): New function, sort of renamed from...
20806         (dv_htab_hash): ... this, reimplemented in terms of it and...
20807         (dv_uid2hash): ... this.  New.
20808         (variable_htab_eq): Drop excess assertions.
20809         (tie_break_pointers): Removed.
20810         (canon_value_cmp): Compare uids.
20811         (variable_post_merge_New_vals): Print uids.
20812         (vt_add_function_parameters): Adjust.
20813         (vt_initialize): Reset table.  Adjust.
20814
20815 2010-02-03  Richard Guenther  <rguenther@suse.de>
20816
20817         PR tree-optimization/42944
20818         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
20819         (call_may_clobber_ref_p_1): Likewise.  Properly handle
20820         malloc and calloc clobbering errno.
20821
20822 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
20823
20824         * doc/invoke.texi: Fix name of sched1 dump.
20825
20826         * opts.c (decode_options): Set flag_tree_switch_conversion
20827         only conditionally on optimize >= 2.
20828
20829         * gcse.c: Assorted comment fixes in pass description.
20830
20831 2010-02-03  Anthony Green  <green@moxielogic.com>
20832
20833         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
20834         nop padding in order to maintain alignment of storage location of
20835         target function address.
20836         (moxie_trampoline_init): Store target function address at newly
20837         aligned location.
20838         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
20839         to 32.
20840         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
20841
20842 2010-02-03  Richard Guenther  <rguenther@suse.de>
20843
20844         PR middle-end/42927
20845         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
20846
20847 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20848
20849         * config.gcc: Reenable check for obsolete targets.
20850         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
20851         mips-sgi-irix6.[0-4]*.
20852
20853 2010-02-02  Nick Clifton  <nickc@redhat.com>
20854
20855         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
20856         constant size of 4 as being the same as 0.
20857         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
20858         can take values in the range 0..4.
20859
20860 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
20861
20862         PR java/41991
20863         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
20864         as _darwin10_Unwind_FindEnclosingFunction().
20865         * libgcc-libsystem.ver: New.
20866
20867 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
20868
20869         PR target/41399
20870         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
20871         implicitly set registers.
20872
20873 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
20874
20875         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
20876         (arm_override_options): Allow automatic selection of the thread
20877         pointer register if thumb2.
20878         (legitimize_pic_address): Improve code sequences for Thumb2.
20879         (arm_call_tls_get_addr): Likewise.
20880         (legitimize_tls_address): Likewise.
20881         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
20882         (pic_load_addr_32bit): ... this.  New named pattern.
20883         * thumb2.md (pic_load_addr_thumb2): Delete.
20884         (pic_load_dot_plus_four): Delete.
20885         (tls_load_dot_plus_four): New named pattern.
20886
20887 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20888
20889         PR libgomp/29986
20890         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
20891         Document fix for TLS bug.
20892
20893 2010-01-31  Richard Guenther  <rguenther@suse.de>
20894
20895         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
20896         conservatively correct.
20897
20898 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20899
20900         PR target/42850
20901         Revert:
20902         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20903
20904         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20905
20906 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20907
20908         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
20909
20910 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
20911
20912         * config.gcc: Adjust order of makefile fragments for mingw targets.
20913
20914 2010-01-31  Richard Guenther  <rguenther@suse.de>
20915
20916         PR middle-end/42898
20917         * gimplify.c (gimplify_init_constructor): For volatile LHS
20918         initialize a temporary.
20919
20920 2010-01-31  Matthias Klose  <doko@ubuntu.com>
20921
20922         * configure.ac: Fix __stack_chk_fail check for cross builds configured
20923         --with-headers
20924         * configure: Regenerate.
20925
20926 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
20927
20928         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20929         the same alias set and their sizes different constantness.
20930         (aliasing_component_refs_p): Revert 2009-10-24 change.
20931
20932 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20933
20934         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
20935         unused.
20936
20937 2010-01-29  Richard Guenther  <rguenther@suse.de>
20938
20939         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
20940         Assert we successfully updated the call.
20941
20942 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
20943
20944         PR rtl-optimization/42889
20945         * df.h (df_set_bb_dirty_nonlr): New prototype.
20946         * df-core.c (df_set_bb_dirty_nonlr): New function.
20947         * df-scan.c (df_insn_rescan): Call it instead of
20948         df_set_bb_dirty for DEBUG_INSNs.
20949
20950 2010-01-29  Richard Guenther  <rguenther@suse.de>
20951
20952         PR middle-end/37448
20953         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
20954         quadratic behavior in most cases.
20955
20956 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
20957
20958         PR target/42891
20959         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
20960         in the call to gen_x86_movsicc_0_m1.
20961
20962 2010-01-28  Richard Guenther  <rguenther@suse.de>
20963
20964         PR tree-optimization/42871
20965         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
20966
20967 2010-01-28  Richard Guenther  <rguenther@suse.de>
20968
20969         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
20970         into call arguments.
20971
20972 2010-01-28  Richard Guenther  <rguenther@suse.de>
20973
20974         PR middle-end/42883
20975         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
20976         the forwarder if the destination is an EH landing pad.
20977
20978 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
20979
20980         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
20981         block list passed to gimple_duplicate_sese_tail.
20982         (parallelize_loops): Avoid parallelization when the function
20983         has_nonlocal_label.
20984         Avoid parallelization when the preheader is IRREDUCIBLE.
20985         Try to optimize when estimated_loop_iterations_int is unresolved.
20986         Add the loop's location to the dump file.
20987         * tree-cfg.c (add_phi_args_after_redirect): Remove.
20988         (gimple_duplicate_sese_tail): Remove the check for the latch.
20989         Redirect nexits to the exit block.
20990         Remove handling of the incoming edges to the latch.
20991         Redirect the backedge from the copied latch to the exit bb.
20992
20993 2010-01-28  Michael Matz  <matz@suse.de>
20994
20995         PR target/42881
20996         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
20997         Wrap force_reg into a sequence, emit it before user.
20998
20999 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
21000
21001         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
21002         (arm_rev): New.
21003         (arm_legacy_rev): Likewise.
21004         (thumb_legacy_rev): Likewise.
21005
21006 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
21007
21008         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
21009         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
21010         on MEM's address failed, try avoid_constant_pool_reference and
21011         recurse if it returned something different.
21012         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
21013         address, try avoid_constant_pool_reference and recurse if it
21014         returned something different.
21015         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
21016         address and avoid_constant_pool_reference returned something
21017         different, don't set have_address.
21018
21019 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
21020
21021         PR debug/42861
21022         * var-tracking.c (val_store): Add modified argument, obey it.
21023         Adjust callers.
21024         (count_uses): Move down logging of main.
21025         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
21026         don't need resolution.
21027         (emit_notes_in_bb): Likewise.
21028
21029 2010-01-27  Richard Guenther  <rguenther@suse.de>
21030
21031         PR middle-end/42878
21032         * tree-inline.c (remap_decl): Delay remapping of SSA name
21033         default definitions until we need them.
21034
21035 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
21036
21037         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21038         (rs6000_delegitimize_address): New function.
21039
21040         * config/s390/s390.c (s390_delegitimize_address): Call
21041         delegitimize_mem_from_attrs.
21042
21043         PR middle-end/42874
21044         * tree-inline.c (cannot_copy_type_1): Removed.
21045         (copy_forbidden): Don't forbid copying of functions containing
21046         records/unions with variable length fields.
21047
21048 2010-01-27  Christian Bruel  <christian.bruel@st.com>
21049
21050         Revert:
21051         PR target/42841
21052         * config/sh/sh.c (find_barrier): Increase length for non delayed
21053         conditional branches.
21054
21055 2010-01-27  Matthias Klose  <doko@ubuntu.com>
21056
21057         * configure.ac (gnu-unique-object): Fix ldd version check.
21058         * configure: Regenerate.
21059
21060 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21061
21062         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
21063         HAVE_GNU_AS value.
21064         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
21065         Test for HAVE_GNU_AS value.
21066
21067 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21068
21069         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
21070         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
21071         INT64_TYPE): Define.
21072         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
21073         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21074         INT_LEAST64_TYPE): Define.
21075         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
21076         UINT_LEAST64_TYPE): Define.
21077         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
21078         INT_FAST64_TYPE): Define.
21079         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21080         UINT_FAST64_TYPE): Define.
21081         (INTMAX_TYPE, UINTMAX_TYPE): Define.
21082         (INTPTR_TYPE, UINTPTR_TYPE): Define.
21083         (SIG_ATOMIC_TYPE): Define.
21084
21085 2010-01-26  Richard Guenther  <rguenther@suse.de>
21086
21087         * df-scan.c (df_scan_set_bb_info): Remove assert.
21088         (df_insn_rescan_debug_internal): Merge asserts.
21089         (df_install_ref): Likewise.
21090         (df_mark_reg): Use bitmap_set_range.
21091         (df_hard_reg_used_p): Remove assert.
21092         (df_hard_reg_used_count): Likewise.
21093
21094 2010-01-26  Richard Guenther  <rguenther@suse.de>
21095
21096         PR rtl-optimization/42685
21097         * web.c (web_main): Ignore DEBUG_INSNs.
21098
21099 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
21100
21101         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
21102
21103         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
21104         Fix types of fndecl and arglist parameters.
21105
21106 2010-01-26  Richard Guenther  <rguenther@suse.de>
21107
21108         PR middle-end/42806
21109         * tree-eh.c (unsplit_eh): Skip debug insns.
21110
21111 2010-01-26  Richard Guenther  <rguenther@suse.de>
21112
21113         PR tree-optimization/42250
21114         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
21115
21116 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
21117
21118         PR fortran/42866
21119         * omp-low.c (expand_omp_sections): Only use single_pred if
21120         l2_bb is single_pred_p.
21121
21122 2010-01-25  Christian Bruel  <christian.bruel@st.com>
21123
21124         PR target/42841
21125         * config/sh/sh.c (find_barrier): Increase length for non delayed
21126         conditional branches.
21127         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
21128
21129 2010-01-24  David S. Miller  <davem@davemloft.net>
21130
21131         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
21132         define if not using GAS.
21133         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21134         Likewise.  Delete SECTION_MERGE code, which is only applicable
21135         when using GAS.
21136
21137 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
21138
21139         PR c++/42748
21140         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
21141         mangling of va_list in system headers.
21142
21143 2010-01-23  Toon Moene  <toon@moene.org>
21144
21145         * tree-predcom.c (combine_chains): Return NULL, not false.
21146
21147 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
21148
21149         * tree-loop-distribution.c (distribute_loop): Fix declaration and
21150         initialization of variable res to agree with return type.
21151
21152 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
21153
21154         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
21155         * tree-sra.c: Add include of expr.h.
21156
21157 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
21158
21159         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
21160         insert the debug stmt on the single non-EH edge from the stmt.
21161
21162 2010-01-22  Richard Henderson  <rth@redhat.com>
21163
21164         PR tree-opt/42833
21165         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
21166         the RHS until after generate_subtree_copies has insertted its
21167         code before the current statement.
21168
21169 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
21170
21171         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
21172
21173         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
21174
21175 2010-01-21  Martin Jambor  <mjambor@suse.cz>
21176
21177         PR tree-optimization/42585
21178         * tree-sra.c (struct access): New field grp_total_scalarization.
21179         (dump_access): Dump the new field.
21180         (should_scalarize_away_bitmap): New variable.
21181         (cannot_scalarize_away_bitmap): Likewise.
21182         (sra_initialize): Allocate new bitmaps.
21183         (sra_deinitialize): Free new bitmaps.
21184         (create_access_1): New function.
21185         (create_access): Parts moved to create_access_1.
21186         (type_consists_of_records_p): New function.
21187         (completely_scalarize_record): Likewise.
21188         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
21189         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
21190         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
21191         access.
21192         (analyze_all_variable_accesses): Completely scalarize small eligible
21193         records.
21194
21195 2010-01-21  Martin Jambor  <mjambor@suse.cz>
21196
21197         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
21198
21199 2010-01-21  Andrew Haley  <aph@redhat.com>
21200
21201         * gcc.c (process_command): Move lang_specific_driver before
21202         setting cc_libexec_prefix.
21203
21204 2010-01-21  Richard Guenther  <rguenther@suse.de>
21205
21206         PR middle-end/19988
21207         * fold-const.c (negate_expr_p): Pretend only negative
21208         real constants are easily negatable.
21209
21210 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
21211             Jason Merrill  <jason@redhat.com>
21212
21213         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
21214         (TYPE_TRANSPARENT_AGGR): this, for union and record.
21215         * calls.c (initialize argument_information): Handle it.
21216         * c-common.c (handle_transparent_union_attribute): Use new name.
21217         * c-decl.c (finish_struct): Ditto.
21218         * c-typeck.c (type_lists_compatible_p): Ditto.
21219         (convert_for_assignment): Use new name and also handle record.
21220         * function.c (aggregate_value_p): Handle it.
21221         (pass_by_reference): Ditto.
21222         (assign_parm_data_types): Ditto.
21223         * print-tree.c (print_node): Ditto.
21224         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
21225         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
21226         * tree.c (first_field): New fn.
21227
21228 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
21229
21230         PR target/42818
21231         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
21232         even when linking statically, for now.
21233
21234 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
21235
21236         PR debug/42715
21237         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
21238         without a cselib val.
21239         (count_uses): Accept MO_VAL_SET with no val on stores.
21240         (add_stores): Likewise.
21241
21242 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21243
21244         * var-tracking.c (check_value_val): Add a compile time assertion.
21245         (dv_is_decl_p): Simplify.
21246         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
21247         gcc_assert if ENABLE_CHECKING.
21248
21249 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
21250
21251         PR debug/42782
21252         * var-tracking.c: Include tree-flow.h.
21253         (mem_dies_at_call): New.
21254         (dataflow_set_preserve_mem_locs): Use it.
21255         (dataflow_set_remove_mem_locs): Likewise.
21256         (dump_var): Renamed from dump_variable.  Adjust all callers.
21257         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
21258         * Makefile.in (var-tracking.o): Adjust deps.
21259
21260 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
21261
21262         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
21263
21264 2010-01-20  Richard Guenther  <rguenther@suse.de>
21265
21266         PR tree-optimization/42717
21267         * tree-ssa-dce.c (get_live_post_dom): Remove.
21268         (forward_edge_to_pdom): Take an arbitrary edge to copy
21269         degenerate PHI args from.
21270         (remove_dead_stmt): Use the first post-dominator even if it
21271         does not contain live statements as redirection destination.
21272
21273 2010-01-20  Richard Guenther  <rguenther@suse.de>
21274
21275         * tree-inline.c (estimate_num_insns): Handle EH builtins.
21276
21277 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21278
21279         * sel-sched.c (create_speculation_check): Remove set but not used
21280         variable twin.
21281         (try_transformation_cache): Remove set but not used variable ds.
21282         (calculate_privileged_insns): Remove set but not used variables
21283         cur_insn and min_spec_insn.
21284         (find_best_expr): Remove set but not used variable avail_n.
21285         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
21286         variable e.
21287         * cgraphunit.c (assemble_thunk): Remove set but not used variable
21288         false_label.
21289         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
21290         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
21291         new_scop_exit_edge.
21292
21293 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
21294
21295         PR bootstrap/42786
21296         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
21297         cpu types.  Add support for *-sse3 cpu types.
21298         (x86_64-*-*): Ditto.
21299
21300 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21301
21302         PR middle-end/42803
21303         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
21304         argument, call initializer_constant_valid_p_1 instead of
21305         initializer_constant_valid_p, pass CACHE to it, return NULL
21306         immediately if first call returns NULL.
21307         (initializer_constant_valid_p_1): New function.
21308         (initializer_constant_valid_p): Use it.
21309
21310 2010-01-20  Thomas Quinot  <quinot@adacore.com>
21311
21312         * tree.def (PLACEHOLDER_EXPR): Fix comment.
21313
21314 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21315
21316         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
21317         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
21318         (loc_list_from_tree): Don't handle unsigned division.  Handle
21319         signed modulo using DW_OP_{over,over,div,mul,minus}.
21320         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
21321         modulo instead of signed.
21322
21323 2010-01-20  DJ Delorie  <dj@redhat.com>
21324
21325         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
21326         (Fpa): Pass it
21327         (h8300_emit_stack_adjustment): Propogate it.
21328         (push): Pass it.
21329         (h8300_expand_prologue): Likewise.
21330         (h8300_expand_epilogue): Likewise.
21331
21332 2010-01-19  Michael Matz  <matz@suse.de>
21333
21334         PR tree-optimization/41783
21335         * tree-data-ref.c (toplevel): Include flags.h.
21336         (dump_data_dependence_relation):  Also dump the inputs if the
21337         result will be unknown.
21338         (split_constant_offset_1): Look through some conversions.
21339         * tree-predcom.c (determine_roots_comp): Restart a new chain if
21340         the offset from last element is too large.
21341         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
21342         (reassociate_to_the_same_stmt): Handle vector registers.
21343         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
21344         (e.g. conversions).
21345         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
21346         wide_prolog_niters argument, emit widening instructions.
21347         (vect_do_peeling_for_alignment): Adjust caller, use widened
21348         variant of the iteration cound.
21349         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
21350
21351 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21352
21353         PR target/38697
21354         * config/arm/neon-testgen.m (emit_automatics): New parameter
21355         features. Adjust for Fixed_return_reg feature.
21356         (test_intrinsic): Call emit_automatics with new feature.
21357         * config/arm/neon.ml: Update copyright years.
21358         (features): New Fixed_return_reg feature.
21359         (ops): Update feature for Vget_low.
21360
21361 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
21362
21363         PR tree-optimization/42719
21364         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
21365         stmt uses.
21366
21367         PR debug/42728
21368         * fwprop.c (all_uses_available_at): Return false if def_set dest
21369         is a REG that is used in def_insn.
21370
21371 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
21372
21373         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
21374
21375         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
21376         Add argument names.
21377
21378         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
21379
21380         * target.h (struct gcc_target) <secondary_reload>: Change type
21381         of last argument to secondary_reload_info *.
21382
21383 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
21384
21385         PR target/42774
21386         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
21387         memory references with unaligned offsets.  Remove CQImode handling.
21388         (unaligned_memory_operand): Return 1 for memory references with
21389         unaligned offsets.  Remove CQImode handling.
21390
21391 2010-01-18  Richard Guenther  <rguenther@suse.de>
21392
21393         PR middle-end/39954
21394         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
21395         builtin calls.
21396
21397 2010-01-18  Richard Guenther  <rguenther@suse.de>
21398
21399         PR tree-optimization/42781
21400         * tree-ssa-structalias.c (find_what_var_points_to): Skip
21401         restrict processing only if the original variable was artificial.
21402
21403 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
21404
21405         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
21406         find number of popped argument bytes.
21407
21408         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
21409         Fix the text that describes the return value for invalid insns.
21410
21411         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
21412
21413         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
21414         Clarify what 'cost of the -dependence' is.  Fix quoting.
21415
21416         * toplev.c (default_get_pch_validity): Rename argument to "sz".
21417         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
21418
21419 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
21420
21421         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
21422         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
21423
21424 2010-01-17  Richard Guenther  <rguenther@suse.de>
21425
21426         PR middle-end/42248
21427         * function.c (split_complex_args): Take a VEC to modify.
21428         (assign_parms_augmented_arg_list): Build a VEC instead of
21429         a chain of PARM_DECLs.
21430         (assign_parms_unsplit_complex): Take a VEC of arguments.
21431         Do not fixup unmodified parms.
21432         (assign_parms): Deal with the VEC.
21433         (gimplify_parameters): Likewise.
21434
21435 2010-01-17  Richard Guenther  <rguenther@suse.de>
21436
21437         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
21438         node existence check.
21439         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
21440         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
21441         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
21442         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
21443         (gimple_execute_on_growing_pred): Likewise.
21444
21445 2010-01-17  Richard Guenther  <rguenther@suse.de>
21446
21447         PR tree-optimization/42773
21448         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
21449         (compute_antic_aux): Likewise.
21450         (compute_partial_antic_aux): Likewise.
21451
21452 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
21453
21454         PR debug/42767
21455         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
21456         and US_TRUNCATE.
21457
21458 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
21459
21460         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
21461         appearance.
21462
21463         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
21464         Fix markup for strict argument.
21465
21466         (TARGET_SCHED_REORDER2): Fix argument types.
21467
21468         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
21469         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
21470
21471         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
21472         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
21473
21474         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
21475         Add argument name.
21476
21477         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
21478         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
21479         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
21480         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
21481         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
21482
21483         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
21484
21485         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
21486
21487         (TARGET_ASM_RELOC_RW_MASK): Add return type.
21488         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
21489
21490         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
21491
21492         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
21493         Use prototype.
21494
21495         (TARGET_ASM_NAMED_SECTION): Fix argument list.
21496
21497         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
21498         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
21499
21500         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
21501
21502         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
21503
21504         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
21505         referring to it.  Fix language.
21506
21507         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
21508
21509         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
21510
21511         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
21512
21513         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
21514
21515         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
21516         '@var{stream}.  Remove stray 'and'.
21517
21518         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
21519
21520         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
21521
21522         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
21523
21524         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
21525         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
21526
21527         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
21528         Fix description of return value.
21529         Rename argument "sz" to "len."
21530
21531         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
21532         Clarify meaning of 'true' return value.
21533
21534         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
21535
21536         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
21537         rep_mode versus mode_rep.
21538
21539         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
21540
21541         (TARGET_BUILTIN_DECL): Fix name.
21542
21543         (TARGET_COMMUTATIVE_P): Fix type of first argument.
21544
21545         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
21546
21547         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
21548
21549         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
21550
21551         (TARGET_RELAXED_ORDERING): Use @deftypevr.
21552
21553         (TARGET_GET_DRAP_RTX): Note that this is a hook.
21554         Clarify language.
21555
21556         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
21557         Rename argument tm_fn to md_fn.
21558
21559         (TARGET_OPTION_PRINT): Fix argument list.
21560
21561 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
21562
21563         PR target/42664
21564         * config/i386/i386.c (ix86_fixup_binary_operands):
21565         Revert FMA4 fixup of operands.
21566
21567 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21568
21569         PR gcc/42525
21570         * Makefile.in (write_entries_to_file, install-plugin):
21571         Use \012 instead of \n with tr.
21572
21573 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
21574
21575         * configure.ac (HAVE_AS_REF): New C macro.
21576         * configure: Regenerate.
21577         * config.in: Likewise.
21578         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
21579         if HAVE_AS_REF.
21580         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
21581         if HAVE_AS_REF.
21582
21583 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
21584
21585         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
21586
21587         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
21588
21589         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
21590
21591         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
21592
21593         (TARGET_IN_SMALL_DATA_P): Fix argument type.
21594
21595         (TARGET_BINDS_LOCAL_P): Fix argument type.
21596
21597         (TARGET_ASM_FILE_END): Use prototype.
21598
21599         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
21600
21601         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
21602
21603         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
21604
21605         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
21606
21607         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
21608         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
21609
21610         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
21611         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
21612
21613         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
21614         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
21615         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
21616         (TARGET_ADDR_SPACE_CONVERT): Likewise.
21617
21618         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
21619
21620         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
21621
21622         (TARGET_INIT_BUILTINS): Use prototype.
21623
21624         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
21625         Put 'const char *' in braces.  Fix parameter types.
21626         (TARGET_INVALID_CONVERSION): Fix parameter types.
21627         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
21628         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
21629
21630         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
21631         Fix argument type.
21632
21633         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
21634
21635         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
21636
21637 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
21638
21639         * doc/tm.texi (TARGET_HELP): Fix return type.
21640
21641         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
21642         in braces.  Fix argument types.
21643
21644         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
21645
21646         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
21647
21648         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
21649
21650         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
21651         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
21652
21653         (TARGET_MANGLE_TYPE): Fix argument types.
21654
21655         (TARGET_IRA_COVER_CLASSES): Use prototype.
21656
21657         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
21658
21659         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
21660
21661         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
21662
21663         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
21664
21665         (TARGET_CALLEE_COPIES): Fix argument types.
21666
21667         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
21668
21669         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
21670
21671         (TARGET_FUNCTION_VALUE): Fix argument types.
21672
21673         (TARGET_RETURN_IN_MSB): Fix argument type.
21674
21675         (TARGET_RETURN_IN_MEMORY): Fix argument types.
21676
21677         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
21678
21679         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
21680
21681         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
21682         agree with return type.
21683
21684         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
21685
21686 2010-01-15  Jing Yu  <jingyu@google.com>
21687
21688         PR rtl-optimization/42691
21689         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
21690         a pseudo to a constant and are merged, and adjust comments.
21691
21692 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21693
21694         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
21695
21696 2010-01-15  Richard Guenther  <rguenther@suse.de>
21697
21698         PR middle-end/42739
21699         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
21700         labels of computed or non-local gotos to the destination.
21701         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
21702         landing pad label is the first label.
21703
21704 2010-01-15  Richard Guenther  <rguenther@suse.de>
21705
21706         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
21707
21708 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21709
21710         PR target/42747
21711         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
21712         to allow generation of the xssqrtdp instruction on power7.
21713         (sqrtdf2_fpr): Ditto.
21714
21715 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21716
21717         PR middle-end/42674
21718         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
21719         functions with noreturn attribute.
21720
21721         PR c++/42608
21722         * varasm.c (declare_weak): Add weak attribute to decl if it
21723         doesn't have one already.
21724         (assemble_external): Only add decls to weak_decls if they also
21725         have weak attribute.
21726
21727 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
21728
21729         * var-tracking.c (var_reg_delete): Don't delete the association
21730         between REGs and values or one-part variables if the register
21731         isn't clobbered.
21732
21733 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21734
21735         PR debug/42657
21736         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
21737         because its first operand is a non-localized variable.
21738
21739 2010-01-14  Martin Jambor  <mjambor@suse.cz>
21740
21741         PR tree-optimization/42706
21742         * tree-sra.c (encountered_recursive_call): New variable.
21743         (encountered_unchangable_recursive_call): Likewise.
21744         (sra_initialize): Initialize both new variables.
21745         (callsite_has_enough_arguments_p): New function.
21746         (scan_function): Call decl and flags check only for IPA-SRA, check
21747         whether there is a recursive call and whether it has enough arguments.
21748         (all_callers_have_enough_arguments_p): New function.
21749         (convert_callers): Look for recursive calls only when
21750         encountered_recursive_call is set.
21751         (ipa_early_sra): Bail out either if
21752         !all_callers_have_enough_arguments_p or
21753         encountered_unchangable_recursive_call.
21754
21755 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21756
21757         * sel-sched.c: Add 2010 to copyright years.
21758         * sel-sched-ir.c: Likewise.
21759         * sel-sched-ir.h: Likewise.
21760
21761 2010-01-14  Martin Jambor  <mjambor@suse.cz>
21762
21763         PR tree-optimization/42714
21764         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
21765         constructors specially.
21766
21767 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21768
21769         * config/i386/drivers-i386.c (detect_caches_intel):
21770         Add l2sizekb parameter and fill in.
21771         (host_detect_local_cpu): Add l2sizekb, fill in.
21772         Add Atom small cache heuristic.
21773
21774 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21775
21776         * config/i386/drivers-i386.c (detect_caches_cpuid4):
21777         Add level3 parameter and fill in.
21778         (detect_caches_intel): Handle level3 cache.
21779
21780 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21781
21782         * config/i386/drivers-i386.c (host_detect_local_cpu):
21783         Fix core duo detection.
21784
21785 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21786
21787         * config/i386/drivers-i386.c (host_detect_local_cpu):
21788         Fix Atom detection.
21789
21790 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21791
21792         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
21793         (rs6000_variable_issue_1): this.  Use...
21794         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
21795
21796 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21797
21798         * sel-sched-ir.c (sel_restore_other_notes): Rename to
21799         sel_restore_notes.  Update all callers.  Call reemit_notes
21800         for all insns.
21801
21802 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21803
21804         PR rtl-optimization/42246
21805         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
21806         loops.
21807
21808 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21809
21810         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
21811         all successors is the same as number of successors in current region.
21812
21813 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21814
21815         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
21816         to rename is not separable.  Otherwise check that its LHS is not NULL.
21817
21818 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21819
21820         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
21821
21822 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21823
21824         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
21825         available registers when failed to discover LHS register class.
21826         Fix indentation.  Update comment.
21827
21828 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21829             Alexander Monakov  <amonakov@ispras.ru>
21830
21831         PR rtl-optimization/42389
21832         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
21833         to can_issue_more.
21834         (advance_state_on_fence): Likewise.
21835         (sel_target_adjust_priority): Print debug output only when
21836         sched_verbose >= 4, not 2.
21837         (get_expr_cost): Do not issue all unique insns on the next cycle.
21838         (fill_insns): Initialize can_issue_more from the value saved
21839         with the fence.
21840         * sel-sched-ir.c (flist_add): New parameter issue_more.
21841         Init FENCE_ISSUE_MORE with it.
21842         (merge_fences): Likewise.
21843         (init_fences): Update call to flist_add.
21844         (add_to_fences, add_clean_fence_to_fences)
21845         (add_dirty_fence_to_fences): Likewise.
21846         (move_fence_to_fences): Update call to merge_fences.
21847         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
21848         sched groups.
21849         * sel-sched-ir.h (struct _fence): New field issue_more.
21850         (FENCE_ISSUE_MORE): New accessor macro.
21851
21852 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21853
21854         PR rtl-optimization/42388
21855         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
21856         that have no predecessors nor successors.  Do not call move_bb_info
21857         for empty blocks outside of current region.
21858
21859 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21860
21861         PR rtl-optimization/42294
21862         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
21863         * sel-sched.c (move_exprs_to_boundary): Transitively add all
21864         originators' originators.
21865
21866 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21867
21868         PR rtl-optimization/39453
21869         PR rtl-optimization/42246
21870         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
21871         for pipelining_p.
21872         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
21873
21874 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21875             Alexander Monakov  <amonakov@ispras.ru>
21876
21877         PR middle-end/42245
21878         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
21879         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
21880         argument.  Update all callers.
21881         (tidy_control_flow): ... and here.  Recompute topological order
21882         of basic blocks in region if necessary.
21883         (sel_redirect_edge_and_branch): Change return type.  Return true
21884         if topological order might have been invalidated.
21885         (purge_empty_blocks): Export and move from...
21886         * sel-sched.c (purge_empty_blocks): ... here.
21887         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
21888         (maybe_tidy_empty_bb): Delete prototype.
21889         (purge_empty_blocks): Declare.
21890
21891 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21892
21893         PR rtl-optimization/42249
21894         * sel-sched.c (try_replace_dest_reg): When chosen register
21895         and original register is the same, do not bail out early, but
21896         still check all original insns for validity of replacing destination
21897         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
21898         in this case.
21899
21900 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21901
21902         PR c/42721
21903         Port from no-undefined-overflow branch:
21904         2009-03-09  Richard Guenther  <rguenther@suse.de>
21905
21906         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
21907
21908 2010-01-14  Richard Guenther  <rguenther@suse.de>
21909
21910         PR lto/42665
21911         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
21912
21913 2010-01-14  Ira Rosen  <irar@il.ibm.com>
21914
21915         PR tree-optimization/42709
21916         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
21917         as scalar type in creation of constant vector operand.
21918
21919 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21920
21921         PR testsuite/42414
21922         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
21923         (check-parallel-%): Match `testsuite' directory component only
21924         at the end.
21925
21926 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
21927
21928         PR translation/39521
21929         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
21930         strings with _().
21931
21932 2010-01-13  Richard Guenther  <rguenther@suse.de>
21933
21934         PR tree-optimization/42730
21935         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
21936         offset zero.
21937
21938 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
21939
21940         PR target/pr42542
21941         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
21942         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
21943         them signed.
21944
21945 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
21946
21947         * config/bfin/libgcc-bfin.ver: Regenerate based on current
21948         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
21949         ___umulsi3_highpart.
21950
21951         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
21952         rather than schedule_insns if the pass is enabled.
21953
21954 2010-01-13  Martin Jambor  <mjambor@suse.cz>
21955
21956         PR tree-optimization/42704
21957         * tree-sra.c (sra_modify_assign): Do not delete assignments to
21958         SSA_NAMEs.
21959
21960 2010-01-13  Martin Jambor  <mjambor@suse.cz>
21961
21962         PR tree-optimization/42703
21963         * tree-sra.c (analyze_access_subtree): Check that we can build a
21964         reference to the original data within the aggregate.
21965
21966 2010-01-13  Richard Guenther  <rguenther@suse.de>
21967
21968         PR tree-optimization/42705
21969         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
21970
21971 2010-01-13  Richard Guenther  <rguenther@suse.de>
21972
21973         PR middle-end/42716
21974         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
21975
21976 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
21977
21978         PR debug/41371
21979         * var-tracking.c (values_to_unmark): New variable.
21980         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21981         values_to_unmark vector.  Moved body to...
21982         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
21983         instead queue it into values_to_unmark vector.
21984         (vt_find_locations): Free values_to_unmark vector.
21985
21986 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
21987
21988         * config/s390/s390.c (override_options): Set
21989         default of max-pending-list-length to 256
21990
21991 2010-01-13  Richard Guenther  <rguenther@suse.de>
21992
21993         PR lto/42678
21994         * tree-pass.h (PROP_gimple_lcx): New.
21995         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
21996         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
21997         before the final cleanup_eh.
21998         (dump_properties): Dump PROP_gimple_lcx.
21999         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
22000         (tree_lower_complex_O0): Remove.
22001         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
22002         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
22003         tree_lower_complex, schedule TODO_update_ssa.
22004         * lto-streamer-out.c (output_function): Stream the functions
22005         properties.
22006         * lto-streamer-in.c (input_function): Likewise.
22007         (lto_read_body): Do not override them here.
22008
22009 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
22010
22011         PR c/42708
22012         * c-typeck.c (build_c_cast): Fold value cast to union type before
22013         wrapping it in a CONSTRUCTOR.
22014
22015 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
22016
22017         PR rtl-optimization/42699
22018         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
22019         involved.
22020
22021 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22022
22023         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
22024         SUBTARGET_WARN_UNUSED_SPEC): Move ...
22025         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
22026         SUBTARGET_WARN_UNUSED_SPEC): ... here
22027         * config/mips/iris5.h (LIBGCC_SPEC): Define.
22028
22029 2010-01-12  Julian Brown  <julian@codesourcery.com>
22030
22031         * config/arm/neon-schedgen.ml (Utils): Don't try to
22032         open missing module.
22033         (find_with_result): New.
22034
22035 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
22036
22037         PR debug/42662
22038         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
22039         sharing when canonicalizing ({lt,ge}u (plus a b) b).
22040
22041         PR tree-optimization/42645
22042         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
22043         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
22044         decl_map, set processing_debug_stmt to -1 and return name without
22045         any remapping.
22046
22047 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
22048
22049         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
22050         binutils version, and reword target configuration description.
22051
22052 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
22053
22054         * config/avr/avr.h (LINKER_NAME): Remove.
22055
22056 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
22057
22058         PR target/42416
22059         * config/rs6000/rs6000.c (rs6000_override_options): On targets
22060         that support VSX, warn for -mno-altivec if vsx is not disabled,
22061         and disable vsx.
22062
22063 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
22064             Shujing Zhao  <pearly.zhao@oracle.com>
22065
22066         PR translation/42469
22067         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
22068         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
22069         character between option name and help text.
22070         * c.opt (imultilib): Likewise.
22071
22072 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
22073
22074         * lto-streamer-out.c (output_unreferenced_globals): Output static
22075         variables.
22076
22077 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
22078
22079         PR rtl-optimization/42621
22080         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
22081         optimizing for size.
22082         (duplicate_computed_gotos): Remove now-redundant check.
22083
22084 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
22085
22086         PR target/37454
22087         * configure.ac: Save and restore LDFLAGS and LIBS
22088         * configure: Regenerate.
22089
22090 2010-01-10  Richard Guenther  <rguenther@suse.de>
22091
22092         PR middle-end/42667
22093         * builtins.c (fold_builtin_strlen): Add type argument and
22094         convert the resulting length to it.
22095         (fold_builtin_1): Adjust.
22096
22097 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
22098
22099         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
22100         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
22101         1 insn.
22102         (num_insns_constant_wide): Adjust for that change.
22103
22104 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22105
22106         PR debug/42631
22107         * web.c (union_defs): Add used argument, to combine uses of
22108         uninitialized regs.
22109         (entry_register): Adjust type and tests of used argument.
22110         (web_main): Widen used for new use.  Pass it to union_defs.
22111         * df.h (union_defs): Adjust prototype.
22112
22113 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22114
22115         PR debug/42630
22116         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
22117         uses in new incoming argument.  Free body.
22118         (reset_debug_uses_in_loop): New.
22119         (analyze_insn_to_expand_var): Call the latter if the former found
22120         anything.  Fix whitespace.  Reject invalid dest overlaps before
22121         going through all insns in the loop.
22122
22123 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22124
22125         PR debug/42629
22126         * haifa-sched.c (dying_use_p): Debug insns don't count.
22127
22128 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22129
22130         PR middle-end/42363
22131         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
22132         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
22133         (verify_gimple_call): Reject LHS in noreturn calls.
22134
22135 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22136
22137         PR debug/42604
22138         PR debug/42395
22139         * tree-vect-loop-manip.c (adjust_info): New type.
22140         (adjust_vec): New pointer to vector.
22141         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
22142         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
22143         (slpeel_update_phis_for_duplicate_loop): Use them.
22144         (slpeel_update_phi_nodes_for_guard1): Likewise.
22145         (slpeel_update_phi_nodes_for_guard2): Likewise.
22146         (slpeel_tree_peel_loop_to_edge): Likewise.
22147         (vect_update_ivs_after_vectorizer): Likewise.
22148
22149 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22150
22151         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
22152         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
22153
22154 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22155
22156         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
22157         bogus uninitialized warning.
22158
22159 2010-01-09  Richard Guenther  <rguenther@suse.de>
22160
22161         PR middle-end/42512
22162         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
22163         the evolution is compatible with the initial condition.
22164
22165 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
22166
22167         * gcc.c (process_command): Update copyright notice dates.
22168         * gcov.c (print_version): Likewise.
22169         * gcov-dump.c (print_version): Likewise.
22170         * mips-tfile.c (main): Likewise.
22171         * mips-tdump.c (main): Likewise.
22172
22173 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
22174
22175         PR target/41885
22176         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
22177         (rotlhi3): Delete.
22178         (rotlhi3_8): Delete.
22179         (rotlsi3): Delete.
22180         (rotlsi3_8): Delete.
22181         (rotlsi3_16): Delete.
22182         (rotlsi3_24): Delete.
22183         (rotl<mode>3): New.
22184         (*rotw<mode>3): New.
22185         (*rotb<mode>3): New.
22186         * config/avr/avr.c (avr_rotate_bytes): New function.
22187         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
22188
22189 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
22190
22191         PR target/37454
22192         * configure.ac: Modify -rdynamic check.
22193         * configure: Regenerate.
22194
22195 2010-01-08  DJ Delorie  <dj@redhat.com>
22196
22197         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
22198         register popping order.
22199
22200 2010-01-08  Richard Guenther  <rguenther@suse.de>
22201
22202         PR lto/42528
22203         * c.opt (fsigned-char): Also let LTO handle this option.
22204         (funsigned-char): Likewise.
22205
22206 2010-01-07  Richard Guenther  <rguenther@suse.de>
22207
22208         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
22209         (gimple_op): Likewise.
22210         (gimple_op_ptr): Likewise.
22211         (gimple_assign_set_lhs): Remove gcc_assert.
22212         (gimple_assign_set_rhs1): Likewise.
22213         (gimple_assign_set_rhs2): Likewise.
22214         (gimple_call_set_lhs): Likewise.
22215         (gimple_call_set_fn): Likewise.
22216         (gimple_call_set_fndecl): Likewise.
22217         (gimple_call_fndecl): Likewise.
22218         (gimple_call_return_type): Likewise.
22219         (gimple_call_set_chain): Likewise.
22220         (gimple_call_num_args): Likewise.
22221         (gimple_call_set_arg): Likewise.
22222         (gimple_cond_set_code): Likewise.
22223         (gimple_cond_set_lhs): Likewise.
22224         (gimple_cond_set_rhs): Likewise.
22225         (gimple_cond_set_true_label): Likewise.
22226         (gimple_cond_set_false_label): Likewise.
22227         (gimple_label_set_label): Likewise.
22228         (gimple_goto_set_dest): Likewise.
22229         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
22230         (gimple_debug_bind_get_value): Likewise.
22231         (gimple_debug_bind_get_value_ptr): Likewise.
22232         (gimple_debug_bind_set_var): Likewise.
22233         (gimple_debug_bind_set_value): Likewise.
22234         (gimple_debug_bind_reset_value): Likewise.
22235         (gimple_debug_bind_has_value_p): Likewise.
22236         (gimple_return_retval_ptr): Remove gcc_assert.
22237         (gimple_return_retval): Likewise.
22238         (gimple_return_set_retval): Likewise.
22239         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
22240         (safe_referenced_var_iterator): Remove.
22241         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
22242         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
22243         (fill_referenced_var_vec): Remove.
22244         (first_readonly_imm_use): Remove redundant gcc_assert.
22245         (phi_arg_index_from_use): Combine gcc_asserts.
22246         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
22247         (first_imm_use_stmt): Remove redundant gcc_assert.
22248         * tree-cfg.c (verify_gimple_call): Verify function and chain
22249         operands.  Verify arguments.
22250         (verify_types_in_gimple_stmt): Verify condition code and labels.
22251
22252 2010-01-07  Richard Guenther  <rguenther@suse.de>
22253
22254         PR tree-optimization/42641
22255         * sese.c (rename_map_elt_info): Use the SSA name version, do
22256         not hash pointers.
22257
22258 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
22259
22260         PR tree-optimization/42625
22261         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
22262         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
22263
22264 2010-01-07  Duncan Sands  <baldrick@free.fr>
22265
22266         * Makefile.in (PLUGIN_HEADERS): Add version.h.
22267
22268 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
22269
22270         PR target/42511
22271         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
22272         note itself is not function_invariant_p.
22273
22274 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
22275
22276         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
22277         Do not add the DF_NOTE problem.
22278         * store-motion.c (execute_rtl_store_motion): Likewise.
22279
22280 2010-01-07  Martin Jambor  <mjambor@suse.cz>
22281
22282         PR tree-optimization/42157
22283         * tree-sra.c (compare_access_positions): Stabilize sort if both
22284         accesses have integer types, return zero immediately if they are the
22285         same.
22286
22287 2010-01-06  Richard Henderson  <rth@redhat.com>
22288
22289         PR middle-end/41883
22290         * haifa-sched.c (add_to_note_list): Merge into ...
22291         (concat_note_lists): ... here, and ...
22292         (unlink_other_notes, rm_other_notes): Merge into...
22293         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
22294         NOTE_INSN_EPILOGUE_BEG.
22295
22296 2010-01-06  Richard Guenther  <rguenther@suse.de>
22297
22298         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
22299         not inline regular functions into always-inline functions.
22300
22301 2010-01-06  Nick Clifton  <nickc@redhat.com>
22302
22303         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
22304         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
22305         used together.
22306         (OVERRIDE_OPTIONS): Delete.
22307         (OPTIMIZATION_OPTIONS): Define.
22308         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
22309         * config/rx/rx.c (rx_handle_option): Issue an error message if
22310         -mcpu=rx200 and -fpu are used together.
22311         (rx_set_optimization_options): New function.  Issue an error
22312         message if an optimization attribute attempts to reset the FPU/
22313         math optimization pairing.
22314         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
22315         * config/rx/rx.opt: Set the default to 32-bit doubles.
22316         * config/rx/t-rx: Add multilibs for -nofpu option.
22317         * doc/invoke.texi: Update documentation of RX options.
22318
22319 2010-01-06  Richard Guenther  <rguenther@suse.de>
22320
22321         * tree-ssa-pre.c (name_to_id): New global.
22322         (alloc_expression_id): Simplify SSA name handling.
22323         (lookup_expression_id): Likewise.
22324         (init_pre): Zero name_to_id.
22325         (fini_pre): Free it.
22326
22327 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
22328
22329         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
22330
22331 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
22332
22333         PR target/42542
22334         * config/i386/sse.md (smaxv2di3): New.
22335         (umaxv2di3): Likewise.
22336         (sminv2di3): Likewise.
22337         (uminv2di3): Likewise.
22338
22339 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22340
22341         PR target/42564
22342         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
22343         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
22344         (legitimize_tls_address): Likewise.
22345         (sparc_tls_referenced_p): Likewise.
22346         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
22347         and adjust calls to legitimize_pic_address.
22348         (legitimate_constant_p) Use sparc_tls_referenced_p.
22349         (legitimate_pic_operand_p): Likewise.
22350         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
22351         (sparc_tls_symbol_ref_1): Delete.
22352         (sparc_tls_referenced_p): Make static, recognize specific patterns.
22353         (legitimize_tls_address): Make static, handle CONST patterns.
22354         (legitimize_pic_address): Make static, remove unused parameter and
22355         adjust recursive calls.
22356         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
22357         and adjust call to legitimize_pic_address.
22358         (sparc_output_mi_thunk): Likewise.
22359
22360 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
22361             H.J. Lu  <hongjiu.lu@intel.com>
22362
22363         PR target/42542
22364         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
22365         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
22366         operands to make them signed.
22367
22368         Revert:
22369         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22370
22371         PR target/42542
22372         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
22373         GTU to GT for V4SI and V2DI.
22374
22375         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
22376         (umin<mode>3): Removed.
22377         (uminv8hi3): New.
22378         (uminv4si3): Likewise.
22379
22380 2010-01-05  Martin Jambor  <mjambor@suse.cz>
22381
22382         PR tree-optimization/42462
22383         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
22384         current_function_decl to helper functions and macros.
22385
22386 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22387
22388         PR bootstrap/41771
22389         * flags.h: Don't include real.h.
22390         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
22391         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
22392         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
22393         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
22394         * dominance.c: Update copyright.
22395         * gimple.c (walk_gimple_op): Remove inline.
22396         * tree-ssa-reassoc.c: Include real.h.
22397         * Makefile.in (FLAGS_H): Remove $(REAL_H).
22398         (tree-ssa-reassoc.o): Depend on $(REAL_H).
22399
22400 2010-01-05  Nick Clifton  <nickc@redhat.com>
22401
22402         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
22403         register to push into the stack frame when the accumulator has to
22404         be saved during interrupts.
22405
22406 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
22407
22408         * doc/invoke.texi: Remove the documentation about option
22409         -Wunreachable-code.
22410         * common.opt (Wunreachable-code):  Preserved for backward
22411         compatibility.
22412         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
22413         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
22414         the backward compatibility flag section.
22415
22416 2010-01-05  Richard Guenther  <rguenther@suse.de>
22417
22418         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
22419
22420 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
22421
22422         PR other/42611
22423         * cfgexpand.c (expand_one_var): Diagnose too large variables.
22424
22425         PR tree-optimization/42508
22426         * tree-sra.c (convert_callers): Check for recursive call
22427         by comparing cgraph nodes instead of decls.
22428         (modify_function): Call ipa_modify_formal_parameters also
22429         on all same_body aliases.
22430
22431         * cgraphunit.c (cgraph_materialize_all_clones): Compare
22432         cgraph nodes when checking for same_body aliases.
22433
22434 2010-01-05  Richard Guenther  <rguenther@suse.de>
22435
22436         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
22437         allocation and lookup.
22438         (get_or_alloc_expr_for_constant): Likewise.
22439         (phi_translate): Sink allocation.
22440
22441 2010-01-04  Richard Guenther  <rguenther@suse.de>
22442
22443         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
22444         a new entry only if needed.
22445         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
22446         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
22447         hashtable lookup.
22448         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
22449         the result array.
22450         (phi_translate): Handle CONSTANTs early.
22451
22452 2010-01-04  Martin Jambor  <mjambor@suse.cz>
22453
22454         PR tree-optimization/42398
22455         * tree-sra.c (struct access): Removed flag grp_different_types.
22456         (dump_access): Do not dump the removed flag.
22457         (sort_and_splice_var_accesses): Do not set the removed flag.
22458         (sra_modify_expr): Check for type compatibility directly.
22459
22460 2010-01-04  Martin Jambor  <mjambor@suse.cz>
22461
22462         PR tree-optimization/42366
22463         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
22464         edges with variable number of parameters.
22465         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
22466         flag instead of asserting it.
22467         (ipa_read_node_info): Read uses_analysis_done flag.
22468
22469 2010-01-04  Richard Guenther  <rguenther@suse.de>
22470
22471         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
22472         iterative_hash_* as intended.
22473         (vn_reference_compute_hash): Likewise.  Simplify hashing
22474         SSA names.
22475         (vn_reference_lookup_2): Likewise.
22476         (vn_nary_op_compute_hash): Likewise.
22477         (vn_phi_compute_hash): Likewise.
22478         (expressions_equal_p): Remove strange code.
22479         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
22480         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
22481         (bitmap_insert_into_set_1): Take value-id as parameter.
22482         (add_to_value): Pass it.
22483         (bitmap_insert_into_set): Likewise.
22484         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
22485
22486 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
22487
22488         PR driver/42442
22489         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
22490         (do_self_spec): For switches with SWITCH_IGNORE set set also
22491         SWITCH_IGNORE_PERMANENTLY.
22492         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
22493         of SWITCH_IGNORE.
22494
22495 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
22496
22497         * lto-streamer-out.c (output_unreferenced_globals): Output the full
22498         tree of an unreferenced global var.
22499
22500 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22501
22502         PR target/42542
22503         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
22504         GTU to GT for V4SI and V2DI.
22505
22506         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
22507         (umin<mode>3): Removed.
22508         (uminv8hi3): New.
22509         (uminv4si3): Likewise.
22510
22511 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22512
22513         PR lto/42581
22514         * collect2.c (main): Turn on trace in collect2 if -v is passed
22515         to gcc with LTO.
22516
22517 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
22518
22519         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
22520         description of expression operand.
22521
22522 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
22523
22524         * configure.ac: Add install-html to target_list for Make-hooks.
22525         * configure: Regenerate.
22526         * fortran/Make-lang.in (F95_HTMLFILES): New.
22527         (fortran.html): Use it.
22528         (fortran.install-html): New.
22529         * Makefile.in (install-html): Add lang.install-html.
22530         * java/Make-lang.in (JAVA_HTMLFILES): New.
22531         (java.html): Use it.
22532         (java.install-html): New.
22533         * objc/Make-lang.in (objc.install-html): New.
22534         * objcp/Make-lang.in (obj-c++.install-html): New.
22535         * cp/Make-lang.in (c++.install-html): New.
22536         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
22537         * lto/Make-lang.in (lto.install-html): New.
22538
22539 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22540
22541         PR lto/42520
22542         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
22543
22544 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
22545
22546         PR rtl-optimization/41862
22547         * store-motion.c (store_killed_in_insn, compute_store_table,
22548         remove_reachable_equiv_notes, replace_store_insn,
22549         build_store_vectors): Ignore all DEBUG_INSNs.
22550
22551 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22552
22553         PR lto/41564
22554         * common.opt: Add dumpdir.
22555
22556         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
22557         isn't specified.
22558         (option_map): Add --dumpdir.
22559
22560         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
22561
22562         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
22563
22564         * opts.c (decode_options): Try dump_dir_name first if
22565         dump_base_name isn't an absolute path.
22566         (common_handle_option): Handle OPT_dumpdir.
22567
22568         * toplev.c (dump_dir_name): New.
22569         (print_switch_values): Also ignore -dumpdir.
22570
22571         * toplev.h (dump_dir_name): New.
22572
22573 2010-01-03  Richard Guenther  <rguenther@suse.de>
22574
22575         PR tree-optimization/42589
22576         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
22577         double-word expansion of bswap32.
22578
22579 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
22580
22581         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
22582         with BLOCK_FOR_INSN.
22583         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
22584         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
22585         noce_process_if_block): Likewise.
22586         * gcse.c (compute_local_properties, insert_expr_in_table,
22587         insert_set_in_table, canon_list_insert, find_avail_set,
22588         pre_insert_copy_insn): Likewise.
22589
22590         * basic-block.h (BLOCK_NUM): Move from here...
22591         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
22592
22593 2010-01-03  Richard Guenther  <rguenther@suse.de>
22594
22595         PR tree-optimization/42438
22596         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
22597         contains_may_not_return_call flag.
22598         (BB_MAY_NOTRETURN): New.
22599         (valid_in_sets): Trapping nary operations are not valid
22600         in blocks that may not return.
22601         (insert_into_preds_of_block): Remove check for trapping expressions.
22602         (compute_avail): Compute also BB_MAY_NOTRETURN.
22603
22604 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
22605
22606         * doc/invoke.texi: Add 2010 to copyright years.
22607
22608 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
22609
22610         * config/sparc/sparc.c: Fix formatting nits.
22611
22612 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
22613             Alexander Monakov  <amonakov@ispras.ru>
22614
22615         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
22616
22617 2010-01-02  Richard Guenther  <rguenther@suse.de>
22618
22619         PR middle-end/42577
22620         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
22621         (simplify_switch_using_ranges): Mark to be removed edges
22622         as non-executable.
22623
22624 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22625
22626         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22627
22628         * collect2.c (scan_libraries): Add missing argument in call to
22629         scan_prog_file.
22630
22631 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
22632
22633         PR target/42448
22634         * config/alpha/predicates.md (aligned_memory_operand): Return false
22635         for CQImode.
22636         (unaligned_memory_operand): Return true for CQImode.
22637         * config/alpha/alpha.c (get_aligned_mem): Assert that location
22638         doesn not cross aligned SImode word boundary.
22639
22640 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
22641
22642         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
22643         Remove.
22644         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
22645         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
22646
22647 2010-01-02  Richard Guenther  <rguenther@suse.de>
22648
22649         PR lto/41597
22650         * toplev.c (compile_file): Emit LTO marker properly.  Change
22651         it to __gnu_lto_v1.
22652         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
22653
22654 2010-01-01  Richard Guenther  <rguenther@suse.de>
22655
22656         PR debug/42455
22657         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
22658
22659 2010-01-01  Richard Guenther  <rguenther@suse.de>
22660
22661         PR c/42570
22662         * c-decl.c (grokdeclarator): For zero-size arrays force
22663         structural equality checks as layout_type does.
22664
22665 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
22666
22667         * builtins.c: Update copyright to 2010.
22668
22669 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
22670
22671         PR lto/42531
22672         * lto-streamer-out.c (produce_asm): Revert the last change.
22673         (copy_function): Likewise.
22674
22675         * lto-streamer.c (lto_get_section_name): Skip any leading
22676         asterisk in name.
22677
22678 2010-01-01  Richard Guenther  <rguenther@suse.de>
22679
22680         PR middle-end/42559
22681         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
22682         for LABEL_DECLs.
22683
22684 \f
22685 Copyright (C) 2010 Free Software Foundation, Inc.
22686
22687 Copying and distribution of this file, with or without modification,
22688 are permitted in any medium without royalty provided the copyright
22689 notice and this notice are preserved.