OSDN Git Service

* expr.c (emit_group_load_1): Update calls to extract_bit_field.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-10-22  Jie Zhang  <jie@codesourcery.com>
2
3         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
4         (copy_blkmode_from_reg): Likewise.
5         (read_complex_part): Likewise.
6         (expand_expr_real_1): Calculate packedp and pass it to
7         extract_bit_field.
8         * expr.h (extract_bit_field): Update declaration.
9         * calls.c (store_unaligned_arguments_into_pseudos): Update call
10         to extract_bit_field.
11         * expmed.c (extract_fixed_bit_field): Update calls to
12         extract_fixed_bit_field.
13         (store_split_bit_field): Likewise.
14         (extract_bit_field_1): Add new argument packedp.
15         (extract_bit_field): Add new argument packedp.
16         (extract_fixed_bit_field): Add new argument packedp and let
17         packed attribute override volatile.
18         * stmt.c (expand_return): Update call to extract_bit_field.
19
20 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
21
22         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
23
24 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
25
26         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
27         of gcc_checking_assert.
28         * sel-sched.c (code_motion_process_successors): Likewise.
29
30 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
31
32         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
33         when stopping because of a different locus on edge or insn.
34         (try_optimize_cfg): Add comment.
35         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
36         block is a forwarder block, propagate locus on the edge.
37         (cfg_layout_merge_blocks): Likewise.
38
39 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
40
41         PR target/45946
42         * config/i386/i386.md (*pushti2): New insn pattern.
43         (pushti2 splitter): New insn splitter.
44         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
45         DWI mode iterator.
46
47 2010-10-21  Paul Koning  <ni1d@arrl.net>
48
49         * config/pdp11/pdp11-protos.md (arith_operand,
50         const_immediate_operand, expand_shift_operand,
51         immediate15_operand): Delete
52         * config/pdp11/pdp11.c: Ditto.
53         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
54         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
55         EXTRA_CONSTRAINT): Delete.
56         * config/pdp11/pdp11.md (various): Use standard constraints
57         instead of removed ones.
58         * config/pdp11/constraints.md: New file.
59         * config/pdp11/predicates.md: New file.
60
61 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
62
63         PR c/45834
64         * alias.c (true_dependence_1): Remove obsolete check for QImode.
65         (may_alias_p): Ditto.
66
67 2010-10-21  Martin Jambor  <mjambor@suse.cz>
68
69         PR tree-optimization/45875
70         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
71
72 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
73
74         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
75         variables.
76         (create_new_def_for): Likewise.
77
78 2010-10-21  Nick Clifton  <nickc@redhat.com>
79
80         * config/mn10300/mn10300.c: Fold code to 80-character width.
81         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
82         MEM, CONST_INT and CONST_DOUBLE.
83         (targetm): Move initialization to end of file.
84         (print_operand): Rename to mn10300_print_operand.
85         (print_operand_address): Rename to mn10300_print_operand_address.
86         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
87         (expand_prologue): Rename to mn10300_expand_prologue.
88         (expand_epilogue): Rename to mn10300_expand_epilogue.
89         (initial_offset): Rename to mn10300_initial_offset.
90         (function_arg): Rename to mn10300_function_arg.
91         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
92         (symbolic_operand): Rename to mn10300_symbolic_operand.
93         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
94         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
95         * config/mn10300/mn10300-protos.h: Update prototypes.
96         * config/mn10300/mn10300.h: Fold code to 80-character width.
97         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
98         MEM, CONST_INT and CONST_DOUBLE.
99         (CPP_SPEC): Move to...
100         (TARGET_CPU_CPP_BUILTINS): ... here.
101         * config/mn10300/mn10300.md: Fold code to 80-character width.
102         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
103         MEM, CONST_INT and CONST_DOUBLE.
104
105 2010-10-21  Ira Rosen  <irar@il.ibm.com>
106
107         PR tree-optimization/46049
108         PR tree-optimization/46052
109         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
110         (vect_get_slp_defs): Add arguments.
111         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
112         operands to vect_get_slp_defs.
113         (vectorizable_reduction): Fix comment, pass scalar operands to
114         vect_get_slp_defs.
115         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
116         type to determine number of units in the created vector.
117         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
118         (vectorizable_conversion): Fix comment.
119         (vectorizable_shift): New function.
120         (vectorizable_operation): Move code that handles shifts to
121         vectorizable_shift.
122         (vectorizable_type_demotion): Fix comment, pass scalar operands to
123         vect_get_slp_defs.
124         (vectorizable_type_promotion, vectorizable_store): Likewise.
125         (vectorizable_condition): Fix comment.
126         (vect_analyze_stmt): Call vectorizable_shift.
127         (vect_transform_stmt): Likewise.
128         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
129         Use it as the operand to create vectors for, except reduction
130         initial definition and store.  Use operands type.
131         (vect_get_slp_defs): Add new arguments.  Pass them to
132          vect_get_constant_vectors.
133
134 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
135
136         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
137         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
138         * cfghooks.c (fixup_reorder_chain): Likewise.
139         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
140         * cgraph.c (cgraph_add_thunk): Likewise.
141         (cgraph_create_edge_1): Likewise.
142         (cgraph_create_virtual_clone): Likewise.
143         * ddg.c (add_cross_iteration_register_deps): Likewise.
144         * dwarf2out.c (modified_type_die): Likewise.
145         * emit-rtl.c (set_mem_alias_set): Likewise.
146         * ggc-zone.c (zone_allocate_marks): Likewise.
147         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
148         * gimple.c (iterative_hash_gimple_type): Likewise.
149         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
150         (create_single_exit_edge): Likewise.
151         * haifa-sched.c (choose_ready): Likewise.
152         * lto-streamer-in.c (input_gimple_stmt): Likewise.
153         * passes.c (execute_todo): Likewise.
154         * sched-ebb.c (begin_schedule_ready): Likewise.
155         * sel-sched.c (code_motion_process_successors): Likewise.
156         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
157         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
158         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
159         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
160         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
161         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
162         (ssa_conflicts_add): Likewise.
163         * tree-ssa-copy.c (replace_exp): Likewise.
164         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
165         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
166         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
167         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
168         (compute_antic): Likewise.
169         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
170         (add_dependence): Likewise.
171         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
172         * tree-vrp.c (supports_overflow_infinity): Likewise.
173         (make_overflow_infinity, negative_overflow_infinity): Likewise.
174         (avoid_overflow_infinity, register_new_assert_for): Likewise.
175         (process_assert_insertions_for): Likewise.
176         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
177         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
178         (intersect_loc_chains, variable_merge_over_cur): Likewise.
179
180 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
181
182         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
183         * reload1.c (has_nonexceptional_receiver): Likewise.
184         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
185         (create_new_def_for): Likewise.
186         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
187         (merge_phi_nodes): Likewise.
188         (has_abnormal_incoming_edge_p): Delete.
189
190 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
191
192         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
193
194 2010-10-21  Richard Guenther  <rguenther@suse.de>
195             Michael Matz  <matz@suse.de>
196
197         PR tree-optimization/45764
198         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
199         Adjust initial misalignment for negative DR_STEP.
200         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
201         do not have the same alignment over the whole iteration domain.
202
203 2010-10-21  Richard Guenther  <rguenther@suse.de>
204
205         PR tree-optimization/46111
206         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
207
208 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
209
210         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
211
212 2010-10-21  Tristan Gingold  <gingold@adacore.com>
213
214         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
215         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
216
217 2010-10-21  Tristan Gingold  <gingold@adacore.com>
218
219         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
220         signal_frame.
221         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
222
223 2010-10-21  Tristan Gingold  <gingold@adacore.com>
224
225         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
226         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
227
228 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
229
230         * basic-block.h (find_fallthru_edge): Define.
231         * cfgcleanup.c (merge_blocks_move): Use it.
232         (try_crossjump_bb): Likewise.
233         * cfglayout.c (fixup_reorder_chains): Likewise.
234         (fixup_fallthru_exit_predecessor): Likewise.
235         * cfgrtl.c (rtl_split_edge): Likewise.
236         (rtl_verify_flow_info): Likewise.
237         * function.c (thread_prologue_and_epilogue_insns): Likewise.
238         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
239         * ifcvt.c (block_fallthru): Likewise.
240         * reload1.c (fixup_abnormal_edges): Likewise.
241         * sched-ebb.c (being_schedule_ready): Likewise.
242         (schedule_ebb): Likwise.
243         * sched-rgn.c (find_single_block_region): Likewise.
244         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
245         * tree-complex.c (expand_complex_move): Likewise.
246         * sched-int.h (find_fallthru_edge): Rename to...
247         (find_fallthru_edge_from): ...this.
248         * haifa-sched.c (find_fallthru_edge): Rename to...
249         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
250         (init_before_recovery): Call find_fallthru_edge_from.
251         * sel-sched-ir.c (merge_fences): Likewise.
252         * sel-sched.c (in_fallthru_bb_p): Likewise.
253         (move_cond_jump): Likewise.
254
255 2010-10-20  Paul Koning  <ni1d@arrl.net>
256
257         * config/pdp11/pdp11.md (various): Fix conditions on a number of
258         insn to check for target 11/40 or higher.
259
260 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
261
262         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
263         bool instead of a tree.
264         (c_parser_objc_method_decl): Added bool argument.  Updated call to
265         objc_build_method_signature.
266         (c_parser_objc_method_definition): Do not call
267         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
268         c_parser_objc_method_decl and objc_start_method_definition.
269         (c_parser_objc_methodproto): Do not call objc_set_method_type.
270         Updated calls to c_parser_objc_method_type,
271         c_parser_objc_method_decl and objc_add_method_declaration.
272
273 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
274
275         PR tree-optimization/45919
276         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
277         array members.
278
279         PR tree-optimization/46066
280         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
281         instead of gsi_last_bb.
282
283 2010-10-20  DJ Delorie  <dj@redhat.com>
284
285         * config/m32c/m32c.c (m32c_option_override): Always disable
286         function-cse in 16-bit mode.  Indirect calls are always worse than
287         direct calls as there is no 16-bit indirect call opcode.
288         (m32c_override_options_after_change): New, likewise.
289
290 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
291
292         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
293         emitting the conditional move in the inner mode of the SUBREG.
294
295 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
296
297         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
298         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
299         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
300         (ia64_preferred_reload_class): Make static.  Change rclass argument
301         and result types from enum reg_class to reg_class_t.
302
303 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
304
305         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
306         call for single operand expression.
307
308 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
309
310         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
311         if there is a call statement to pure or const function in the block.
312
313 2010-10-20  Paul Koning  <pkoning@equallogic.com>
314
315         Fix several build errors for pdp11 target.
316         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
317         (cbranchdf4): Conditional on TARGET_FPU.
318         (movdf): Ditto; correct alternatives check.
319         (movmemhi): Fix predicate and constraint.
320         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
321
322 2010-10-20  Richard Guenther  <rguenther@suse.de>
323
324         PR lto/45667
325         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
326         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
327         (verify_gimple_assign_single): Disable ADDR_EXPR type check
328         when in LTO.
329
330 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
331
332         PR fortran/42169
333         * ira-emit.c (store_can_be_removed_p): Return false instead of
334         gcc_unreachable.
335
336 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
337
338         * fold-const.c (fold_binary_loc): New transformation.
339
340 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
341
342         PR target/46085
343         * config/i386/sse.md (reduc_splus_v8sf): Updated.
344         (reduc_splus_v4df): Likewise.
345
346 2010-10-20  Richard Guenther  <rguenther@suse.de>
347
348         PR tree-optimization/45860
349         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
350         conditional store replacement for non-register type stores.
351
352 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
353
354         * stor-layout.c (skip_simple_constant_arithmetic): New function.
355         (self_referential_size): Use it instead of skip_simple_arithmetic.
356
357 2010-10-20  Olivier Hainque  <hainque@adacore.com>
358
359         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
360         If the current function calls eh_return, claim live all registers
361         that we need to check for liveness otherwise.
362
363 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
364
365         * c-decl.c (c_write_global_declarations): Call
366         objc_write_global_declarations when compiling Objective-C.
367         * c-lang.c (finish_file): Removed.
368
369 2010-10-19  DJ Delorie  <dj@redhat.com>
370
371         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
372         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
373         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
374         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
375         * doc/tm.texi: Regenerate.
376         * targhooks.h (default_label_align_after_barrier_max_skip,
377         default_loop_align_max_skip, default_label_align_max_skip,
378         default_jump_align_max_skip): Declare.
379         * target.def (label_align_after_barrier_max_skip): New.
380         (loop_align_max_skip): New.
381         (label_align_max_skip): New.
382         (jump_align_max_skip): New.
383         * system.h (poison): Add those macros to the list.
384         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
385         (LOOP_ALIGN_MAX_SKIP): Remove.
386         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
387         (JUMP_ALIGN_MAX_SKIP): Remove.
388         (default_label_align_after_barrier_max_skip): New.
389         (default_loop_align_max_skip): New.
390         (default_label_align_max_skip): New.
391         (default_jump_align_max_skip): New.
392         (compute_alignments): Use the new hooks.
393         (shorten_branches): Likewise.
394
395 2010-10-19  Richard Henderson  <rth@redhat.com>
396
397         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
398         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
399         (fma4i_fmadd_<mode>): New.
400         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
401         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
402         standard fma patterns.
403         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
404         enable for FMA.
405         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
406         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
407         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
408
409 2010-10-19  Paul Koning  <pkoning@equallogic.com>
410
411         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
412         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
413
414 2010-10-19  Richard Henderson  <rth@redhat.com>
415
416         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
417         (fmadf4, *fmsdf4, *nfmadf4): New.
418         (fmaxf4, *fmsxf4, *nfmaxf4): New.
419
420 2010-10-19  Michael Eager  <eager@eagercon.com>
421
422         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
423         Use sjlj unwind info for exceptions.
424
425 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
426
427         PR fortran/43414
428         * dwarf2out.c (add_calling_convention_attribute): Flag main
429         Fortran subroutine with DW_AT_main_subprogram.
430
431 2010-10-19  Nick Clifton  <nickc@redhat.com>
432
433         * config/rx/rx.c (rx_function_value): Small integer types are
434         promoted to SImode.
435         (rx_promote_function_mode): New function.
436         (TARGET_PROMOTE_FUNCTION_MODE): Define.
437
438 2010-10-19  Nick Clifton  <nickc@redhat.com>
439
440         * config/mep/mep.c (mep_print_operand): Use
441         targetm.strip_name_encoding.
442         (mep_output_aligned_common): Likewise.
443
444 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
445
446         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
447
448 2010-10-18  Richard Henderson  <rth@redhat.com>
449
450         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
451         (fma (neg a) (neg b) c) and (fma a (neg b) c).
452
453 2010-10-18  Richard Henderson  <rth@redhat.com>
454
455         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
456         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
457         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
458         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
459         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
460         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
461         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
462         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
463         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
464         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
465         (bdesc_multi_arg): Remove the corresponding builtins.
466         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
467         (UNSPEC_FMA4_FMSUBADD): Remove.
468         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
469         * config/i386/sse.md (FMA4MODEF4): Remove.
470         (FMAMODE): Add.
471         (fma<mode>4): New expander.
472         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
473         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
474         (*fma4i_fmsub_<mode>): Similarly.
475         (*fma4i_fnmadd_<mode>): Similarly.
476         (*fma4i_fnmsub_<mode>): Similarly.
477         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
478         with the first operand.
479         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
480         of explicit arithmetic.  Macroize with AVXMODEF2P.
481         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
482         (xop_frcz<mode>2): Macroize with FMAMODE.
483         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
484         the first operand.
485         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
486         extra negations.
487         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
488         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
489         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
490         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
491         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
492         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
493         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
494         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
495
496 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
497
498         PR rtl-optimization/45966
499         * combine.c (try_combine): If added_sets_2, deal with the case
500         where i0 feeds i1 and i1 feeds i2.
501
502 2010-10-18  Jan Hubicka  <jh@suse.cz>
503
504         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
505         preserve flags before trying to guess on visibility.
506         (varpool_externally_visible_p): New function.
507         (function_and_variable_visibility): Use it.
508
509 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
510
511         Implemented parsing @synthesize and @dynamic for Objective-C.
512         * c-parser.c (c_parser_external_declaration): Recognize
513         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
514         (c_parser_objc_at_synthesize_declaration): New.
515         (c_parser_objc_at_dynamic_declaration): New.
516
517 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
518
519         * c-parser.c (c_parser_objc_class_declaration): After finding an
520         error, parse the whole declaration then reset parser->error.
521
522 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
523
524         PR target/46041
525         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
526         * builtins.c (mode_has_fma): Ditto.
527
528 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
529
530         PR target/36898
531         PR middle-end/43760
532         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
533
534 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
535
536         * config/i386/i386.c (ix86_option_override_internal): Define and
537         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
538         default.
539         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
540         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
541
542 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
543
544         Merge from 'apple/trunk' branch on FSF servers.
545         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
546         following Objective-C change:
547
548         2005-10-10  Fariborz Jahanian <fjahanian@apple.com>
549
550         Radar 4301047
551         * c-parse.in (objc_quals): Build objc qualifier list same way
552         as gcc-3.3
553
554 2010-10-18  Jan Hubicka  <jh@suse.cz>
555
556         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
557         function_and_variable_visibility): Revert accidental commit.
558
559 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
560
561         Merge from 'apple/trunk' branch on FSF servers.
562         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
563         the following Objective-C change:
564
565         2005-10-07  Fariborz Jahanian <fjahanian@apple.com>
566
567         Radar 4204796
568         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
569         'volatilized' type used in a typeof operator.
570
571 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
572
573         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
574         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
575         rewrite modelled on gimple_purge_dead_eh_edges.
576         (gimple_purge_all_dead_abnormal_call_edges): New function.
577         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
578         directly instead of through gimple_purge_dead_abnormal_call_edges.
579         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
580         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
581         removed AB side-effects from one of its statements.
582         (init_pre): Initialize need_ab_cleanup.
583         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
584         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
585
586 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
587
588         PR c/46015
589         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
590         on computed goto argument.
591
592 2010-10-18  Richard Guenther  <rguenther@suse.de>
593
594         PR tree-optimization/45967
595         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
596         (could_have_pointers): Likewise.
597         (handle_rhs_call, handle_const_call, handle_pure_call,
598         find_func_aliases, intra_create_variable_infos): Remove calls to them.
599         (struct fieldoff): Add must_have_pointers field.
600         (type_must_have_pointers): New function.
601         (field_must_have_pointers): Likewise.
602         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
603         Adjust field merging.
604         (create_function_info_for): May-have-pointers of varinfo is
605         almost always true.
606         (create_variable_info_for_1): Likewise.
607
608 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
609
610         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
611         of operands to vec_concat.
612
613 2010-10-18  Richard Guenther  <rguenther@suse.de>
614
615         PR lto/44950
616         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
617         also clear references to entries of it.
618
619 2010-10-18  Andi Kleen  <ak@linux.intel.com>
620
621         PR other/43448
622         * gccbug.in: Remove.
623         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
624         (doc, distclean, install-common): Remove reference to gccbug.
625         * configure: Regenerate.
626         * configure.ac (all_outputs): Remove gccbug.
627         * doc/configfiles.texi: Remove references to gccbug.
628         * doc/sourcebuild.texi: Dito.
629
630 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
631
632         PR middle-end/46019
633         * fold-const.c (fold_binary_loc): If integer_pow2p has
634         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
635
636 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
637             Jeremie Salvucci  <jeremie.salvucci@free.fr>
638
639         * gengtype.c (verbosity_level): Add variable.
640         (set_gc_used): Count variables for verbosity.
641         (close_output_files): Backing up files, counting written ones
642         verbosily.
643         (write_types): Count emitted functions for verbosity. Added
644         debug messages.
645         (write_enum_defn): Count structures for verbosity. Added debug
646         messages.
647         (gengtype_long_options): Add "verbose" & "backupdir".
648         (print_usage): Ditto.
649         (main): Verbose display of parsed files.
650
651         * gengtype.h (verbosity_level): Add declaration.
652
653 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
654
655         * gengtype.c (parse_program_options): Add allocation of
656         plugin_files, and correct test on nb_plugin_files.
657
658 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
659
660         Merge from 'apple/trunk' branch on FSF servers.
661
662         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
663
664         Radar 4133425
665         * c-decl.c (undeclared_variable): Issue diagnostic on
666         private 'ivar' access.
667
668 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
669
670         PR target/46051
671         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
672         generated sequence to match *avx_vperm2f128<mode>_nozero.
673         (vec_interleave_lowv4df): Ditto.
674         (vec_interleave_highv8sf): Ditto.
675         (vec_interleave_lowv8sf): Ditto.
676
677 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
678
679         * libgcov.c (create_file_directory): Enable it for win32 case.
680         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
681         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
682         (GCOV_PREFIX_SKIP): Likewise.
683
684 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
685
686         * doc/objc.texi (GNU Objective-C runtime API): New section.
687         (Modern GNU Objective-C runtime API): New section.
688         (Traditional GNU Objective-C runtime API): New section.
689         (Executing code before main): Mention that this section is
690         specific to the GNU Objective-C runtime.
691         (Garbage Collection): Same.
692
693 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
694
695         * c-parser.c (c_parser_for_statement): Move initialization of
696         cond and incr before if.
697
698 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
699
700         * target.def (preferred_output_reload_class): New hook.
701         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
702         * doc/tm.texi: Regenerate.
703         * targhooks.c (default_preferred_output_reload_class): New function.
704         * targhooks.h (default_preferred_output_reload_class): Declare.
705         * reload.c (find_dummy_reload): Change rclass argument type from
706         enum reg_class to reg_class_t. Change this_alternative array type
707         from enum reg_class to reg_class_t.
708         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
709         (push_reload): Change preferred_class variable type to reg_class_t.
710         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
711         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
712         argument type from enum reg_class to reg_class_t. Use
713         HARD_REGISTER_NUM_P predicate.
714         * recog.h (reg_fits_class_p): Update prototype.
715
716         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
717         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
718         Remove.
719         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
720         static. Change regclass argument and result types from enum reg_class
721         to reg_class_t.
722         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
723
724 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
725
726         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
727         visibility enum, and handle @package.
728
729 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
730
731         * doc/objc.texi (What you can and what you cannot do in +load):
732         Document that sending messages to constant string objects in +load
733         is not guaranteed to work.
734
735 2010-10-16  Jan Hubicka  <jh@suse.cz>
736
737         PR middle-end/44206
738         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
739         existence of refrences before removing the function.
740
741 2010-10-16  Jan Hubicka  <jh@suse.cz>
742
743         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
744         only_called_at_startup and only_called_at_exit.
745         (cgraph_propagate_frequency): Compute only_called_at_startup and
746         only_called_at_exit.
747         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
748         only_called_at_exit.
749         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
750         flags.
751         * predict.c (compute_function_frequency): Initialize the new flags.
752
753 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
754
755         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
756         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
757         on the bounds of its domain.
758         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
759
760 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
761
762         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
763         * config/avr/avr-protos.h (preferred_reload_class): Remove.
764         * config/avr/avr.c (preferred_reload_class): Remove.
765         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
766         * config/pa/pa.c (emit_move_sequence): Update comment
767         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
768         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
769         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
770         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
771         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
772         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
773         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
774         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
775         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
776         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
777         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
778         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
779         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
780
781 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
782
783         * opts.c (set_fast_math_flags,
784         set_unsafe_math_optimizations_flags): Make static.
785         * toplev.h (set_fast_math_flags,
786         set_unsafe_math_optimizations_flags): Remove prototypes.
787
788 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
789
790         * config/arm/arm.c (arm_option_optimization): Set
791         flag_section_anchors to 1 not 2.
792         * config/i386/i386.c (ix86_option_override_internal): Check
793         global_options_set.x_flag_zee and
794         global_options_set.x_flag_omit_frame_pointer.
795         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
796         flag_zee to 2.
797         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
798         global_options_set.x_flag_omit_frame_pointer.
799         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
800         opts->x_flag_section_anchors to 1 not 2.
801         * config/sh/sh.c (sh_option_optimization): Don't set
802         flag_schedule_insns to 2.
803         (sh_option_override): Check
804         global_options_set.x_flag_schedule_insns.
805         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
806
807 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
808
809         * configure.ac: Make sure inhibit_libc remains false for mingw targets
810         as cross.
811         * configure: Regenerated.
812
813 2010-10-15  Xinliang David Li  <davidxl@google.com>
814
815         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
816         function.
817         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
818         into a recursive function.
819
820 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
821
822         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
823         (*movdfcc_1): ditto.
824
825 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
826
827         * target.def (target_option.init_struct): New hook.
828         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
829         * doc/tm.texi: Regenerate.
830         * hooks.c (hook_void_gcc_optionsp): New.
831         * hooks.h (hook_void_gcc_optionsp): Declare.
832         * langhooks-def.h (lhd_init_options_struct): Remove.
833         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
834         * langhooks.c (lhd_init_options_struct): Remove.
835         * opts.c (init_options_struct): Also call
836         targetm.target_option.init_struct.
837         * config/i386/i386.c (ix86_option_init_struct,
838         TARGET_OPTION_INIT_STRUCT): New.
839         (ix86_option_optimization): Move some settings to
840         ix86_option_init_struct.
841         * config/pdp11/pdp11.c (pdp11_option_init_struct,
842         TARGET_OPTION_INIT_STRUCT): New.
843         (pdp11_option_optimization): Move some settings to
844         pdp11_option_init_struct.
845         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
846         rs6000_option_init_struct.  Use options structure pointer.
847         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
848         * config/s390/s390.c (s390_option_init_struct,
849         TARGET_OPTION_INIT_STRUCT): New.
850         (s390_option_optimization): Don't set
851         flag_asynchronous_unwind_tables here.
852         * config/sh/sh.c (sh_option_init_struct,
853         TARGET_OPTION_INIT_STRUCT): New.
854         (sh_option_optimization): Don't set flag_finite_math_only here.
855         * config/spu/spu.c (spu_option_optimization): Replace by
856         spu_option_optimization.  Use options structure pointer.
857         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
858
859 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
860
861         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
862
863         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
864         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
865         (Standard names): Document fma.
866
867         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
868         __FP_FAST_FMAF, __FP_FAST_FMAL.
869
870         * builitns.c (expand_builtin_mathfn_ternary): New function for
871         expanding ternary math functions, like fma.
872         (expand_builtin): Call it for the fma builtins.
873
874         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
875         ops at present.
876
877         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
878         vectorizable functions to support vectorizing fma.
879
880         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
881         Handle fma builtins.
882
883         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
884         (UNSPEC_VSX_MSUB): Ditto.
885         (UNSPEC_VSX_NMADD): Ditto.
886         (UNSPEC_VSX_NMSUB): Ditto.
887         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
888         of UNSPEC. Renumber combiner patterns.
889         (vsx_fmsub<mode>4*): Ditto.
890         (vsx_fnmadd<mode>4*): Ditto.
891         (vsx_fnmsub<mode>4*): Ditto.
892
893         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
894         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
895         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
896         (altivec_vmaddfp_1): Ditto.
897         (altivec_vmaddfp_2): Ditto.
898         (atlivec_mulv4sf3): Ditto.
899         (altivec_vnmsubfp): Ditto.
900         (altivec_vnmsubfp_1): Ditto.
901         (altivec_vnmsubfp_2): Ditto.
902         (altivec_vnmsubfp_3): Delete.
903
904         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
905         (fmasf4_fpr): Ditto.
906         (fmssf4_fpr): Ditto.
907         (fnmasf4_fpr): Ditto.
908         (fnmssf4_fpr): Ditto.
909         (fmadf4): Ditto.
910         (fmadf4_fpr): Ditto.
911         (fmsdf4_fpr): Ditto.
912         (fnmadf4_fpr): Ditto.
913         (fnmsdf4_fpr): Ditto.
914
915         * optabs.h (OTI_fma): Add fma optab.
916         (fma_optab): Ditto.
917
918         * genopinit.c (optabs): Set fma optab.
919
920         * rtl.def (FMA): Add FMA rtl.
921
922         * tree.h (mode_has_fma): New function to return if MODE supports a
923         fast multiply and add instruction.
924         * builtins.c (mode_has_fma): Ditto.
925
926 2010-10-15  Jan Hubicka  <jh@suse.cz>
927
928         * lto-streamer-out.c (write_symbol): Use pointer set of seen
929         objects instead of bitmap.
930         (produce_symtab): Likewise; output defined symbols first.
931
932 2010-10-15  Jie Zhang  <jie@codesourcery.com>
933
934         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
935         Option Summary and Index.
936
937 2010-10-15  Richard Guenther  <rguenther@suse.de>
938
939         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
940         for automatic variables again.
941
942 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
943
944         * doc/extend.texi (Variable Length): Don't refer to VLAs not
945         conforming to C99.
946
947 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
948
949         * config/rx/rx.c (rx_option_optimization): Change to
950         rx_override_options_after_change.  Don't change
951         flag_lto_compression_level.  Don't check for changes to whether
952         FPU instructions can be used.  Check and set only
953         flag_finite_math_only, not other fast-math flags.
954         (rx_option_override): Call rx_override_options_after_change.
955         (TARGET_OPTION_OPTIMIZATION): Remove.
956         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
957
958 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
959
960         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
961         disable section anchors for lang_hooks.name[4] != 'O'.
962
963 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
964
965         * config/frv/frv.c (frv_option_optimization,
966         TARGET_OPTION_OPTIMIZATION): Remove.
967         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
968
969 2010-10-15  Michael Matz  <matz@suse.de>
970
971         * cgraphunit.c (clone_of_p): Define unconditionally.
972
973 2010-10-15  Richard Guenther  <rguenther@suse.de>
974
975         PR lto/45957
976         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
977
978 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
979
980         * ifcvt.c (find_active_insn_before): New function.
981         (find_active_insn_after): New function.
982         (cond_exec_process_if_block): Use new functions to replace
983         prev_active_insn() and next_active_insn().
984
985 2010-10-14  Yao Qi  <yao@codesourcery.com>
986
987         PR target/45447
988         * config/arm/arm.c (arm_build_builtin_va_list): Assign
989         va_list_name to TYPE_STUB_DECL (va_list_type).
990
991 2010-10-14  Jan Hubicka  <jh@suse.cz>
992
993         PR middle-end/45621
994         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
995         redirected to clone, be happy.
996         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
997         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
998         former_clone_of unconditionally.
999
1000 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
1001
1002         Merge from FSF apple 'trunk' branch.
1003         2006 Fariborz Jahanian <fjahanian@apple.com>
1004
1005         Radars 4436866, 4505126, 4506903, 4517826
1006         * c-parser.c (c_parser, objc_property_attr_context) New flag.
1007         (c_lex_one_token): Handle property attributes.
1008         (c_parser_external_declaration): Handle @property.
1009         (c_parser_declaration_or_fndef): Warn on invalid attributes before
1010         @alias, @class, @end and @property objc keywords.
1011         (c_parser_objc_methodprotolist): Handle @property.
1012         (c_parser_objc_property_attrlist): New.
1013         (c_parser_objc_at_property): New.
1014         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
1015         (build_modify_expr): Likewise.
1016
1017 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
1018
1019         PR tree-optimization/46008
1020         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
1021
1022 2010-10-14  Richard Guenther  <rguenther@suse.de>
1023
1024         PR tree-optimization/44913
1025         * tree-data-ref.c (disjoint_objects_p): Remove.
1026         (dr_may_alias_p): Simplify.  Only hand the base object to
1027         the alias-oracle.
1028         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1029         some more trees, bail out instead of asserting.
1030         (ptr_derefs_may_alias_p): Likewise.  Export.
1031         (refs_may_alias_p_1): Handle STRING_CSTs.
1032         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
1033
1034 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
1035
1036         PR c/45969
1037         * c-typeck.c (build_binary_op): Don't try to compute a semantic
1038         type with excess precision for boolean operations.
1039
1040 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1041             Basile Starynkevitch  <basile@starynkevitch.net>
1042
1043         * gengtype.c:  Include getopt.h and version.h.
1044
1045         (lang_bitmap, struct outf, outf_p)
1046         (get_output_file_with_visibility, oprintf): Definitions moved to
1047         gengtype.h
1048         (output_files, header_file, srcdir, srcdir_len, this_file)
1049         (do_dump): No more static variables.
1050         (do_debug): New.
1051         (dbgprint_count_type_at): Added new function.
1052         (gengtype_long_options): New.
1053         (print_usage, print_version, parse_program_options): New.
1054         (main): Call parse_program_options, and removed old option
1055         handling code.  Added some debug output.
1056
1057         * gengtype.h:  Updated copyright year.
1058         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
1059         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
1060         Moved from gengtype.c to here.
1061         (do_debug, read_state_filename, write_state_filename): New variables.
1062         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
1063
1064         * Makefile.in:
1065         (REVISION): Always defined.
1066         (version.o): Removed ifdef REVISION_c.
1067         (s-gtype): Pass arguments to build/gengtype program.
1068         (build/version.o): Added building rule.
1069         (build/gengtype$(build_exeext)): Added build/version.o.
1070
1071 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
1072
1073         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
1074         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
1075         __strong macros.
1076
1077 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1078
1079         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
1080         may_trap_or_fault_p instead of may_trap_p predicate.
1081         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
1082         (substitute_placeholder_in_expr): Likewise.
1083         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
1084         flag on MEM_REF nodes.
1085         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
1086         flags on INDIRECT_REF nodes.
1087
1088 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
1089
1090         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
1091         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
1092         (arm*-*-eabi*) <tm_file>: Likewise.
1093         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
1094         (frv-*-*linux*) <tm_file>: Likewise.
1095         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
1096         and associated helper macros.
1097         * config/frv/frv-abi.h: Delete.
1098
1099 2010-10-14  Richard Guenther  <rguenther@suse.de>
1100
1101         PR lto/44561
1102         * tree.def (NULLPTR_TYPE): New tree code.
1103         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
1104         * dwarf2out.c (is_base_type): Likewise.
1105         (gen_type_die_with_usage): Likewise.
1106         * sdbout.c (plain_type_1): Likewise.
1107         * tree.c (build_int_cst_wide): Likewise.
1108         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
1109
1110 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
1111
1112         * params.c (params_finished): New.
1113         (add_params): Assert !params_finished.
1114         (finish_params): New.
1115         (set_param_value_internal): Take params and params_set
1116         parameters.  Assert params_finished.
1117         (set_param_value, maybe_set_param_value): Take params and
1118         params_set parameters.  Update calls to set_param_value_internal.
1119         (set_default_param_value): Assert !params_finished.  Don't use
1120         set_param_value_internal.
1121         (default_param_value, init_param_values): New.
1122         * params.h (struct param_info): Change value to default_value.
1123         Remove set.
1124         (set_param_value, maybe_set_param_value): Add params and
1125         params_set parameters.
1126         (PARAM_VALUE): Get parameters from global_options.
1127         (PARAM_SET_P): Remove.
1128         (finish_params, default_param_value, init_param_values): New.
1129         * common.opt (param_values): New Variable.
1130         * config/arm/arm.c (arm_option_override): Pass extra arguments to
1131         maybe_set_param_value.
1132         * config/i386/i386.c (ix86_option_override_internal): Pass extra
1133         arguments to maybe_set_param_value.
1134         * config/picochip/picochip.c (picochip_option_override): Pass
1135         extra arguments to maybe_set_param_value.
1136         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
1137         extra arguments to maybe_set_param_value.
1138         * config/s390/s390.c (s390_option_override): Use
1139         maybe_set_param_value instead of set_param_value.  Pass extra
1140         arguments to maybe_set_param_value.
1141         * config/sparc/sparc.c (sparc_option_override): Pass extra
1142         arguments to maybe_set_param_value.
1143         * config/spu/spu.c (spu_option_override): Pass extra arguments to
1144         maybe_set_param_value.
1145         * opts.c (handle_param): Take opts and opts_set parameters.
1146         Update call to set_param_value.
1147         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
1148         initial_loop_invariant_max_bbs_in_loop): Remove.
1149         (init_options_once): Don't set them.
1150         (init_options_struct): Initialize parameters structures.
1151         (default_options_optimization): Use default_param_value when
1152         restoring defaults.  Update calls to maybe_set_param_value.
1153         (finish_options): Update calls to maybe_set_param_value.
1154         (common_handle_option): Update calls to handle_param and
1155         set_param_value.
1156         * toplev.c (DEFPARAM): Update definition for changes to param_info.
1157         (general_init): Call finish_params.
1158
1159 2010-10-14  Nick Clifton  <nickc@redhat.com>
1160
1161         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
1162         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
1163         (FIRST_PSEUDO_REGISTER): Increase by one.
1164         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
1165         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
1166         (MODES_TIEABLE): Call mn10300_modes_tieable.
1167         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
1168         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
1169         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
1170         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
1171         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
1172         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
1173         (mn10300_cc_status_mdep): Delete.
1174         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
1175         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
1176         the combine-stack-adjust pass.
1177         (print_operand): Use the mode of the comparison operation to
1178         select the comparison suffix.
1179         (notice_update_cc): Delete.
1180         (mn10300_secondary_reload_class): Remove test for stack pointer
1181         based arithmetic.
1182         (output_tst): Rename to mn10300_output_cmp.
1183         (impossible_plus_operand): Move into predicates.md.
1184         (mn10300_legitimize_address): Make static.
1185         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
1186         constant pic operands.
1187         (mn10300_legitimate_constant_p): New function.
1188         (mn10300_case_values_threshold): Make static.
1189         (mn10300_hard_regno_mode_ok): New function.
1190         (mn10300_modes_tieable): New function.
1191         (mn10300_select_cc_mode): New function.
1192         * config/mn10300/predicates.md (impossible_plus_operand): Define.
1193         * config/mn10300/mn10300-protos.h: Tidy.
1194         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
1195         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
1196         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
1197         with clobbers or sets of CC_REG.
1198         (CC_REG): Define.
1199         (mov*): Remove use of CLR instruction.
1200         (cbranch_si4_<code>): New pattern/split.
1201         (integer_conditional_branch): New pattern.
1202         (cbranch_sf4_<code>): New pattern/split.
1203         (float_conditional_branch): New pattern.
1204         (casesi): Use addsi3 pattern instead of movsi pattern to add and
1205         move a value at the same time.
1206         (cc0 peepholes): Remove.
1207
1208 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
1209
1210         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
1211         on RTX_FRAME_RELATED_P insns and the insn to which
1212         NOTE_INSN_EPILOGUE_BEG is attached.
1213         * sched-vis.c (print_value): Allow NULL value.
1214
1215 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
1216
1217         PR rtl-optimization/45570
1218         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
1219         assert that we are pipelining outer loops.  Allow returning
1220         zero predecessors.
1221
1222 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
1223
1224         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
1225         (tidy_control_flow): Tidy vertical space.
1226         (sel_remove_bb): New variable idx.  Use it to remember the basic
1227         block index before deleting the block.
1228         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
1229         (sel_merge_blocks): ... here.
1230         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
1231
1232 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
1233
1234         * cse.c (is_dead_reg): Change into inline function that is not
1235         called through for_each_rtx.
1236         (set_live_p): Adjust caller.
1237         (insn_live_p): Don't reset DEBUG_INSNs here.
1238         (struct dead_debug_insn_data): New data.
1239         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
1240         (delete_trivially_dead_insns): If there is just one setter for the
1241         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
1242         and add DEBUG_INSN for it right before the removed setter and
1243         use the DEBUG_EXPR instead of the dead pseudo.
1244
1245 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
1246
1247         * et-forest.c (et_nca): Return NULL immediately when
1248         the dominance forest has disjoint components.
1249
1250 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
1251
1252         * ira.c (setup_class_hard_regs): Fix typo in indexing
1253         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
1254
1255 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
1256
1257         * graph.c (inbb): New variable.
1258         (start_bb): Set inbb to 1 if output is inside of a building block.
1259         (end_bb): Check if output is inside of a building block.
1260
1261 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1262
1263         PR rtl-optimization/45912
1264         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
1265         regno of registers instead of their index to compute the alignment.
1266
1267 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
1268
1269         * config/i386/i386.c (ix86_build_const_vector): Check vector
1270         mode instead of scalar mode.
1271         (ix86_build_signbit_mask): Likewise.
1272         (ix86_expand_fp_absneg_operator): Updated.
1273         (ix86_expand_copysign): Likewise.
1274         (ix86_expand_int_vcond): Likewise.
1275         (ix86_emit_swdivsf): Likewise.
1276         (ix86_sse_copysign_to_positive): Likewise.
1277         (ix86_expand_sse_fabs): Likewise.
1278         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
1279         * config/i386/sse.md (copysign<mode>3): Likewise.
1280         (sse2_cvtudq2ps): Likewise.
1281         (vec_unpacku_float_hi_v4si): Likewise.
1282         (vec_unpacku_float_lo_v4si): Likewise.
1283
1284         * config/i386/i386.c (ix86_builtins): Add
1285         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
1286         (bdesc_args): Likewise.
1287         (ix86_builtin_vectorized_function): Support
1288         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
1289         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
1290         and IX86_BUILTIN_CVTPS2DQ256.
1291         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
1292
1293         * config/i386/sse.md (STORENT_MODE): New.
1294         (VEC_FLOAT_MODE): Likewise.
1295         (VEC_EXTRACT_MODE): Likewise.
1296         (*avx_cvtdq2pd256_2): Likewise.
1297         (vec_pack_trunc_v4df): Likewise.
1298         (vec_interleave_highv8sf): Likewise.
1299         (vec_interleave_lowv8sf): Likewise.
1300         (storent<mode>): Macroized.
1301         (<code><mode>2: absneg): Likewise.
1302         (copysign<mode>3): Likewise.
1303         (vec_extract<mode>): Likewise.
1304
1305         PR target/44180
1306         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
1307         for V8SFmode.
1308
1309 2010-10-13  Richard Guenther  <rguenther@suse.de>
1310             H.J. Lu  <hongjiu.lu@intel.com>
1311
1312         * config/i386/sse.md (reduc_splus_v8sf): Add.
1313         (reduc_splus_v4df): Likewise.
1314         (vec_unpacks_hi_v8sf): Likewise.
1315         (vec_unpacks_lo_v8sf): Likewise.
1316         (*avx_cvtps2pd256_2): Likewise.
1317         (vec_unpacks_float_hi_v8si): Likewise.
1318         (vec_unpacks_float_lo_v8si): Likewise.
1319         (vec_interleave_highv4df): Likewise.
1320         (vec_interleave_lowv4df): Likewise.
1321
1322 2010-10-13  Richard Guenther  <rguenther@suse.de>
1323
1324         PR objc/45878
1325         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
1326         alone if there are no virtual methods.
1327
1328 2010-10-13  Richard Henderson  <rth@redhat.com>
1329
1330         * expr.c (build_personality_function): Take parameter LANG instead
1331         of parameter NAME.  Build the name based on the lang prefix and the
1332         unwind method in use.
1333         * tree.c (lhd_gcc_personality): Update call to
1334         build_personality_function.
1335
1336 2010-10-13  Richard Guenther  <rguenther@suse.de>
1337
1338         PR objc/45878
1339         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
1340
1341 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1342
1343         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
1344         Canonicalize input operands of ASM_OPERANDS insns.
1345
1346 2010-10-13  Richard Guenther  <rguenther@suse.de>
1347
1348         PR tree-optimization/45788
1349         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
1350         EH update until fixup-cfg.
1351
1352 2010-10-13  Julian Brown  <julian@codesourcery.com>
1353
1354         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
1355         from CORE_REGS and GENERAL_REGS classes.
1356         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
1357         final constraint for register preferencing.
1358
1359 2010-10-13  Richard Guenther  <rguenther@suse.de>
1360
1361         PR tree-optimization/45970
1362         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
1363         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
1364         (stmt_kills_ref_p): Likewise.
1365         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
1366
1367 2010-10-13  Richard Guenther  <rguenther@suse.de>
1368
1369         PR tree-optimization/45982
1370         * tree-ssa-structalias.c (make_constraints_to): New function.
1371         (make_constraint_to): Implement in terms of make_constraints_to.
1372         (find_func_aliases): Properly make return values of pure/const
1373         functions escape if they assign to sth that is not a pointer.
1374
1375 2010-10-13  Richard Guenther  <rguenther@suse.de>
1376
1377         PR middle-end/45874
1378         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1379         Fixup the CFG when EH was fixed up.
1380
1381 2010-10-13  Ira Rosen  <irar@il.ibm.com>
1382
1383         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
1384         Use operand's type for POINTER_PLUS_EXPR.
1385
1386 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
1387
1388         * c-parser.c (c_parser_for_statement): Initialize incr.
1389
1390 2010-10-12  Xinliang David Li  <davidxl@google.com>
1391
1392         PR tree-optimization/45972
1393         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
1394         with too many arguments.
1395
1396 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
1397
1398         PR fortran/45636
1399         * tree-ssa-forwprop.c: Include expr.h.
1400         (constant_pointer_difference, simplify_builtin_call): New functions.
1401         (tree_ssa_forward_propagate_single_use_vars): Call
1402         simplify_builtin_call on builtin calls.
1403
1404 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
1405
1406         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
1407         (*adddi3_extend_sp32): Likewise.
1408         (*subdi3_insn_sp32): Likewise.
1409         (*subdi3_extend_sp32): Likewise.
1410         (*negdi2_sp32): Use negative test for consistency.
1411
1412 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
1413
1414         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
1415         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
1416         * config/fixed-bit.h: Likewise.
1417         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
1418         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
1419         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
1420         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
1421         (DF_SIZE): Likewise.
1422         * doc/tm.texi: Regenerate.
1423
1424 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
1425
1426         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
1427         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
1428         (*isel_reversed_unsigned_<mode>): New.
1429         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
1430         as valid comparisons and adjust operands and output appropriately.
1431         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
1432
1433 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
1434
1435         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
1436         DATA_ALIGNMENT and add COND parameter. Update comments above.
1437         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
1438         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
1439
1440 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1441
1442         PR bootstrap/45958
1443         * exec-tool.in: Support '-plugin' as the second option to the linker.
1444
1445 2010-10-12  Richard Henderson  <rth@redhat.com>
1446
1447         PR middle-end/45962
1448         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
1449         (expand_stack_vars): Assert large base allocated when used.
1450
1451 2010-10-12  Richard Guenther  <rguenther@suse.de>
1452
1453         * tree-ssa-structalias.c (get_constraint_for_1): Constants
1454         only point to nonlocal, not anything.
1455
1456 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
1457
1458         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
1459         unwind info for exceptions.
1460
1461 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1462
1463         PR testsuite/45851
1464         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
1465         Document optional target selector.
1466
1467 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
1468
1469         * flag-types.h: New.
1470         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
1471         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
1472         options.h.
1473         (OPTIONS_H): Define.
1474         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
1475         of options.h.
1476         * configure.ac (tm_include_list): Include options.h not flags.h.
1477         * configure: Regenerate.
1478         * flags.h: Include flag-types.h.  Include options.h at top of file
1479         again.
1480         (enum debug_info_type, enum debug_info_level, enum
1481         debug_info_usage, enum symbol_visibility, struct visibility_flags,
1482         enum ira_algorithm, enum ira_region, enum excess_precision, enum
1483         graph_dump_types, enum stack_check_type,
1484         enum warn_strict_overflow_code): Move to flag-types.h
1485         * opth-gen.awk: Include flag-types.h in options.h.
1486
1487 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
1488
1489         * expr.c (store_expr): Share code for STRING_CST and
1490         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
1491         check if target is a MEM.
1492
1493         * rtl.h: Include hashtab.h.
1494         (iterative_hash_rtx): New prototype.
1495         * rtl.c (iterative_hash_rtx): New function.
1496         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
1497         (output_loc_list): Return immediately if emitted is set, set it.
1498         (hash_loc_operands, hash_locs, hash_loc_list,
1499         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
1500         optimize_location_lists_1, optimize_location_lists): New function.
1501         (dwarf2out_finish): Call optimize_location_lists.
1502         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
1503
1504 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1505
1506         PR testsuite/45974
1507         Revert:
1508         * Makefile.in ($(lang_checks_parallel))
1509         ($(lang_checks_parallelized)): Use single quotes for
1510         $(RUNTESTFLAGS), to allow passing quoted content.
1511
1512 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1513
1514         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
1515         actual_oldval.  Use __builtin_expect.
1516         (SUBWORD_VAL_CAS): Likewise.
1517
1518 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
1519
1520         * recog.c (nonmemory_operand): Call immediate_operand for
1521         CONSTANT_P operands.
1522
1523 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
1524
1525         * config/i386/i386.md (movmem<mode>): Macroize expander from
1526         movmem{si,di} using SWI48 mode iterator.
1527         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
1528         *strmovsi_rex_1 using P mode iterator.
1529         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
1530         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
1531         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
1532         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
1533         (setmem<mode>): Macroize expander from setmem{si,di} using
1534         SWI48 mode iterator.
1535         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
1536         *strsetsi_rex_1 using P mode iterator.
1537         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
1538         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
1539         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
1540         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
1541         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
1542         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
1543         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
1544         mode iterator.
1545         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
1546         *strlenqi_rex_1 using P mode iterator.
1547
1548 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
1549
1550         PR bootstrap/45445
1551         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
1552         static functions.
1553         (mark_ref_live, mark_ref_dead): Use them.
1554         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
1555         Save the original reg, and use the new functions.
1556         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
1557         changed.
1558         (check_and_make_def_conflict): Save the original reg.
1559
1560 2010-10-11  Martin Jambor  <mjambor@suse.cz>
1561
1562         PR middle-end/45699
1563         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
1564         thunks.
1565
1566 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1567
1568         * Makefile.in ($(lang_checks_parallel))
1569         ($(lang_checks_parallelized)): Use single quotes for
1570         $(RUNTESTFLAGS), to allow passing quoted content.
1571
1572         PR bootstrap/35855
1573         * opt-functions.awk (BEGIN): New section.
1574         (lower, upper, digit, alnum): New variables.
1575         (static_var, opt_sanitized_name): Use alnum instead of character
1576         classes, for non-C locale.
1577         * optc-gen.awk: Likewise.
1578         * opth-gen.awk: Likewise.
1579
1580 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
1581
1582         * target.def (preferred_reload_class): New hook.
1583         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
1584         * doc/tm.texi: Regenerate.
1585         * targhooks.c (default_preferred_reload_class): New function.
1586         * targhooks.h (default_preferred_reload_class): Declare.
1587         * reload.c (find_dummy_reload): Change preferred_class variable type
1588         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
1589         target hook.
1590         (find_reloads): Change goal_alternative array type from int to
1591         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
1592         (push_reload, find_reloads_address_part): Use
1593         TARGET_PREFERRED_RELOAD_CLASS target hook.
1594         * reload1.c (emit_input_reload_insns): Ditto.
1595         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
1596         hook. Change rclass argument and secondary_class variable types from
1597         'enum reg_class' to reg_class_t.
1598
1599         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
1600         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
1601         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
1602         Change regclass argument and result types from enum reg_class to
1603         reg_class_t.
1604         (TARGET_PREFERRED_RELOAD_CLASS): Define.
1605
1606 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1607
1608         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
1609         in masking operations.
1610         (simplify_const_unary_operation): Likewise.
1611         (simplify_binary_operation_1): Likewise.
1612         (simplify_const_binary_operation): Likewise.
1613         (simplify_const_relational_operation): Likewise.
1614         (simplify_ternary_operation): Likewise.
1615         (simplify_immed_subreg): Likewise.
1616
1617 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1618
1619         PR middle-end/45862
1620         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
1621         (TARGET_SUPPORTS_WEAK): New.
1622         * doc/tm.texi: Regenerate.
1623         * defaults.h (SUPPORTS_WEAK): Update comment.
1624         (TARGET_SUPPORTS_WEAK): New.
1625         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
1626         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
1627         SUPPORTS_WEAK.
1628         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
1629         make_decl_one_only): Likewise.
1630         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
1631         TARGET_SUPPORTS_WEAK.
1632         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
1633         instead of SUPPORTS_WEAK.
1634
1635 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1636
1637         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
1638
1639 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
1640
1641         * vec.h (VEC_qsort): Define.
1642         * dbxout.c (output_used_types): Use it.
1643         * df-scan.c (df_sort_and_compress_refs): Likewise.
1644         (df_sort_and_compress_mws): Likewise.
1645         * genautomata.c (uniq_sort_alt_states): Likewise.
1646         (evaluate_equiv_classes): Likewise.
1647         (output_trans_table): Likewise.
1648         (output_state): Likewise.
1649         * gimplify.c (compare_case_labels): Likewise.
1650         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
1651         * ipa.c (build_cdtor_fns): Likewise.
1652         * lto.c (lto_wpa_write_files): Likewise.
1653         * sel-sched.c (fill_vec_av_set): Likewise.
1654         * tree-predcom.c (determine_roots_comp): Likewise.
1655         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
1656         (splice_param_accesses): Likewise.
1657         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
1658         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
1659         (reassociate_bb): Likewise.
1660         * tree-ssa-sccvn.c (sort_scc): Likewise.
1661         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
1662
1663 2010-10-11  Ian Lance Taylor  <iant@google.com>
1664
1665         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
1666         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
1667         TREE_THIS_NOTRAP when appropriate.
1668         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
1669         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
1670         newly created MEM_REF.
1671
1672 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
1673
1674         Nathan Froyds patch to hooks FUNCTION_ARG etc.
1675         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
1676         (picochip_incoming_function_arg): Delete.
1677         (picochip_arg_advance): Delete.
1678         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
1679         (FUNCTION_INCOMING_ARG): Delete.
1680         (FUNCTION_ARG_ADVANCE): Delete.
1681         * config/picochip/picochip.c (picochip_function_arg): Take a
1682         const_tree and a bool.
1683         (picochip_incoming_function_arg): Likewise.
1684         (picochip_arg_advance): Likewise.
1685         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1686         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1687
1688 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1689
1690         PR middle-end/45955
1691         * ipa.c (build_cdtor): Delete endless loop.
1692
1693 2010-10-07  Andi Kleen  <ak@linux.intel.com>
1694
1695         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
1696         checksum-options.
1697         (checksum-options): Add.
1698         (cc1-dummy): Remove.
1699         (cc1-checksum): Change to run checksum over object files
1700         and options only.
1701         * dummy-checksum.c: Remove.
1702         * genchecksum.c: Update copyright.
1703         (usage): Allow multiple arguments.
1704         (BLOCKSIZE): Add.
1705         (dosum): Change for incremental checksum. Remove C output.
1706         (main): Iterate over all argument files. Add C output.
1707
1708 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
1709
1710         * params.c (set_param_value_internal): New.
1711         (set_param_value): Use set_param_value_internal.
1712         (maybe_set_param_value, set_default_param_value): New.
1713         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
1714         (maybe_set_param_value, set_default_param_value): Declare.
1715         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
1716         * config/i386/i386.c (ix86_option_override_internal): Use
1717         maybe_set_param_value.
1718         * config/ia64/ia64.c (ia64_option_default_params,
1719         TARGET_OPTION_DEFAULT_PARAMS): New.
1720         (ia64_option_optimization): Move some code to
1721         ia64_option_default_params.
1722         * config/picochip/picochip.c (picochip_option_override): Use
1723         maybe_set_param_value.
1724         * config/rs6000/rs6000.c (rs6000_option_default_params,
1725         TARGET_OPTION_DEFAULT_PARAMS): New.
1726         (rs6000_option_override_internal): Use maybe_set_param_value.
1727         (rs6000_option_optimization): Move some code to
1728         rs6000_option_default_params.
1729         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
1730         * config/sh/sh.c (sh_option_default_params,
1731         TARGET_OPTION_DEFAULT_PARAMS): New.
1732         (sh_option_optimization): Move some code to sh_option_default_params.
1733         * config/sparc/sparc.c (sparc_option_override): Use
1734         maybe_set_param_value.
1735         * config/spu/spu.c (spu_option_default_params,
1736         TARGET_OPTION_DEFAULT_PARAMS): New.
1737         (spu_option_optimization): Move some code to spu_option_default_params.
1738         (spu_option_override): Use maybe_set_param_value.
1739         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
1740         * doc/tm.texi: Regenerate.
1741         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
1742         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
1743         compiler_params.
1744         (default_options_optimization): Use maybe_set_param_value.
1745         (finish_options): Use maybe_set_param_value.
1746         * target.def (target_option.default_params): New hook.
1747         * toplev.c (general_init): Call targetm.target_option.default_params.
1748
1749 2010-10-11  Ira Rosen  <irar@il.ibm.com>
1750
1751         PR tree-optimization/45902
1752         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
1753         vector type for constants, unless it's a pointer.
1754
1755 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1756
1757         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
1758
1759 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
1760
1761         PR target/45870
1762         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
1763         (ix86_delegitimize_address): Use it.
1764
1765 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
1766
1767         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
1768
1769 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
1770
1771         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
1772         to cum struct in the call to function_arg_advance.
1773         (alpha_function_arg_advance): Mark named as unused.
1774
1775 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
1776
1777         * config/mips/mips.c (mips_handle_option): Make "value" with
1778         ATTRIBUTE_UNUSED.
1779
1780 2010-10-09  Richard Henderson  <rth@redhat.com>
1781
1782         PR rtl-opt/33721
1783         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
1784         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
1785         required_align, tidy the code a bit.  Emit split_stack code in the
1786         right place.  Mark the return value with the alignment properly.
1787         * expr.h (allocate_dynamic_stack_space): Update decl.
1788         * builtins.c (expand_builtin_apply): Update call to
1789         allocate_dynamic_stack_space.
1790         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
1791         * calls.c (initialize_argument_information): Update call to
1792         allocate_dynamic_stack_space.
1793         (expand_call): Likewise.
1794
1795         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
1796         Don't update_stack_alignment here.
1797         (alloc_stack_frame_space): Make ALIGN unsigned.
1798         (stack_var_cmp): Sort by alignment too.
1799         (partition_stack_vars): Don't merge large and small alignment vars.
1800         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
1801         Take care when BASE is not virtual_stack_vars_rtx.
1802         (expand_stack_vars): Allocate dynamic stack space for large
1803         alignment variables.
1804         (expand_one_stack_var): Update all to expand_one_stack_var_at.
1805         (defer_stack_allocation): True for large alignment vars.
1806         (update_stack_alignment): Merge into ...
1807         (expand_one_var): ... here.
1808         (gimple_expand_cfg): Place code from expand_stack_vars.
1809
1810 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1811
1812         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1813         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
1814         (pdp11_function_arg_advance): New function.
1815         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1816
1817 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1818
1819         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
1820         * libgcc2.c: Likewise.
1821
1822 2010-10-09  Richard Guenther  <rguenther@suse.de>
1823
1824         PR lto/45956
1825         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
1826         Properly check if a decl is an automatic var.
1827
1828 2010-10-09  Richard Guenther  <rguenther@suse.de>
1829
1830         PR lto/45947
1831         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
1832
1833 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1834
1835         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
1836         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1837         * config/mmix/mmix.c (mmix_function_arg): Rename to...
1838         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
1839         bool arguments.
1840         (mmix_function_arg): New function.
1841         (mmix_function_incoming_arg): New function.
1842         (mmix_function_arg_advance): New function.
1843         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1844         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1845
1846 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1847
1848         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1849         * config/vax/vax.c (vax_function_arg): New function.
1850         (vax_function_arg_advance): New function.
1851         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1852
1853 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1854
1855         * config/pa/pa-protos.h (function_arg): Delete.
1856         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1857         * config/pa/pa.c (function_arg): Rename to...
1858         (pa_function_arg): ...this.  Make static.  Take a const_tree and
1859         a bool.
1860         (pa_function_arg_advance): New function.
1861         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1862
1863 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1864
1865         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1866         * config/m68k/m68k.c (m68k_function_arg): New function.
1867         (m68k_function_arg_advance): New function.
1868         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1869
1870 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1871
1872         * config/avr/avr-protos.h (function_arg): Delete.
1873         (function_arg_advance): Delete.
1874         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1875         * config/avr/avr.c (function_arg): Rename to...
1876         (avr_function_arg): ...this.  Make static.  Take a const_tree and
1877         a bool.
1878         (function_arg_advance): Rename to...
1879         (avr_function_arg_advance): ...this.  Make static.  Take a
1880         const_tree and a bool.
1881         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1882
1883 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1884
1885         * config/alpha/alpha-protos.h (function_arg): Delete.
1886         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1887         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
1888         * config/alpha/alpha.c (function_arg): Rename to...
1889         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
1890         a bool.  Delete TARGET_ABI_UNICOSMK code.
1891         (alpha_function_arg_advance): New function.
1892         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1893
1894 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1895
1896         * config/mep/mep-protos.h (mep_function_arg): Delete.
1897         (mep_function_arg_advance): Delete.
1898         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1899         * config/mep/mep.c (mep_function_arg): Make static.  Take a
1900         const_tree and a bool.
1901         (mep_function_arg_advance): Likewise.
1902         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1903
1904 2010-10-09  Richard Guenther  <rguenther@suse.de>
1905
1906         PR tree-optimization/45945
1907         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
1908
1909 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1910
1911         PR tree-optimization/45612
1912         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
1913         Test LABEL_DECLs as well.  Fix formatting issues.
1914         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
1915         whose label is present in NON_SSA_VARS.
1916         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
1917         as well.  Fix formatting issues.
1918         (visit_bb): Fix typos and formatting issue.
1919
1920 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1921
1922         PR tree-optimization/45950
1923         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
1924         before initializing vno->op.
1925
1926 2010-10-09  Ralf Corsépius <ralf.corsepius@rtems.org>
1927
1928         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
1929         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
1930
1931 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1932
1933         PR target/45913
1934         * config/i386/i386.c (ix86_binary_operator_ok): Support
1935         "andhi/andsi/anddi" as a zero-extending move.
1936
1937 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1938
1939         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
1940         into a temporary array.
1941
1942 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
1943
1944         PR tree-optimization/45903
1945         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
1946         of {A,L}SHIFTRT of MEM.
1947
1948 2010-10-08  Richard Guenther  <rguenther@suse.de>
1949
1950         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
1951         Re-construct BLOCK_VARS.
1952         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
1953         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
1954         * tree.c (free_lang_data_in_block): Remove.
1955         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
1956         Do not touch the BLOCK tree.
1957         * expr.c (expand_expr_real_1): Allow externals.
1958
1959 2010-10-08  Richard Guenther  <rguenther@suse.de>
1960
1961         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
1962         Do not output BLOCK_SUBBLOCKS.
1963         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
1964         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
1965         Re-construct BLOCK_SUBBLOCKS of parent block.
1966         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
1967         for BINFO_BASE_ACCESSES.
1968
1969 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
1970
1971         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
1972         (TREE_H): Include $(FLAGS_H) instead of options.h.
1973         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
1974         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1975         * common.opt (flag_complex_method, flag_evaluation_order,
1976         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
1977         Variable declarations.
1978         * configure.ac (tm_include_list): Include flags.h instead of options.h.
1979         * configure: Regenerate.
1980         * flags.h: Condition out contents for target libraries.  Include
1981         options.h at end of file.
1982         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
1983         flag_evaluation_order, flag_warn_unused_result): Remove.
1984         * gcc.c (main): Intialize global_options with global_options_init.
1985         * langhooks-def.h (lhd_init_options_struct): Declare.
1986         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1987         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
1988         * langhooks.c (lhd_init_options_struct): New.
1989         * langhooks.h (struct lang_hooks): Add init_options_struct.
1990         Update comment on init_options.
1991         * optc-gen.awk: Generate initializer for global_options_init, not
1992         global_options.
1993         * opth-gen.awk: Condition out structure declarations for target
1994         libraries.  Declare global_options_init.
1995         * opts-common.c: Include flags.h instead of options.h.
1996         * opts.c (flag_warn_unused_result): Remove.
1997         (read_cmdline_options): Take gcc_options parameters.  Pass them to
1998         read_cmdline_option.
1999         (initial_lang_mask, initial_min_crossjump_insns,
2000         initial_max_fields_for_field_sensitive,
2001         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
2002         (init_options_once): New.  Split out of decode_options.
2003         (init_options_struct): New.  Split out of decode_options.
2004         (decode_cmdline_options_to_array_default_mask): New.
2005         (default_options_optimization): New.  Split out of decode_options.
2006         (decode_options): Move most code to other functions.  Update call
2007         to read_cmdline_options.
2008         (finish_options): New.  Split out of decode_options.
2009         * opts.h (decode_options): Add gcc_options parameters.
2010         (init_options_once, init_options_struct,
2011         decode_cmdline_options_to_array_default_mask): New.
2012         * toplev.c (flag_complex_method, flag_ira_algorithm,
2013         flag_ira_region, flag_evaluation_order): Remove.
2014         (general_init): Use global_options_init for initial flag values
2015         for global_dc.
2016         (toplev_main): Call init_options_once, init_options_struct,
2017         lang_hooks.init_options_struct,
2018         decode_cmdline_options_to_array_default_mask and
2019         lang_hooks.init_option before decode_options.  Update arguments to
2020         decode_options.
2021         * tree.h: Include flags.h instead of options.h.
2022
2023 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2024
2025         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2026
2027 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2028
2029         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
2030         Delete.
2031         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
2032         (FUNCTION_INCOMING_ARG): Delete.
2033         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
2034         (function_arg_slotno): Likewise.  Take bool arguments.
2035         (sparc_arg_partial_bytes): Update call to it.
2036         (function_arg): Rename to...
2037         (sparc_function_arg_1): ...this.  Take bool arguments.
2038         (sparc_function_arg, sparc_function_incoming_arg): New functions.
2039         (function_arg_advance): Rename to...
2040         (sparc_function_arg_advance): ...this.  Take bool argument.
2041         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
2042         (TARGET_FUNCTION_INCOMING_ARG): Define.
2043
2044 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2045
2046         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
2047         Delete.
2048         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2049         * config/bfin/bfin.c (function_arg_advance): Rename to...
2050         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
2051         and bool arguments.
2052         (function_arg): Rename to...
2053         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
2054         arguments.
2055         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2056
2057 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2058
2059         * config/score/score-protos.h (score_function_arg): Delete.
2060         (score_function_arg_advance): Delete.
2061         * config/score/score3.h (score3_function_arg_advance): Take a
2062         const_tree and a bool.
2063         (score3_function_arg): Likewise.
2064         * config/score/score7.h (score7_function_arg_advance): Likewise.
2065         (score7_function_arg): Likewise.
2066         * config/score/score3.c (score3_classify_arg): Likewise.
2067         (score3_function_arg_advance, score3_function_arg): Likewise.
2068         * config/score/score7.c (score7_classify_arg): Likewise.
2069         (score7_function_arg_advance, score7_function_arg): Likewise.
2070         * config/score/score.c (score_function_arg_advance): Likewise.
2071         (score_function_arg): Likewise.  De-const-ify `cum' argument.
2072         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2073
2074 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2075
2076         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
2077         (s390_function_arg): Delete.
2078         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2079         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
2080         (s390_function_arg_integer): Likewise.
2081         (s390_function_arg_advance): Make static.  Take a const_tree and
2082         a bool.
2083         (s390_function_arg): Likewise.
2084         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2085
2086 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2087
2088         * config/spu/spu-protos.h (spu_function_arg): Delete.
2089         * config/spu/spu.h (FUNCTION_ARG): Delete.
2090         (FUNCTION_ARG_ADVANCE): Move code to ...
2091         * config/spu/spu.c (spu_function_arg_advance): New function.
2092         (spu_function_arg): Make static.  Take a const_tree and a bool.
2093         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
2094         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2095
2096 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2097
2098         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2099
2100 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2101
2102         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
2103         (init_vn_nary_op_from_op): New function.
2104         (init_vn_nary_op_from_stmt): New function.
2105         (vn_nary_op_lookup_1): New function.
2106         (sizeof_vn_nary_op): New function.
2107         (alloc_vn_nary_op_noinit): New function.
2108         (alloc_vn_nary_op): New function.
2109         (vn_nary_op_insert_into): New function.
2110         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
2111         (vn_nary_op_lookup): Likewise.
2112         (vn_nary_op_lookup_stmt): Likewise.
2113         (vn_nary_op_insert_pieces): Likewise.
2114         (vn_nary_op_insert): Likewise.
2115         (vn_nary_op_insert_stmt): Likewise.
2116         (copy_nary): Likewise.
2117         (set_value_id_for_result): New function.
2118         (set_hashtable_value_ids): Call it.
2119
2120 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2121
2122         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2123         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
2124
2125 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
2126
2127         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
2128         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2129
2130 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
2131
2132         PR debug/45656
2133         * cse.c (cse_extended_basic_block): Preserve cc0 info across
2134         debug isnsn.  Skip them when searching for cc0 setter.
2135         (set_live_p): Skip debug insns when searching for cc0 user.
2136
2137 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
2138
2139         PR debug/45673
2140         PR debug/45604
2141         PR debug/45419
2142         PR debug/45408
2143         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
2144         type of MEM_REFs to INTEGER_CSTs.
2145
2146 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
2147
2148         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
2149         m68hc11_print_operand_address.
2150
2151 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
2152
2153         * builtins.c (rewrite_call_expr): Move code to...
2154         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
2155         (rewrite_call_expr_array): New function.
2156         (fold_builtin_sprintf_chk_1): New function.
2157         (fold_builtin_sprintf_chk): Call it.
2158         (gimple_fold_builtin_sprintf_chk): Likewise.
2159         (fold_builtin_snprintf_chk_1): New function.
2160         (fold_builtin_snprintf_chk): Call it.
2161         (gimple_fold_builtin_snprintf_chk): Likewise.
2162         (gimple_rewrite_call_expr): Delete.
2163
2164 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
2165
2166         * config.host: Update copyright year.
2167
2168 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
2169
2170         * config.host (host_lto_plugin_soname): New shell variable.
2171         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
2172         * config.in: Regenerate.
2173         * configure: Regenerate.
2174         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
2175         LTO plugin shared library.
2176
2177 2010-10-07  Richard Henderson  <rth@redhat.com>
2178
2179         * target.h (enum unwind_info_type): Move ...
2180         * coretypes.h: ... here.
2181
2182 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
2183
2184         * doc/objc.texi (Fast enumeration protocol): Mention that
2185         'unsigned int' can also be used instead of 'unsigned long' in
2186         countByEnumeratingWithState:objects:count:.
2187
2188 2010-10-07  Martin Jambor  <mjambor@suse.cz>
2189
2190         * tree-sra.c (struct access): New field grp_assignment_write.
2191         (dump_access): Dump grp_assignment_write.
2192         (build_accesses_from_assign): Set grp_assignment_write.
2193         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
2194         (mark_read_status): Renamed to mark_rw_status, individual values
2195         renamed too.
2196         (analyze_access_subtree): Changed type of mark_write to
2197         mark_read_status.  Fixed propagating of mark_read and
2198         mark_write.  Changed benefit estimate.  Updated comment.
2199
2200 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
2201
2202         PR Tree-Vect/45847
2203         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
2204         check for vectype_out returned by get_vectype_for_scalar_type().
2205
2206 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
2207
2208         PR target/45805
2209         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
2210         constraint, add register specifier in instruction template.
2211         (neon_vec_pack_trunc_<mode>): Likewise.
2212         (neon_vec_<US>mult_<mode>): Add register specifier to
2213         instruction template.
2214
2215 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
2216
2217         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
2218         cygwin2.o.
2219         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
2220         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
2221         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
2222         (cygwin2.o): Likewise.
2223         * config/i386/cygwin1.c: Delete file.
2224         * config/i386/cygwin2.c: Likewise.
2225         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
2226         make all {%!mno-cygwin} ones unconditional.
2227         (STARTFILE_SPEC): Likewise.
2228         (REAL_LIBGCC_SPEC): Likewise.
2229         (LIB_SPEC): Likewise.
2230         (CXX_WRAP_SPEC): Likewise.
2231         (LINK_SPEC): Likewise.
2232         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
2233         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
2234         (cygwin_gplusplus_include_dir): Delete now-unused array.
2235         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
2236         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
2237         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
2238         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
2239         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
2240         (cygwin_local_include_dir): Delete now-unused array.
2241         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
2242         (cygwin_cross_include_dir): Delete now-unused array.
2243         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
2244         (cygwin_tool_include_dir): Delete now-unused array.
2245         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
2246         (cygwin_standard_include_dir): Delete now-unused array.
2247         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
2248         (GEN_CVT_ARRAY): Delete now-unused macro definition.
2249         (cvt_to_mingw): Delete now-unused array.
2250         (mingw_scan): Remove prototype of deleted function.
2251         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
2252         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
2253         * doc/invoke.texi (-mcygwin): Don't document removed option.
2254         (-mno-cygwin): Likewise.
2255
2256 2010-10-07  Richard Guenther  <rguenther@suse.de>
2257
2258         * machmode.h (mode_for_vector): Declare.
2259         * stor-layout.c (mode_for_vector): New function, split out from ...
2260         (layout_type): ... here.
2261         * tree-vectorizer.h (current_vector_size): Declare.
2262         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
2263         mask vector type is available.
2264         (get_vectype_for_scalar_type): Rename to ...
2265         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
2266         size argument.
2267         (get_vectype_for_scalar_type): New wrapper around
2268         get_vectype_for_scalar_type_and_size using current_vector_size.
2269         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
2270         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
2271         of vect_analyze_loop here.
2272         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
2273         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
2274         to autodetect.
2275         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
2276         V8SF to V8SI conversion builtin.
2277
2278 2010-10-07  Richard Guenther  <rguenther@suse.de>
2279
2280         * target.def (autovectorize_vector_sizes): New target hook.
2281         * targhooks.c (default_autovectorize_vector_sizes): New function.
2282         * targhooks.h (default_autovectorize_vector_sizes): Declare.
2283         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2284         Document.
2285         * doc/tm.texi: Update.
2286         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
2287         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2288
2289 2010-10-07  Richard Guenther  <rguenther@suse.de>
2290
2291         * target.def (units_per_simd_word): Rename to ...
2292         (preferred_simd_mode): ... this.  Return mode instead of size.
2293         * targhooks.c (default_units_per_simd_word): Rename to ...
2294         (default_preferred_simd_mode): ... this.  Return word_mode.
2295         * targhooks.h (default_preferred_simd_mode): Declare.
2296         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
2297         (arm_preferred_simd_mode): ... this.  Re-implement.
2298         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
2299         (ix86_preferred_simd_mode): ... this.  Re-implement.
2300         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
2301         (sparc_preferred_simd_mode): ... this.  Re-implement.
2302         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
2303         (mips_preferred_simd_mode): ... this.  Re-implement.
2304         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
2305         (rs6000_preferred_simd_mode): ... this.  Re-implement.
2306         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
2307         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
2308         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
2309         * doc/tm.texi: Update.
2310
2311 2010-10-07  Richard Guenther  <rguenther@suse.de>
2312
2313         PR middle-end/45869
2314         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
2315         of pointers.
2316
2317 2010-10-07  Alan Modra  <amodra@gmail.com>
2318
2319         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
2320         rather than sign extension by hand.
2321
2322 2010-10-07  Jan Hubicka  <jh@suse.cz>
2323
2324         PR middle-end/45926
2325         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
2326
2327 2010-10-07  Richard Guenther  <rguenther@suse.de>
2328
2329         PR bootstrap/45914
2330         * configure.ac: Fix typo.
2331         * configure: Regenerated.
2332
2333 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2334
2335         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
2336         define_builtin_std where it's unnecessary.
2337         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
2338
2339 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
2340
2341         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
2342         * doc/tm.texi.in: Regenerate.
2343         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
2344         * targhooks.c (default_class_likely_spilled_p): Don't use the
2345         CLASS_LIKELY_SPILLED_P macro.
2346
2347         * config/arm/arm.md: Update comment.
2348
2349 2010-10-06  Jan Hubicka  <jh@suse.cz>
2350
2351         * ipa.c (cgraph_remove_unreachable_nodes): External references can
2352         always be removed.
2353         (cgraph_externally_visible_p): We can not bring local comdats that
2354         are known to linker; fix handling of internal visibility.
2355         (function_and_variable_visibility): Likewise.
2356
2357 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2358
2359         PR rtl-optimization/45394
2360         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
2361         (struct rtx_subst_pair): Remove AFTER field.
2362         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
2363         (propagate_for_debug): Remove MOVE parameter and adjust.
2364         (try_combine): In the special case where I2 is a PARALLEL, combine only
2365         destinations of SETs and set I2SRC to the I2 source.
2366         Adjust calls to propagate_for_debug throughout.
2367         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
2368         insns.
2369
2370 2010-10-06  Olivier Hainque  <hainque@adacore.com>
2371
2372         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
2373         switch on insn codes as sequence of ifs.
2374
2375 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
2376
2377         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
2378         be UI_NONE for picochip.
2379         (picochip_option_override): Do not disable exception flags.
2380         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
2381         Declare.
2382
2383 2010-10-06  Richard Guenther  <rguenther@suse.de>
2384
2385         * Makefile.in (regmove.o): Depend on $(TARGET_H).
2386
2387 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
2388
2389         Implemented fast enumeration for Objective-C.
2390         * c-parser.c (objc_could_be_foreach_context): New.
2391         (c_lex_one_token): Recognize RID_IN keyword in a potential
2392         Objective-C foreach context.
2393         (c_parser_declaration_or_fndef): Added parameter.  Accept
2394         Objective-C RID_IN keyword as terminating a declaration; in that
2395         case, return the declaration in the new parameter.
2396         (c_parser_extenral_declaration): Updated calls to
2397         c_parser_declaration_or_fndef.
2398         (c_parser_declaration_or_fndef): Same change.
2399         (c_parser_compound_statement_nostart): Same change.
2400         (c_parser_label): Same change.
2401         (c_parser_objc_methodprotolist): Same change.
2402         (c_parser_omp_for_loop): Same change.
2403         (c_parser_for_statement): Detect and parse Objective-C foreach
2404         statements.
2405         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
2406         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
2407         fast enumeration parsing code to turn off the c99 error but still
2408         perform checks on the loop declarations.
2409         * c-tree.h (check_for_loop_decls): Updated declaration.
2410         * doc/objc.texi: Document fast enumeration.
2411
2412 2010-10-06  Nick Clifton  <nickc@redhat.com>
2413
2414         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
2415         (MDR_REGNUM): Define.
2416         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
2417         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
2418         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
2419         (REGISTER_NAMES): Add MDR.
2420         (DWARF2_DEBUGGING_INFO): Define to 1.
2421         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2422         (F): New function.  Sets RTX_FRAME_RELATED_P.
2423         (mn10300_gen_multiple_store): Use F.
2424         (expand_prologue): Use F.  Use gen_movsf() to push floating
2425         point registers.
2426         (expand_epilogue): Use gen_movsf() to pop floating point registers.
2427         (mn10300_option_override): Disable combine stack adjust pass.
2428
2429 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
2430
2431         PR target/45901
2432         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
2433         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
2434
2435 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
2436
2437         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
2438         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
2439         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
2440         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
2441         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
2442         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
2443         BUILT_IN_TOUPPER): Mark as leaf.
2444
2445         PR middle-end/45838
2446         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
2447         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
2448         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
2449         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
2450         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
2451         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
2452         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
2453
2454 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
2455
2456         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
2457         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2458         (m68hc11_class_likely_spilled_p): New function.
2459
2460 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
2461
2462         * c-parser.c (c_parser_objc_method_definition): Updated comment.
2463
2464 2010-10-05  Jan Hubicka  <jh@suse.cz>
2465
2466         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
2467         Document.
2468         * opts.c (decode_options): Handle lto partitions.
2469         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
2470         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
2471
2472 2010-10-05  Jan Hubicka  <jh@suse.cz>
2473
2474         * cgraphunit.c (assemble_function): Output thunks and aliases before
2475         the function itself.
2476
2477 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
2478
2479         * config/picochip/picochip.c (picochip_option_override): Disable
2480         exception flags for picochip.
2481
2482 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
2483
2484         * opts-common.c (handle_option, handle_generated_option,
2485         read_cmdline_option, set_option): Add diagnostic_context
2486         parameter.  Update calls among these functions.
2487         (set_option): Don't use global_dc.
2488         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
2489         (decode_options): Pass global_dc to enable_warning_as_error.
2490         (common_handle_option): Pass global_dc to enable_warning_as_error.
2491         (enable_warning_as_error): Add diagnostic_context parameter.
2492         Document parameters.  Don't use global_dc.  Pass
2493         diagnostic_context parameter to handle_generated_option.
2494         * opts.h (set_option, handle_option, handle_generated_option,
2495         read_cmdline_option, enable_warning_as_error): Add
2496         diagnostic_context parameter.
2497         * Makefile.in (lto-opts.o): Update dependencies.
2498         * coretypes.h (struct diagnostic_context, diagnostic_context):
2499         Declare here.
2500         * diagnostic.h (diagnostic_context): Don't declare typedef here.
2501         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
2502         * langhooks-def.h (struct diagnostic_context): Don't declare here.
2503         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
2504         using diagnostic_context typedef.
2505         * langhooks.c (lhd_initialize_diagnostics): Declare using
2506         diagnostic_context typedef.
2507         * langhooks.h (struct diagnostic_context): Don't declare here.
2508         (initialize_diagnostics, print_error_function): Declare using
2509         diagnostic_context typedef.
2510         * lto-opts.c: Include diagnostic.h.
2511         (lto_reissue_options): Pass global_dc to set_option.  Pass
2512         DK_UNSPECIFIED not 0.
2513         * plugin.c (plugins_internal_error_function): Declare using
2514         diagnostic_context typedef.
2515         * plugin.h (struct diagnostic_context): Don't declare here.
2516         (plugins_internal_error_function): Declare using
2517         diagnostic_context typedef.
2518
2519 2010-10-05  Olivier Hainque  <hainque@adacore.com>
2520             Nicolas Roche  <roche@adacore.com>
2521
2522         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
2523         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
2524
2525 2010-10-05  Ira Rosen  <irar@il.ibm.com>
2526
2527         PR tree-optimization/45752
2528         * tree-vect-slp.c (vect_get_mask_element): Remove static
2529         variables, make them function arguments.
2530         (vect_transform_slp_perm_load): Pass new arguments to
2531         vect_get_mask_element.
2532
2533 2010-10-05  Richard Guenther  <rguenther@suse.de>
2534
2535         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
2536         (gimple_mod_pow2): Likewise.
2537         (gimple_mod_subtract): Likewise.
2538         (gimple_ic): Likewise.
2539         (gimple_stringop_fixed_value): Likewise.
2540         * tree-profile.c (tree_init_edge_profiler): Mark profile
2541         functions nothrow and leaf.
2542         (add_abnormal_goto_call_edges): Remove.
2543         (tree_gen_edge_profiler): Work on SSA form.
2544         (tree_gen_ic_profiler): Likewise.  Simplify.
2545         (do_tree_profiling): Update SSA form.
2546         (pass_tree_profile): Remove.
2547         (do_tree_profiling): Likewise.
2548         (gate_tree_profile_ipa): New function.
2549         (pass_ipa_tree_profile): New.
2550         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
2551         state of instrumented functions.
2552         * passes.c (init_optimization_passes): Remove early non-SSA
2553         inlining.  Move profiling after early optimizations.
2554         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
2555         (pass_ipa_early_inline): Likewise.
2556         * tree-pass.h (pass_ipa_early_inline): Remove.
2557         (pass_tree_profile): Likewise.
2558         (pass_ipa_tree_profile): Declare.
2559
2560 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2561             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
2562
2563         * gcc/config/s390/s390.c (z196_cost): New.
2564         (s390_handle_arch_option): Add -march=z196.
2565         (s390_option_override): Use the new cost function and use the z10
2566         defaults also for z196.
2567         (legitimate_reload_constant_p): Adjust comment.
2568         (legitimate_reload_fp_constant_p): New function.
2569         (s390_preferred_reload_class): Distingiush between FP and Int constants.
2570         (preferred_la_operand_p): Avoid la with index on z196.
2571         (s390_adjust_priority): Trigger also for z196.
2572         (s390_issue_rate): Issue rate for z196 is 3.
2573         (s390_z10_fix_long_loop_prediction): Rename to ...
2574         (s390_fix_long_loop_prediction): ... this.
2575         (s390_reorg): Apply the z10 adjustments also for z196.
2576         (s390_loop_unroll_adjust): Do this also for z196.
2577         * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
2578         (enum processor_flags): Add PF_Z196.
2579         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
2580         (TARGET_CPU_Z196, TARGET_Z196): New macros.
2581         * gcc/config.gcc: Enable z196 for --with-arch.
2582         * gcc/config/s390/2817.md: New file.
2583         * gcc/config/s390/2084.md: New type for multiply and add.
2584         * gcc/config/s390/2097.md: Likewise.
2585         * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
2586         (UNSPECV_ATOMIC_OP): New constants.
2587         (fmadddf, fmaddsf): New values for type attribute.
2588         (z196prop): New insn attribute.
2589         (cpu, cpu_facility): Add z196.
2590         (ATOMIC_Z196): New code iterator.
2591         (noxa): New code attribute.
2592         (gk): New mode attribute.
2593         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
2594         Support load zero for fp constants.
2595         (fixuns_truncdddi2, fixuns_trunctddi2)
2596         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
2597         for z196.
2598         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
2599         (popcounthi2, popcountqi2): New expander.
2600         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
2601         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
2602         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
2603         insn definition.
2604         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
2605         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
2606         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
2607         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
2608         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
2609         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
2610         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
2611         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
2612         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
2613         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
2614         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
2615         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
2616         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
2617         Support new z196 instructions.
2618
2619 2010-10-05  Richard Guenther  <rguenther@suse.de>
2620
2621         PR middle-end/45877
2622         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
2623         case where gimplification optimizes away the stmt.
2624
2625 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
2626
2627         PR debug/45849
2628         * var-tracking.c (strip_pointer_flags): New function.
2629         (emit_note_insn_var_location): If rtx_equal_p check failed,
2630         retry on locations simplified with simplify_replace_fn_rtx
2631         and strip_pointer_flags as its callback.
2632
2633 2010-10-04  Jan Hubicka  <jh@suse.cz>
2634
2635         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
2636         (can_refer_decl_in_current_unit_p): ... this one; reverse return
2637         value; handle comdats too.
2638         (canonicalize_constructor_val): Use it; handle function_decls
2639         correctly.
2640         (gimple_fold_obj_type_ref_known_binfo): Likewise.
2641         * gimple.c (get_base_address): Accept all kinds of decls.
2642
2643 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
2644
2645         * flags.h (g_switch_value, g_switch_set): Remove.
2646         * opts.c (g_switch_value, g_switch_set): Remove.
2647         * config/g.opt (G): Add Var(g_switch_value).
2648         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
2649         (alpha_option_override): Check global_options_set.x_g_switch_value
2650         instead of g_switch_set.
2651         (alpha_in_small_data_p): Remove cast in comparison with
2652         g_switch_value.
2653         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
2654         g_switch_value to unsigned HOST_WIDE_INT.
2655         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
2656         with g_switch_value.
2657         (frv_handle_option): Don't handle -G here.
2658         (frv_option_override): Check global_options_set.x_g_switch_value
2659         instead of g_switch_set.  Don't modify g_switch_set.
2660         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
2661         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
2662         g_switch_value to unsigned HOST_WIDE_INT.
2663         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
2664         (ia64_option_override): Check global_options_set.x_g_switch_value
2665         instead of g_switch_set.
2666         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
2667         Remove.
2668         (lm32_in_small_data_p): Remove cast in comparison with
2669         g_switch_value.
2670         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
2671         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
2672         HOST_WIDE_INT.
2673         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
2674         (m32r_init): Check global_options_set.x_g_switch_value instead of
2675         g_switch_set.
2676         (m32r_in_small_data_p): Remove cast in comparison with
2677         g_switch_value.
2678         (m32r_file_start): Format g_switch_value with %d.
2679         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
2680         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
2681         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
2682         handle -G here.
2683         (microblaze_option_override): Check
2684         global_options_set.x_g_switch_value instead of g_switch_set.
2685         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
2686         (mips_option_override): Check global_options_set.x_g_switch_value
2687         instead of g_switch_set.
2688         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
2689         (rs6000_file_start): Format g_switch_value with %d.
2690         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
2691         comparisons with g_switch_value.
2692         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2693         global_options_set.x_g_switch_value instead of g_switch_set.
2694         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2695         global_options_set.x_g_switch_value instead of g_switch_set.
2696         * config/score/score.c (score_handle_option): Don't handle -G here.
2697         * config/score/score3.c (score3_option_override): Check
2698         global_options_set.x_g_switch_value instead of g_switch_set.
2699         * config/score/score7.c (score7_option_override): Check
2700         global_options_set.x_g_switch_value instead of g_switch_set.
2701
2702 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
2703
2704         * common.opt (fira-coalesce): Remove.
2705
2706         * doc/invoke.texi (flag_ira_coalesce): Remove.
2707
2708         * ira-color.c (allocno_coalesced_p): Move before
2709         copy_freq_compare_func.
2710         processed_coalesced_allocno_bitmap): Ditto.
2711         (update_conflict_hard_regno_costs): Don't use
2712         ALLOCNO_FIRST_COALESCED_ALLOCNO.
2713         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
2714         (assign_hard_reg): Assume no coalesced allocnos.
2715         (get_coalesced_allocnos_attributes): Remove.
2716         (bucket_allocno_compare_func): Assume no coalesced allocnos.
2717         (push_allocno_to_stack): Ditto.
2718         (remove_allocno_from_bucket_and_push): Use
2719         ira_print_expanded_allocno instead of print_coalesced_allocno.
2720         (push_allocnos_to_stack): Assume uncoalesced allocnos.
2721         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
2722         all_conflicting_hard_regs.
2723         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
2724         (setup_allocno_left_conflicts_size): Ditto.
2725         (put_allocno_into_bucket): Ditto.
2726         (copy_freq_compare_func): Remove.
2727         (copy_freq_compare_func, merge_allocnos): Move before
2728         coalesced_pseudo_reg_freq_compare.
2729         coalesced_allocno_conflict_p): Ditto.
2730         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
2731         parameter.  Assume it true.
2732         (color_allocnos): Assume uncoalesced allocnos.  Use
2733         ira_print_expanded_allocno instead of print_coalesced_allocno.
2734         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
2735         parameter.
2736
2737         * ira.c: Remove comment about coalescing.
2738
2739 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
2740
2741         * config/mips/mips.h (target_flags_explicit): Declare for
2742         GENERATOR_FILE.
2743
2744 2010-10-04  Andi Kleen <ak@linux.intel.com>
2745
2746         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
2747         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
2748
2749 2010-10-04  Matthias Klose  <doko@ubuntu.com>
2750
2751         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
2752         multilib osdirname if it exists.
2753         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
2754
2755 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
2756
2757         PR middle-end/45876
2758         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
2759         arg0's type or its unsigned counterpart as utype.  Convert
2760         arg1 to utype unconditionally.
2761
2762 2010-10-04  Julian Brown  <julian@codesourcery.com>
2763
2764         * expr.c (expand_assignment): Add assertion to prevent emitting
2765         null rtx for movmisalign pattern.
2766         (expand_expr_real_1): Likewise.
2767         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
2768         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
2769         (arm_vector_alignment_reachable): New.
2770         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
2771         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
2772         (arm_print_operand): Include alignment qualifier in %A.
2773         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
2774         (movmisalign<mode>): New expander.
2775         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
2776         insn patterns.
2777
2778 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
2779
2780         * optc-gen.awk: Define global_options_set.  Don't define
2781         target_flags_explicit.
2782         * opth-gen.awk: Declare global_options_set.  Define
2783         target_flags_explicit as macro.
2784         * opts-common.c (handle_option): Take opts_set and generated_p
2785         parameters.
2786         (handle_generated_option, read_cmdline_option, set_option): Take
2787         opts_set parameter.
2788         (set_option): Use opts_set instead of hardcoding target_flags and
2789         target_flags_explicit.
2790         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
2791         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
2792         flag_value_profile_transformations_set, flag_peel_loops_set,
2793         flag_branch_probabilities_set, flag_inline_functions_set,
2794         flag_ipa_cp_set, flag_ipa_cp_clone_set,
2795         flag_predictive_commoning_set, flag_unswitch_loops_set,
2796         flag_gcse_after_reload_set): Remove.
2797         (common_handle_option, lang_handle_option, target_handle_option):
2798         Take opts_set parameter.  Assert that it is &global_options_set.
2799         (common_handle_option): Don't set _set variables.  Check opts_set
2800         instead of such variables.
2801         (enable_warning_as_error): Pass &global_options_set to
2802         handle_generated_option.
2803         * opts.h (cl_option_handler_func.handler, set_option,
2804         handle_option, handle_generated_option, read_cmdline_option): Add
2805         opts_set parameters.
2806         (handle_option): Add generated_p parameter.
2807         * config/i386/i386.c (ix86_function_specific_save,
2808         ix86_function_specific_restore): Updat for renaming of
2809         target_flags_explicit field.
2810         * config/i386/i386.opt (target_flags_explicit): Rename to
2811         ix86_target_flags_explicit.
2812         * config/ia64/ia64.c (ia64_override_options_after_change): Check
2813         global_options_set.x_flag_selective_scheduling and
2814         global_options_set.x_flag_selective_scheduling2, not
2815         sel_sched_switch_set.
2816         * flags.h (sel_sched_switch_set,
2817         flag_speculative_prefetching_set): Remove.
2818         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
2819         that it is &global_options_set.
2820         (process_command): Pass &global_options_set to read_cmdline_option.
2821         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
2822         set_option.
2823         * toplev.c (target_flags_explicit): Remove.
2824
2825 2010-10-04  Jan Hubicka  <jh@suse.cz>
2826
2827         PR middle-end/45871
2828         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
2829         use get_ref_base_and_offset to handle references.
2830         (fold_const_aggregate_ref): Update.
2831
2832 2010-10-04  Martin Jambor  <mjambor@suse.cz>
2833
2834         PR tree-optimization/45572
2835         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
2836         ipa_check_create_node_params.
2837         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
2838
2839 2010-10-04  Yao Qi  <yao@codesourcery.com>
2840
2841         * doc/passes.texi: Clean up.
2842
2843 2010-10-03  Ian Lance Taylor  <iant@google.com>
2844
2845         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
2846         referring to a field using a typedef name.
2847         (find_anonymous_field_with_type): New static function.
2848         (convert_to_anonymous_field): New static function.
2849         (convert_for_assignment): If -fplan9-extensions, permit converting
2850         pointer to struct to pointer to anonymous field.
2851         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
2852         (is_duplicate_field): New static function.
2853         (detect_field_duplicates_hash): If -fplan9-extensions, check for
2854         typedef names duplicating field names.
2855         (detect_field_duplicates): Likewise.
2856         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
2857         (C Dialect Options): Document -fplan9-extensions.
2858         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
2859
2860 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2861
2862         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
2863         revision 164914.
2864         (vect_create_data_ref_ptr): Likewise.
2865         * tree-vect-stmts.c (vectorizable_store): Likewise.
2866         (perm_mask_for_reverse): Likewise.
2867         (reverse_vec_elements): Likewise.
2868         (vectorizable_load): Likewise.
2869
2870 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2871
2872         * cppbuiltin.c: New file.
2873         * cppbuiltin.h: New file.
2874         * Makefile.in: Take into account cppbuiltin.{h,c}.
2875
2876 2010-10-03  Andi Kleen <ak@linux.intel.com>
2877
2878         * lto-cgraph.c (input_cgraph): Check for missing sections.
2879
2880 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
2881
2882         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
2883         to nonimmediate_operand.  Force operand 2 to register when allowed.
2884         (*<shiftrt_insn><mode>3_mask): Ditto.
2885         (*<rotate_insn><mode>3_mask): Ditto.
2886
2887 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2888
2889         PR tree-optimization/45720
2890         PR tree-optimization/45764
2891         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2892         Don't accept backwards consecutive accesses.
2893         (vect_create_data_ref_ptr): Disallow negative steps.
2894
2895         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
2896         (perm_mask_for_reverse): Removed.
2897         (reverse_vec_elements): Likewise.
2898         (vectorizable_load): Don't handle negative steps.
2899
2900 2010-10-02  Jan Hubicka  <jh@suse.cz>
2901
2902         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
2903         call destination is known.
2904
2905 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2906
2907         PR target/45820
2908         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
2909         earlier.
2910
2911 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2912
2913         * doc/install.texi (Configuration): Document build_configargs,
2914         host_configargs, target_configargs.
2915
2916 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
2917
2918         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
2919         (*<shiftrt_insn><mode>3_mask): Ditto.
2920         (*<rotate_insn><mode>3_mask): Ditto.
2921
2922 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
2923
2924         PR tree-optimization/44716
2925         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2926         (HOT_TEXT_SECTION_NAME): Define.
2927
2928 2010-10-01  Nick Clifton  <nickc@redhat.com>
2929
2930         * common.opt: Add -fcombine-stack-adjustments.
2931         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
2932         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
2933         flag_combine_stack_adjustments.
2934         * doc/invoke.texi: Document the new option.
2935
2936 2010-10-01  Richard Guenther  <rguenther@suse.de>
2937
2938         PR tree-optimization/45854
2939         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
2940
2941 2010-10-01  Anthony Green  <green@moxielogic.com>
2942
2943         * config.gcc: Fix moxie-*-rtems* configuration.
2944
2945 2010-10-01  Richard Guenther  <rguenther@suse.de>
2946
2947         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
2948         (gen_decl_die): Likewise.
2949
2950 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2951
2952         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
2953         to the function code for SPU MD builtins.
2954         (spu_expand_builtin): Update.
2955         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
2956
2957 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2958
2959         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
2960         sjlj_except_unwind_info.
2961
2962 2010-10-01  Tristan Gingold  <gingold@adacore.com>
2963
2964         * configure.ac: Define the nop insn for avr*-*-*
2965         * configure: Regenerate.
2966
2967 2010-10-01  Alan Modra  <amodra@gmail.com>
2968
2969         PR target/45807
2970         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
2971         extend toc_restore_insn.
2972
2973 2010-09-30  Richard Guenther  <rguenther@suse.de>
2974
2975         PR tree-optimization/43959
2976         * function.c (gimplify_parameters): Use create_tmp_reg instead of
2977         create_tmp_var.
2978
2979 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2980
2981         * config/sh/sh.c (sh_expand_prologue): Set
2982         current_function_static_stack_size.
2983
2984 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2985
2986         * configure.ac: Check for Solaris 8 ld with .hidden support.
2987         * configure: Regenerate.
2988
2989 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2990
2991         PR middle-end/45758
2992         * graphite.c (graphite_initialize): Call scev_reset.
2993
2994 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2995
2996         * sese.h (scev_analyzable_p): Return false for real or floating
2997         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
2998
2999 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3000
3001         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
3002         and ps.
3003         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
3004         domain.
3005         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
3006         Do not allocate ub_expr, it is passed in initialized.
3007
3008 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3009
3010         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
3011         (build_cloog_prog): Dump CLooG input file when
3012         flag_graphite_dump_cloog is set.  This is disabled on trunk.
3013         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
3014
3015 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3016
3017         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
3018         verify_dominators for CDI_POST_DOMINATORS.
3019         * sese.h: Remove comment about CDI_POST_DOMINATORS.
3020         (recompute_all_dominators): Remove call to free_dominance_info
3021         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
3022         for CDI_POST_DOMINATORS.
3023
3024 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3025
3026         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
3027         over pbb_dim_iter_domain.
3028
3029 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3030
3031         * graphite-flattening.c: Fix comments.
3032
3033 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3034
3035         * Makefile.in (OBJS-common): Add graphite-flattening.o.
3036         (graphite-flattening.o): New rule.
3037         * common.opt (floop-flatten): New flag.
3038         * doc/invoke.texi (-floop-flatten): Documented.
3039         * graphite-flattening.c: New.
3040         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
3041         * graphite-poly.h (flatten_all_loops): Declared.
3042         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
3043         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
3044         is set, also set flag_graphite.
3045
3046 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3047
3048         * graphite-poly.c (cloog_checksum): New.
3049         * graphite-poly.h (cloog_checksum): Declared.
3050
3051 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3052
3053         * graphite-poly.c (pbb_number_of_iterations): Removed.
3054         (pbb_number_of_iterations_at_time): Correctly compute the number
3055         of iterations in the transformed loop.
3056         * graphite-poly.h (pbb_number_of_iterations): Removed.
3057
3058 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3059
3060         * graphite-poly.h (lst_update_scattering_seq): Removed.
3061         (lst_update_scattering): Correctly handle outermost loop dewey
3062         renumbering.
3063
3064 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3065
3066         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
3067         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
3068         * graphite-poly.h (lst_niter_for_loop): New.
3069
3070 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3071
3072         * graphite-poly.c (apply_poly_transforms): Do not abort when the
3073         transform read from disk is not legal.  Call fatal_error instead.
3074
3075 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3076
3077         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
3078         (print_scop_header): Removed.  Inlined in the only call place...
3079         (print_scop): ... here.
3080
3081 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3082
3083         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
3084
3085 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3086
3087         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
3088
3089 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3090
3091         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
3092         (dot_deps_stmt): Same.
3093         * graphite-poly.c (dot_lst): Same.
3094
3095 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3096
3097         * graphite-blocking.c (scop_do_strip_mine): Do not call
3098         graphite_legal_transform.
3099         (scop_do_block): Same.
3100
3101 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
3102
3103         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
3104         description.
3105
3106 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3107
3108         * tree-scalar-evolution.c (instantiate_array_ref): New.
3109         (instantiate_scev_r): Also handle ARRAY_REFs.
3110
3111 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3112
3113         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3114         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
3115         RESULT_DECL, and FIELD_DECL.  Return false for an
3116         SSA_NAME_IS_DEFAULT_DEF.
3117         (compute_scalar_evolution_in_loop): Do not further analyze the
3118         scalar evolution when no_evolution_in_loop_p returns true.
3119
3120 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3121
3122         * tree-chrec.h (evolution_function_is_affine_p): Do not check
3123         whether CHREC_LEFT is invariant.  A function is affine when
3124         CHREC_RIGHT is invariant.
3125
3126 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3127
3128         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
3129         is_gimple_reg.
3130         (rewrite_degenerate_phi): Same.
3131         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
3132
3133 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
3134
3135         * graphite-scop-detection.c (graphite_can_represent_scev,
3136         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
3137         graphite_can_represent_loop): Remove outermost_loop.
3138
3139 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3140
3141         PR middle-end/45229
3142         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
3143         handle GIMPLE_CALLs with no LHS.
3144
3145 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
3146
3147         * graphite-poly.c (init_graphite_out_file): New.
3148         (init_graphite_in_file): New.
3149         (apply_poly_transforms): Updated to enable reading and writing of
3150         multiple scop files.
3151
3152 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
3153
3154         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
3155         redundant checks.
3156
3157 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3158
3159         * graphite-clast-to-gimple.c (precision_for_value): Adjust
3160         computation of precision by 1.
3161
3162 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
3163
3164         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
3165         (openscop_read_polyhedron_matrix): New.
3166         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
3167         (openscop_read_N_int): Same.
3168         * graphite-poly.c (openscop_read_N_int): New.
3169         (openscop_read_one_int): New.
3170         (openscop_read_N_string): New.
3171         (openscop_read_one_string): New.
3172         (openscop_read_powerset_matrix): New.
3173         (graphite_read_transforms): Remove.
3174         (graphite_read_scatt): New.
3175         (graphite_read_scop_file): New.
3176         (apply_poly_transforms): Updated to call graphite_read_scop_file.
3177
3178 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3179
3180         * graphite-poly.c: Change include order.
3181
3182 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3183
3184         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
3185         (cloog_matrix_nrows): New.
3186
3187 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
3188
3189         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
3190         from matrix lines.
3191         * graphite-poly.c (openscop_print_scattering_function_1): Same.
3192         (print_scattering_function_1): Same.
3193         (openscop_print_pbb_domain): Same.
3194         (openscop_print_scop_context): Same.
3195         (print_scop_context): Same.
3196
3197 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
3198
3199         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
3200         (openscop_print_pdr_polyhedron): Print pph.
3201
3202 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3203
3204         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
3205         priority signed types.
3206
3207 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
3208
3209         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
3210         the call to lang_hooks.types.type_for_size.  Call
3211         build_nonstandard_integer_type.
3212
3213 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
3214
3215         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
3216         (openscop_print_polyhedron_matrix): New.
3217         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
3218         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
3219         (openscop_print_pdr_powerset): New.
3220         (openscop_print_powerset_matrix): New.
3221         (openscop_print_scattering_function_1): New.
3222         (print_scattering_function): Add support for scattering names and
3223         OpenScop format.
3224         (graphite_write_transforms): Remove.
3225         (print_pdr_access_layout): Updated to support OpenScop format.
3226         (print_pdr): Same.
3227         (openscop_print_pbb_domain): New.
3228         (print_pbb_body): Added a parameter to allow indicating that pbb_body
3229         is not provided.
3230         (print_pbb): Updated to call the new print_pbb_body.
3231         (openscop_print_scop_context): New.
3232         (print_scop_header): New.
3233         (print_scop): Updated to call print_scop_header.
3234         * graphite-poly.h: Document OpenScop format.
3235
3236 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
3237
3238         * config/cris/m32c.c (cris_memory_move_cost): New.
3239         (cris_register_move_cost): Make static. Change arguments type from
3240         enum reg_class to reg_class_t.
3241         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3242         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3243         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
3244
3245 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
3246
3247         PR target/45843
3248         * config/i386/i386.c (ix86_gimplify_va_arg): Use
3249         INTVAL (XEXP (slot, 1)) as prev_size.
3250
3251 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
3252
3253         PR target/45837
3254         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
3255         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
3256         defined.
3257         * config/rs6000/option-defaults.h (toplevel): Change #if
3258         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
3259         global option changes.
3260
3261 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
3262
3263         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
3264
3265         PR tree-optimization/31261
3266         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
3267         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
3268
3269 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3270
3271         PR bootstrap/45796
3272         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
3273         special-casing for generators and turn into ...
3274         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
3275         rule, for better error messages in case of toplevel dependency errors.
3276         (genprog): Add hooks, rename to ...
3277         (genprogerr): ... this, and let genprog also contain check,
3278         checksum, condmd.
3279         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
3280         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
3281         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
3282
3283 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
3284             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3285
3286         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
3287         for GMP, MPFR and MPC.
3288
3289 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3290
3291         * config/sparc/sparc.opt (mimpure-text): Move ...
3292         * config/sol2.opt: ... here.  Correct description.
3293         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
3294         * doc/invoke.texi (Option Summary, SPARC Options): Move
3295         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
3296         (Option Summary, Solaris 2 Options): ... here.
3297         (Submodel Options, Solaris 2 Options): New menu entry.
3298         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
3299         (Solaris 2 Options): ... here.
3300
3301 2010-09-30  Michael Eager  <eager@eagercon.com>
3302
3303         * extend.texi (interrupt_handler): Add MicroBlaze to list.
3304         (save_volatiles): Describe option for MicroBlaze.
3305         * invoke.texi: Add MicroBlaze Options.
3306         * contrib.texi: Add acknowledgment.
3307         * md.texi: Add MicroBlaze d and z constraints.
3308         * install.texi: Add microblaze-*-elf.
3309         * configure.ac: Add microblaze-*-* to target list.
3310         * configure: Regenerate.
3311         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
3312         * config/microblaze/microblaze-protos.h: New.
3313         * config/microblaze/crti.s: New.
3314         * config/microblaze/predicates.md: New.
3315         * config/microblaze/linux.h: New.
3316         * config/microblaze/microblaze.md: New.
3317         * config/microblaze/constraints.md: New.
3318         * config/microblaze/crtn.s: New.
3319         * config/microblaze/microblaze.opt: New.
3320         * config/microblaze/microblaze-c.c: New.
3321         * config/microblaze/t-microblaze: New.
3322         * config/microblaze/microblaze.c: New.
3323         * config/microblaze/microblaze.h: New.
3324
3325 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
3326
3327         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
3328         parse @optional/@required and set the flags as appropriate.
3329
3330 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
3331
3332         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
3333
3334 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
3335
3336         * opt-functions.awk (static_var): Update comment.
3337         (var_ref): Return offsetof expression or -1, not variable address.
3338         * optc-gen.awk: Generate structure field initializers instead of
3339         static variables.  Expect -1 for missing variables instead of null
3340         pointer.  Add gcc_options parameters to generated functions.
3341         * opth-gen.awk: Generate structure fields for static variables.
3342         Add gcc_options parameters to generated functions.
3343         * common.opt (optimize, optimize_size): Add variables.
3344         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
3345         &global_options to cl_target_option_restore.
3346         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
3347         &global_options to cl_optimization_restore, cl_target_option_save
3348         and cl_target_option_restore.
3349         (ix86_set_current_function): Pass &global_options to
3350         cl_target_option_restore.
3351         * config/pdp11/pdp11.h (optimize): Remove.
3352         * config/rs6000/rs6000.h (optimize): Remove.
3353         * config/sh/sh.h (optimize): Remove.
3354         * config/xtensa/xtensa.h (optimize): Remove.
3355         * coretypes.h (struct gcc_options): Declare.
3356         * diagnostic.c (diagnostic_initialize): Initialize
3357         context->option_state.
3358         (diagnostic_report_diagnostic): Pass option_state to
3359         option_enabled hook.
3360         * diagnostic.h (diagnostic_context.option_enabled): Add void *
3361         parameter.
3362         (diagnostic_context.option_state): New field.
3363         * final.c (final_start_function, final, final_scan_insn): Rename
3364         optimize parameter to optimize_p.
3365         * flags.h (optimize, optimize_size): Remove.
3366         * function.c (invoke_set_current_function_hook): Pass
3367         &global_options to cl_optimization_restore.
3368         * gcc.c (driver_handle_option): Take gcc_options parameter.
3369         Assert that it is &global_options.
3370         (process_command): Pass &global_options to read_cmdline_option.
3371         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
3372         option_enabled.
3373         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
3374         &global_options to set_option.
3375         * opts-common.c (handle_option, handle_generated_option,
3376         read_cmdline_option, set_option): Take explicit gcc_options
3377         parameters.  Use option_flag_var.
3378         (option_flag_var): New.
3379         * opts.c (common_handle_option, lang_handle_option,
3380         target_handle_option): Take gcc_options parameter.  Assert that it
3381         is &global_options.
3382         (read_cmdline_options): Pass &global_options to read_cmdline_option.
3383         (print_filtered_help): Use option_flag_var.  Pass &global_options
3384         to option_enabled.
3385         (common_handle_option): Use option_flag_var.
3386         (option_enabled): Take opts parameter.  Use option_flag_var.
3387         (get_option_state): Take gcc_options parameter.  Use
3388         option_flag_var.  Pass gcc_options parameter to option_enabled.
3389         (enable_warning_as_error): Pass &global_options to
3390         handle_generated_option.
3391         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
3392         (cl_option_handler_func.handler): Take gcc_options parameter.
3393         (option_enabled, get_option_state, set_option, handle_option,
3394         handle_generated_option, read_cmdline_option): Take gcc_options
3395         parameters.
3396         * toplev.c (optimize, optimize_size): Remove.
3397         (print_switch_values): Pass &global_options to option_enabled.
3398         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
3399         to get_option_state.
3400         (general_init): Initialize global_dc->option_state.
3401         * tree.c (build_optimization_node): Pass &global_options to
3402         cl_optimization_save.
3403         (build_target_option_node): Pass &global_options to
3404         cl_target_option_save.
3405
3406 2010-09-30  Martin Jambor  <mjambor@suse.cz>
3407
3408         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
3409         zero sized bit-fields.
3410
3411 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3412
3413         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
3414         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
3415         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
3416         (c_parser_objc_class_declaration): Same change.
3417         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
3418         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
3419         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
3420         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
3421         and RID_AT_PUBLIC instead of RID_PUBLIC.
3422         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
3423         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
3424
3425 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
3426
3427         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
3428         Add links to current providers of packages for Solaris and IRIX.
3429
3430 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3431
3432         Merge from 'apple/trunk' branch on FSF servers.
3433         * c-parser.c: Applied change originally in c-parse.in.
3434
3435         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
3436
3437         Radar 4281748
3438         * c-decl.c (start_decl): Check for redeclaration of class name.
3439         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
3440
3441 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
3442
3443         * config/ia64/ia64.c (ia64_builtin_decl): New.
3444         (TARGET_BUILTIN_DECL): Define.
3445         (ia64_builtins): New.
3446         (ia64_init_builtins): Save decls in ia64_builtins.
3447
3448 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
3449
3450         PR target/40457
3451         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
3452         (move2add_use_add3_insn): Likewise.
3453         (reload_cse_move2add): Likewise.
3454         * rtlanal.c (get_full_rtx_cost): New function.
3455         * rtl.h (struct full_rtx_costs): New.
3456         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
3457         costs_add_n_insns): New inline functions.
3458         (get_full_rtx_cost): Declare.
3459
3460         PR c/45054
3461         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
3462         invariants.  Check for reg_equiv_invariant.
3463         (reload): Assert that spilled_pseudos is empty when returning.
3464
3465 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
3466
3467         * config/i386/mingw32.h (TARGET_64BIT): replaced by
3468         TARGET_64BIT_DEFAULT in #if check.
3469
3470 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
3471
3472         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
3473
3474 2010-09-29  Mike Stump  <mikestump@comcast.net>
3475
3476         * config/darwin.h (flag_mkernel): Remove.
3477         (flag_apple_kext): Likewise.
3478
3479 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3480             Jack Howarth <howarth@bromo.med.uc.edu>
3481
3482         * config/darwin.opt (undefined): Add.
3483
3484 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
3485
3486         PR testsuite/45664
3487         * configure.ac: Add --enable-indirect-function option.
3488         * config.gcc: Add default_gnu_indirect_function.
3489         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
3490         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
3491         * varasm.c (do_assemble_alias): Adjust for macro name change.
3492         * configure: Rebuilt.
3493         * doc/install.texi: Document --enable-indirect-function.
3494
3495 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3496
3497         * doc/options.texi (Variable, Var, Init): Update documentation
3498         without reference to VarExists.
3499         (VarExists): Remove.
3500         * common.opt, config/i386/i386.opt, config/linux.opt,
3501         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
3502         Don't use VarExists.
3503
3504 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3505
3506         * optc-gen.awk: Generate global_options initializer instead of
3507         individual variables.  Add x_ prefix to names of structure members.
3508         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
3509         names of structure members.
3510         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3511         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
3512         * doc/tm.texi: Regenerate.
3513         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3514         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
3515         * c-parser.c (disable_extension_diagnostics,
3516         restore_extension_diagnostics): Update names of cpp_options members.
3517         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3518         * common.opt (fcompare-debug-second): Don't use Var.
3519         * config/alpha/alpha.h (target_flags): Remove.
3520         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3521         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
3522         * config/bfin/bfin.h (target_flags): Remove.
3523         * config/cris/cris.h (target_flags): Remove.
3524         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
3525         cl_target_option members.
3526         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
3527         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
3528         ix86_can_inline_p): Update names of cl_target_option members.
3529         * config/i386/i386.h (ix86_isa_flags): Remove.
3530         * config/lm32/lm32.h (target_flags): Remove.
3531         * config/mcore/mcore.h (mcore_stack_increment): Remove.
3532         * config/mcore/mcore.md (addsi3): Remove extern declaration of
3533         flag_omit_frame_pointer.
3534         * config/mep/mep.h (target_flags): Remove.
3535         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3536         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
3537         * config/mmix/mmix.h (target_flags): Remove.
3538         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
3539         flag_expensive_optimizations): Remove.
3540         * config/s390/s390.h (flag_pic): Remove.
3541         * config/score/score-conv.h (target_flags): Remove.
3542         * config/sh/sh.h (sh_fixed_range_str): Remove.
3543         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
3544         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
3545         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3546         * diagnostic.c (diagnostic_initialize): Update names of
3547         diagnostic_context members.
3548         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
3549         warn_system_headers.
3550         (diagnostic_report_warnings_p): Update for new names.
3551         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
3552         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
3553         HARD_FRAME_POINTER_IS_ARG_POINTER.
3554         * flags.h (flag_compare_debug): Declare.
3555         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3556         * opts.c (flag_compare_debug): Define.
3557         (common_handle_option): Update names of diagnostic_context
3558         members.  Handle -fcompare-debug-second.
3559         (fast_math_flags_struct_set_p): Update names of cl_optimization
3560         members.
3561         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3562         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3563         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3564         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3565         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3566         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3567         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
3568         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3569         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
3570
3571 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
3572
3573         * config/picochip/picochip.c (picochip_output_internal_label):
3574         This function can now be called for debug CFI labels, which can come
3575         in the middle of a vliw instruction.  Postpone until end of vliw.
3576
3577 2010-09-29  Richard Guenther  <rguenther@suse.de>
3578
3579         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
3580         (DECL_FILE_SCOPE_P): Use it.
3581         (TYPE_FILE_SCOPE_P): New macro.
3582
3583 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3584
3585         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
3586         a CPP_NAME which is a reserved word, clearly separate cases for
3587         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
3588
3589 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3590
3591         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
3592         token->value with the canonical spelling.  Do exactly like C and
3593         C++ and leave it as it is.
3594
3595 2010-09-28  Richard Henderson  <rth@redhat.com>
3596
3597         * config/alpha/alpha.c (alpha_builtins): New.
3598         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
3599         (alpha_builtin_function): New.
3600         (alpha_add_builtins, alpha_init_builtins): Use it.
3601
3602 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
3603
3604         * doc/standards.texi (Standards): Expanded the section on
3605         Objective-C and Objective-C++.
3606
3607 2010-09-28  DJ Delorie  <dj@redhat.com>
3608
3609         PR target/45800
3610         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
3611         volatile MEMs.
3612
3613 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3614
3615         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
3616         attributes on methods.
3617          (c_parser_objc_method_definition): Handle attributes.
3618         (c_parser_objc_methodproto): Likewise.
3619         (c_parser_objc_maybe_method_attributes): New.
3620         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
3621         missing definition, similar to that in ObjC++.
3622
3623 2010-09-28  Richard Henderson  <rth@redhat.com>
3624
3625         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
3626         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
3627         (CONFIG_SJLJ_EXCEPTIONS): Remove.
3628         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
3629         (STACK_CHECK_PROTECT): Likewise.
3630         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
3631         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
3632         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
3633         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
3634         (dwarf2out_assembly_start): Likewise.
3635         * except.c (init_eh): Use targetm.except_unwind_info.
3636         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
3637         (output_one_function_exception_table): Likewise.
3638         * final.c: Unconditionally include dwarf2out.h.
3639         (final_start_function): Unconditionally call dwarf2out routines.
3640         (final_end_function, final_scan_insn): Likewise.
3641         * function.c (expand_function_end): Use targetm.except_unwind_info.
3642         * opts.c (decode_options): Use targetm.except_unwind_info.
3643         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
3644         * target.def (debug_unwind_info, except_unwind_info): New.
3645         * target.h (enum unwind_info_type): New.
3646         * targhooks.c (default_debug_unwind_info): New.
3647         (default_except_unwind_info): New.
3648         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
3649         * targhooks.h: Declare them.
3650         * tree-tailcall.c: Include "target.h"
3651         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
3652         * Makefile.in (tree-tailcall.o): Update.
3653         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
3654         (lhd_gcc_personality): Likewise.
3655
3656         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
3657         (TARGET_EXCEPT_UNWIND_INFO): New.
3658         (DWARF2_UNWIND_INFO): Update.
3659         (TARGET_DEBUG_UNWIND_INFO): New.
3660         * doc/tm.texi: Rebuild.
3661
3662         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
3663         targetm.except_unwind_info.
3664
3665         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
3666         (arm_except_unwind_info): New.
3667         (arm_compute_func_type): Use it.
3668         (arm_expand_prologue, thumb_pushpop): Likewise.
3669         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
3670         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
3671         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
3672         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
3673         (DWARF2_UNWIND_INFO): Remove.
3674         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
3675         (ARM_EABI_UNWIND_TABLES): Remove.
3676
3677         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
3678         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
3679         (ia64_except_unwind_info): New.
3680         (ia64_output_function_prologue): Use it.
3681         (ia64_add_bundle_selector_before): Likewise.
3682         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
3683         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
3684         (TARGET_UNWIND_INFO): Remove.
3685
3686         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
3687
3688 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3689
3690         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
3691         (c_parser_objc_protocol_definition): Likewise.
3692         (c_parser_external_declaration): Provide dummy attribute arguments.
3693         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
3694         (c_parser_objc_class_definition): Handle attributes.
3695         (c_parser_objc_protocol_definition): Likewise.
3696
3697 2010-09-28  Tobias Burnus  <burnus@net-b.de>
3698
3699         PR fortran/40569
3700         PR fortran/40568
3701         * toplev.h (save_decoded_options, save_decoded_options_count):
3702         New global variables.
3703         * toplev.c (save_decoded_options, save_decoded_options_count):
3704         Export variables.
3705
3706 2010-09-28  Ian Lance Taylor  <iant@google.com>
3707
3708         * config/i386/i386.c (ix86_supports_split_stack): Test
3709         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
3710
3711 2010-09-28  Ian Lance Taylor  <iant@google.com>
3712
3713         PR target/45815
3714         * opts.c (decode_options): Don't test whether the target supports
3715         split stack if flag_split_stack == 0.
3716
3717 2010-09-28  Jan Hubicka  <jh@suse.cz>
3718
3719         * builtin-attrs.def (ATTR_LEAF): New attribute.
3720         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
3721         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
3722         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
3723         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
3724         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
3725         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
3726         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
3727         * sync-builtins.def: Annotate all builtins by leaf.
3728         * omp-builtins.def: Annotate all builtins by leaf.
3729         * builtins.def: Annotate relevant builtins with leaf attribute.
3730         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3731         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
3732         leaf.
3733
3734 2010-09-28  Jan Hubicka  <jh@suse.cz>
3735
3736         * tree-ssa-ccp.c (fold_ctor_reference): New function.
3737         (fold_const_aggregate_ref): Use it.
3738         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
3739         into external static.
3740
3741 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3742
3743         PR target/44452
3744         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
3745         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
3746         (ix86_solaris_return_in_memory): Remove.
3747         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
3748         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3749         (TARGET_SUBTARGET_DEFAULT): Redefine.
3750         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
3751         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3752         (TARGET_SUBTARGET_DEFAULT): Redefine.
3753         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
3754         -mvect8-ret-in-mem.
3755         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
3756
3757 2010-09-29  Alan Modra  <amodra@gmail.com>
3758
3759         PR target/45807
3760         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
3761         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
3762         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
3763         Delete.
3764         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
3765         (rs6000_emit_prologue): Don't just create frame save info for r2,
3766         actually save r2.
3767
3768 2010-09-28  Richard Henderson  <rth@redhat.com>
3769
3770         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
3771         when 8 bytes are requested.
3772
3773 2010-09-28  Tristan Gingold  <gingold@adacore.com>
3774
3775         * config/avr/avr.c (expand_prologue): Set
3776         current_function_static_stack_size.
3777
3778 2010-09-28  Tristan Gingold  <gingold@adacore.com>
3779
3780         * config/alpha/alpha.md: Change the initial condition of the
3781         probing loop.
3782
3783 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
3784
3785         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
3786         Split from *avx_<maxmin:code><mode>3.
3787         (*avx_<smaxmin:code><mode>3): Ditto.
3788         * config/i386/i386.md (maxmin): Remove code iterator.
3789
3790 2010-09-27  Ian Lance Taylor  <iant@google.com>
3791
3792         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
3793         requires assembler support for CFI directives.
3794
3795 2010-09-27  Richard Henderson  <rth@redhat.com>
3796
3797         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
3798
3799 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
3800
3801         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
3802         that AFTER is not in the range FROM..TO, inclusive.
3803
3804 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
3805             Bernd Schmidt  <bernds@codesourcery.com>
3806
3807         PR rtl-optimization/45792
3808         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
3809         If not all insns are to be merged, for each edge, stash the
3810         next candidate after the to-be-merged insns before doing the
3811         merge, and use them for the retry at the new insertion point.
3812         Handle CC0 targets when retrying.
3813
3814 2010-09-27  Ian Lance Taylor  <iant@google.com>
3815
3816         * common.opt (fsplit-stack): New option.
3817         * opts.c (decode_options): Set flag_split_stack to final value.
3818         * target.def (supports_split_stack): New hook.
3819         * gcc.c (STACK_SPLIT_SPEC): Define.
3820         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
3821         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
3822         (Code Gen Options): Document -fsplit-stack.
3823         * doc/extend.texi (Function Attributes): Mention no_split_stack.
3824         (Function Attributes): Document no_split_stack.
3825         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
3826         TARGET_SUPPORTS_SPLIT_STACK.
3827         * doc/tm.texi: Rebuild.
3828         * function.c (thread_prologue_and_epilogue_insns): If
3829         flag_split_stack, add split stack prologue.
3830         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
3831         * varasm.c (saw_no_split_stack): New static variable.
3832         (assemble_start_function): Set saw_no_split_stack if the function
3833         has the no_split_stack attribute.
3834         (file_end_indicate_split_stack): New function.
3835         * output.h (file_end_indicate_split_stack): Declare.
3836         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
3837         and function.
3838         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
3839         routines.
3840         * config/i386/i386.c (ix86_option_override_internal): Don't set
3841         expand_builtin_va_start to NULL if -fsplit-stack.
3842         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
3843         -fsplit-stack.
3844         (ix86_va_start): If -fsplit-stack, get overflow pointer from
3845         scratch register set by prologue.
3846         (ix86_code_end): If -fsplit-stack, call
3847         file_end_indicate_split_stack.
3848         (ix86_supports_split_stack): New static function.
3849         (SPLIT_STACK_AVAILABLE): Define.
3850         (split_stack_prologue_scratch_regno): New static function.
3851         (split_stack_fn): New static variable.
3852         (ix86_expand_split_stack_prologue): New function.
3853         (ix86_live_on_entry): New static function.
3854         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
3855         (output_pic_addr_const): Likewise.
3856         (i386_asm_output_addr_const_extra): Likewise.
3857         (ix86_expand_call): Change return type to rtx.  Return the new
3858         call instruction.
3859         (TARGET_SUPPORTS_SPLIT_STACK): Define.
3860         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3861         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
3862         (split_stack_prologue, split_stack_return): New insns.
3863         (split_stack_space_check): New insn.
3864         * config/i386/i386.h (struct machine_function): Add
3865         split_stack_varargs_pointer field.
3866         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
3867         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3868         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3869         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3870         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
3871         Declare.
3872         (ix86_expand_call): Update declaration.
3873
3874 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3875
3876         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
3877         code.  Added byref, which was missing in the list of codes.
3878         Explain that enumeration values are encoded as the integer type
3879         that the compiler uses to store them.  Explain and make examples
3880         of how 'const' interacts with pointers, and the complication of
3881         the encoding of 'const char *'.
3882         (Legacy type encoding): New subsection, explaining that GCC emits
3883         incorrect type encodings for the NeXT runtime for compatibility
3884         reasons.
3885         (@@encode): New subsection, explaining @encode and particularly
3886         that protocol qualifiers are not recognized inside an @encode()
3887         expression.
3888         (Method signatures): New subsection, explaining how method
3889         signatures are encoded.
3890
3891 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3892
3893         Merge from 'apple/trunk' branch on FSF servers.  Removed small
3894         change in build_conditional_expr that had been added when fixing
3895         PR objc/27377 and which did the same check in a less complete way.
3896
3897         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
3898
3899         Radar 4229905
3900         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
3901         looking for objective-c common pointer types.
3902
3903         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
3904
3905         Radar 4154928
3906         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
3907         use their ObjC common type.
3908
3909 2010-09-27  Richard Guenther  <rguenther@suse.de>
3910
3911         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
3912
3913 2010-09-27  Jie Zhang  <jie@codesourcery.com>
3914
3915         * print-tree.c (print_node): Print in-constant-pool.
3916
3917 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
3918
3919         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
3920         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
3921         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
3922         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
3923
3924 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
3925
3926         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
3927         from pro_epilogue_adjust_stack_<mode>_{1,2}.
3928         (pro_epilogue_adjust_stack_<mode>_add): Rename from
3929         pro_epilogue_adjust_stack_<mode>_3.
3930         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
3931         renamed pro_epilogue_adjust_stack_{si,di}_add.
3932         (ix86_expand_prologue): Use indirect functions.  Update for renamed
3933         pro_epilogue_adjust_stack_{si,di}_sub.
3934
3935 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
3936
3937         * config/i386/i386.md (movmsk_df): New insn.
3938         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
3939         sequence for TARGET_SSE_MATH.
3940
3941 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
3942
3943         * config/mips/mips.c (mips_builtin_decls): Declare.
3944         (mips_init_builtins): Store function declarations in
3945         mips_builtin_decls.
3946         (mips_builtin_decl): New function.
3947         (TARGET_BUILTIN_DECL): Define.
3948
3949 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
3950             Richard Henderson  <rth@redhat.com>
3951
3952         * config/i386/cygwin.asm: Include auto-host.h.
3953         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
3954         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
3955         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
3956         alignment code from the 64-bit path.  Use gas local labels.
3957         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
3958         from _di_2.  Remove the useless constant integer argument.
3959         (pro_epilogue_adjust_stack_<mode>_3): New.
3960         (allocate_stack_worker_probe_<mode>): Macroize from
3961         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
3962         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
3963         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
3964         (__chkstk_ms): New function.
3965         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
3966         * gcc/config/i386/t-interix: Likewise.
3967         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
3968         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3969         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
3970         * configure, config.in: Rebuild.
3971
3972 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
3973
3974         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
3975         statements because of the return slot optimization.
3976
3977 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
3978
3979         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
3980         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
3981         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3982         (class_likely_spilled_p): Rename to...
3983         (avr_class_likely_spilled_p): ...this. Make static. Change argument
3984         type to reg_class_t.
3985
3986 2010-09-24  Jan Hubicka  <jh@suse.cz>
3987
3988         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
3989         (lto_symtab_resolve_symbols): Set it.
3990         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
3991         store resolution field in cgraph/varpool.
3992         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
3993         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
3994         (cgraph_dump_node): Drop used_from_object_file.
3995         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
3996         (cgraph_function_body_availability): Use decl_replaceable_p.
3997         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
3998         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
3999         cgraph_used_from_object_file_p.
4000         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
4001         cgraph_used_from_object_file_p.
4002         (resolution_used_from_other_file_p): New functoin.
4003         (cgraph_used_from_object_file_p): New predicate.
4004         * cgraph.h: Include plugin-api.h
4005         (struct cgraph_local_info): Remove used_from_object_file.
4006         (struct cgraph_node): Add resolution field.
4007         (struct varpool_node): Likewise; remove used_from_object_file;
4008         reove const_value_known.
4009         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
4010         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
4011         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
4012         varpool_used_from_object_file_p): Declare.
4013         (varpool_get_node, varpool_extra_name_alias): Update prototype.
4014         * tree.h (DECL_REPLACEABLE_P): Remove.
4015         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
4016         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
4017         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4018         input_overwrite_node, input_node, input_varpool_node): Stream
4019         resolution.
4020         * expr.c (expand_expr_real_1): Use const_value_known_p
4021         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
4022         const_value_known.
4023         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
4024         (function_and_variable_visibility): Set resolution for local vars
4025         and functions; use varpool_used_from_object_file_p.
4026         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
4027         static functions.
4028         (default_binds_local_p_1): Use resolutoin info.
4029         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
4030         * varpool.c (varpool_get_node): Constify.
4031         (const_value_known_p): Do not use vnode->const_value_known;
4032         use decl_replaceable_p.
4033         (varpool_finalize_decl): Do not set const_value_known.
4034         (cgraph_variable_initializer_availability): Use decl_replaceable_p
4035         (varpool_extra_name_alias): Return new node.
4036         (varpool_used_from_object_file_p): New function.
4037
4038 2010-09-24  Richard Henderson  <rth@redhat.com>
4039
4040         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
4041         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
4042         (do_spill): Use REG_CFA_OFFSET.
4043         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
4044         as appropriate.
4045         (ia64_expand_epilogue): Likewise.
4046         (process_set): Split into ...
4047         (process_cfa_adjust_cfa): this,
4048         (process_cfa_register): this,
4049         (process_cfa_offset): and this new function.
4050         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
4051         instead of REG_FRAME_RELATED_EXPR.
4052
4053 2010-09-24  Olivier Hainque  <hainque@adacore.com>
4054
4055         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
4056
4057 2010-09-24  Jan Hubicka  <jh@suse.cz>
4058
4059         * doc/extend.texi: (attribute leaf): Document.
4060         * tree.c (local_define_builtin): Handle ECF_LEAF.
4061         (build_common_builtin_nodes): Set ECF_LEAF where needed.
4062         * tree.h (ECF_LEAF): New.
4063         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
4064         overwrittable and unavailable functions.
4065         (ipa_init): Put all_module_statics into optimization_summary_obstack.
4066         (copy_global_bitmap): Do not copy all_module_statics.
4067         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
4068         (propagate): Handle overwritable and unavailable leaf functions;
4069         initialize global info for overwritable and unavailable leaf functions;
4070         do not free all module statics.
4071         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
4072         local statics.
4073         * calls.c (flags_from_decl_or_type): Handle leaf.
4074         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
4075         abnormal gotos.
4076
4077 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
4078
4079         * gengtype.c: Reindented.
4080         * gengtype.h: Reindented.
4081         * gengtype-parse.c: Reindented.
4082
4083 2010-09-24  Jan Hubicka  <jh@suse.cz>
4084
4085         PR tree-optimization/45738
4086         PR tree-optimization/45741
4087         * expr.c (string_constant): Allow CONST_DECL too;
4088         check that DECL_INITIAL is set.
4089         * varpool.c (const_value_known_p): Only look into VAR_DECL
4090         and CONST_DECL.
4091
4092 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
4093
4094         * common.opt (undef): New.
4095
4096 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
4097
4098         PR middle-end/45234
4099         * rtl.h (enum global_rtl_index): Add
4100         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
4101         (LAST_VIRTUAL_POINTER_REGISTER): Define.
4102         (virtual_preferred_stack_boundary_rtx,
4103         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
4104         (LAST_VIRTUAL_REGISTER): Increase by one.
4105         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
4106         instead of LAST_VIRTUAL_REGISTER.
4107         * function.c (instantiate_new_reg): Handle
4108         virtual_preferred_stack_boundary_rtx.
4109         * emit-rtl.c (init_virtual_regs): Handle
4110         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
4111         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
4112         * explow.c (round_push): If crtl->preferred_stack_boundary
4113         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
4114         virtual_preferred_stack_boundary_rtx alignment instead of
4115         crtl->preferred_stack_boundary alignment.
4116         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
4117         macros.  Never decrease crtl->preferred_stack_boundary,
4118         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
4119         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
4120         stack_pointer_delta in dynamic allocation, even when size
4121         is constant.
4122         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
4123         macro.
4124         * print-rtl.c (print_rtx): Handle
4125         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
4126         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
4127         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
4128         * config/frv/frv.c (frv_emit_movsi): Likewise.
4129         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
4130         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
4131         Likewise.
4132
4133         Revert:
4134         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
4135
4136         PR middle-end/45234
4137         * calls.c (expand_call): Make sure that all variable sized
4138         adjustments are multiple of preferred stack boundary after
4139         stack alignment.
4140
4141 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
4142             Dominique Dhumieres  <dominiq@lps.ens.fr>
4143
4144         PR bootstrap/45751
4145         * gcc/config/darwin-driver.c (darwin_default_min_version):
4146         Adjust size passed to memcpy in two places.
4147
4148 2010-09-24  Richard Guenther  <rguenther@suse.de>
4149
4150         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
4151         Make sure to not call set_type_context with error_mark_node.
4152         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
4153
4154 2010-09-24  Richard Guenther  <rguenther@suse.de>
4155
4156         * Makefile.in (OBJS-onestep): Remove.
4157         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
4158         (libbackend.a): Remove onestep support.
4159         (libbackend.o): Remove.
4160         * configure.ac (--enable-intermodule): Remove.
4161         * configure: Regenerate.
4162
4163 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
4164
4165         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
4166         reaching the end of a block if it occurs at a DEBUG_INSN.
4167
4168 2010-09-09  Tristan Gingold  <gingold@adacore.com>
4169
4170         PR target/44242
4171         * config/vms/vms-crt0-64.c: Removed.
4172         * config/vms/vms-crt0.c: Removed.
4173         * config/vms/vms-psxcrt0-64.c: Removed.
4174         * config/vms/vms-psxcrt0.c: Removed.
4175         * config/vms/vms-ucrt0.c: New file.
4176         * config/vms/t-vms64: Removed.
4177         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
4178         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
4179         * config.gcc (alpha-dec-vms): Use t-vms.
4180
4181 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4182
4183         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
4184         underfull hbox in DVI output.
4185         (-fobjc-class-cxx-cdtors): Same change.
4186         (-fobjc-exceptions): Tidied up documentation.  Explain what the
4187         option does, but moved the (lenghty) description of the exception
4188         syntax into objc.texi.
4189         (-fobjc-gc): Explain that the option is not useful with the GNU
4190         runtime.
4191         (-fzero-link): Explain that the GNU runtime always works in
4192         "zero-link" mode.
4193         * doc/objc.texi: All sections: simplified @node declarations
4194         removing specification of next, previous, up node.
4195         (Objective-C): Updated introduction.
4196         (Garbage Collection): Updated.  The bohem-gc library is now
4197         included in gcc itself.  Mention that this section only applies to
4198         the GNU Objective-C runtime.
4199         (compatibility_alias): Small tidy up.
4200         (Exceptions): New section mostly containing text previously in the
4201         description of the -fobjc-exception command-line option.
4202         (Synchronization): Same.
4203
4204 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
4205
4206         * config/i386/i386.md (ix86_code_end): Move the initialization of
4207         xops array near the consumer.  Use AX_REG and SP_REG instead of
4208         numerical constants.
4209
4210 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4211
4212         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
4213         method [methodname]' for an Objective-C method instead of the less
4214         satisfactory 'too many arguments to function' (with no method name).
4215
4216 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
4217
4218         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
4219         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
4220         (execute_update_addresses_taken): Remove parameter.  Execute the
4221         optimization unconditionally.
4222         * passes.c (execute_function_todo): Call execute_update_addresses_taken
4223         unconditionally if TODO_rebuild_alias is set, else only when optimizing
4224         if TODO_update_address_taken is set.
4225
4226 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
4227
4228         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4229         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
4230         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4231         (arm_output_addr_const_extra): Make static.
4232
4233 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
4234
4235         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
4236         define as unspec_volatile.
4237         ("nops"): Define as unspec_volatile. Use fputs to write to
4238         asm_out_file directly.  Output NOPs on separate lines using while loop.
4239         * config/i386/i386.c (ix86_code_end): Use fputs to write to
4240         asm_out_file directly.  Output NOPs on separate lines using while loop.
4241
4242 2010-09-23  Richard Guenther  <rguenther@suse.de>
4243
4244         PR tree-optimization/45565
4245         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
4246         Make sure to adjust the fndecl before replacing the stmt.
4247
4248 2010-09-23  Richard Guenther  <rguenther@suse.de>
4249
4250         PR middle-end/45750
4251         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
4252         gimplifying MEM_REF.
4253
4254 2010-09-23  Alan Modra  <amodra@gmail.com>
4255
4256         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
4257         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
4258
4259 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
4260
4261         PR rtl-optimization/44374
4262         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
4263         * df-core.c (df_set_bb_dirty): Set it.
4264         * ifcvt.c (find_memory): Remove function.
4265         (dead_or_predicable): Use can_move_insns_across.
4266         * df.h (can_move_insns_across): Declare function.
4267         * cfgcleanup.c (block_was_dirty): New static variable.
4268         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
4269         than df_get_bb_dirty.
4270         (try_head_merge_bb): New static function.
4271         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
4272         is set.
4273         * df-problems.c: Include "target.h"
4274         (df_simulate_find_uses): New static function.
4275         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
4276         (find_memory, find_memory_store): New static functions.
4277         (can_move_insns_across): New function.
4278         * Makefile.in (df-problems.o): Update dependencies.
4279
4280 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
4281
4282         PR java/44095
4283         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
4284         is specified and the suffix of the file isn't ".c".
4285         * config/sparc/linux64.h (ASM_SPEC): Likewise.
4286
4287 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4288
4289         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
4290         * doc/cppopts.texi: Fix markup of index entry.
4291         * doc/extend.texi (Constructing Calls): Fix markup of
4292         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
4293         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
4294         (Vague Linkage, C++ Attributes): Fix markup of index entries and
4295         keywords.
4296         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
4297         avoid long lines.
4298         (C Dialect Options, C++ Dialect Options, Warning Options)
4299         (Debugging Options, Spec Files, Darwin Options)
4300         (i386 and x86-64 Options, MIPS Options)
4301         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
4302         index entries, avoid abbreviations, allow URLs to wrap, avoid
4303         long lines, avoid overlong pages from long @itemx lists.
4304         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
4305         * doc/standards.texi (Standards): Likewise.
4306         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
4307
4308 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4309
4310         * opts-common.c (prune_options): Make static.  Work with decoded
4311         options.
4312         (decode_cmdline_options_to_array): Call prune_options.  Don't
4313         resize option array here.
4314         * opts.h (prune_options): Remove prototype.
4315         * gcc.c (process_command): Take decoded options; don't call
4316         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
4317         (main): Call decode_cmdline_options_to_array here instead of
4318         prune_options.  Update call to process_command.
4319         * config/darwin-driver.c: Include opts.h.
4320         (darwin_default_min_version): Work with decoded options.  Don't
4321         handle -b or -V here.
4322         * config/darwin.h (darwin_default_min_version): Update prototype.
4323         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
4324         darwin_default_min_version.
4325         * config/i386/cygwin.h (mingw_scan): Update prototype.
4326         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
4327         * config/i386/cygwin1.c: Include opts.h.
4328         (mingw_scan): Work with decoded options.
4329         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
4330         * config/t-darwin (darwin-driver.o): Update dependencies.
4331
4332 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4333
4334         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
4335         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
4336         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
4337         -force-link, -force-link=, -language, -language=,
4338         -library-directory, -library-directory=, -no-canonical-prefixes,
4339         -no-standard-libraries, -no-warnings, -optimize, -output,
4340         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
4341         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
4342         -print-file-name=, -print-libgcc-file-name,
4343         -print-multi-directory, -print-multi-lib,
4344         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
4345         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
4346         -profile, -save-temps, -shared, -specs, -specs=, -static,
4347         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
4348         symbolic): New.
4349         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
4350         * gcc.c (A Short Introduction to Adding a Command-Line Option):
4351         Remove comment.
4352         (cc1_options): Correct specs for passing down --help,
4353         --target-help and --help=*.  Add spec for passing down --version.
4354         (struct option_map, option_map, target_option_translations,
4355         translate_options): Remove.
4356         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
4357         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
4358         OPT_fhelp_ and OPT_ftarget_help.
4359         (process_command): Don't call translate_options.  Call
4360         decode_cmdline_options_to_array before checking for
4361         -no-canonical-prefixes using decoded options.
4362         * opts-common.c (tm.h): Update comment on #include.
4363         (find_opt): Allow abbreviations of long options.
4364         (struct option_map, option_map): New.
4365         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
4366         and -mno handling.
4367         (target_option_translations): New.
4368         (decode_cmdline_options_to_array): Handle
4369         TARGET_OPTION_TRANSLATE_TABLE in driver.
4370         * opts.c (common_handle_option): Don't handle OPT_fhelp,
4371         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
4372
4373 2010-09-22  Richard Guenther  <rguenther@suse.de>
4374
4375         * tree-inline.c (optimize_inline_calls): Schedule cleanups
4376         only if we inlined something.  Block compaction and conditional
4377         folding are done by cfg cleanup.  Schedule update-address-taken.
4378         (tree_function_versioning): Remove redundant call to number_blocks.
4379         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
4380         folding is done by cfg cleanup.
4381         * passes.c (init_optimization_passes): Remove update-address-taken
4382         pass after IPA inlining.
4383
4384 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
4385
4386         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
4387         to update conditions. Fix reg_mode[] check.
4388
4389 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
4390
4391         * config/picochip/picochip.md (movhicc): Use expand to check whether
4392         movhicc is available and split it after reload.
4393
4394 2010-09-22  Richard Guenther  <rguenther@suse.de>
4395
4396         * tree-ssanames.c (release_dead_ssa_names): Do not remove
4397         callee edges here.
4398         * passes.c (init_optimization_passes): Remove early CFG cleanup.
4399         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
4400         (pass_cleanup_cfg): Likewise.
4401         (execute_fixup_cfg): Cleanup.
4402         * tree-pass.h (pass_cleanup_cfg): Remove.
4403
4404 2010-09-22  Martin Jambor  <mjambor@suse.cz>
4405
4406         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
4407         builtins if it is true.
4408         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
4409         parameter.
4410
4411 2010-09-22  Martin Jambor  <mjambor@suse.cz>
4412
4413         * tree-sra.c (struct access): New field grp_no_warning.
4414         (create_access_replacement): Set TREE_NO_WARNING according to
4415          grp_no_warning.
4416         (create_artificial_child_access): Use build_ref_for_model and set
4417         grp_no_warning if build_user_friendly_ref_for_offset fails.
4418         (propagate_subaccesses_across_link): Likewise.
4419
4420 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
4421
4422         PR target/35664
4423         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
4424         ('f'): Likewise.
4425
4426 2010-09-22  Tristan Gingold  <gingold@adacore.com>
4427
4428         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
4429
4430 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
4431
4432         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
4433         * config/i386/i386.c (decide_alg): Update for rename.
4434
4435 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
4436
4437         PR rtl-optimization/45739
4438         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
4439         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
4440
4441 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
4442
4443         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
4444         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
4445         Remove.
4446         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
4447         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4448
4449 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4450
4451         PR objc/23710
4452         * c-parser.c (c_parser_objc_method_definition): Check the return
4453         value of objc_start_method_definition and if false is returned,
4454         parse the method definition but emit no code.
4455
4456 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4457
4458         PR objc/25965
4459         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
4460         call objc_get_interface_ivars ().
4461
4462 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
4463
4464         PR target/45694
4465         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
4466         static chain-register is used for 64-bit.
4467
4468 2010-09-21  Richard Guenther  <rguenther@suse.de>
4469
4470         * dwarf2out.c (is_cu_die): New function.
4471         (add_pubtype): Use it.
4472         (gen_subprogram_die): Likewise.
4473         (gen_struct_or_union_type_die): Likewise.
4474         (dwarf2out_finish): Likewise.
4475         (comp_unit_die): Rename to ...
4476         (single_comp_unit_die): ... this.
4477         (comp_unit_die): New function lazily constructing and
4478         returning single_comp_unit_die.
4479         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
4480         base_type_die, subrange_type_die, modified_type_die,
4481         lower_bound_default, add_bound_info, add_prototyped_attribute,
4482         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
4483         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
4484         force_decl_die, gen_namespace_die, dwarf2out_decl,
4485         dwarf2out_start_source_file, dwarf2out_end_source_file,
4486         prune_unused_types, dwarf2out_finish): Use it.
4487         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
4488         the global list of translation-unit decls.
4489         (dwarf2out_init): Do not create single_comp_unit_die here.
4490         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
4491
4492 2010-09-21  Richard Guenther  <rguenther@suse.de>
4493
4494         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
4495         for bool for C++.
4496
4497 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
4498
4499         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
4500         (qhs_extenddi_cstr): Likewise.
4501         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
4502         them for the source operand.
4503
4504 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
4505
4506         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
4507         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
4508         (ix86_split_ashr): Ditto.
4509         (ix86_split_lshr): Ditto.
4510
4511 2010-09-21  Richard Guenther  <rguenther@suse.de>
4512
4513         PR tree-optimization/45580
4514         * tree-ssa-propagate.c (substitute_and_fold): Always replace
4515         regular uses.
4516         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
4517         virtuals fold the call into a regular indirect one.
4518
4519 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
4520
4521         PR rtl-optimization/42775
4522         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
4523         scheduling is enabled.
4524
4525 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
4526
4527         PR rtl-optimization/45728
4528         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
4529         gen_lowpart_common first and if that fails, force_reg first
4530         before calling gen_lowpart.
4531
4532         PR middle-end/45678
4533         * cfgexpand.c (expand_one_stack_var_at): Use
4534         crtl->max_used_stack_slot_alignment as max_align, instead
4535         of maximum of that and PREFERRED_STACK_BOUNDARY.
4536         Don't call update_stack_alignment.
4537
4538 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
4539
4540         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
4541         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
4542         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
4543         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
4544         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
4545         (build_nonstandard_integer_type): Likewise.
4546         (build_range_type_1): New function, built from...
4547         (build_range_type): ...this.  Call build_range_type_1.
4548         (build_nonshared_range_type): New function.
4549         (build_array_type_1): New function, built from...
4550         (build_array_type: ...this.  Call build_array_type_1.
4551         (build_nonshared_array_type): New function.
4552         * tree.h (build_nonshared_range_type): Declare.
4553         (build_nonshared_array_type): Likewise.
4554
4555 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
4556
4557         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
4558         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4559         (arm_class_likely_spilled_p): New function.
4560
4561 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
4562
4563         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
4564         indirect functions.
4565         (ix86_split_ashl): Ditto.
4566         (ix86_split_ashr): Ditto.
4567         (ix86_split_lshr): Ditto.
4568         (ix86_adjust_counter): Ditto.
4569
4570 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4571
4572         * c-family/c-common.h (constant_string_class): Documented with
4573         comment identical to the one already in c-common.c.
4574
4575 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
4576
4577         * dwarf2out.c (any_cfis_emitted): New static variable.
4578         (add_fde_cfi): Set it.
4579         (dwarf2out_frame_debug): Clear it before processing,
4580         if it is set afterwards, flush any queued reg saves.
4581
4582         PR debug/45124
4583         * dwarf2out.c (add_accessibility_attribute): Assume
4584         DW_ACCESS_private as the default for dwarf_version > 2
4585         and DW_TAG_class_type parent.
4586         (gen_inheritance_die): Assume DW_ACCESS_public as the default
4587         for dwarf_version > 2 and parent other than DW_TAG_class_type.
4588
4589 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
4590
4591         PR target/45726
4592         * arm.md (arm_movt): Only enable on machines with MOVT.
4593
4594 2010-09-20  Jie Zhang  <jie@codesourcery.com>
4595
4596         * config/arm/arm.c (arm_address_offset_is_imm): New.
4597         (arm_early_store_addr_dep): New.
4598         (arm_early_load_addr_dep): New.
4599         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
4600         (arm_early_load_addr_dep): Declare.
4601         (arm_address_offset_is_imm): Declare.
4602         * config/arm/cortex-m4.md: New file.
4603         * config/arm/cortex-m4-fpu.md: New file.
4604         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
4605         (attr generic_sched): Exclude cortexm4.
4606         (attr generic_vfp): Exclude cortexm4.
4607
4608 2010-09-20  Richard Guenther  <rguenther@suse.de>
4609
4610         PR middle-end/45704
4611         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
4612
4613 2010-09-20  Jan Hubicka  <jh@suse.cz>
4614
4615         PR tree-optimize/45605
4616         * cgraph.h (const_value_known_p): Declare.
4617         (varpool_decide_const_value_known): Remove.
4618         * tree-ssa-ccp.c (get_base_constructor): Use it.
4619         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
4620         * expr.c (string_constant): Likewise.
4621         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
4622         * ipa.c (ipa_discover_readonly_nonaddressable_var,
4623         function_and_variable_visibility): Likewise.
4624         * gimplify.c (gimplify_call_expr): Likewise.
4625         * gimple-fold.c (get_symbol_constant_value): Likewise.
4626         * varpool.c (varpool_decide_const_value_known): Replace by...
4627         (const_value_known_p): ... this one; handle other kinds of DECLs
4628         too and work for automatic vars.
4629         (varpool_finalize_decl): Use const_value_known_p.
4630
4631 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
4632
4633         PR target/45726
4634         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
4635
4636 2010-09-20  Richard Guenther  <rguenther@suse.de>
4637
4638         PR tree-optimization/45705
4639         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
4640
4641 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
4642
4643         PR rtl-optimization/45695
4644         * combine.c (try_combine): When splitting a two set pattern,
4645         make sure the pattern which will be put into i2 doesn't use REGs
4646         or MEMs set by insns in between i2 and i3.
4647
4648 2010-09-19  Jan Hubicka  <jh@suse.cz>
4649
4650         PR lto/44246
4651         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
4652         processing same node twice.
4653
4654 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
4655
4656         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
4657         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4658         (bfin_class_likely_spilled_p): New function
4659
4660 2010-09-19  Ira Rosen  <irar@il.ibm.com>
4661
4662         PR tree-optimization/45714
4663         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
4664         created in vectorizable_call instead of the original statement in
4665         def stmt updates.
4666
4667 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
4668
4669         * config/i386/i386-protos.h (split_double_mode): New prototype.
4670         (split_di, split_ti): Remove prototypes.
4671         * config/i386/i386.c (split_double_mode): New function.
4672         (split_di, split_ti): Remove.
4673         (ix86_expand_branch): Use split_double_mode.
4674         (ix86_split_to_parts): Ditto.
4675         (ix86_split_ashl): Ditto.
4676         (ix86_split_ashr): Ditto.
4677         (ix86_split_lshr): Ditto.
4678         (ix86_force_to_memory): Ditto.
4679         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
4680
4681 2010-09-18  Jan Hubicka  <jh@suse.cz>
4682
4683         PR tree-optimization/45453
4684         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
4685         virtual functions are reachable.
4686         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
4687         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
4688         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
4689         when modifying function.
4690
4691 2010-09-18  Jan Hubicka  <jh@suse.cz>
4692
4693         PR tree-optimization/45605
4694         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
4695         * gimple-fold.c (static_object_in_other_unit_p): New function.
4696         (canonicalize_constructor_val): Use it.
4697         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
4698         returning NULL.
4699         (gimple_fold_obj_type_ref_known_binfo): Use
4700         static_object_in_other_unit_p.
4701
4702 2010-09-18  Richard Guenther  <rguenther@suse.de>
4703
4704         PR tree-optimization/45709
4705         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
4706         insertions until after all PHI nodes of the block are processed.
4707
4708 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
4709
4710         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
4711
4712 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
4713
4714         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
4715
4716 2010-09-18  Richard Guenther  <rguenther@suse.de>
4717
4718         PR tree-optimization/45709
4719         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
4720
4721 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
4722
4723         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
4724         (dot_deps_stmt): Same.
4725         * graphite-poly.c (dot_lst): Same.
4726         * graphite-scop-detection.c (dot_all_scops): Same.
4727         (dot_scop): Same.
4728
4729 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
4730
4731         Revert:
4732         2009-12-16  Ben Elliston  <bje@au.ibm.com>
4733
4734         * tree-data-ref.c (dot_rdg_1): Added back.
4735         (dot_rdg): Same.  Added "#if 0" around system call.
4736
4737 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
4738             Richard Henderson  <rth@redhat.com>
4739
4740         * config/i386/i386.c (initial_ix86_tune_features): Add
4741         X86_TUNE_PAD_SHORT_FUNCTION.
4742         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
4743         (ix86_count_insn): New.
4744         (ix86_pad_short_function): Likewise.
4745         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
4746
4747         * config/i386/i386.h (ix86_tune_indices): Add
4748         X86_TUNE_PAD_SHORT_FUNCTION.
4749         (TARGET_PAD_SHORT_FUNCTION): New.
4750
4751         * config/i386/i386.md (UNSPEC_NOPS): New.
4752         (nops): Likewise.
4753
4754 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
4755
4756         PR middle-end/45234
4757         * calls.c (expand_call): Make sure that all variable sized
4758         adjustments are multiple of preferred stack boundary after
4759         stack alignment.
4760
4761 2010-09-17  DJ Delorie  <dj@redhat.com>
4762
4763         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
4764         passed an invalid value, print an error instead of ICEing.
4765         (valid_psw_flag): New.
4766         (rx_expand_builtin): Call it for setpsw/clrpsw.
4767         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
4768
4769         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
4770         (bitclr_in_memory): Likewise.
4771         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
4772
4773 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
4774
4775         PR middle-end/45678
4776         * cfgexpand.c (update_stack_alignment): New.
4777         (get_decl_align_unit): Use it.
4778         (expand_one_stack_var_at): Call update_stack_alignment.
4779
4780 2010-09-17  Richard Guenther  <rguenther@suse.de>
4781
4782         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
4783         Properly copy the read string.
4784
4785 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
4786
4787         * doc/options.texi (Variable): Document.
4788         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
4789         generate target_flags declarations explicitly.  Don't define
4790         VarExists variables for the driver.
4791         * common.opt (target_flags): New Variable record.
4792         (flag_dump_unnumbered, flag_dump_unnumbered_links,
4793         flag_var_tracking, flag_var_tracking_assignments,
4794         flag_var_tracking_assignments_toggle): Don't mark variables with
4795         VarExists.
4796         * config/i386/i386.c (ix86_isa_flags): Don't define here.
4797         * config/i386/i386.opt (ix86_isa_flags): Define here.
4798         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
4799         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
4800         VarExists.
4801         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
4802         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
4803         Only define for generator programs.
4804         * rtlanal.c (target_flags): Remove.
4805         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
4806         flag_var_tracking_assignments_toggle): Remove.
4807
4808 2010-09-17  Michael Matz  <matz@suse.de>
4809
4810         PR tree-optimization/43432
4811         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4812         Accept backwards consecutive accesses.
4813         (vect_create_data_ref_ptr): If step is negative generate
4814         decreasing IVs.
4815         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
4816         (perm_mask_for_reverse, reverse_vec_elements): New functions.
4817         (vectorizable_load): Handle loads with negative steps when easily
4818         possible.
4819
4820 2010-09-03  Jan Hubicka  <jh@suse.cz>
4821
4822         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
4823
4824 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
4825
4826         * config/v850/v850.c (v850_function_value_regno_p): Make static.
4827         Adjust comments. Declare.
4828         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4829         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
4830
4831 2010-09-17  Richard Guenther  <rguenther@suse.de>
4832
4833         * common.opt (combine): Remove.
4834         * gcc.c (default_compilers): Remove specs testing combine.
4835         The C compilers no longer can combine.
4836         (option_map): Remove -combine.
4837         (display_help): Remove -combine.
4838         (driver_handle_option): Remove OPT_combine handling.
4839         (compile_input_file_p): Remove.
4840         (do_spec): Remove code concerning combine.
4841         (main): Likewise.
4842         * doc/invoke.texi: Remove traces of -combine.
4843         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
4844
4845 2010-09-17  Richard Guenther  <rguenther@suse.de>
4846
4847         PR middle-end/45678
4848         * builtins.c (fold_builtin_memory_op): Always properly adjust
4849         alignment of memory accesses.
4850
4851 2010-09-16  Jan Hubicka  <jh@suse.cz>
4852
4853         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
4854         processing clone.
4855
4856 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
4857
4858         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
4859
4860         * config/i386/i386.c (predict_jump): Add prototype.
4861         (flag_opts): Add -m8bit-idiv.
4862         (ix86_split_idivmod): New.
4863
4864         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
4865         Add 2 splitters for SI/DI mode divide.
4866         (divmod<mode>4_1): New pattern.
4867         (udivmod<mode>4_1): Likewise.
4868         (testdi_ccno_1): Likewise.
4869
4870         * config/i386/i386.opt (m8bit-idiv): New.
4871
4872         * doc/invoke.texi: Document -m8bit-idiv.
4873
4874 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
4875
4876         PR bootstrap/45680
4877         * config/i386/i386.c (min_insn_size): Moved out of the
4878         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
4879
4880 2010-09-16  Jan Hubicka  <jh@suse.cz>
4881
4882         * lto-cgraph.c (lto_output_node): Fix handling of clones.
4883         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
4884         unreachable clones with reachable clones.
4885         * tree-inline.c (copy_bb): Fix sanity checking when producing
4886         unreachable clone.
4887
4888 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
4889
4890         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
4891         (TARGET_MEMORY_MOVE_COST): Define.
4892         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
4893
4894 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
4895
4896         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
4897         maybe_tidy_empty_bb.
4898
4899         Revert:
4900         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
4901         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4902
4903 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
4904
4905         * target.def (target_option.optimization): New hook.
4906         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
4907         TARGET_OPTION_OPTIMIZATION hook.
4908         * doc/tm.texi: Regenerate.
4909         * hooks.c (hook_void_int_int): New.
4910         * hooks.h (hook_void_int_int): Declare.
4911         * opts.c: Don't include tm_p.h.
4912         (decode_options): Use targetm.target_option.optimization instead
4913         of OPTIMIZATION_OPTIONS.
4914         * system.h (OPTIMIZATION_OPTIONS): Poison.
4915         * config/arm/arm-protos.h (arm_optimization_options): Remove.
4916         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
4917         (arm_optimization_options): Rename to arm_option_optimization.
4918         Make static.
4919         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
4920         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
4921         (cris_option_optimization): New.
4922         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
4923         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
4924         (crx_option_optimization): New.
4925         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
4926         * config/frv/frv-protos.h (frv_optimization_options): Remove.
4927         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
4928         (frv_optimization_options): Rename to frv_option_optimization.
4929         Make static.
4930         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
4931         * config/h8300/h8300.c (h8300_option_optimization): New.
4932         (TARGET_OPTION_OPTIMIZATION): Define.
4933         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
4934         * config/i386/i386-protos.h (optimization_options): Remove.
4935         * config/i386/i386.c (optimization_options): Rename to
4936         ix86_option_optimization.  Make static.
4937         (TARGET_OPTION_OPTIMIZATION): Define.
4938         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
4939         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
4940         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
4941         (ia64_optimization_options): Rename to ia64_option_optimization.
4942         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
4943         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
4944         commented-out definition.
4945         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4946         instead of OPTIMIZATION_OPTIONS.
4947         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
4948         (m32r_option_optimization): New.
4949         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
4950         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
4951         Remove.
4952         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
4953         (mcore_option_optimization): New.
4954         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
4955         * config/mep/mep-protos.h (mep_optimization_options): Remove.
4956         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
4957         (mep_optimization_options): Rename to mep_option_optimization.
4958         Make static.  Take unused level and size parameters.
4959         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
4960         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
4961         (mmix_option_optimization): New.
4962         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
4963         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
4964         (pdp11_option_optimization): New.
4965         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
4966         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
4967         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
4968         (optimization_options): Rename to rs6000_option_optimization.
4969         Make static.
4970         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
4971         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
4972         * config/rx/rx.c (rx_set_optimization_options): Rename to
4973         rx_option_optimization.  Make static.  Take unused level and size
4974         parameters.
4975         (TARGET_OPTION_OPTIMIZATION): Define.
4976         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
4977         * config/s390/s390-protos.h (optimization_options): Remove.
4978         * config/s390/s390.c (optimization_options): Rename to
4979         s390_option_optimization.  Make static.  Don't mark size parameter
4980         unused.
4981         (TARGET_OPTION_OPTIMIZATION): Define.
4982         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
4983         * config/sh/sh-protos.h (sh_optimization_options): Remove.
4984         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
4985         (sh_optimization_options): Rename to sh_option_optimization.  Make
4986         static.  Don't mark parameters unused.
4987         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
4988         * config/spu/spu-protos.h (spu_optimization_options): Remove.
4989         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
4990         (spu_optimization_options): Rename to spu_option_optimization.
4991         Make static.
4992         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
4993         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
4994         (v850_option_optimization): New.
4995         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
4996         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
4997         (xtensa_option_optimization): New.
4998         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
4999
5000 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
5001
5002         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
5003         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
5004         * doc/tm.texi: Regenerate.
5005         * system.h (OVERRIDE_OPTIONS): Poison.
5006         * target.def (override): Default to hook_void_void.
5007         * targhooks.c (default_target_option_override): Remove.
5008         * genmodes.c, machmode.def: Update comments mentioning
5009         OVERRIDE_OPTIONS.
5010         * config/alpha/alpha-modes.def: Update comment mentioning
5011         alpha_override_options.
5012         * config/alpha/alpha-protos.h (override_options): Remove.
5013         * config/alpha/alpha.c (override_options): Rename to
5014         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
5015         (TARGET_OPTION_OVERRIDE): Define.
5016         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
5017         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
5018         of OVERRIDE_OPTIONS.
5019         * config/arc/arc-protos.h (arc_init): Remove.
5020         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
5021         (arc_init): Rename to arc_option_override.  Make static.
5022         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
5023         (OVERRIDE_OPTIONS): Remove.
5024         * config/arm/arm-protos.h (arm_override_options): Remove.
5025         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
5026         (arm_override_options): Rename to arm_option_override.  Make
5027         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
5028         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
5029         * config/arm/arm.md: Update comment referring to arm_override_options.
5030         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
5031         instead of OVERRIDE_OPTIONS.
5032         * config/avr/avr-protos.h (avr_override_options): Remove.
5033         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
5034         (avr_override_options): Rename to avr_option_override.  Make static.
5035         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
5036         * config/bfin/bfin-protos.h (override_options): Remove (twice).
5037         * config/bfin/bfin.c (override_options): Rename to
5038         bfin_option_override.  Make static.
5039         (TARGET_OPTION_OVERRIDE): Define.
5040         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
5041         * config/cris/cris-protos.h (cris_override_options): Remove.
5042         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
5043         (cris_override_options): Rename to cris_option_override.  Make static.
5044         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
5045         * config/frv/frv-protos.h (frv_override_options): Remove.
5046         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
5047         (frv_override_options): Rename to frv_option_override.  Make static.
5048         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
5049         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
5050         * config/h8300/h8300.c (h8300_init_once): Rename to
5051         h8300_option_override.  Make static.
5052         (TARGET_OPTION_OVERRIDE): Define.
5053         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
5054         * config/i386/i386-protos.h (override_options): Remove.
5055         * config/i386/i386.c (override_options): Rename to
5056         ix86_option_override_internal.  Make static.  Comments referring
5057         to this function and callers changed.
5058         (ix86_option_override): New.
5059         (TARGET_OPTION_OVERRIDE): Define.
5060         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
5061         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
5062         * config/ia64/ia64.c (ia64_file_start): Update comment referring
5063         to ia64_override_options.
5064         * config/iq2000/iq2000-protos.h (override_options): Remove.
5065         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
5066         (override_options): Rename to iq2000_option_override.  Make static.
5067         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
5068         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
5069         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
5070         (lm32_override_options): Rename to lm32_option_override.  Make static.
5071         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
5072         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
5073         (m32r_option_override): New.
5074         (m32r_init): Update comment.
5075         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
5076         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
5077         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
5078         (m68hc11_override_options): Rename to m68hc11_option_override.
5079         Make static.  Return void.
5080         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
5081         * config/m68k/m68k-protos.h (override_options): Remove.
5082         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
5083         (override_options): Rename to m68k_option_override.  Make static.
5084         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
5085         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
5086         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
5087         (mcore_override_options): Rename to mcore_option_override.  Make
5088         static.
5089         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
5090         * config/mep/mep-protos.h (mep_override_options): Remove.
5091         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
5092         (mep_override_options): Rename to mep_option_override.  Make static.
5093         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
5094         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
5095         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
5096         (mmix_override_options): Rename to mmix_option_override.  Make static.
5097         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
5098         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
5099         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
5100         (mn10300_override_options): Rename to mn10300_option_override.
5101         Make static.
5102         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
5103         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
5104         * config/moxie/moxie.c (moxie_override_options): Rename to
5105         moxie_option_override.  Make static.
5106         (TARGET_OPTION_OVERRIDE): Define.
5107         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
5108         * config/picochip/picochip-protos.h (picochip_override_options):
5109         Remove.  Update comment referring to picochip_override_options.
5110         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
5111         (picochip_override_options): Rename to picochip_option_override.
5112         Make static.  Update comment and definition of
5113         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
5114         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
5115         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5116         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5117         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5118         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5119         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5120         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
5121         instead of OVERRIDE_OPTIONS.
5122         * config/rs6000/rs6000-modes.def: Update comment referring to
5123         rs6000_override_options.
5124         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
5125         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
5126         (rs6000_override_options): Rename to
5127         rs6000_option_override_internal.  Make static.  Commented
5128         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
5129         (rs6000_option_override): New.
5130         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
5131         instead of OVERRIDE_OPTIONS.
5132         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5133         * config/s390/s390-protos.h (override_options): Remove.
5134         * config/s390/s390.c (override_options): Rename to
5135         s390_option_override.  Make static.
5136         (TARGET_OPTION_OVERRIDE): Define.
5137         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
5138         * config/score/score-protos.h (score_override_options): Remove.
5139         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
5140         (score_override_options): Rename to score_option_override.  Make
5141         static.
5142         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
5143         Update comment referring to override_options.
5144         * config/score/score3.c (score3_override_options): Rename to
5145         score3_option_override.
5146         * config/score/score3.h (score3_override_options): Rename to
5147         score3_option_override.
5148         * config/score/score7.c (score7_override_options): Rename to
5149         score7_option_override.
5150         * config/score/score7.h (score7_override_options): Rename to
5151         score7_option_override.
5152         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
5153         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
5154         (sparc_override_options): Rename to sparc_option_override.  Make
5155         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
5156         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
5157         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
5158         instead of OVERRIDE_OPTIONS.
5159         * config/spu/spu-protos.h (spu_override_options): Remove.
5160         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
5161         (spu_override_options): Rename to spu_option_override.  Make
5162         static.
5163         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
5164         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
5165         OVERRIDE_OPTIONS.
5166         * config/vax/vax-protos.h (override_options): Remove.
5167         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
5168         (override_options): Rename to vax_option_override.  Make static.
5169         Call SUBTARGET_OVERRIDE_OPTIONS.
5170         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
5171         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
5172         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
5173         * config/xtensa/xtensa-protos.h (override_options): Remove.
5174         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
5175         (override_options): Rename to xtensa_option_override.  Make static.
5176         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
5177
5178 2010-09-16  Richard Guenther  <rguenther@suse.de>
5179
5180         PR tree-optimization/45623
5181         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
5182         (get_constraint_for_component_ref): If computing a constraint
5183         for the rhs handle type punning through unions.
5184         (get_constraint_for_address_of): Adjust.
5185         (get_constraint_for_1): Likewise.
5186         (get_constraint_for): Likewise.
5187         (get_constraint_for_rhs): New function.
5188         (do_structure_copy): Adjust.
5189         (make_constraint_to): Likewise.
5190         (handle_const_call): Likewise.
5191         (find_func_aliases): Likewise.
5192         (process_ipa_clobber): Likewise.
5193         (create_variable_info_for): Likewise.
5194
5195 2010-09-16  Ira Rosen  <irar@il.ibm.com>
5196
5197         * tree-vectorizer.c: Fix documentation.
5198         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
5199         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
5200         is_pattern_stmt_p, is_loop_header_bb_p,
5201         stmt_vinfo_set_inside_of_loop_cost,
5202         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
5203         known_alignment_for_access_p): Likewise.
5204         * tree-vect-loop.c: Fix documentation.
5205         (vect_get_cost): Start function name from new line.
5206         * tree-vect-data-refs.c: Fix documentation.
5207         * tree-vect_stmts.c: Likewise.
5208         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
5209         (vectorizable_store): Free vec_oprnds if allocated.
5210         (vectorizable_condition): Initialize several variables to avoid
5211         warnings.
5212         * tree-vect-slp.c: Fix documentation.
5213
5214 2010-09-16  Richard Guenther  <rguenther@suse.de>
5215
5216         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
5217         is TS_TRANSLATION_UNIT_DECL.
5218         (initialize_tree_contains_struct): Adjust.
5219         (all_translation_units): New global vector.
5220         (build_translation_unit_decl): New function.
5221         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
5222         (struct tree_translation_unit_decl): New.
5223         (all_translation_units): Declare.
5224         (union tree_node): Add translation_unit_decl member.
5225         (build_translation_unit_decl): Declare.
5226         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
5227         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
5228         New function.
5229         (pack_value_fields): Call it.
5230         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
5231         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
5232         (lto_output_tree_pointers): Call it.
5233         * lto-streamer-in.c (lto_input_tree_ref): Handle references
5234         to TRANSLATION_UNIT_DECL.
5235         (unpack_ts_translation_unit_decl_value_fields): New function.
5236         (unpack_value_fields): Call it.
5237         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
5238         (lto_input_tree_pointers): Call it.
5239         * lto-streamer.c (check_handled_ts_structures): Adjust.
5240         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
5241         * c-decl.c (all_translation_units): Remove.
5242         (pop_scope): Use build_translation_unit_decl.
5243         (collect_all_refs): Adjust.
5244         (for_each_global_decl): Likewise.
5245         (c_write_global_declarations): Likewise.
5246
5247 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
5248
5249         PR bootstrap/45686
5250         * fold-const.c (fold_checksum_tree): Change slot from const void **
5251         to void **, use CONST_CAST_TREE to store into *slot.
5252
5253 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
5254
5255         * config/i386/i386.md: Remove unneeded empty conditions and
5256         preparation statements from expanders.
5257         * config/i386/mmx.md: Ditto.
5258         * config/i386/sse.md: Ditto.
5259
5260 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
5261
5262         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
5263
5264 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5265
5266         PR rtl-optimization/45593
5267         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
5268         insns that were in delay slots as stand-alone insns.
5269
5270 2010-09-15  Ian Lance Taylor  <iant@google.com>
5271
5272         * incpath.c (remove_duplicates): If name is not a directory, issue
5273         a warning rather than an error.
5274
5275 2010-09-15  Martin Jambor  <mjambor@suse.cz>
5276
5277         PR middle-end/45644
5278         * tree-sra.c (create_access): Check for bit-fields directly.
5279
5280 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
5281
5282         PR tree-optimization/45633
5283         * tree-cfg.c (verify_gimple_assign_binary): Allow
5284         MINUS_EXPR with lhs and rhs1 pointer vector and
5285         rhs2 sizetype vector.
5286         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
5287         or vector pointer use TER to optimize pointer subtraction.
5288
5289 2010-09-15  Jie Zhang  <jie@codesourcery.com>
5290
5291         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
5292         fcmpd to fcmps.
5293
5294 2010-09-15  Ian Lance Taylor  <iant@google.com>
5295
5296         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
5297
5298 2010-09-15  Ian Lance Taylor  <iant@google.com>
5299
5300         * function.c (get_arg_pointer_save_area): Set
5301         arg_pointer_save_area_init to true.
5302
5303 2010-09-15  Martin Jambor  <mjambor@suse.cz>
5304
5305         * tree-sra.c (generate_subtree_copies): Updated comment.
5306         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
5307         obtained from the statement iterator instead.
5308         (load_assign_lhs_subreplacements): Removed parameters lhs and
5309         right_offset, which is obtained from top_racc instead.  Parameter lacc
5310         is now expected to be the root of the processed tree rather than root's
5311         first child.  Updated all callers.
5312
5313 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
5314
5315         * config/pdp11/pdp11.c (register_move_cost): Rename to
5316         pdp11_register_move_cost.
5317         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
5318         pdp11_register_move_cost.
5319         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
5320         pdp11_register_move_cost instead of register_move_cost.
5321
5322 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
5323
5324         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
5325         pattern for vmovn. Expansion in case of non
5326         -mvectorize-with-neon-quad.
5327         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
5328         non- -mvectorize-with-neon-quad case.
5329         (move_lo_quad_<mode>): New expansion to vmov into low part.
5330         (move_hi_quad_<mode>): New expansion to vmov into high part.
5331         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
5332         (move_lo_quad_v4sf): Likewise.
5333         (move_lo_quad_v8hi): Likewise.
5334         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
5335         low part.
5336         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
5337         high part.
5338         * config/arm/iterators.md (ANY128): New mode iterator.
5339         (V_narrow_pack): New mode attribute.
5340         (V_HALF): Add attribute.
5341         (V_DOUBLE): Add attribute.
5342         (V_mode_nunits): Add attribute.
5343
5344 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5345
5346         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
5347         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
5348
5349 2010-09-15  Olivier Hainque  <hainque@adacore.com>
5350             Jose Ruiz  <ruiz@adacore.com>
5351
5352         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
5353         * config/alpha/osf5-unwind.h: New file.
5354
5355 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5356
5357         PR bootstrap/45672
5358         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
5359         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
5360         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
5361
5362 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5363
5364         * c-lang.h (struct lang_type): Add variable_size GTY option.
5365
5366 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5367
5368         PR bootstrap/45672
5369         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
5370
5371 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5372
5373         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
5374         result isn't used in memory address.
5375
5376 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5377
5378         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
5379         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
5380         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5381         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5382         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5383         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5384
5385         * target.def: Add units_per_simd_word to vectorize.
5386
5387         * targhooks.c (default_units_per_simd_word): New.
5388         * targhooks.h (default_units_per_simd_word): Likewise.
5389         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
5390         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
5391         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
5392         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
5393         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
5394         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
5395         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
5396         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
5397
5398         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
5399         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
5400
5401         * tree-vect-stmts.c: Don't include "tm_p.h".
5402         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
5403         with targetm.vectorize.units_per_simd_word.
5404
5405         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
5406
5407         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
5408
5409         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
5410         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
5411
5412         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
5413         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
5414
5415         * doc/tm.texi: Regenerated.
5416
5417 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5418
5419         * tree-vect-stmts.c: Include "tm_p.h".
5420
5421         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
5422         out of RTX_CODE.
5423
5424 2010-09-14  Martin Jambor  <mjambor@suse.cz>
5425
5426         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
5427         location of generated statement.  Changed all callers.
5428         (build_ref_for_model): New parameter loc which used to set location of
5429         all generated expressions.  Changed all callers.
5430         (generate_subtree_copies): Likewise.
5431         (init_subtree_with_zero): Likewise.
5432         (sra_modify_expr): Set locations of all generated statements and
5433         expressions to the location the original statement.
5434         (handle_unscalarized_data_in_subtree): Likewise.
5435         (load_assign_lhs_subreplacements): Likewise.
5436         (sra_modify_constructor_assign): Likewise.
5437         (sra_modify_assign): Likewise.
5438
5439 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
5440
5441         PR target/45277
5442         PR target/45363
5443         PR target/45407
5444         * doc/install.texi (sparc*-*-*): New section.
5445         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
5446
5447 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
5448
5449         PR middle-end/45567
5450         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
5451         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
5452         (expand_builtin): Adjust caller.
5453         (expand_builtin_unop): Only use subtarget if it has the right mode.
5454
5455 2010-09-14  Tristan Gingold  <gingold@adacore.com>
5456
5457         * configure.ac (plugins): Fix typos.
5458         * configure: Regenerate.
5459
5460 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
5461
5462         PR debug/45660
5463         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
5464         gen_type_die for function/method return type.
5465
5466 2010-09-14  Ira Rosen  <irar@il.ibm.com>
5467
5468         PR tree-optimization/45470
5469         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
5470         can throw an exception.
5471         * tree-vect-stmts.c (vectorizable_call): Likewise.
5472
5473 2010-09-14  DJ Delorie  <dj@redhat.com>
5474
5475         PR target/44749
5476         * config/mep/mep-protos.h (mep_save_register_info,
5477         mep_reinit_regs, mep_init_regs): Declare.
5478
5479         * config/mep/mep.c: Move all target definitions to the end of the
5480         file to avoid the need for duplicate declarations.
5481         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
5482         (mep_reorg_erepeat): Remove unused variables.
5483         (mep_expand_builtin): Likewise.
5484
5485         * config/mep/mep-pragma.c: Don't include rtl.h.
5486         (INVALID_REGNUM): New.
5487         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
5488         functions.
5489         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
5490         Avoid enum/integer math.
5491
5492 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
5493
5494         PR target/44749
5495         * config/mep/t-mep (GTM_H): Add insn-constants.h.
5496         * config/mep/mep.c (mep_conditional_register_usage): Take no
5497         parameters.
5498         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
5499         prototype.
5500         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
5501         call to mep_conditional_register_usage.
5502
5503 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
5504
5505         PR debug/43937
5506         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
5507         the DECL as well.
5508
5509 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
5510
5511         PR rtl-optimization/45617
5512         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
5513         even if low N bits of X aren't known to be zero.
5514
5515 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5516
5517         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
5518
5519         * config/i386/i386.c (initial_ix86_tune_features): Add
5520         X86_TUNE_VECTORIZE_DOUBLE.
5521         (ix86_units_per_simd_word): New.
5522
5523         * config/i386/i386.h (ix86_tune_indices): Add
5524         X86_TUNE_VECTORIZE_DOUBLE.
5525         (TARGET_VECTORIZE_DOUBLE): New.
5526         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
5527
5528 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
5529
5530         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
5531         (new_temp_expr_table): Allocate call_cnt vector.
5532         (free_temp_expr_table): Free it.
5533         (process_replaceable): Add call_cnt parm and set in vector.
5534         (find_replaceable_in_bb): Skip replacement if def/use span a call.
5535         (debug_ter): Dump call_cnt value, remove stderr uses.
5536
5537 2010-09-13  Jan Hubicka  <jh@suse.cz>
5538
5539         * tree.c (build_zero_cst): New.
5540         * tree.h (build_zero_cst): Declare.
5541         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
5542         (get_base_constructor): Break out from ...
5543         (fold_const_aggregate_ref): Here; handle empty constructors.
5544
5545 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5546
5547         * config/arm/arm.md: (define_attr "conds"): Update comment.
5548         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
5549         conds attribute to clob.
5550         (arm_sync_compare_and_swapsi): Likewise.
5551         (arm_sync_compare_and_swap<mode>): Likewise.
5552         (arm_sync_lock_test_and_setsi): Likewise.
5553         (arm_sync_lock_test_and_set<mode>): Likewise.
5554         (arm_sync_new_<sync_optab>si): Likewise.
5555         (arm_sync_new_nandsi): Likewise.
5556         (arm_sync_new_<sync_optab><mode>): Likewise.
5557         (arm_sync_new_nand<mode>): Likewise.
5558         (arm_sync_old_<sync_optab>si): Likewise.
5559         (arm_sync_old_nandsi): Likewise.
5560         (arm_sync_old_<sync_optab><mode>): Likewise.
5561         (arm_sync_old_nand<mode>): Likewise.
5562
5563 2010-09-13  Olivier Hainque  <hainque@adacore.com>
5564
5565         * fwprop.c (forward_propagate_and_simplify): Only attach a
5566         REG_EQUAL note to an insn if the destination is a register.
5567         * gcse.c (try_replace_reg): Likewise.
5568
5569 2010-09-13  Richard Guenther  <rguenther@suse.de>
5570
5571         PR tree-optimization/45611
5572         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
5573         (copy_ref_info): Likewise.
5574
5575 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
5576
5577         PR debug/45604
5578         PR debug/45419
5579         PR debug/45408
5580         * tree-pretty-print.c (dump_generic_node): Disregard top-level
5581         types of MEM_REF pointer types to the same type.
5582
5583 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
5584
5585         PR rtl-optimization/41087
5586         * ifcvt.c (noce_get_condition): Don't allow conditions with
5587         side-effects.
5588
5589 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
5590
5591         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5592         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
5593         * config/frv/frv.c (frv_register_move_cost): Make static. Change
5594         arguments type to reg_class_t. Add mode argument.
5595         (frv_memory_move_cost): New.
5596         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
5597
5598 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
5599
5600         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
5601         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
5602
5603 2010-09-10  Jan Hubicka  <jh@suse.cz>
5604
5605         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
5606
5607 2010-09-10  Richard Guenther  <rguenther@suse.de>
5608
5609         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
5610         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
5611         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
5612         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
5613         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
5614
5615 2010-09-10  Richard Guenther  <rguenther@suse.de>
5616
5617         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
5618         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
5619         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
5620         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
5621
5622 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5623
5624         PR middle-end/45634
5625         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
5626         of string folding is of integral type.
5627
5628 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
5629
5630         * doc/invoke.texi (-x): Fix typo.
5631
5632 2010-09-10  Richard Guenther  <rguenther@suse.de>
5633
5634         PR debug/44115
5635         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
5636         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5637         Output DECL_DEBUG_EXPR.
5638         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5639         Input DECL_DEBUG_EXPR.
5640
5641 2010-09-10  Richard Guenther  <rguenther@suse.de>
5642
5643         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
5644         (build_index_type): Implement in terms of build_range_type.
5645         (build_range_type): Do not allow NULL_TREE type, improve
5646         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
5647         if we didn't hash.
5648         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
5649         create a distinct copy of the type.
5650
5651 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
5652
5653         * configure: Regenerated.
5654         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
5655
5656 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5657
5658         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
5659         * config/arm/cortex-a9-neon.md: New and partially generated.
5660         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
5661
5662 2010-09-10  Richard Guenther  <rguenther@suse.de>
5663
5664         * tree.h (build_index_2_type): Remove.
5665         * tree.c (build_index_2_type): Remove.
5666
5667 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
5668
5669         PR bootstrap/45630
5670         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
5671         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
5672         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
5673
5674 2010-09-10  Martin Jambor  <mjambor@suse.cz>
5675
5676         PR tree-optimization/44972
5677         * tree-sra.c: Include toplev.h.
5678         (build_ref_for_offset): Entirely reimplemented.
5679         (build_ref_for_model): New function.
5680         (build_user_friendly_ref_for_offset): New function.
5681         (analyze_access_subtree): Removed build_ref_for_offset check.
5682         (propagate_subaccesses_across_link): Likewise.
5683         (create_artificial_child_access): Use
5684         build_user_friendly_ref_for_offset.
5685         (propagate_subaccesses_across_link): Likewise.
5686         (ref_expr_for_all_replacements_p): Removed.
5687         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
5688         (sra_modify_expr): Use build_ref_for_model.
5689         (load_assign_lhs_subreplacements): Likewise.
5690         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
5691         checks for return values of build_ref_for_offset.
5692         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
5693         build_ref_for_offset.
5694         * ipa-prop.h: Include gimple.h
5695         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
5696         (ipa_analyze_indirect_call_uses): Update comment.
5697         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
5698         (IPA_PROP_H): Likewise.
5699
5700 2010-09-10  Martin Jambor  <mjambor@suse.cz>
5701
5702         PR tree-optimization/44972
5703         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
5704         calling build_ref_for_offset.
5705
5706 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5707
5708         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
5709         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
5710         * config/arm/arm-tune.md: Regenerate.
5711         * doc/invoke.texi (ARM Options): Document it.
5712
5713 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
5714
5715         * config/i386/i386.c: Include sched-int.h.
5716         (TARGET_SCHED_DISPATCH): Defined.
5717         (TARGET_SCHED_DISPATCH_DO): Defined.
5718         (DISPATCH_WINDOW_SIZE): Defined.
5719         (MAX_DISPATCH_WINDOWS): Defined.
5720         (MAX_INSN): Defined.
5721         (MAX_IMM): Defined.
5722         (MAX_IMM_SIZE): Defined.
5723         (MAX_IMM_32): Defined.
5724         (MAX_IMM_64): Defined.
5725         (MAX_LOAD): Defined.
5726         (MAX_STORE): Defined.
5727         (BIG): Defined.
5728         (dispatch_group): New.
5729         (num_allowable_groups): New.
5730         (group_name): New.
5731         (sched_insn_info_s): New.
5732         (dispatch_windows_s): New.
5733         (imm_info_s): New.
5734         (dispatch_window_list): New.
5735         (dispatch_window_list1): New.
5736         (get_mem_group): New.
5737         (is_cmp): New.
5738         (dispatch_violation): New.
5739         (is_branch): New.
5740         (is_prefetch): New.
5741         (init_window): New.
5742         (allocate_window): New.
5743         (init_dispatch_sched): New.
5744         (is_end_basic_block): New.
5745         (process_end_window): New.
5746         (allocate_next_window): New.
5747         (find_constant_1): New.
5748         (find_constant): New.
5749         (get_num_immediates): New.
5750         (has_immediate): New.
5751         (get_insn_path): New.
5752         (get_insn_group): New.
5753         (count_num_restricted): New.
5754         (fits_dispatch_window): New.
5755         (add_insn_window): New.
5756         (add_to_dispatch_window): New.
5757         (debug_dispatch_window_file): New.
5758         (debug_dispatch_window): New.
5759         (debug_insn_dispatch_info_file): New.
5760         (debug_ready_dispatch): New.
5761         (do_dispatch): New.
5762         (has_dispatch): New.
5763         * config/i386/i386.h (debug_ready_dispatch): Declared.
5764         (debug_dispatch_window): Declared.
5765         * config/i386/i386.opt (mdispatch-scheduler): New flag.
5766         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
5767         (TARGET_SCHED_DISPATCH_DO): New.
5768         * doc/tm.texi: Regererated.
5769         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
5770         ready_remove_first_dispatch
5771         (schedule_block): Call targetm.sched.dispatch and
5772         targetm.sched.dispatch_do.
5773         (sched_init): Call targetm.sched.dispatch and
5774         targetm.sched.dispatch_do.
5775         (ready_remove_first_dispatch): New.
5776         (number_in_ready): New.
5777         (get_ready_element): New.
5778         * hooks.c (hook_bool_rtx_int_false): New.
5779         (hook_void_rtx_int): New.
5780         * hooks.h (hook_bool_rtx_int_false): Declared.
5781         (hook_void_rtx_int): Declared.
5782         * sched-int.h (IS_DISPATCH_ON): Defined.
5783         (IS_CMP): Defined.
5784         (DISPATCH_VIOLATION): Defined.
5785         (FITS_DISPATCH_WINDOW): Defined.
5786         (DISPATCH_INIT): Defined.
5787         (ADD_TO_DISPATCH_WINDOW): Defined.
5788         (get_ready_element): Declared.
5789         (number_in_ready): Declared.
5790         * target.def (dispatch): Defined.
5791         (dispatch_do): Defined.
5792
5793 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5794
5795         PR middle-end/45312
5796         * reload1.c (merge_assigned_reloads): Remove.
5797         (reload_as_needed): Don't call it.
5798
5799 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
5800
5801         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
5802         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5803         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5804
5805 2010-09-09  Matthias Klose  <doko@ubuntu.com>
5806
5807         PR bootstrap/43847
5808         * configure.ac (--enable-plugin): Enhance for cross builds.
5809         * configure: Regenerate.
5810
5811 2010-09-09  Jan Hubicka  <jh@suse.cz>
5812
5813         PR tree-optimization/45598
5814         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
5815         string folding is of integral type.
5816
5817 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5818
5819         * configure.ac (gnu_indirect_function): New test.
5820         * configure: Rebuilt.
5821         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
5822         * defaults.h (IFUNC_ASM_TYPE): Provide default.
5823
5824         * doc/extend.texi (Function Attributes): Document ifunc.
5825         * varasm.c (do_assemble_alias): Deal with ifuncs too.
5826
5827 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
5828
5829         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
5830         epilogue instruction move.
5831
5832 2010-09-09  Jan Hubicka  <jh@suse.cz>
5833
5834         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
5835         command line to allow more partitions than input files.
5836
5837 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5838
5839         PR middle-end/44554
5840         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
5841
5842 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5843
5844         PR middle-end/40386
5845         * ira.c (pseudo_for_reload_consideration_p): Don't use
5846         flag_ira_share_spill_slots.
5847
5848 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5849
5850         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
5851         point zero operands that fit into a single GPR.
5852         (s390_preferred_reload_class): Ensure we only return general-purpose
5853         register classes.
5854         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
5855         floating-point zero operands into GPRs.
5856         ("*mov<mode>_64"): Likewise.
5857         ("mov<mode>"): Likewise using lhi.
5858
5859 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5860
5861         * config/s390/s390.c (s390_symref_operand_p): Return false for
5862         literal pool references.
5863         (s390_check_qrst_address): Update caller.
5864
5865 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
5866
5867         * config/i386/predicates.md (ext_register_operand): Check that
5868         SUBREG_REG is really a register before looking for REGNO.
5869         (reg_not_xmm0_operand): Handle SUBREGs correctly.
5870         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
5871
5872 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
5873
5874         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
5875         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
5876         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
5877         * print-rtl.c (print_rtx): Likewise.
5878         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5879         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
5880         for ADDR_EXPR with non-addressable object.
5881         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
5882         (struct dw_val_struct): Add v.val_decl_ref.
5883         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
5884         Handle DW_OP_GNU_implicit_pointer.
5885         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
5886         (get_ref_die_offset_label): New function.
5887         (implicit_ptr_descriptor): New function.
5888         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
5889         (loc_descriptor): Likewise.
5890         (gen_variable_die): Put even definitions into decl_die_table.
5891         (resolve_addr_in_expr): Resolve still unresolved
5892         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
5893         return false.
5894         (dwarf2out_finish): Call output_location_lists after outputting
5895         .debug_info and .debug_abbrev instead of before.
5896
5897 2010-09-09  Roland McGrath  <roland@redhat.com>
5898
5899         * dwarf2out.c (DWARF_REF_SIZE): Define.
5900         (size_of_loc_descr): Use it for DW_OP_call_ref.
5901
5902 2010-09-09  Alan Modra  <amodra@gmail.com>
5903
5904         * doc/invoke.text: Reinstate mcmodel=medium.
5905         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5906         CMODEL_MEDIUM as default.
5907         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
5908         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
5909         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
5910         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
5911
5912 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5913
5914         PR target/45250
5915         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
5916         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
5917         (builtin_longjmp): Likewise.
5918         (allocate_stack): Use hard_frame_pointer_rtx instead of
5919         frame_pointer_rtx.
5920         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
5921         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
5922         (pa_can_eliminate): Likewise.
5923         (TARGET_INTERNAL_ARG_POINTER): Define.
5924         (TARGET_CAN_ELIMINATE): Define.
5925         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
5926         pointer.
5927         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
5928         (pa_internal_arg_pointer, pa_can_eliminate,
5929         pa_initial_elimination_offset): New.
5930         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
5931         (HARD_FRAME_POINTER_REGNUM): Set to register three.
5932         (INITIAL_FRAME_POINTER_OFFSET): Delete.
5933         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
5934         Define.
5935         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
5936         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
5937         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
5938         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
5939         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
5940         new soft frame pointer.
5941         * config/pa/pa64-regs.h: Likewise.
5942
5943 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
5944
5945         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
5946         numerical constant.
5947         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
5948
5949 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
5950
5951         PR debug/45531
5952         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
5953
5954 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
5955
5956         PR debug/45419
5957         PR debug/45408
5958         * tree-pretty-print.c (dump_generic_node): Disregard top-level
5959         qualifiers in otherwise equal MEM_REF pointer types.
5960         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
5961         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
5962
5963 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5964
5965         PR target/44392
5966         * config/arm/arm.md (bswapsi2): Handle condition correctly
5967         for armv6 and optimize_size.
5968
5969 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5970
5971         PR other/18555
5972         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
5973
5974 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
5975
5976         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
5977         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
5978         ix86_expand_strlen, legitimate_pic_address_disp_p,
5979         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
5980         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
5981         ix86_check_movabs, ix86_secondary_memory_needed): Change function
5982         prototype to bool.
5983         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
5984         return_in_memory_ms_64, ix86_check_movabs,
5985         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
5986         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
5987         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
5988         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
5989         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
5990         ix86_secondary_memory_needed): Change to bool.  Return
5991         "true" and "false" values.
5992         * config/i386/i386.md: Return "true" and "false" values.
5993
5994 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5995
5996         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5997         run_expensive_tests.
5998
5999 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6000
6001         * toplev.c (output_stack_usage): Use lbasename instead of basename.
6002
6003 2010-09-08  Martin Jambor  <mjambor@suse.cz>
6004
6005         PR other/45443
6006         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
6007         at -O3.
6008
6009 2010-09-08  Richard Guenther  <rguenther@suse.de>
6010
6011         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
6012         (visit): Adjust.
6013         (iterative_hash_gimple_type): Likewise.
6014         (gimple_type_hash): Likewise.
6015         (gimple_register_type): Likewise.
6016         (print_gimple_types_stats): Likewise.
6017         (free_gimple_type_tables): Likewise.
6018
6019 2010-09-08  Michael Matz  <matz@suse.de>
6020
6021         PR tree-optimization/43430
6022         * tree-vect-stmts.c (vectorizable_condition): Support multiple
6023         copies for conditional statements if it's not part of a reduction.
6024
6025 2010-09-08  Michael Matz  <matz@suse.de>
6026
6027         PR tree-optimization/33244
6028         * tree-ssa-sink.c (statement_sink_location): Don't sink into
6029         empty loop latches.
6030
6031 2010-09-08  Richard Guenther  <rguenther@suse.de>
6032
6033         PR tree-optimization/45578
6034         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
6035         Be more careful when transfering alignment information to
6036         the new induction variable.
6037         (copy_ref_info): Likewise.
6038
6039 2010-09-08  Richard Guenther  <rguenther@suse.de>
6040
6041         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
6042         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
6043
6044 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
6045
6046         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
6047         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
6048
6049 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
6050
6051         PR doc/45587
6052         * doc/md.texi: Fixed modes on several standard pattern names.
6053
6054 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
6055
6056         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
6057         (ashl<mode>3): ...this.
6058         (loongson_psra<V_suffix>): Rename to...
6059         (ashr<mode>3): ...this.
6060         (loongson_psrl<V_suffix>): Rename to...
6061         (lshr<mode>3): ...this.
6062         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
6063         (CODE_FOR_loongson_psllw): Define.
6064         (CODE_FOR_loongson_psrlh): Define.
6065         (CODE_FOR_loongson_psrlw): Define.
6066         (CODE_FOR_loongson_psrah): Define.
6067         (CODE_FOR_loongson_psraw): Define.
6068
6069 2010-09-07  Richard Henderson  <rth@redhat.com>
6070
6071         * tree-vect-data-refs.c: Include tm_p.h.
6072         * Makefile.in (tree-vect-data-refs.o): Update deps.
6073         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
6074         Move delarations outside #ifdef RTX_CODE.
6075
6076 2010-09-07  Richard Henderson  <rth@redhat.com>
6077
6078         * final.c (rest_of_handle_final): Unconditionally do
6079         output_function_exception_table before assemble_end_function.
6080
6081 2010-09-07  Jan Hubicka  <jh@suse.cz>
6082
6083         * tree-inline.c (tree_inlinable_function_p): Do not test
6084         DECL_REPLACEABLE_P.
6085         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
6086         update_callee_keys, cgraph_decide_inlining): Test function availability.
6087         * cif-code.def (OVERWRITABLE): New code.
6088
6089 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
6090             Jack Howarth  <howarth@bromo.med.uc.edu>
6091
6092         PR target/36502
6093         PR target/42313
6094         PR target/44651
6095         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
6096         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
6097         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
6098         MAX macro.
6099
6100 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6101
6102         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
6103         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
6104
6105 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6106
6107         * config.gcc: Don't append t-android for Android targets.
6108
6109         * config/t-android: Removed.
6110
6111 2010-09-07  Richard Henderson  <rth@redhat.com>
6112
6113         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
6114         * doc/tm.texi.in: Add doc marker.
6115         * doc/tm.texi: Rebuild.
6116         * except.c (switch_to_exception_section): Always build.
6117         (output_one_function_exception_table): Move section switch,
6118         personality output, and label output ...
6119         (output_function_exception_table): ... here.  Use the new
6120         personality hook.
6121
6122         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
6123         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
6124         TARGET_ASM_INIT_SECTIONS): New.
6125         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
6126         make static.
6127         (TARGET_ASM_UNWIND_EMIT): Update to match.
6128         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
6129
6130         * config/arm/arm.c (arm_asm_emit_except_personality): New.
6131         (arm_asm_init_sections): New.
6132         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
6133
6134 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6135
6136         * config/arm/arm.md: Remove unused variable.
6137
6138 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
6139
6140         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6141         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
6142         (m32r_memory_move_cost): New function.
6143
6144 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6145
6146         * config.gcc: Append t-android for Android targets.
6147
6148         * config/t-android: New.
6149
6150 2010-09-07  Richard Henderson  <rth@redhat.com>
6151
6152         * target.def (unwind_emit_before_insn): New hook.
6153         * doc/tm.texi.in: Add @hook marker for it.
6154         * doc/tm.texi: Rebuild.
6155         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
6156
6157 2010-09-07  Martin Jambor  <mjambor@suse.cz>
6158
6159         PR fortran/43665
6160         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
6161         are any type attributes.
6162
6163 2010-09-07  Jan Hubicka  <jh@suse.cz>
6164
6165         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
6166         array_ref_low_bound in string access folding.
6167
6168 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
6169
6170         PR target/45206
6171         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
6172         eh_return fixup sequence.
6173
6174 2010-09-07  Jan Hubicka  <jh@suse.cz>
6175
6176         * gimple-fold.c (maybe_fold_reference): Verify that operand is
6177         gimple_min_invariant.
6178
6179 2010-09-07  Richard Guenther  <rguenther@suse.de>
6180
6181         PR middle-end/45569
6182         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
6183         nor CONSTRUCTOR can trap.
6184         * tree-complex.c (update_complex_assignment): Update EH info.
6185
6186 2010-09-07  Richard Guenther  <rguenther@suse.de>
6187
6188         PR middle-end/45569
6189         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
6190         * passes.c (execute_function_todo): Do not verify anything if
6191         we saw errors.
6192
6193 2010-09-07  Richard Guenther  <rguenther@suse.de>
6194
6195         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
6196
6197 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
6198
6199         PR target/43137
6200         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
6201         New define_mode_attrs.
6202         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
6203         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
6204         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
6205         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
6206         Remove pool_range attribute.
6207         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
6208         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
6209         pool_range and neg_pool_range attributes.
6210         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
6211         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
6212         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
6213
6214 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6215
6216         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
6217         check glibc.
6218
6219 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
6220
6221         PR target/22152
6222         * config/i386/mmx.md (*mov<mode>_internal_rex64,
6223         *mov<mode>_internal_avx, *mov<mode>_internal,
6224         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
6225         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
6226
6227 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
6228
6229         * c-typeck.c (do_warn_double_promotion): Remove.
6230         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
6231         Objective-C++ too.
6232
6233 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
6234
6235         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
6236         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
6237         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
6238         argument type to reg_class_t. Change result type to bool.
6239         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6240
6241 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
6242
6243         PR libobjc/19850
6244         * gthr-posix.h (__gthread_objc_thread_detach): Use
6245         _objc_thread_attribs when detaching a thread.
6246         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
6247
6248 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6249
6250         PR target/45524
6251         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
6252         * configure: Regenerated.
6253
6254 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6255
6256         * combine.c (try_combine): Set subst_low_luid to i0.
6257
6258 2010-09-06  Richard Guenther  <rguenther@suse.de>
6259
6260         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
6261         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
6262         (build_aligned_type): Declare.
6263         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
6264         (check_aligned_type): New function.
6265         (build_aligned_type): Likewise.
6266         * expr.c (expand_assignment): Handle misaligned stores via
6267         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
6268         (expand_expr_real_1): Likewise.
6269         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
6270         * tree-vect-stmts.c (vectorizable_store): Do not build
6271         MISALIGNED_INDIRECT_REF but initialize alignment information.
6272         (vectorizable_load): Likewise.
6273         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
6274         handling.
6275         * cfgexpand.c (expand_debug_expr): Likewise.
6276         * dwarf2out.c (loc_list_from_tree): Likewise.
6277         * fold-const.c (maybe_lvalue_p): Likewise.
6278         (operand_equal_p): Likewise.
6279         (build_fold_addr_expr_with_type_loc): Likewise.
6280         * gimplify.c (gimplify_addr_expr): Likewise.
6281         (gimplify_expr): Likewise.
6282         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6283         (verify_gimple_assign_single): Likewise.
6284         * tree-dump.c (dequeue_and_dump): Likewise.
6285         (tree_could_trap_p): Likewise.
6286         * tree-predcom.c (ref_at_iteration): Likewise.
6287         * tree-pretty-print.c (dump_generic_node): Likewise.
6288         (op_code_prio): Likewise.
6289         (op_symbol_code): Likewise.
6290         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6291         * tree-ssa-loop-im.c (for_each_index): Likewise.
6292         (gen_lsm_tmp_name): Likewise.
6293         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6294         (find_interesting_uses_address): Likewise.
6295         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6296         * tree-ssa-operands.c (get_expr_operands): Likewise.
6297         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6298         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6299         (ao_ref_init_from_vn_reference): Likewise.
6300         * tree.c (staticp): Likewise.
6301         (build1_stat): Likewise.
6302         (reference_alias_ptr_type): Likewise.
6303         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6304         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
6305         MISALIGNED_INDIRECT_REF handling.
6306
6307 2010-09-06  Richard Guenther  <rguenther@suse.de>
6308
6309         PR tree-optimization/45534
6310         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
6311         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
6312         on the target.
6313         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
6314         valid on the target.
6315
6316 2010-09-06  Andreas Schwab  <schwab@redhat.com>
6317
6318         * configure.ac: Quote argument of AC_MSG_WARN.
6319         * configure: Regenerate.
6320
6321 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
6322
6323         * sel-sched.c (move_cond_jump): Correct arguments to
6324         maybe_tidy_empty_bb.
6325         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
6326
6327 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
6328
6329         PR rtl-optimization/44919
6330         * sel-sched.c (move_cond_jump): Remove assert, check that
6331         the several blocks case can only happen with mutually exclusive
6332         insns instead.  Rewrite the movement code to support moving through
6333         several basic blocks.
6334
6335 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
6336
6337         * config/i386/i386.md (iptrsize): New mode attribute.
6338         (tp_seg): Ditto.
6339         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
6340         mode iterator.
6341         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
6342         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
6343         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
6344         (stack_tls_protect_set_<mode>): Ditto from
6345         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
6346         of thread base pointer load.
6347         (stack_tls_protect_test_<mode>): Ditto from
6348         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
6349         of thread base pointer load.
6350         (stack_protect_set): Rewrite using indirect functions.
6351         (stack_protect_test): Ditto.
6352         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
6353         (ix86_print_operand): Handle '@'.
6354
6355 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
6356
6357         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
6358         MINUS_EXPR.
6359
6360 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
6361
6362         * doc/invoke.texi: Document -Wdouble-promotion.
6363         * c-typeck.c (convert_arguments): Check for implicit conversions
6364         from float to double.
6365         (do_warn_double_promotion): New function.
6366         (build_conditional_expr): Use it.
6367         (build_binary_op): Likewise.
6368
6369 2010-09-05  Richard Guenther  <rguenther@suse.de>
6370
6371         PR tree-optimization/45535
6372         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
6373         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
6374         dereferencing it.
6375         (indirect_refs_may_alias_p): Likewise.
6376
6377 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
6378
6379         * config/sh/sh.c (sh_option_override): Make static.
6380         Adjust comments.  Declare.
6381         (sh_function_value_regno_p): Likewise.
6382         (sh_register_move_cost): Modify the arguments, make static.
6383         Adjust comments.  Declare.
6384         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
6385         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6386         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
6387         REGISTER_MOVE_COST): Delete.
6388         * config/sh/sh-protos.h (sh_override_options): Delete.
6389         (sh_register_move_cost): Delete.
6390         (sh_function_value_regno_p): Delete.
6391
6392 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
6393
6394         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
6395         m32r_function_value_regno_p): New functions.
6396         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6397         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
6398         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
6399         FUNCTION_VALUE_REGNO_P): Remove.
6400
6401 2010-09-04  Jan Hubicka  <jh@suse.cz>
6402
6403         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
6404         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
6405         fold_read_from_constant_string.
6406
6407         * gimple.h (canonicalize_constructor_val): Declare.
6408         * gimple-fold.c (canonicalize_constructor_val): New function.
6409         (get_symbol_constant_value):Use it.
6410         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
6411
6412 2010-09-04  Jan Hubicka  <jh@suse.cz>
6413
6414         * tree-switch-conversion.c (build_one_array): Set constructor to be
6415         static.
6416         * varpool.c (varpool_finalize_decl): Compute const_value_known.
6417
6418 2010-09-04  Richard Guenther  <rguenther@suse.de>
6419
6420         PR bootstrap/45519
6421         * tree-flow.h (force_gimple_operand_1): Declare.
6422         (force_gimple_operand_gsi_1): Likewise.
6423         * gimplify.c (force_gimple_operand_1): New worker taking a
6424         gimple predicate for ...
6425         (force_gimple_operand): ... which now wraps it.
6426         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
6427         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
6428         last change.
6429         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
6430         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
6431         (create_mem_ref): Likewise.
6432
6433 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
6434
6435         * config/i386/predicates.md (sse_reg_operand): New predicate.
6436         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
6437         predicate for operand 1.
6438         (XFmode push splitter): Use fp_register_operand predicate
6439         for operand 1.
6440         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
6441         (SF-DF float_extend push splitter): Add reload_completed insn
6442         predicate.
6443         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
6444         MODEF mode macro.  Add reload_completed insn predicate.
6445
6446 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
6447
6448         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
6449         (struct df_extract_ref): Remove.
6450         (union df_ref_d): Remove extract_ref member.
6451         (df_ref_create): Remove last three arguments.
6452         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
6453         * df-scan.c (df_ref_record): Remove last three arguments, do not
6454         pass them to df_ref_create_structure.
6455         (df_uses_record): Remove first and last three arguments.  Replace
6456         first argument with DF_REF_REGULAR, adjust calls to remove the
6457         width, offset and mode.  Always call recursively on the second
6458         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
6459         (df_ref_create_structure): Remove first argument.
6460         (struct df_scan_problem_data): Remove ref_extract_pool.
6461         (df_scan_free_internal): Do not free it.
6462         (df_scan_alloc): Do not allocate it.
6463         (df_ref_create): Remove last three arguments, do not pass them to
6464         df_ref_create_structure.
6465         (df_free_ref): Remove DF_REF_EXTRACT case.
6466         (df_notes_rescan): Adjust call to df_uses_record.
6467         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
6468         Remove DF_REF_EXTRACT case.
6469         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
6470         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
6471         and SUBREG definitions.
6472         (df_get_conditional_uses): Remove references to width/offset/mode,
6473         adjust call to df_ref_create_structure.
6474         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
6475         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
6476         calls to df_uses_record and df_ref_record.
6477         * fwprop.c (update_df): Remove references to width/offset/mode,
6478         adjust call to df_ref_create.
6479
6480 2010-09-03  Jan Hubicka  <jh@suse.cz>
6481
6482         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
6483         (build_cdtor_fns): Update use of build_cdtor.
6484
6485 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
6486
6487         * doc/options.texi (SeparateAlias): Document.
6488         * opt-functions.awk (switch_flags): Handle SeparateAlias.
6489         * opth-gen.awk: Generate enumeration names for options marked
6490         SeparateAlias, but not for those marked Ignore.
6491         * opts-common.c (generate_canonical_option): Don't output separate
6492         argument for options marked CL_SEPARATE_ALIAS.
6493         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
6494         * opts.h (CL_SEPARATE_ALIAS): New.
6495         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6496         CL_COMMON): Adjust definitions.
6497         * config/i386/darwin.opt, config/mips/sde.opt: New.
6498         * common.opt (fdump-final-insns): New.
6499         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6500         i386/darwin.opt.
6501         (mips*-sde-elf*): Add mips/sde.opt.
6502         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
6503         -mno-data-in-code and -mcode-xonly here.
6504         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
6505         * gcc.c (option_map): Add "j" to --dump entry.
6506         (translate_options): Don't translate -d to -foutput-class-dir= here.
6507
6508 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
6509
6510         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
6511         DR_IS_WRITE.
6512         (compute_all_dependences): Same.
6513         (create_rdg_edge_for_ddr): Same.
6514         * tree-data-ref.h (DR_IS_WRITE): New.
6515         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
6516         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
6517         (write_memrefs_written_at_least_once): Same.
6518         * tree-predcom.c (suitable_component_p): Same.
6519         (determine_roots_comp): Same.
6520         (execute_load_motion): Same.
6521         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
6522         (vect_enhance_data_refs_alignment): Same.
6523         (vect_analyze_group_access): Same.
6524
6525 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
6526
6527         PR testsuite/42843
6528         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
6529         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
6530
6531 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
6532
6533         * dwarf2out.c (file scope): Remove #if0'd code.
6534         (gen_subprogram_die): Same.
6535
6536 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
6537
6538         PR middle-end/45484
6539         * dwarf2out.c (flush_queued_reg_saves): Rename to...
6540         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
6541         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
6542         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
6543         * config/i386/i386.c (output_set_got): Call it.
6544
6545 2010-09-03  Michael Matz  <matz@suse.de>
6546
6547         PR middle-end/45415
6548         * tree-sra.c (sra_modify_assign): If we modify the statement,
6549         say so.
6550
6551         * tree-ssa.c (verify_ssa): Check number of operands and links
6552         per statement to agree.
6553
6554 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
6555             Iain Sandoe  <iains@gcc.gnu.org>
6556
6557         PR target/45476
6558         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
6559         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
6560         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6561
6562 2010-09-03  Richard Guenther  <rguenther@suse.de>
6563
6564         * lto-streamer-out.c (output_function): Output function
6565         start and end loci.
6566         * lto-streamer-in.c (input_function): Input function start
6567         and end loci.
6568
6569 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6570
6571         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
6572         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
6573         * configure: Regenerate.
6574         * aclocal.m4: Regenerate.
6575
6576 2010-09-03  Jan Hubicka  <jh@suse.cz>
6577
6578         PR lto/44812
6579         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
6580         on functions/variables in other partition.
6581
6582 2010-09-03  Jan Hubicka  <jh@suse.cz>
6583
6584         * cgraph.h (struct varpool_node): Add const_value_known.
6585         (varpool_decide_const_value_known): Declare.
6586         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
6587         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
6588         (input_varpool_node): Restore const_value_known.
6589         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
6590         initializer folding.
6591         * ipa.c (ipa_discover_readonly_nonaddressable_var,
6592         function_and_variable_visibility): Compute const_value_known.
6593         * gimple-fold.c (get_symbol_constant_value): Use varpool for
6594         initializer folding.
6595         * varpool.c (varpool_decide_const_value_known): New function.
6596
6597 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
6598
6599         * config/i386/i386.md: Remove empty preparation statements
6600         from splitters.
6601
6602 2010-09-03  Jan Hubicka  <jh@suse.cz>
6603
6604         * passes.c (rest_of_decl_compilation): Do not add local vars into
6605         varpool.
6606         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
6607         static or extern vars are in varpool.
6608         (varpool_finalize_decl): Sanity check that only static vars are
6609         finalized.
6610
6611 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
6612
6613         PR debug/45500
6614         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
6615         not just generic vectors with BLKmode.
6616
6617 2010-09-03  Richard Guenther  <rguenther@suse.de>
6618
6619         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
6620         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
6621         * tree.h (TMR_SYMBOL): Remove.
6622         (TMR_BASE, TMR_OFFSET): Adjust.
6623         (TMR_INDEX2): New.
6624         * alias.c (ao_ref_from_mem): Use TMR_BASE.
6625         * builtins.c (get_object_alignment): Merge TMR_BASE and
6626         TMR_SYMBOL handling.
6627         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
6628         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
6629         handling.  Also allow TARGET_MEM_REF as base address.
6630         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
6631         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
6632         base.  Gimplify TMR_INDEX2.
6633         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
6634         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6635         (get_addr_base_and_unit_offset): Likewise.
6636         * tree-eh.c (tree_could_trap_p): Likewise.
6637         * tree-pretty-print.c (dump_generic_node): Likewise.
6638         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
6639         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
6640         base to index2.
6641         (get_address_description): Reconstruct addres description
6642         from merged TMR_BASE and TMR_INDEX2.
6643         (maybe_fold_tmr): Fold propagated addresses.
6644         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
6645         MEM_REF and TARGET_MEM_REF paths.
6646         (indirect_refs_may_alias_p): Likewise.
6647         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
6648         instead of TMR_SYMBOL.
6649         * tree-ssa-operands.c (get_tmr_operands): Simplify.
6650         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
6651         according to changes ...
6652         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
6653         Split TARGET_MEM_REF into two fields plus the base.
6654         * tree.c (mem_ref_offset): Simplify.
6655         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
6656         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
6657         Strip NOPs when folding MEM_REF addresses.
6658         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
6659         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
6660         (fold_gimple_assign): ... not here.
6661
6662 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
6663
6664         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
6665         * config/mips/mips.c (mips_shift_truncation_mask): New function.
6666         (TARGET_SHIFT_TRUNCATION_MASK): Define.
6667
6668 2010-09-02  Richard Henderson  <rth@redhat.com>
6669
6670         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
6671         instead of readelf in the test.
6672         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
6673         in the .debug_frame section for coff targets.
6674         * configure: Rebuild.
6675
6676 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
6677
6678         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
6679         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
6680         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6681         (m32c_class_likely_spilled_p): Make static. Change argument type to
6682         reg_class_t. Change result type to bool.
6683
6684 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6685
6686         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
6687         to convert (double)(long) into a single FRIZ instruction or not
6688         when -ffast-math is used.
6689
6690         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
6691         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
6692         or FRIZ instruction if -ffast-math.
6693         * config/rs6000/rs6000.md (friz): Ditto.
6694
6695         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
6696
6697 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
6698
6699         * opth-gen.awk (quote, comma): Remove unused variables.
6700
6701 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
6702
6703         * arm.c (arm_override_options): Correct fall-back code to use
6704         SUBTARGET_CPU_DEFAULT.
6705
6706 2010-09-02  Julian Brown  <julian@codesourcery.com>
6707
6708         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
6709         unspecs.
6710         (vcond<mode>, vcondu<mode>): New expanders.
6711         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
6712         comparisons with zero.
6713         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
6714         * config/arm/constraints.md (Dz): New constraint.
6715
6716 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
6717
6718         * target.def (class_likely_spilled_p): New hook.
6719         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
6720         * doc/tm.texi: Regenerate.
6721         * targhooks.c (default_class_likely_spilled_p): New function.
6722         * targhooks.h (default_class_likely_spilled_p): Declare.
6723         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
6724         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
6725         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
6726         Use fixed_reg_set instead of fixed_regs.
6727         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6728         * calls.c (avoid_likely_spilled_reg): Ditto.
6729         * ira-conflicts.c (ira_build_conflicts): Ditto.
6730         * ira.c (update_equiv_regs): Ditto.
6731         * mode-switching.c (create_pre_exit): Ditto.
6732         * regmove.c (find_matches): Ditto.
6733         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6734         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
6735         (small_register_class_p): New inline function.
6736         (push_secondary_reload, find_reusable_reload, find_reloads): Use
6737         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
6738
6739         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
6740         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
6741         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6742
6743 2010-09-02  Richard Guenther  <rguenther@suse.de>
6744
6745         PR tree-optimization/44937
6746         PR tree-optimization/45412
6747         * ipa-split.c (split_function): Properly remove PHI nodes.
6748
6749 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
6750
6751         * opts.h (struct cl_option): Add warn_message field.
6752         (struct cl_decoded_option): Add warn_message field.
6753         * doc/options.texi (Ignore, Warn): Document.
6754         * opt-functions.awk (needs_state_p): Don't consider aliases or
6755         ignored options to need state saved.
6756         * optc-gen.awk: Handle Warn and Ignore.
6757         * opth-gen.awk: Output OPT_SPECIAL_ignore.
6758         * opts-common.c (decode_cmdline_option): Set warn_message field.
6759         Handle ignored options.
6760         (decode_cmdline_options_to_array, generate_option,
6761         generate_option_input_file): Set warn_message field.
6762         (read_cmdline_option): Generate warnings from warn_message field.
6763         Handle ignored options.
6764         * common.opt (Wunreachable-code, fargument-alias,
6765         fargument-noalias, fargument-noalias-global,
6766         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
6767         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
6768         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
6769         ftree-salias): Mark Ignore.
6770         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
6771         -mintel-syntax and -mno-intel-syntax here.
6772         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
6773         using Warn.
6774         * opts.c (common_handle_option): Don't handle options marked as
6775         ignored.
6776         (enable_warning_as_error): Handle ignored options.
6777
6778 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
6779
6780         PR driver/44076
6781         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
6782         alias_target fields.
6783         * opt-functions.awk (opt_sanitized_name): Don't handle
6784         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
6785         * optc-gen.awk: Generate alias fields.
6786         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
6787         Don't generate such constants for aliases.
6788         * opts-common.c (generate_canonical_option): New.
6789         (decode_cmdline_option): Handle aliases.  Use
6790         generate_canonical_option for known options instead of copying the
6791         input option text.
6792         * doc/options.texi (Alias): Document.
6793         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
6794         fstack-check, specs): Mark as aliases.
6795         * gcc.c (driver_handle_option): Canonicalize -L options to joined
6796         arguments.
6797         (driver_handle_option): Don't handle OPT_specs.
6798         * opts.c (common_handle_option): Don't handle options marked as
6799         aliases.
6800         (enable_warning_as_error): Handle aliases.
6801         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
6802         OPT_Wlarger_than_eq.
6803         * tree-optimize.c (tree_rest_of_compilation): Use
6804         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
6805
6806 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
6807
6808         * config/i386/i386.md (nonmemory_operand): New mode attribute.
6809         (push memory peephole2): Macroize peepholes using SWI mode iterator.
6810         (move immediate to memory peephole2): Macroize peepholes using
6811         SWI124 mode iterator.
6812         (non-pairable NOT peephole2): Macroize peepholes using SWI124
6813         mode iterator.
6814         (simple lea add peephole2): Macroize peepholes using SWI48
6815         mode iterator.
6816         (simple lea mult peephole2): Ditto.
6817         (imul by 3,5,9 to lea peephole2): Ditto.
6818         (mov $-1, reg peephole2): Macroize peepholes using SWI248
6819         mode iterator.
6820         (imul $32bit_imm,mem,reg peephole2): Ditto.
6821         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
6822
6823 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
6824
6825         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
6826
6827 2010-09-02  Olivier Hainque  <hainque@adacore.com>
6828
6829         PR middle-end/44763
6830         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
6831         (allocno_priority_compare_func): Use it instead of a straight
6832         difference computation over priorities.
6833
6834 2010-09-02  Andi Kleen  <ak@linux.intel.com>
6835
6836         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
6837
6838 2010-09-02  Ira Rosen  <irar@il.ibm.com>
6839
6840         * tree-vectorizer.h (get_later_stmt): New function.
6841         (vect_analyze_data_ref_dependences): Add argument.
6842         * tree-vect-loop.c (vect_analyze_loop): Update call to
6843         vect_analyze_data_ref_dependences.
6844         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
6845         New function.
6846         (vect_analyze_data_ref_dependence): Add argument for basic block
6847         dependencies. Check dependencies in basic block vectorization.
6848         (vect_analyze_data_ref_dependences): Add argument and update call to
6849         vect_analyze_data_ref_dependences.
6850         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
6851         (vect_bb_vectorizable_with_dependencies): New.
6852         (vect_slp_analyze_bb): Check dependencies in basic block.
6853         (vect_schedule_slp_instance): Insert stores before the last store in
6854         SLP instance.
6855
6856 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
6857
6858         PR target/45476
6859         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
6860         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6861
6862 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
6863
6864         PR middle-end/45458
6865         * bb-reorder.c (add_labels_and_missing_jumps): Treat
6866         bbs ending with throwing insns like blocks ending with a call.
6867         (fix_up_fall_thru_edges): Likewise.
6868
6869 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
6870
6871         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
6872         (m32c_function_arg_advance): Delete.
6873         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6874         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
6875         comments.  Take a const_tree and a bool.  Declare.
6876         (m32c_function_arg_advance): Likewise.
6877         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6878
6879 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
6880
6881         PR target/45476
6882         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
6883         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
6884         * config/i386/mingw32.h: ... here.
6885
6886 2010-09-01  Andi Kleen  <ak@linux.intel.com>
6887
6888         PR lto/45475
6889         * lto-streamer-in.c (lto_input_ts_target_option): Add.
6890         (lto_input_tree_pointers): Call lto_input_ts_target_option.
6891         * lto-streamer-out (lto_output_ts_target_option): Add.
6892         (lto_output_tree_pointers): Call lto_output_ts_target_option.
6893
6894 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
6895
6896         PR/target 45452
6897         * config/i386/cygwin.h: Change order of specified import libraries.
6898         * config/i386/mingw32.h: Likewise.
6899         * config/i386/t-cygwin: Likewise.
6900         * config/i386/t-mingw32: Likewise.
6901         * config/i386/t-mingw-w32: Likewise.
6902         * config/i386/t-mingw-w64: Likewise.
6903
6904 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6905
6906         * config/arm/neon-schedgen.ml (core): New type.
6907         (allCores): List of supported cores.
6908         (availability_table): Add supported cores.
6909         (collate_bypasses): Accept core as a parameter.
6910         (worst_case_latencies_and_bypasses): Accept core as a parameter.
6911         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
6912         and coreStr to get tune attribute and prefix for functional units.
6913         (emit_bypasses): Accept core name and use it.
6914         (calculate_per_core_availability_table): New.
6915         (filter_core): New.
6916         (calculate_core_availability_table): New.
6917         (main): Use calculate_core_availablity_table.
6918         * config/arm/cortex-a8-neon.md: Update copyright year.
6919         Regenerated from ml file and merged in.
6920         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
6921         cortex_a8_neon_mrc.
6922
6923 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
6924
6925         * Makefile.in (tree-switch-conversion.o): Update dependencies.
6926
6927 2010-09-01  Richard Guenther  <rguenther@suse.de>
6928
6929         * alias.c (ao_ref_from_mem): Adjust.
6930         * builtins.c (get_object_alignment): Likewise.
6931         * cfgexpand.c (expand_debug_expr): Likewise.
6932         * gimple.c (get_base_address): Likewise.
6933         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6934         (get_addr_base_and_unit_offset): Likewise.  Fix for
6935         both TMR_SYMBOL and TMR_BASE being set.
6936         * tree-eh.c (tree_could_trap_p): Likewise.
6937         * gimplify.c (gimplify_expr): Do not attempt to gimplify
6938         TMR_SYMBOL.  Always gimplify TMR_BASE.
6939         * tree-cfg.c (verify_types_in_gimple_reference): Verify
6940         TMR_BASE if there is a TMR_SYMBOL.
6941         * tree-pretty-print.c (dump_generic_node): Adjust.
6942         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
6943         (tree_mem_ref_addr): Likewise.
6944         (create_mem_ref_raw): Likewise.
6945         (move_fixed_address_to_symbol): Likewise.
6946         (create_mem_ref): Likewise.
6947         (dump_mem_address): Likewise.
6948         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
6949         Fix for both TMR_SYMBOL and TMR_BASE being set.
6950         (indirect_refs_may_alias_p): Likewise.
6951         * tree-ssa-operands.c (get_tmr_operands): Adjust.
6952         * tree.def (TARGET_MEM_REF): Adjust documentation.
6953
6954 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
6955
6956         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
6957         Rename from X86_TUNE_ADD_ESP_4.
6958         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
6959         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
6960         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
6961         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
6962         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
6963         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
6964         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
6965         * config/i386/i386.c (initial_ix86_tune_features)
6966         <X86_TUNE_SINGLE_POP>: Invert members.
6967         <X86_TUNE_DOUBLE_POP>: Ditto.
6968         <X86_TUNE_SINGLE_PUSH>: Ditto.
6969         <X86_TUNE_DOUBLE_PUSH>: Ditto.
6970         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
6971         No longer exported.
6972         (push peephole2 patterns): Macroize peepholes using P mode iterator.
6973         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
6974         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
6975         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
6976
6977 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
6978
6979         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
6980         a volatile LHS if the constructor has only one element.
6981
6982 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
6983
6984         PR bootstrap/45321
6985         * tree.c (stdarg_p): Make fntype parameter const.
6986         * tree.h (stdarg_p): Likewise.
6987         (function_args_iterator): Remove unused fntype field.
6988         (function_args_iter_init): Do not initialize fntype
6989         field.  Make fntype parameter const.
6990
6991 2010-09-01  Richard Guenther  <rguenther@suse.de>
6992
6993         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
6994         estimate.
6995         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
6996         (execute_vrp): Compute number of iteration estimates.
6997         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
6998         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
6999         * tree-data-ref.c (estimated_loop_iterations): Adjust.
7000         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
7001         Infer loop bounds from undefined behavior based on a new parameter.
7002         (estimate_numbers_of_iterations): Likewise.
7003         (scev_probably_wraps_p): Adjust.
7004         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
7005
7006 2010-09-01  Nick Clifton  <nickc@redhat.com>
7007
7008         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
7009         where appropriate.
7010         (xstormy16_legitimate_address_p): Use true and false instead of 1
7011         and 0.
7012         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
7013         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
7014         magic constant 2.
7015         (xstormy16_expand_call): Fix comment at start of function.
7016
7017 2010-09-01  Nick Clifton  <nickc@redhat.com>
7018
7019         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
7020         when pushing accumulator register.
7021         (rx_get_stack_layout): Always save call clobbered registers inside
7022         interrupt handlers.
7023         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
7024
7025 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
7026
7027         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
7028         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
7029
7030         * libgcc-std.ver (GCC_4.6.0): Define version.
7031
7032 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
7033
7034         * tree-nested.c (convert_all_function_calls): Iterate until after the
7035         sum of static chains in the nest doesn't change.
7036
7037 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
7038
7039         * config/m32c/m32c.c (classes_intersect): Remove.
7040         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
7041         reg_classes_intersect_p instead of classes_intersect.
7042         (class_can_hold_mode): Change arguments type from enum reg_class to
7043         reg_class_t.  Use reg_class_contents instead of class_contents.
7044         (m32c_register_move_cost): Make static. Change arguments type from
7045         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
7046         classes_intersect. Use reg_class_contents instead of class_contents.
7047         (m32c_memory_move_cost): Make static. Change arguments type from
7048         enum reg_class to reg_class_t.
7049         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7050         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7051         * config/m32c/m32c-protos.h (m32c_register_move_cost,
7052         m32c_memory_move_cost): Remove.
7053
7054 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
7055
7056         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
7057         (arm_function_arg): Delete.
7058         (arm_needs_doubleword_align): Take a const_tree.
7059         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7060         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
7061         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
7062         (arm_function_arg): Make static.  Take a const_tree and a bool.
7063         (arm_function_arg_advance): Likewise.
7064         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7065
7066 2010-08-31  Andi Kleen  <ak@linux.intel.com>
7067
7068         * common.opt (fwhopr=): Update for -fwhopr=jobserver
7069         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
7070         * lto-wrapper.c (run_gcc): Add jobserver mode.
7071         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
7072         argument.
7073
7074 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
7075
7076         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
7077         (popsi1): Ditto.
7078         (*popdi1_epilogue): Ditto.
7079         (*popsi1_epilogue): Ditto.
7080         (popsi, popdi peephole2 patterns): Update peepholes for changed
7081         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
7082
7083         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
7084         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
7085
7086         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
7087         (override_options): Do not initialize removed ix86_gen_pop1.
7088         (gen_pop): New static function.
7089         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
7090         (release_scratch_register_on_entry): Ditto.
7091         (ix86_restore_reg_using_pop): Ditto.
7092         (ix86_expand_epilogue): Ditto.
7093
7094 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
7095
7096         PR middle-end/45461
7097         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
7098
7099 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
7100
7101         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
7102         semicolons.
7103
7104 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7105
7106         * doc/extend.texi: Fix documentation of the return value of
7107         __builtin_choose_expr.
7108
7109 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
7110
7111         * config/v850/v850-protos.h (function_arg): Delete.
7112         * config/v850/v850.h (FUNCTION_ARG): Delete.
7113         (FUNCTION_ARG_ADVANCE): Move code to...
7114         * config/v850/v850.c (v850_function_arg_advance): ...here.
7115         (v850_function_arg): Make static.  Take a const_tree and a bool.
7116         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7117
7118 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
7119
7120         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
7121         these...
7122         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
7123         ...and these...
7124         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
7125         ..to here..
7126         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
7127         ...and here.
7128         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7129
7130 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
7131
7132         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
7133         Delete.
7134         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7135         * config/rx/rx.c (rx_function_arg_size): Make static.
7136         (rx_function_arg): Likewise.
7137         (rx_function_arg_advance): New function.
7138         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7139
7140 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
7141
7142         * config/arm/arm.c (arm_override_options): Remove superfluous test.
7143         Fix indentation.
7144
7145 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
7146
7147         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
7148         (dwarf2out_decl) <CONST_DECL>: Likewise.
7149
7150 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
7151
7152         Stack usage support
7153         * common.opt (-fstack-usage): New option.
7154         * doc/invoke.texi (Debugging options): Document it.
7155         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
7156         allocate_dynamic_stack_space.
7157         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
7158         and propagate it to allocate_dynamic_stack_space.
7159         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
7160         * calls.c (initialize_argument_information): Pass TRUE as 4th
7161         argument to allocate_dynamic_stack_space.
7162         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
7163         to 1 when pushing a variable-sized argument onto the stack.  Pass
7164         TRUE as 4th argument to allocate_dynamic_stack_space.
7165         Update current_function_pushed_stack_size.
7166         (emit_library_call_value_1): Likewise.
7167         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
7168         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
7169         attempt to find an upper bound.  Remove redundant code for the
7170         SETJMP_VIA_SAVE_AREA case.
7171         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
7172         * function.h (struct stack_usage): New structure.
7173         (current_function_static_stack_size): New macro.
7174         (current_function_dynamic_stack_size): Likewise.
7175         (current_function_pushed_stack_size): Likewise.
7176         (current_function_dynamic_alloc_count): Likewise.
7177         (current_function_has_unbounded_dynamic_stack_size): Likewise.
7178         (current_function_allocates_dynamic_stack_space): Likewise.
7179         (struct function): Add new field 'su'.
7180         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
7181         add the value of the dynamic offset to the dynamic stack usage.
7182         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
7183         for variable-sized objects.
7184         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
7185         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
7186         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
7187         BUILT_IN_ALLOCA for variable-sized objects.
7188         * output.h (output_stack_usage): Declare.
7189         * toplev.c (stack_usage_file): New file pointer.
7190         (output_stack_usage): New function.
7191         (open_auxiliary_file): Likewise.
7192         (lang_dependent_init): Open file if flag_stack_usage is set.
7193         (finalize): Close file if stack_usage_file is not null.
7194         * tree.h (ALLOCA_FOR_VAR_P): New macro.
7195         * config/alpha/alpha.c (compute_frame_size): New function.
7196         (alpha_expand_prologue): Use it.
7197         (alpha_start_function): Likewise.
7198         (alpha_expand_epilogue): Likewise.  Set stack usage info.
7199         * config/i386/i386.c (ix86_expand_prologue): Likewise.
7200         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7201         * config/mips/mips.c (mips_expand_prologue): Likewise.
7202         * config/pa/pa.c (hppa_expand_prologue): Likewise.
7203         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7204         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7205
7206 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
7207
7208         PR tree-optimization/45427
7209         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
7210         Handle the case that the exit is never taken correctly.
7211         (number_of_iterations_ne): Pass exit_must_be_taken to
7212         number_of_iterations_ne_max.
7213
7214 2010-08-30  Catherine Moore  <clm@codesourcery.com>
7215
7216         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
7217         Infer -mdspr2 for the the 74K.
7218
7219 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
7220
7221         PR debug/45419
7222         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
7223
7224         PR middle-end/45423
7225         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
7226         and TRUTH_{AND,OR,XOR}_EXPR.
7227         * c-parser.c (c_parser_omp_atomic): Handle boolean
7228         {PRE,POST}_{INC,DEC}REMENT.
7229
7230 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
7231
7232         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
7233         (function_arg): Delete.
7234         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7235         (FUNCTION_INCOMING_ARG): Delete.
7236         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
7237         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
7238         and a bool.
7239         (function_arg): Rename to...
7240         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
7241         a bool.
7242         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
7243         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7244         (TARGET_FUNCTION_INCOMING_ARG): Define.
7245
7246 2010-08-30  Richard Guenther  <rguenther@suse.de>
7247
7248         PR tree-optimization/21602
7249         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
7250         using points-to information.
7251
7252 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
7253
7254         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
7255
7256 2010-08-30  Richard Guenther  <rguenther@suse.de>
7257
7258         PR tree-optimization/45449
7259         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
7260         variables.
7261
7262 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
7263
7264         * opts.h (CL_ERR_NEGATIVE): Define.
7265         * opts.c (unknown_option_callback): Don't postpone warnings for
7266         options marked with CL_ERR_NEGATIVE.
7267         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
7268         for negative versions of CL_REJECT_NEGATIVE options.
7269
7270 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
7271
7272         * config/i386/i386.md (zero_extendsidi2_1): Rename from
7273         zero_extendsidi2_32.
7274         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
7275         using SWI12 mode iterator.
7276         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
7277         to define_insn_and_split pattern.
7278         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
7279         using SWI24 mode iterator.
7280         (*zero_extendqi<mode>2_and): Macroize insn from
7281         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
7282         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
7283         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
7284         SWI24 mode iterator.
7285         (*zero_extendqi<mode>2_movzbl): Ditto from
7286         *zero_extendqi{hi,si}2_movzbl.
7287         (extendsidi2_1): Rename from extendsidi2_32.
7288         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
7289         SWI12 mode iterator.
7290
7291 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
7292
7293         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
7294         general purpose registers.
7295         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
7296         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
7297         with general purpose registers and memory operands.  Add associated
7298         CCImode post-reload splitter.
7299         * config/ia64/div.md: Change BImode to CCImode throughout.
7300
7301 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
7302
7303         * config/ia64/ia64.md (cstorebi4): Fix thinko.
7304
7305 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
7306
7307         * config/picochip/picochip.c (reorder_var_tracking_notes): This
7308         function was dropping debug insns which caused PR45299.
7309
7310 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
7311
7312         * config/i386/sse.md (extsuffix): New code attribute.
7313         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
7314         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
7315         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
7316         and sse4_1_zero_extendv4qiv4si2.
7317         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
7318         and sse4_1_zero_extendv2qiv2di2.
7319         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
7320         and sse4_1_zero_extendv4hiv4si2.
7321         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
7322         and sse4_1_zero_extendv2hiv2di2.
7323         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
7324         and sse4_1_zero_extendv2siv2di2
7325
7326         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
7327         using any_extend code iterator.
7328         (*avx_<s>mulv8hi3_highpart): Macroize insn from
7329         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
7330         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
7331
7332         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
7333         gen_sse4_1_sign_extend* functions.
7334         (struct builtin_description bdesc_args): Ditto.
7335
7336 2010-08-27  Xinliang David Li  <davidxl@google.com>
7337
7338         PR/45422
7339         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
7340         (iv_ca_set_no_cp): Update used inv expr count.
7341         (iv_ca_set_cp): Ditto.
7342         (iv_ca_new): Initialize new member.
7343         (iv_ca_free): Free memory.
7344
7345 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
7346
7347         * config/sh/sh-protos.h (sh_function_arg): Delete.
7348         (sh_function_arg_advance): Delete.
7349         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7350         (PASS_IN_REG_P): Eliminate cast.
7351         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
7352         const_tree and a bool.
7353         (sh_function_arg): Likewise.
7354         (sh_output_mi_thunk): Call sh_function_arg_advance) and
7355         sh_function_arg.
7356         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7357
7358 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
7359             Kaz Kojima  <kkojima@gcc.gnu.org>
7360
7361         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
7362         when possible.
7363         (sh_expand_epilogue): Likewise.
7364         * config/sh/sh.md (movml_push_banked): New insn.
7365         (movml_pop_banked): Likewise.
7366
7367 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
7368
7369         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
7370         gen_regexp_oneof, gen_regexp_sequence): Use the string found
7371         in vector element 0 rather than the original string when there's
7372         only one element.
7373         (gen_regexp): Remove extra semicolon.
7374
7375         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
7376         thumb2_movsf_vfp): Set attribute "insn".
7377         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
7378         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
7379         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
7380         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
7381         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
7382         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
7383         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
7384         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
7385         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
7386         if_not_arith, if_arith_not, cond_move_not): Likewise.
7387
7388 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7389
7390         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
7391         New declaration.
7392         (rs6000_allocate_stack_temp): Ditto.
7393         (rs6000_expand_convert_si_to_sfdf): Ditto.
7394
7395         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
7396         line.  Update the options set if power6 or power7 server/embedded
7397         type options are used.  If we give a warning for no vsx under
7398         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
7399         (rs6000_allocate_stack_temp): New function to allocate a stack
7400         tempoary and adjust the address so it meets either REG+OFFSET or
7401         REG+REG addressing requirements.
7402         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
7403         that they can be used with the LFIWAX/LFIWZX instrucitons.
7404         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
7405         converting signed/unsigned SImode to either SFmode/DFmode.
7406
7407         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
7408         whether certain instructions can be generated.
7409         (TARGET_FCTIDZ): Ditto.
7410         (TARGET_STFIWX): Ditto.
7411         (TARGET_LFIWAX): Ditto.
7412         (TARGET_LFIWZX): Ditto.
7413         (TARGET_FCFIDS): Ditto.
7414         (TARGET_FCFIDU): Ditto.
7415         (TARGET_FCFIDUS): Ditto.
7416         (TARGET_FCTIDUZ): Ditto.
7417         (TARGET_FCTIWUZ): Ditto.
7418
7419         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
7420         (UNSPEC_FCTID): Ditto.
7421         (UNSPEC_LFIWAX): Ditto.
7422         (UNSPEC_LFIWZX): Ditto.
7423         (UNSPEC_FCTIWUZ): Ditto.
7424         (rreg): Use correct constraints.
7425         (SI_CONVERT_FP): New mode attribute for floating point conversion
7426         tests.
7427         (E500_CONVERT): Ditto.
7428         (lfiwax): New insns for converting from integer to floating point
7429         utilizing newer instructions.  Attempt to optimize conversions
7430         that come from memory so that we don't load the value into a GPR,
7431         spill it to the stack and reload it into a FPR.
7432         (floatsi<mode>2_lfiwax): Ditto.
7433         (floatsi<mode>2_lfiwax_mem): Ditto.
7434         (floatsi<mode>2_lfiwax_mem2): Ditto.
7435         (lfiwzx): Ditto.
7436         (floatunssi<mode>2_lfiwzx): Ditto.
7437         (floatunssi<mode>2_lfiwzx_mem): Ditto.
7438         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
7439         (floatdidf2_mem): Ditto.
7440         (floatunsdidf2_fcfidu): Ditto.
7441         (floatunsdidf2_mem): Ditto.
7442         (floatunsdisf2): Ditto.
7443         (floatunsdisf2_fcfidus): Ditto.
7444         (floatunsdisf2_mem): Ditto.
7445         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
7446         Use FCFID on 32-bit hosts that support it.
7447         (floatsidf2_internal): Ditto.
7448         (floatunssisf2): Ditto.
7449         (floatunssidf2): Ditto.
7450         (floatunssidf2_internal): Ditto.
7451         (floatsisf2): Ditto.
7452         (floatdidf2): Ditto.
7453         (floatdidf2_fpr): Ditto.
7454         (floatunsdidf2): Ditto.
7455         (floatdisf2): Ditto.
7456         (floatdisf2_fcfids): Ditto.
7457         (floatdisf2_internal1): Ditto.
7458         (fixuns_truncsfsi2): Delete, merge into common pattern for both
7459         SF/DF.  Add power7 support.
7460         (fix_truncsfsi2): Ditto.
7461         (fixuns_truncdfsi2): Ditto.
7462         (fixuns_truncdfdi2): Ditto.
7463         (fix_truncdfsi2): Ditto.
7464         (fix_truncdfsi2_internal): Ditto.
7465         (fix_truncdfsi2_internal_gfxopt): Ditto.
7466         (fix_truncdfsi2_mfpgpr): Ditto.
7467         (fctiwz): Ditto.
7468         (btruncdf2): Ditto.
7469         (btruncdf2_fpr): Ditto.
7470         (btructsf2): Ditto.
7471         (ceildf2): Ditto.
7472         (ceildf2_fpr): Ditto.
7473         (ceilsf2): Ditto.
7474         (floordf2): Ditto.
7475         (floordf2_fpr): Ditto.
7476         (floorsf2): Ditto.
7477         (rounddf2): Ditto.
7478         (rounddf2_fpr): Ditto.
7479         (roundsf2): Ditto.
7480         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
7481         (fix_trunc<mode>di2): Ditto.
7482         (fixuns_trunc<mode>si2): Ditto.
7483         (fixuns_trunc<mode>di2): Ditto.
7484         (fctiwz_<mode>): Ditto.
7485         (btrunc<mode>2): Ditto.
7486         (btrunc<mode>2_fpr): Ditto.
7487         (ceil<mode>2): Ditto.
7488         (ceil<mode>2_fpr): Ditto.
7489         (floor<mode>2): Ditto.
7490         (float<mode>2_fpr): Ditto.
7491         (round<mode>2): Ditto.
7492         (round<mode>2_fpr): Ditto.
7493         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
7494         (fixuns_trunc<mode>si2_stfiwx): Ditto.
7495         (fix_truncdfsi2_internal): Ditto.
7496         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
7497         converted value on stack, loaded into GPR, and then stored into
7498         the final destination.
7499         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
7500         FCTIDZ.
7501         (lrint<mode>di2): New insn, provide the lrint builtin functions.
7502         (ftruncdf2): Delete, unused.
7503         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
7504
7505         * config/rs6000/vsx.md (toplevel): Update copyright year.
7506         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
7507         (VSr3): Ditto.
7508
7509 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
7510             Jeremie Salvucci  <jeremie.salvucci@free.fr>
7511
7512         * gengtype.c (output_type_enum): Test the right union member.
7513
7514 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
7515
7516         PR target/41484
7517         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
7518         operands for operand 1.
7519         (sse4_1_extendv4qiv4si2): Ditto.
7520         (sse4_1_extendv2qiv2di2): Ditto.
7521         (sse4_1_extendv4hiv4si2): Ditto.
7522         (sse4_1_extendv2hiv2di2): Ditto.
7523         (sse4_1_extendv2siv2di2): Ditto.
7524         (sse4_1_zero_extendv8qiv8hi2): Ditto.
7525         (sse4_1_zero_extendv4qiv4si2): Ditto.
7526         (sse4_1_zero_extendv2qiv2di2): Ditto.
7527         (sse4_1_zero_extendv4hiv4si2): Ditto.
7528         (sse4_1_zero_extendv2hiv2di2): Ditto.
7529         (sse4_1_zero_extendv2siv2di2): Ditto.
7530         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
7531         (*sse4_1_extendv4qiv4si2): Ditto.
7532         (*sse4_1_extendv2qiv2di2): Ditto.
7533         (*sse4_1_extendv4hiv4si2): Ditto.
7534         (*sse4_1_extendv2hiv2di2): Ditto.
7535         (*sse4_1_extendv2siv2di2): Ditto.
7536         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
7537         (*sse4_1_zero_extendv4qiv4si2): Ditto.
7538         (*sse4_1_zero_extendv2qiv2di2): Ditto.
7539         (*sse4_1_zero_extendv4hiv4si2): Ditto.
7540         (*sse4_1_zero_extendv2hiv2di2): Ditto.
7541         (*sse4_1_zero_extendv2siv2di2): Ditto.
7542
7543 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
7544
7545         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
7546         (mips_function_arg): Delete.
7547         (mips_function_arg_boundary): Take a const_tree.
7548         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
7549         (mips_arg_info): Likewise.
7550         (mips_setup_incoming_varargs): Call mips_function_arg_advance
7551         instead of FUNCTION_ARG_ADVANCE.
7552         (mips_function_arg_advance): Adjust prototype.  Make static.
7553         (mips_function_arg): Likewise.
7554         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7555         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
7556
7557 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
7558
7559         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7560         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
7561         (function_arg): Delete.
7562         (function_arg_boundary): Take a const_tree.
7563         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
7564         (rs6000_spe_function_arg): Likewise.
7565         (rs6000_parm_start): Likewise.
7566         (rs6000_arg_size): Likewise.
7567         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
7568         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
7569         (rs6000_mixed_function_arg): Likewise.
7570         (function_arg): Rename to...
7571         (rs6000_function_arg): ...this.
7572         (function_arg_advance): Rename to...
7573         (rs6000_function_arg_advance_1): ...this
7574         (rs6000_function_arg_advance): New function.  Call it.
7575         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
7576         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
7577         (rs6000_function_value): Likewise.
7578         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7579
7580 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7581
7582         * config/arm/arm.md (enabled): Test the value of arch_enabled
7583         rather than just using it.
7584
7585 2010-08-27  Olivier Hainque  <hainque@adacore.com>
7586             Eric Botcazou  <ebotcazou@adacore.com>
7587
7588         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
7589         cover all the possible offsets from this base.
7590         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
7591
7592 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
7593
7594         PR tree-optimization/44485
7595         * calls.c (flags_from_decl_or_type): For const or pure
7596         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
7597         together with ECF_CONST resp. ECF_PURE.
7598         * builtins.c (expand_builtin): Use flags_from_decl_or_type
7599         instead of querying flags directly.
7600         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
7601         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
7602
7603 2010-08-26  Richard Guenther  <rguenther@suse.de>
7604
7605         PR tree-optimization/45255
7606         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
7607         and externals are also invariant.
7608
7609 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
7610
7611         PR rtl-optimization/44858
7612         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
7613         newi2pat, make sure they don't affect newpat.
7614
7615         PR rtl-optimization/45400
7616         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
7617         SUBREG_REG if both modes are of MODE_INT class.
7618
7619 2010-08-25  Julian Brown  <julian@codesourcery.com>
7620
7621         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
7622         * config/arm/arm.md (generic_sched): No for Cortex-A5.
7623         (generic_vfp): Likewise.
7624         (cortex-a5.md): Include.
7625         * config/arm/cortex-a5.md: New.
7626
7627 2010-08-25  Richard Guenther  <rguenther@suse.de>
7628
7629         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
7630         * gimple.c (gimple_get_alias_set): Remove special handling
7631         for pointers.
7632
7633 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
7634
7635         PR middle-end/45355
7636         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
7637         dead_or_set_p when computing i0_feeds_i2_n.
7638
7639         * combine.c (find_split_point): Undo canonicalization of multiply-add
7640         to (minus x (mult)) when it seems likely that this will increase the
7641         chances of a split.
7642
7643 2010-08-25  Richard Guenther  <rguenther@suse.de>
7644
7645         PR lto/44562
7646         * lto-streamer.c (lto_record_common_node): Do not mess with
7647         TYPE_CANONICAL when not in lto.
7648         * gimple.c (gimple_register_type): Likewise.
7649
7650 2010-08-25  Richard Guenther  <rguenther@suse.de>
7651
7652         PR tree-optimization/45316
7653         * tree-ssa-pre.c (eliminate): Properly clean EH info.
7654
7655 2010-08-25  Richard Guenther  <rguenther@suse.de>
7656
7657         PR tree-optimization/45393
7658         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
7659         and clean EH info.  Avoid SSA update.
7660         (execute_cse_sincos): Cleanup the CFG if it has changed.
7661
7662 2010-08-25  Richard Guenther  <rguenther@suse.de>
7663
7664         PR middle-end/45379
7665         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
7666         TARGET_MEM_REF in alignment computation.
7667
7668 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
7669
7670         PR tree-optimization/45059
7671         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
7672         type conversions from newop{1,2}.  Assert t is a comparison and
7673         newop{1,2} after the stripping are gimple vals.
7674
7675 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
7676
7677         * config/arm/iterators.md (VU, SE, V_widen_l): New.
7678         (V_unpack, US): New.
7679         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
7680         (vec_unpack<US>_lo_<mode>): Likewise.
7681         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
7682         (neon_vec_unpack<US>_lo_<mode>): Likewise.
7683         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
7684         (vec_widen_<US>mult_hi_<mode>): Likewise.
7685         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
7686         (neon_vec_<US>mult_hi_<mode>"): Likewise.
7687         (neon_unpack<US>_<mode>): Widening move intermediate step for
7688         vectorizing without -mvectorize-with-neon-quad.
7689         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
7690         for vectorizing without -mvectorize-with-neon-quad.
7691         * config/arm/predicates.md (vect_par_constant_high): Check for
7692         high-half lanes of a vector.
7693         (vect_par_constant_low): Check for low-half lanes of a vector.
7694
7695 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
7696
7697         * tree-if-conv.c (struct ifc_dr): New.
7698         (IFC_DR): New.
7699         (DR_WRITTEN_AT_LEAST_ONCE): New.
7700         (DR_RW_UNCONDITIONALLY): New.
7701         (memref_read_or_written_unconditionally): Use the cached values
7702         when possible.
7703         (write_memref_written_at_least_once): Same.
7704         (if_convertible_loop_p): Initialize and free DR->aux fields.
7705
7706 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
7707
7708         * gimple.c (gimple_could_trap_p_1): Not static anymore.
7709         Pass an extra bool parameter include_mem.
7710         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
7711         (gimple_assign_rhs_could_trap_p): Same.
7712         * gimple.h (gimple_could_trap_p_1): Declared.
7713         * tree-data-ref.h (same_data_refs_base_objects): New.
7714         (same_data_refs): New.
7715         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
7716         (write_memrefs_written_at_least_once): New.
7717         (ifcvt_memrefs_wont_trap): New.
7718         (operations_could_trap): New.
7719         (ifcvt_could_trap_p): New.
7720         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
7721         Gets a vector of data refs.
7722         (if_convertible_stmt_p): Same.
7723         (if_convertible_loop_p_1): New.
7724         (if_convertible_loop_p): Call if_convertible_loop_p_1.
7725
7726 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
7727
7728         * common.opt (ftree-loop-if-convert-stores): New flag.
7729         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
7730         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
7731         the created statement before GSI.
7732         (if_convertible_phi_p): Allow virtual phi nodes when
7733         flag_loop_if_convert_stores is set.
7734         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
7735         Do not handle types that do not match is_gimple_reg_type.
7736         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
7737         when flag_loop_if_convert_stores is set, as LHS can contain
7738         memory refs.
7739         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
7740         to if_convertible_gimple_assign_stmt_p.
7741         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
7742         (replace_phi_with_cond_gimple_assign_stmt): Renamed
7743         predicate_scalar_phi.  Do not handle virtual phi nodes.
7744         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
7745         Call predicate_scalar_phi.
7746         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
7747         just after the labels for flag_loop_if_convert_stores, otherwise
7748         insert the predicate in the end of the BB.
7749         (predicate_mem_writes): New.
7750         (combine_blocks): Call predicate_all_scalar_phis.  When
7751         flag_loop_if_convert_stores is set, call predicate_mem_writes.
7752         (tree_if_conversion): Call mark_sym_for_renaming when
7753         flag_loop_if_convert_stores is set.
7754         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
7755         flag_loop_if_convert_stores is set.
7756
7757 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
7758
7759         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
7760         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
7761         (pa_function_value): Make static.
7762         (override_options): Rename to...
7763         (pa_option_override): ...this. Make static.
7764         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
7765         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
7766         TARGET_OPTION_OVERRIDE): Define.
7767         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
7768         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
7769         Remove.
7770         * config/pa/pa-protos.h (override_options): Remove.
7771
7772 2010-08-24  Richard Guenther  <rguenther@suse.de>
7773
7774         PR middle-end/45379
7775         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
7776         if addr->index is NULL or zero.
7777         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
7778         TARGET_MEM_REF more properly.
7779         (indirect_ref_may_alias_decl_p): Likewise.
7780         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
7781         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
7782
7783 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
7784
7785         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
7786         (m32c_override_options): Rename to...
7787         (m32c_option_override): ...this. Make static.
7788         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
7789         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
7790         Remove.
7791         * config/m32c/m32c-protos.h (m32c_override_options,
7792         m32c_function_value_regno_p): Remove.
7793
7794 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
7795
7796         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
7797         Fix a typo in a previous commit.
7798
7799 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
7800
7801         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
7802         Pre-initialize innerloop_iters to one.
7803
7804 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
7805
7806         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
7807         existing static function global.
7808
7809         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
7810         is changed to global.
7811
7812         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
7813         may_be_nonaddressable_p on base, and don't collect this reference
7814         if the address of the base could not be taken.
7815
7816 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7817
7818         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
7819         enable the compiler to autovectorize mathmetical functions for
7820         power7 using the Mathematical Acceleration Subsystem library.
7821
7822         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
7823         handle which vector math library we have.
7824         (rs6000_override_options): Add -mveclibabi=mass support.
7825         (rs6000_builtin_vectorized_libmass): New function to handle auto
7826         vectorizing math functions that are in the MASS library.
7827         (rs6000_builtin_vectorized_function): Call it.
7828
7829         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7830         -mveclibabi=mass.
7831
7832 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7833
7834         PR boehm-gc/34544
7835         * gthr-posix.h (__gthread_active_init): Delete.
7836         (__gthread_active_p): Do activity check here.
7837         Don't include errno.h on hppa-hpux.  Update comment.
7838         * gthr-posix95.h (__gthread_active_init): Delete.
7839         (__gthread_active_p): Do activity check here.
7840         Don't include errno.h on hppa-hpux.  Update comment.
7841         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
7842         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
7843         add -lpthread when -mt or -pthread is specified.
7844         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
7845         (LINK_GCC_C_SEQUENCE_SPEC): Define.
7846         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
7847         (stublib.c, pthread_default_stacksize_np-stub.o,
7848         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
7849         $(T)libgcc_stub.a): Add methods.
7850         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
7851         (stublib.c, pthread_default_stacksize_np-stub.o,
7852         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
7853         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7854         pthread_mutex_unlock): New stubs.
7855
7856 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
7857
7858         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
7859         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
7860         options.
7861         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
7862         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
7863         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
7864         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
7865         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
7866         "-l".
7867         * cppspec.c: Include opts.h.
7868         (lang_specific_driver): Use cl_decoded_option structures.
7869         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
7870         * doc/tm.texi: Regenerate.
7871         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
7872         (driver_handle_option): Allow driver options needing no special
7873         processing.
7874         (process_command): Decode options before call to
7875         lang_specific_driver.  Pass decoded options to
7876         lang_specific_driver.
7877         * gcc.h (lang_specific_driver): Update prototype.
7878         * gccspec.c: Include opts.h.
7879         (lang_specific_driver): Use cl_decoded_option structures.
7880         * opts-common.c (option_ok_for_language, generate_option,
7881         generate_option_input_file): New.
7882         (decode_cmdline_option): Use option_ok_for_language.
7883         (decode_cmdline_options_to_array): Use generate_option_input_file.
7884         (handle_generated_option): Use generate_option.
7885         * opts.h (generate_option, generate_option_input_file): Declare.
7886
7887 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
7888
7889         * config/mips/mips.c (mips_override_options): Rename to...
7890         (mips_option_override): ...this. Make static.
7891         (TARGET_OPTION_OVERRIDE): Define.
7892         (mips_in_small_data_p): Update comment.
7893         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
7894         (FIXED_REGISTERS): Update comment.
7895         * config/mips/mips-protos.h (mips_override_options): Remove.
7896
7897 2010-08-21  Olivier Hainque  <hainque@adacore.com>
7898
7899         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
7900
7901 2010-08-21  Olivier Hainque  <hainque@adacore.com>
7902
7903         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
7904         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
7905
7906 2010-08-20  Jan Hubicka  <jh@suse.cz>
7907
7908         * tree-pass.h (pass_ipa_cdtor_merge): New function.
7909         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
7910         heap allocated.
7911         (record_cdtor_fn): Move to ipa.c; do not test for
7912         have_ctors_dtors.
7913         (build_cdtor): Move to ipa.c; add code avoiding construction
7914         when target have ctors/dtors and there is only one ctor/dtor at given
7915         priority.
7916         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
7917         sort; reverse order of constructors.
7918         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
7919         (cgraph_finalize_function): Do not call record_cdtor_fn.
7920         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
7921         (cgraph_build_static_cdtor): Move to ipa.c.
7922         * ipa.c: Include target.h and tree-iterator.h.
7923         (cgraph_build_static_cdtor, static_ctors, static_dtors,
7924         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
7925         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
7926         pass_ipa_cdtor_merge): New.
7927         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
7928         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
7929         bounds access.
7930
7931 2010-08-20  Jan Hubicka  <jh@suse.cz>
7932
7933         PR c++/45307
7934         PR c++/17736
7935         * cgraph.h (cgraph_only_called_directly_p,
7936         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
7937         static cdtors.
7938         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
7939         are not needed.
7940         (cgraph_finalize_function): Static cdtors are reachable.
7941         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
7942
7943 2010-08-20  Jan Hubicka  <jh@suse.cz>
7944
7945         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
7946         flag_wpa.
7947         * lto-streamer-out.c (lto_output): Likewise.
7948         * passes.c (ipa_write_optimization_summaries): Initialize statement
7949         uids.
7950
7951 2010-08-20  Olivier Hainque  <hainque@adacore.com>
7952
7953         * tree.h (alias_diag_flags): New enum.
7954         (alias_pair): Add an 'emitted_diags' field.
7955         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
7956         (assemble_alias): Initialize emitted_diags of new pairs.
7957
7958 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
7959
7960         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7961         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7962         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7963         (STACK_CHECK_PROTECT): Define.
7964         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
7965         (output_probe_stack_range): Likewise.
7966         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
7967         builtin stack checking is enabled.
7968         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
7969         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7970         (probe_stack_range): New insn.
7971
7972 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7973
7974         PR target/45336
7975         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
7976         short first.
7977
7978         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
7979         char first.
7980
7981 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
7982
7983         PR target/45336
7984         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
7985         to cover zero extension into 64-bit register.
7986         (*sse2_pextrw): Likewise.
7987         (*sse4_1_pextrd_zext): New insn.
7988
7989 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
7990
7991         revert r163410, partially revert r163267.
7992         * config/rs6000/darwin.h (LIB_SPEC): Remove.
7993         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
7994         Darwin versions.
7995
7996 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
7997
7998         PR middle-end/44974
7999         * builtins.c (expand_builtin): Don't optimize away
8000         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
8001
8002 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
8003
8004         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
8005         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
8006         alternative 1 of operand 2.
8007
8008 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
8009             Paolo Bonzini  <bonzini@gnu.org>
8010
8011         * simplify-rtx.c (simplify_unary_operation_1): Optimize
8012         (sign_extend (zero_extend (...)) and
8013         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
8014
8015 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
8016
8017         PR rtl-optimization/45353
8018         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
8019         after bb_note is a BARRIER.
8020
8021 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
8022
8023         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
8024         linking libgcc.a.
8025
8026 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
8027             Michael Matz  <matz@suse.de>
8028
8029         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
8030
8031 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
8032
8033         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
8034         (ggc_mark_roots): ...here.
8035
8036 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
8037
8038         * vec.h (FOR_EACH_VEC_ELT): Define.
8039         * c-decl.c: Use it.
8040         * cfgloop.c: Likewise.
8041         * cfgloopmanip.c: Likewise.
8042         * cgraph.c: Likewise.
8043         * cgraphunit.c: Likewise.
8044         * combine.c: Likewise.
8045         * config/bfin/bfin.c: Likewise.
8046         * config/mips/mips.c: Likewise.
8047         * config/rs6000/rs6000.c: Likewise.
8048         * dbxout.c: Likewise.
8049         * df-scan.c: Likewise.
8050         * dominance.c: Likewise.
8051         * dse.c: Likewise.
8052         * dwarf2out.c: Likewise.
8053         * except.c: Likewise.
8054         * expr.c: Likewise.
8055         * function.c: Likewise.
8056         * gcse.c: Likewise.
8057         * genattr.c: Likewise.
8058         * ggc-common.c: Likewise.
8059         * gimplify.c: Likewise.
8060         * graphite-blocking.c: Likewise.
8061         * graphite-clast-to-gimple.c: Likewise.
8062         * graphite-dependences.c: Likewise.
8063         * graphite-interchange.c: Likewise.
8064         * graphite-poly.c: Likewise.
8065         * graphite-scop-detection.c: Likewise.
8066         * graphite-sese-to-poly.c: Likewise.
8067         * graphite.c: Likewise.
8068         * haifa-sched.c: Likewise.
8069         * ifcvt.c: Likewise.
8070         * implicit-zee.c: Likewise.
8071         * ipa-prop.c: Likewise.
8072         * ipa-struct-reorg.c: Likewise.
8073         * ipa.c: Likewise.
8074         * ira-build.c: Likewise.
8075         * ira-color.c: Likewise.
8076         * ira-emit.c: Likewise.
8077         * lambda-code.c: Likewise.
8078         * loop-invariant.c: Likewise.
8079         * loop-unroll.c: Likewise.
8080         * lower-subreg.c: Likewise.
8081         * lto-cgraph.c: Likewise.
8082         * lto-opts.c: Likewise.
8083         * lto-streamer-in.c: Likewise.
8084         * lto-streamer-out.c: Likewise.
8085         * lto-streamer.c: Likewise.
8086         * lto-symtab.c: Likewise.
8087         * matrix-reorg.c: Likewise.
8088         * opts.c: Likewise.
8089         * predict.c: Likewise.
8090         * print-tree.c: Likewise.
8091         * sdbout.c: Likewise.
8092         * sel-sched-dump.c: Likewise.
8093         * sel-sched-ir.c: Likewise.
8094         * sel-sched.c: Likewise.
8095         * sese.c: Likewise.
8096         * stor-layout.c: Likewise.
8097         * tree-cfg.c: Likewise.
8098         * tree-cfgcleanup.c: Likewise.
8099         * tree-chrec.c: Likewise.
8100         * tree-data-ref.c: Likewise.
8101         * tree-emutls.c: Likewise.
8102         * tree-inline.c: Likewise.
8103         * tree-into-ssa.c: Likewise.
8104         * tree-loop-distribution.c: Likewise.
8105         * tree-loop-linear.c: Likewise.
8106         * tree-mudflap.c: Likewise.
8107         * tree-outof-ssa.c: Likewise.
8108         * tree-parloops.c: Likewise.
8109         * tree-predcom.c: Likewise.
8110         * tree-pretty-print.c: Likewise.
8111         * tree-scalar-evolution.c: Likewise.
8112         * tree-ssa-live.c: Likewise.
8113         * tree-ssa-loop-im.c: Likewise.
8114         * tree-ssa-loop-ivcanon.c: Likewise.
8115         * tree-ssa-loop-ivopts.c: Likewise.
8116         * tree-ssa-loop-manip.c: Likewise.
8117         * tree-ssa-loop-niter.c: Likewise.
8118         * tree-ssa-loop-prefetch.c: Likewise.
8119         * tree-ssa-phiprop.c: Likewise.
8120         * tree-ssa-pre.c: Likewise.
8121         * tree-ssa-reassoc.c: Likewise.
8122         * tree-ssa-sccvn.c: Likewise.
8123         * tree-ssa-structalias.c: Likewise.
8124         * tree-ssa.c: Likewise.
8125         * tree-vect-data-refs.c: Likewise.
8126         * tree-vect-loop-manip.c: Likewise.
8127         * tree-vect-loop.c: Likewise.
8128         * tree-vect-patterns.c: Likewise.
8129         * tree-vect-slp.c: Likewise.
8130         * tree-vect-stmts.c: Likewise.
8131         * tree-vrp.c: Likewise.
8132         * tree.c: Likewise.
8133         * value-prof.c: Likewise.
8134         * var-tracking.c: Likewise.
8135         * varasm.c: Likewise.
8136         * vmsdbgout.c: Likewise.
8137
8138 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
8139             Richard Guenther  <richard.guenther@gmail.com>
8140
8141         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
8142         copy the src value and return a copy.
8143         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
8144         (C++ Volatiles): Adjust to describe C++ semantics only.
8145
8146 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
8147
8148         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
8149         be zero or nonzero.
8150         * doc/tm.texi: Regenerate.
8151         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
8152         * df-scan.c (df_get_exit_block_use_set), reginfo.c
8153         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
8154         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
8155         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
8156         to 1.
8157
8158 2010-08-20  Olivier Hainque  <hainque@adacore.com>
8159
8160         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
8161         an extra nop past a sibling call at the very end.
8162
8163 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
8164
8165         PR bootstrap/45350
8166         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
8167         a comment.
8168
8169 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
8170
8171         * target.def (function_arg, function_incoming_arg): Remove const
8172         qualifier on CUMULATIVE_ARGS parameter.
8173         * targhooks.h (default_function_arg, default_function_incoming_arg):
8174         Likewise.
8175         * targhooks.c (default_function_arg, default_function_incoming_arg):
8176         Likewise.
8177         * config/i386/i386.c (ix86_function_arg): Likewise.
8178
8179 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
8180
8181         PR target/45336
8182         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
8183         SIGN_EXTENDs or ZERO_EXTENDs.
8184
8185 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
8186
8187         PR target/42172
8188         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
8189         Take its cost into account if nonnull.
8190         (insn_a_feeds_b): New static function.
8191         (combine_instructions): Look for four-insn combinations.
8192         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
8193         them into account when computing all_adjacent and looking for other
8194         uses.
8195         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
8196         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
8197         (try_combine): New arg I0.  Handle four-insn combinations.
8198         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
8199         like ELIM_I1.
8200
8201 2010-08-19  Jason Merrill  <jason@redhat.com>
8202
8203         PR c++/45307
8204         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
8205         if ctor is empty.
8206         (gimplify_modify_expr_rhs): Adjust.
8207
8208 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
8209
8210         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
8211         bitmap_bit_p.
8212         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
8213         * dominance.c (iterate_fix_dominators): Likewise.
8214         * dse.c (set_usage_bits): Likewise.
8215         (set_position_unneeded, record_store): Likewise.
8216         * gimple-fold.c (get_maxval_strlen): Likewise.
8217         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
8218         * ipa-inline.c (update_caller_keys): Likewise.
8219         * ipa-split.c (verify_non_ssa_vars): Likewise.
8220         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
8221         (close_type_exposed_parameter, close_type_full_escape): Likewise.
8222         (close_addressof_down): Likewise.
8223         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
8224         (setup_allocno_left_conflicts_size): Likewise.
8225         (ira_reassign_conflict_allocnos): Likewise.
8226         (ira_reassign_pseudos): Likewise.
8227         * ira-emit.c (change_loop): Likewise.
8228         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
8229         * lto-streamer-out.c (write_symbol): Likewise.
8230         * predict.c (expr_expected_value_1): Likewise.
8231         * regstat.c (regstat_bb_compute_ri): Likewise.
8232         * sel-sched.c (create_block_for_bookkeeping): Likewise.
8233         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
8234         * stmt.c (expand_case): Likewise.
8235         * tree-eh.c (emit_eh_dispatch): Likewise.
8236         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
8237         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
8238         Likewise.
8239         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
8240         (rdg_build_components): Likewise.
8241         * tree-object-size.c (collect_object_sizes_for): Likewise.
8242         * tree-sra.c (convert_callers): Likewise.
8243         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
8244         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
8245         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
8246
8247 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
8248
8249         * config/i386/i386.md (*lea_1): Use P mode iterator.
8250         (lea add splitter): Also handle DImode operands.
8251         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
8252         predicate.  Do not use ix86_lea_for_add_ok.
8253         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
8254         (lea ashift splitter): Also handle DImode operands.
8255         (DImode lea ashift splitter): Remove splitter.
8256
8257 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
8258
8259         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
8260         ix86_binary_operator_ok.
8261
8262 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
8263
8264         PR rtl-optimization/44691
8265         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
8266         is not a register.
8267
8268 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
8269
8270         PR target/45070
8271         * config/arm/arm.c (arm_output_epilogue): Ensure that return
8272          value of size 1-3 is handled correctly.
8273
8274 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
8275
8276         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
8277         type for the conditional has wide enough range.
8278
8279 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
8280
8281         PR target/45327
8282         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
8283         ix86_binary_operator_ok.
8284
8285 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
8286
8287         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
8288         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
8289         code to output insn mnemonic.  Fix comment.
8290         (*addsi_1_zext): Add r-r-0 alternative 1.
8291         <TYPE_LEA>: Split insn to lea.
8292         <default>: Handle alternative 1.
8293         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
8294         multi-level if_then_else RTX to set "type" attribute.
8295         <default>: Handle alternative 2.
8296         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
8297         Use cond RTX instead of multi-level if_then_else RTX to set
8298         "type" attribute.
8299         <default>: Handle alternatives 2 and 4.
8300         (lea splitters): Update calls to ix86_lea_for_add_ok.
8301
8302         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
8303         argument.
8304         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
8305
8306 2010-08-18  Richard Guenther  <rguenther@suse.de>
8307
8308         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
8309         use operand helpers.
8310
8311 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
8312
8313         PR middle-end/45292
8314         * optabs.c (expand_bool_compare_and_swap): Expand pending
8315         pops before trying the optab.
8316
8317 2010-08-18  Yao Qi  <yao@codesourcery.com>
8318
8319         PR target/45094
8320         * config/arm/arm.c (output_move_double): Fix typo generating
8321         instructions ('ldr'->'str').
8322
8323 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8324
8325         PR rtl-optimization/42575
8326         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
8327         live ranges.
8328
8329 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8330
8331         * config/arm/arm-protos.h (arm_expand_sync): New.
8332         (arm_output_memory_barrier, arm_output_sync_insn): New.
8333         (arm_sync_loop_insns): New.
8334         * config/arm/arm.c (FL_ARCH7): New.
8335         (FL_FOR_ARCH7): Include FL_ARCH7.
8336         (arm_arch7): New.
8337         (arm_print_operand): Support %C markup.
8338         (arm_legitimize_sync_memory): New.
8339         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
8340         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
8341         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
8342         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
8343         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
8344         (arm_process_output_sync_insn, arm_output_sync_insn): New.
8345         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
8346         * config/arm/arm.h (struct arm_sync_generator): New.
8347         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
8348         (TARGET_HAVE_MEMORY_BARRIER): New.
8349         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
8350         * config/arm/arm.md: Include sync.md.
8351         (UNSPEC_MEMORY_BARRIER): New.
8352         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
8353         (VUNSPEC_SYNC_OP):New.
8354         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
8355         (sync_result, sync_memory, sync_required_value): New attributes.
8356         (sync_new_value, sync_t1, sync_t2): Likewise.
8357         (sync_release_barrier, sync_op): Likewise.
8358         (length): Add logic to length attribute defintion to call
8359         arm_sync_loop_insns when appropriate.
8360         * config/arm/sync.md: New file.
8361
8362 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
8363
8364         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
8365         ENABLE_TREE_CHECKING.
8366         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
8367         and GCC >= 4.3.
8368
8369 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
8370
8371         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
8372         or optimizing for size, always avoid lea if possible.
8373
8374         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
8375
8376 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
8377
8378         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
8379         Dunmmy function with NULL return unless the target is
8380         OSX >= 10.6 (Darwin10).
8381
8382 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
8383
8384         * gcc.c (spec_function): Add remove-outfile.
8385         (remove_outfile_spec_function): New function.
8386         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
8387         * invoke.texi (replace-outfile): Document.
8388
8389 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
8390
8391         PR target/45296
8392         * reginfo.c (globalize_reg): Reject stack registers.
8393
8394 2010-08-17  Richard Guenther  <rguenther@suse.de>
8395
8396         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
8397         list of conditional equivalences.
8398         (free_all_edge_infos): Adjust.
8399         (record_equivalences_from_incoming_edge): Likewise.
8400         (record_cond): Likewise.
8401         (build_and_record_new_cond): Likewise.
8402         (record_conditions): Likewise.
8403         (dom_opt_leave_block): Likewise.
8404
8405 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
8406
8407         * doc/invoke.texi (ms-extension): Add documentation.
8408
8409 2010-08-17  Richard Guenther  <rguenther@suse.de>
8410
8411         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
8412
8413 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
8414
8415         PR c/40563
8416         * c-decl.c (diagnose_uninitialized_cst_member): New function.
8417         (finish_decl): Use it to issue a -Wc++-compat warning about
8418         uninitialized const field in struct or union.
8419
8420         (finish_struct): Use strip_array_types.
8421
8422 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
8423
8424         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
8425         functions.
8426         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
8427         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
8428         call block_nreverse here.
8429         (blocks_nreverse): Rename decl temporary to block.
8430
8431 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
8432
8433         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
8434         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
8435         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
8436         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
8437         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
8438         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
8439         thumb2_iorsi3): Delete.
8440         (orsi_notsi_si): No longer a named pattern.
8441         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
8442         * config/arm/predicates.md (shift_amount_operand): New.
8443         (mult_operator): New.
8444         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
8445         attr enabled): New.
8446         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
8447         arch matches t2.
8448         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
8449         (not_shiftsi_compare0): Likewise, renamed from
8450         arm_notsi_shiftsi_compare0.
8451         (not_shiftsi_compare0_scratch): Likweise, renamed from
8452         arm_notsi_shiftsi_compare0_scratch.
8453         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
8454         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
8455         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
8456         so that the register alternative is disabled when the shift_operator
8457         is MULT.  Use "M" as the constraint for constants.
8458         (arith_shiftsi splitter): Enable for TARGET_32BIT.
8459         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
8460         constraint for constants.
8461         (arith_shiftsi_compare0_scratch): Likewise.
8462         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
8463         Handle Thumb2 alternative.
8464
8465 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8466
8467         * doc/options.texi (NoDriverArg): Document.
8468         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
8469         -MDX and -MMDX.
8470         * opt-functions.awk (switch_flags): Handle NoDriverArg.
8471         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
8472         marking for CL_NO_DRIVER_ARG options when in the driver.
8473         * opts.h (CL_NO_DRIVER_ARG): Define.
8474         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8475         CL_COMMON): Update values.
8476
8477 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8478
8479         * common.opt: Add driver options.
8480         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
8481         * doc/options.texi (Driver, RejectDriver): Document.
8482         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
8483         print_prog_name, print_multi_directory, print_sysroot,
8484         print_multi_os_directory, print_multi_lib,
8485         print_sysroot_headers_suffix, report_times, combine_flag,
8486         use_pipes, wrapper_string): Remove.
8487         (save_switch, driver_unknown_option_callback,
8488         driver_wrong_lang_callback, driver_post_handling_callback,
8489         driver_handle_option): New.
8490         (spec_lang, last_language_n_infiles): Make file-scope static
8491         instead of local to process_command.
8492         (process_command): Use decode_cmdline_options_to_array and
8493         read_cmdline_option for option processing.  Compute have_c in
8494         prescan of decoded options.
8495         * opt-functions.awk (switch_flags): Handle Driver and
8496         RejectDriver.
8497         (var_type, var_type_struct): Handle Separate options as generating
8498         const char * variables.
8499         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
8500         CL_TARGET to be passed by caller if required.
8501         (decode_cmdline_options_to_array): Update comment.
8502         * opts.c (complain_wrong_lang): Handle options only valid for the
8503         driver.
8504         (decode_options): Update call to decode_cmdline_options_to_array.
8505         (print_filtered_help): Ignore driver-only options.
8506         (print_specific_help): Ignore CL_DRIVER.
8507         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
8508         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
8509         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
8510         Update values.
8511
8512 2010-08-16  Richard Guenther  <rguenther@suse.de>
8513
8514         * tree-cfg.c (verify_types_in_gimple_reference): Verify
8515         TARGET_MEM_REF a bit.
8516         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
8517         (create_mem_ref_raw): Always create TMR_OFFSET, store the
8518         alias pointer type via it.
8519         (copy_mem_ref_info): Adjust.
8520         (maybe_fold_tmr): Likewise.
8521         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
8522         (reference_alias_ptr_type): Likewise.
8523         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
8524         adjust documentation of TMR_OFFSET operand.
8525         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
8526         use the alias pointer type.
8527         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
8528         initialize mem attrs but the TMR itself.
8529         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
8530         similar to MEM_REF.
8531         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
8532         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
8533         (unshare_and_remove_ssa_names): Likewise.
8534         (copy_ref_info): Adjust.
8535         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
8536         TARGET_MEM_REF case.
8537         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
8538         at TMR_ORIGINAL.
8539         * tree.h (TMR_ORIGINAL): Remove.
8540         * gimple.c (get_base_address): For TARGET_MEM_REF with a
8541         symbol return that.
8542         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
8543         with a symbol.
8544         (get_addr_base_and_unit_offset): Likewise.
8545         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
8546         TARGET_MEM_REFs.
8547         (indirect_ref_may_alias_decl_p): Likewise.
8548         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
8549
8550 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
8551
8552         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
8553         with GCC version 4.6, the default setting (when not optimizing
8554         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
8555         been changed to -fomit-frame-pointer.
8556
8557 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
8558
8559         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
8560         Darwin10.  Do not link libgcc.a for Darwin >= 9.
8561
8562 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
8563
8564         * doc/invoke.texi (Warning Options): Fix terminology and markup
8565         in the description of how unknown warning options are handled.
8566
8567 2010-08-15  Ira Rosen  <irar@il.ibm.com>
8568
8569         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
8570         in basic blocks.
8571         (vect_supportable_dr_alignment): Check alignment for basic blocks.
8572         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
8573         data references.
8574         (vect_bb_vectorization_profitable_p): New function.
8575         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
8576         check if it's worthwhile to vectorize the basic block.
8577
8578 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
8579
8580         * reload.h (register_move_cost, memory_move_secondary_cost,
8581         secondary_reload_class): Adjust prototype.
8582         * rtl.h (reg_class_subset_p): Adjust prototype.
8583         * reload.c (secondary_reload_class): Change arguments type from
8584         enum reg_class to reg_class_t. Change result type to reg_class_t.
8585         * reginfo.c (register_move_cost, reg_class_subset_p): Change
8586         arguments type from enum reg_class to reg_class_t.
8587         (memory_move_secondary_cost): Change arguments type from
8588         enum reg_class to reg_class_t. Change type of saved_flags to
8589         reg_class_t.
8590
8591         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8592         Remove macros.
8593         (mips_cost): Remove.
8594         (struct mips_rtx_cost_data): Moved to mips.c.
8595         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
8596         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
8597         (mips_cost): Make static.
8598         (mips_canonicalize_move_class): Change argument type to reg_class_t.
8599         Change result type to reg_class_t.
8600         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
8601         type from enum reg_class to reg_class_t.
8602         (mips_register_move_cost): Make static. Change arguments
8603         type from enum reg_class to reg_class_t.
8604         (mips_memory_move_cost): New function.
8605         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8606
8607 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
8608
8609         PR rtl-optimization/43358
8610         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
8611         of a single hard register, using simplify_subreg_regno to decide
8612         what that register should be.
8613
8614 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
8615
8616         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
8617         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
8618         (loongson_pmull<V_suffix>): Rename to...
8619         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
8620
8621 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
8622
8623         * configure.ac: Enable -fomit-frame-pointer on darwin
8624         which support dwarf2.
8625         * config/i386/i386.c (override_options): Same.
8626
8627 2010-08-13  Jie Zhang  <jie@codesourcery.com>
8628
8629         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
8630
8631 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
8632
8633         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
8634         -MMD.
8635
8636 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
8637
8638         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
8639         up dot_prod pattern searching if a stmt is outside the loop.
8640
8641 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
8642             Uros Bizjak  <ubizjak@gmail.com>
8643
8644         * config.gcc: Handle --enable-frame-pointer.
8645
8646         * configure.ac: Add --enable-frame-pointer.
8647         * configure: Regenerated.
8648
8649         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
8650         (override_options): If not configured with --enable-frame-pointer,
8651         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
8652         optimizing for size), -fasynchronous-unwind-tables and
8653         -maccumulate-outgoing-args by default.
8654
8655 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
8656
8657         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
8658
8659         PR middle-end/45262
8660         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
8661         -a overflows.  Normalize the range.
8662
8663 2010-08-12  Richard Guenther  <rguenther@suse.de>
8664
8665         PR tree-optimization/45232
8666         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
8667         for types with undefined overflow.
8668         (reassociate_bb): Allow re-associating of bit and min/max
8669         operations for types with undefined overflow.
8670         * tree-ssa-forwprop.c (associate_plusminus): New function.
8671         (tree_ssa_forward_propagate_single_use_vars): Call it.
8672
8673 2010-08-12  Richard Guenther  <rguenther@suse.de>
8674
8675         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
8676         * tree-ssa-alias.c (get_ptr_info): Move ...
8677         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
8678         align and misalign fields conservatively.
8679         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
8680         derive alignment information.
8681         (evaluate_stmt): Derive alignment information from memory
8682         allocation functions.
8683         * tree.h (get_pointer_alignment): Make unsigned.
8684         * builtins.c (get_object_alignment): Use alignment information we
8685         have computed for pointers.
8686         (get_pointer_alignment): Likewise.  Make conservative, return
8687         and unsigned value.
8688         (expand_builtin_strlen): Adjust.
8689         (expand_builtin_memcmp): Likewise.
8690         (expand_builtin_strcmp): Likewise.
8691         (expand_builtin_strncmp): Likewise.
8692         (get_builtin_sync_mem): Use at least mode alignment.
8693         (fold_builtin_memset): Adjust.
8694         (fold_builtin_memory_op): Likewise.
8695         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
8696         information also dump pointer alignment knowledge.
8697         (dump_gimple_stmt): Likewise.
8698
8699 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
8700
8701         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
8702         (EMPTY_FIELD_BOUNDARY): Remove.
8703         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
8704
8705 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
8706
8707         PR debug/45259
8708         * caller-save.c (save_call_clobbered_regs): Only swap notes with
8709         DEBUG_INSNs if n_regs_saved.
8710
8711 2010-08-12  Wei Guozhi  <carrot@google.com>
8712
8713         PR target/44999
8714         * config/arm/arm.md (andsi3): Change to zero extension if possible.
8715         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
8716
8717 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
8718
8719         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
8720
8721         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
8722
8723 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8724
8725         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
8726         the case removed in the previous patch, when the only phi argument
8727         is defined in the same loop as the phi node itself.  Handle it
8728         separately from the invariant case by both propagating it outside
8729         the region and replacing the phi node with an assign.
8730
8731 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8732
8733         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
8734         constant phi nodes with one argument are is_gimple_min_invariant
8735         and SSA_NAME_IS_DEFAULT_DEF.
8736
8737 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8738
8739         * graphite-cloog-util.c (oppose_constraint):
8740         Extend loop counter's value range (CLOOG_ORG).
8741         (cloog_matrix_to_ppl_constraint): Same.
8742         (new_Constraint_System_from_Cloog_matrix): Same.
8743         * graphite-cloog-compat.h (matrix_num_type): New.
8744
8745 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8746
8747         * graphite.c (graphite_initialize): Do not initialize
8748         CLooG and initialize the Parma Polyhedra Library
8749         manually when using CLOOG_ORG.
8750         (graphite_finalize): Do not finalize CLooG and finalize
8751         the Parma Polyhedra Library manually when using CLOOG_ORG.
8752         * graphite-cloog-compat.h (cloog_initialize): Hide function
8753         when using CLOOG_ORG.
8754         (cloog_finalize): Same.
8755
8756 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8757
8758         * graphite-clast-to-gimple.c (free_scattering): Change
8759         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
8760         (CLOOG_ORG).
8761         (build_cloog_prog): Same.
8762         * graphite-cloog-compat.h (cloog_domain): Removed.
8763         (cloog_scattering): New.
8764         (cloog_set_domain): Removed.
8765         (cloog_set_scattering): New.
8766         (cloog_next_domain): Removed.
8767         (cloog_next_scattering): New.
8768         (cloog_set_next_domain): Removed.
8769         (cloog_set_next_scattering): New.
8770         (CloogScatteringList): New.
8771         (CloogScattering): New.
8772         (cloog_scattering_free): New.
8773         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
8774         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
8775         New.
8776
8777 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8778
8779         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
8780         CloogState.
8781         (set_cloog_options): Same.
8782         (print_clast_stmt): Same.
8783         (scop_to_clast): Same.
8784         (print_generated_program): Same.
8785         (gloog): Same.
8786         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
8787         (scop_to_clast): Extend with CloogState.
8788         * graphite-cloog-util.c: Include graphite-cloog-compat.h
8789         (new_Cloog_Domain_from_ppl_Polyhedron):
8790         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
8791         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
8792         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8793         * graphite-cloog-util.h (build_cloog_prog): Same.
8794         * graphite-cloog-copat.h (build_cloog_prog): New.
8795         (CloogState): New.
8796         (cloog_state_malloc): New.
8797         (cloog_state_free): New.
8798         (cloog_loop_malloc): New.
8799         (cloog_options_malloc): New.
8800         (cloog_statement_alloc): New.
8801         (cloog_domain_from_cloog_matrix): New.
8802         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
8803         (new_Cloog_Domain_from_ppl_Polyhedron): New.
8804
8805 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8806
8807         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
8808         type of NAME now depends on used CLooG version.
8809         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
8810         (gcc_type_for_clast_expr): Same.
8811         (print_clast_stmt): Replace pprint with clast_pprint.
8812         * graphite-cloog-compat.h: Provide compatibility macros for
8813         CLooG Legacy.
8814         (clast_name_p): New.
8815         (clast_expr_term): New.
8816         (clast_expr_red): New.
8817         (clast_expr_bin): New.
8818         (clast_pprint): New.
8819
8820 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8821
8822         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
8823         compatible to newer CLooG releases (CLOOG_ORG).
8824         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
8825         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
8826         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
8827         (build_cloog_prog) : New.
8828         (cloog_program_extract_scalars): New.
8829         (cloog_program_scatter): New.
8830
8831 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8832
8833         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
8834         conditionally (CLOOG_ORG).
8835         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
8836         (cloog_statement_usr): New.
8837         (cloog_domain): Same.
8838         (cloog_set_domain): Same.
8839         (cloog_next_domain): Same.
8840         (cloog_set_next_domain): Same.
8841         (cloog_program_nb_scattdims): Same.
8842         (cloog_program_set_nb_scattdims): Same.
8843         (cloog_program_names): Same.
8844         (cloog_program_set_names): Same.
8845         (cloog_program_set_context): Same.
8846         (cloog_program_set_loop): Same.
8847         (cloog_program_blocklist): Same.
8848         (cloog_program_set_blocklist): Same.
8849         (cloog_program_scaldims): Same.
8850         (cloog_program_set_scaldims): Same.
8851         (cloog_names_nb_parameters): Same.
8852         (cloog_names_set_nb_parameters): Same.
8853         (cloog_names_parameters): Same.
8854         (cloog_names_set_parameters): Same.
8855         (cloog_names_set_nb_iterators): Same.
8856         (cloog_names_set_iterators): Same.
8857         (cloog_names_set_nb_scattering): Same.
8858         (cloog_names_set_scattering): Same.
8859         (cloog_statement_set_usr): Same.
8860         (cloog_loop_set_next): Same.
8861         (cloog_loop_set_domain): Same.
8862         (cloog_loop_set_block): Same.
8863         (cloog_block_list_next): Same.
8864         (cloog_block_list_set_next):
8865         (cloog_block_list_set_block): Same.
8866
8867 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8868
8869         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
8870         a bool.
8871         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
8872         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
8873         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
8874         when something has been changed.
8875         (rewrite_commutative_reductions_out_of_ssa): Same.
8876
8877 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8878
8879         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
8880         handle the case when def is in the sese region.
8881         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
8882         for invariant expressions.
8883         (rewrite_cross_bb_phi_deps): Removed.
8884         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
8885         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
8886         rewrite_cross_bb_phi_deps.
8887
8888 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8889
8890         * graphite-sese-to-poly.c
8891         (rewrite_commutative_reductions_out_of_ssa_loop): Call
8892         scev_analyzable_p only on is_gimple_reg
8893
8894 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8895
8896         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
8897         (rewrite_close_phi_out_of_ssa): Propagate constant values or
8898         parametric expressions outside the scop region.
8899         (rewrite_cross_bb_scalar_deps): Same.
8900         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
8901
8902 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8903
8904         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
8905         SSA_NAME_DEF_STMT only on SSA_NAMEs.
8906
8907 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8908
8909         * tree-scalar-evolution.c (instantiate_scev_name): Do not
8910         instantiate default definitions.
8911
8912 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
8913             Sebastian Pop  <sebastian.pop@amd.com>
8914
8915         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
8916         (loop_exits_from_bb_p): New.
8917         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
8918         (loop_exits_from_bb_p): Declared.
8919         * graphite-scop-detection.c (scopdet_basic_block_info): Call
8920         loop_exits_to_bb_p.
8921
8922 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8923
8924         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
8925         extra parameter for the region.  Call scev_analyzable_p.
8926         (rewrite_reductions_out_of_ssa): Update call to
8927         rewrite_close_phi_out_of_ssa.
8928         (rewrite_cross_bb_phi_deps): Same.
8929         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
8930         parameter for the region.  Call scev_analyzable_p.
8931         (rewrite_commutative_reductions_out_of_ssa): Update call to
8932         rewrite_commutative_reductions_out_of_ssa_loop.
8933
8934 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8935
8936         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
8937
8938 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8939
8940         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
8941         SSA scalar phi nodes that can be scev_analyzable_p.
8942
8943 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8944
8945         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
8946         handle SSA_NAME_IS_DEFAULT_DEF.
8947
8948 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8949
8950         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
8951
8952 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8953
8954         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
8955         case non close-phi nodes with one argument.
8956
8957 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8958
8959         * sese.h (scev_analyzable_p): Scevs could be expressions without
8960         chrecs and still be scev_analyzable_p.
8961
8962 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8963
8964         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8965
8966 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8967
8968         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
8969         * cfgloop.h (struct loop): Remove single_iv field.
8970         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
8971         (scop_canonicalize_loops): Removed.
8972         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
8973         over all the loop phi nodes in loop->header.
8974         (build_poly_scop): Remove use of scop_canonicalize_loops.
8975
8976 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8977
8978         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
8979         handle GIMPLE_CALL.
8980
8981 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8982
8983         * tree-chrec.c (chrec_apply): Should only apply to the specified
8984         variable.  Also handle multivariate chains of recurrences that
8985         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
8986
8987 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8988
8989         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
8990         (debug_clast_name_indexes_1): Removed.
8991         (debug_clast_name_indexes): Removed.
8992         (pbb_to_depth_to_oldiv): Removed.
8993         (build_iv_mapping): Replace the use of rename_map with iv_map.
8994         (translate_clast_user): Remove uses of rename_map.  Allocate and
8995         free iv_map.
8996         (translate_clast_for_loop): Remove uses of rename_map.
8997         (translate_clast_for): Same.
8998         (translate_clast_guard): Same.
8999         (translate_clast): Same.
9000         (gloog): Same.
9001         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
9002         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
9003         * sese.c (set_rename): Now static.
9004         (rename_variables_in_stmt): Removed.
9005         (rename_uses): New.
9006         (is_parameter): Removed.
9007         (is_iv): Removed.
9008         (expand_scalar_variables_call): Removed.
9009         (expand_scalar_variables_ssa_name): Removed.
9010         (expand_scalar_variables_expr): Removed.
9011         (expand_scalar_variables_stmt): Removed.
9012         (expand_scalar_variables): Removed.
9013         (rename_variables): Removed.
9014         (remove_condition): Removed.
9015         (get_true_edge_from_guard_bb): Removed.
9016         (get_false_edge_from_guard_bb): Removed.
9017         (struct igp): Removed.
9018         (default_before_guard): Removed.
9019         (convert_for_phi_arg): Removed.
9020         (add_guard_exit_phis): Removed.
9021         (insert_guard_phis): Removed.
9022         (graphite_copy_stmts_from_block): Now also uses iv_map and a
9023         region.  Do not copy conditions.  Do not copy induction variables.
9024         Call rename_uses.
9025         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
9026         the translated statement.  Use the iv_map for the induction
9027         variable renaming.
9028         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
9029         (set_rename): Removed declaration.
9030         (scev_analyzable_p): ...here.
9031         * tree-chrec.c (chrec_apply_map): New.
9032         * tree-chrec.h (chrec_apply_map): Declared.
9033
9034 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9035
9036         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
9037         insert_loop_close_phis.
9038         * sese.c (name_defined_in_loop_p): Removed.
9039         (expr_defined_in_loop_p): Removed.
9040         (alive_after_loop): Removed.
9041         (close_phi_not_yet_inserted_p): Removed.
9042         (struct alep): Removed.
9043         (add_loop_exit_phis): Removed.
9044         (insert_loop_close_phis): Removed.
9045
9046 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9047
9048         * graphite-cloog-util.c
9049         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
9050         * graphite-poly.c
9051         (psct_scattering_dim_for_loop_depth): Same.
9052
9053 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9054
9055         * graphite-cloog-util.h: Added cloog.h.
9056         * graphite-blocking.c: Removed cloog.h.
9057         * graphite-dependences.c: Same.
9058         * graphite-interchange.c: Same.
9059         * graphite-poly.c: Same.
9060         * graphite-ppl.c: Same.
9061         * graphite-scop-detection.c: Same.
9062         * graphite-sese-to-poly.c:
9063         Removed cloog.h.
9064         Removed graphite-clast-to-gimple.h.
9065         (check_poly_representation): Removed (unused).
9066         * graphite-sese-to-poly.h
9067         (check_poly_representation): Removed (unused).
9068
9069 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9070
9071         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
9072         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
9073         (graphite-cloog-util.o): New.
9074         (graphite-ppl.o): Added graphite-cloog-util.h.
9075         * graphite-clast-to-gimple.c:
9076         Added graphite-cloog-util.h to include statements.
9077         * graphite-cloog-util.c: New.
9078         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
9079         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9080         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9081         (new_C_Polyhedron_from_Cloog_Matrix): Same.
9082         (insert_constraint_into_matrix): Same.
9083         (ppl_Constrain_System_number_of_constraints): Same.
9084         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
9085         (oppose_constraint): Same.
9086         (cloog_matrix_to_ppl_constraint): Same.
9087         (new_Constraint_System_from_Cloog_Matrix): Same.
9088         * graphite-cloog-util.h: New.
9089         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
9090         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9091         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9092         (new_C_Polyhedron_from_Cloog_Matrix): Same.
9093         (insert_constraint_into_matrix): Same.
9094         * graphite-ppl.c:
9095         Added graphite-cloog-util.h to include statements.
9096         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
9097         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9098         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9099         (new_C_Polyhedron_from_Cloog_Matrix): Same.
9100         (insert_constraint_into_matrix): Same.
9101         (ppl_Constrain_System_number_of_constraints): Same.
9102         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
9103         (oppose_constraint): Same.
9104         (cloog_matrix_to_ppl_constraint): Same.
9105         (new_Constraint_System_from_Cloog_Matrix): Same.
9106         * graphite-ppl.h:
9107         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
9108         graphite-cloog-util.h.
9109         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9110         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9111         (new_C_Polyhedron_from_Cloog_Matrix): Same.
9112         (insert_constraint_into_matrix): Same.
9113
9114 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9115
9116         * graphite-clast-to-gimple.c
9117         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
9118         (precision_for_interval): Same.
9119         (gcc_type_for_interval): Same.
9120         (compute_type_for_level): Same.
9121         * graphite-interchange.c
9122         (lst_interchange_profitable_p): Same.
9123         * graphite-poly.c
9124         (psct_scattering_dim_for_loop_depth): Same.
9125         * graphite-ppl.c
9126         (ppl_max_for_le_pointset): Same.
9127         (ppl_min_for_le_pointset): Same.
9128
9129 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9130
9131         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
9132         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
9133
9134 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9135
9136         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
9137         rewrite_close_phi_out_of_ssa.
9138
9139 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9140
9141         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
9142
9143 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9144
9145         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
9146         rename_map.
9147         * sese.c (debug_rename_map): Same.
9148         (get_rename): Same.
9149         (set_rename): Same.
9150         (rename_variables_in_stmt): Same.
9151         (expand_scalar_variables_call): Same.
9152         (expand_scalar_variables_ssa_name): Same.
9153         (expand_scalar_variables_expr): Same.
9154         (expand_scalar_variables_stmt): Same.
9155         (expand_scalar_variables): Same.
9156         (rename_variables): Same.
9157         (graphite_copy_stmts_from_block): Same.
9158         (copy_bb_and_scalar_dependences): Same.
9159
9160 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9161
9162         * graphite-clast-to-gimple.c (copy_renames): Removed.
9163         (translate_clast_for): Do not call copy_renames.
9164         (translate_clast_guard): Same.
9165
9166 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9167
9168         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
9169         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
9170         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
9171         before rewrite_cross_bb_scalar_deps.
9172
9173 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9174
9175         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
9176         Early return in when flag_associative_math is not set.
9177
9178 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9179
9180         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
9181         of SSA copies on edges except for loop->latch.
9182
9183 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9184
9185         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
9186         Split out of rewrite_reductions_out_of_ssa.
9187         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
9188         Declared.
9189         * graphite.c (graphite_transform_loops): Call it.
9190
9191 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9192
9193         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
9194
9195 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
9196
9197         * dbgcnt.def (graphite_scop): New counter.
9198         * graphite.c: Include dbgcnt.h.
9199         (graphite_transform_loops): Use new counter to limit transformations.
9200         * Makefile.in (graphite.o): Depend on DBGCNT_H.
9201
9202 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9203
9204         * passes.c (init_optimization_passes): Add pass_graphite.
9205         Schedule a pass_copy_prop before pass_graphite_transforms.
9206         * timevar.def (TV_GRAPHITE): Declared.
9207         * tree-pass.h (pass_graphite): Declared.
9208         * tree-ssa-loop.c (pass_graphite): New.
9209
9210 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9211
9212         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
9213         Remove calls to rename_nb_iterations and rename_sese_parameters.
9214         * graphite-clast-to-gimple.h (gloog): Update declaration.
9215         * graphite.c (graphite_transform_loops): Update call to gloog.
9216         * sese.c (rename_variables_in_expr): Removed.
9217         (rename_nb_iterations): Removed.
9218         (rename_sese_parameters): Removed.
9219         * sese.h (rename_nb_iterations): Removed.
9220         (rename_sese_parameters): Removed.
9221
9222 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9223
9224         * graphite-clast-to-gimple.c (gloog): Remove call to
9225         sese_adjust_liveout_phis.
9226         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
9227         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
9228         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
9229         rewrite_phi_out_of_ssa.
9230         * sese.c (get_vdef_before_sese): Removed.
9231         (sese_adjust_vphi): Removed.
9232         (sese_adjust_liveout_phis): Removed.
9233         * sese.h (sese_adjust_liveout_phis): Removed.
9234
9235 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9236
9237         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
9238         argument for the place after which to insert the out of SSA copy.
9239         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
9240         (rewrite_phi_out_of_ssa): Same.
9241         (rewrite_cross_bb_scalar_deps): Same.
9242         (insert_copyout): Removed.
9243         (insert_copyin): Removed.
9244         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
9245         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
9246         insert_copyin.
9247
9248 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9249
9250         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
9251         (rewrite_reductions_out_of_ssa): Same.
9252         (rewrite_commutative_reductions_out_of_ssa): Same.
9253         (build_poly_scop): Do not call these functions.
9254         * graphite-sese-to-poly.h (build_poly_scop): Declared.
9255         (rewrite_reductions_out_of_ssa): Declared.
9256         (rewrite_commutative_reductions_out_of_ssa): Declared.
9257         * graphite.c (graphite_transform_loops): Call on every scop
9258         rewrite_commutative_reductions_out_of_ssa before calling
9259         rewrite_reductions_out_of_ssa and build_scop_bbs.
9260
9261 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9262
9263         * graphite-dependences.c (dot_deps): Make system call to dotty run
9264         in background.
9265         (dot_deps_stmt): Same.
9266         * graphite-poly.c (dot_lst): Same.
9267
9268 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
9269
9270         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
9271         phi_arg_in_outermost_loop.
9272         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
9273         (remove_invariant_phi): Same.
9274
9275 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
9276
9277         * target.def (output_addr_const_extra): New hook.
9278         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
9279         * doc/tm.texi: Regenerate.
9280         * targhooks.c (default_asm_output_addr_const_extra): New function.
9281         * targhooks.h (default_asm_output_addr_const_extra): Declare.
9282         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
9283         target hook.
9284
9285         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9286         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
9287         * config/i386/i386.h (output_addr_const_extra): Rename to...
9288         (i386_asm_output_addr_const_extra): ...this. Make static.
9289         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9290
9291 2010-08-11  Richard Henderson  <rth@redhat.com>
9292
9293         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
9294
9295 2010-08-11  Nick Clifton  <nickc@redhat.com>
9296
9297         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
9298         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
9299         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9300         stormy16-lib2-cmpsi.c.
9301
9302         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
9303         -O2.
9304
9305 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
9306
9307         * opts.h (struct cl_option_handler_func): Make handler take
9308         cl_decoded_option structure as parameter, not individual elements.
9309         (struct cl_option_handlers): Make callbacks take cl_decoded_option
9310         structure as parameter, not individual elements.
9311         (handle_option): Take cl_decoded_option structure as parameter,
9312         not individual elements.
9313         (handle_generated_option): Declare.
9314         * opts-common.c (handle_option): Take cl_decoded_option structure
9315         as parameter, not individual elements.  Update calls to callback
9316         and handler functions.
9317         (handle_generated_option): New.
9318         (read_cmdline_option): Update calls to callback functions and
9319         handle_option.
9320         * opts.c (common_handle_option, complain_wrong_lang,
9321         unknown_option_callback, post_handling_callback,
9322         lang_handle_option, target_handle_option): Take cl_decoded_option
9323         structure as parameter, not individual elements.
9324         (lang_handle_option, target_handle_option, common_handle_option):
9325         Assert option has at most one argument.
9326         (enable_warning_as_error): Call handle_generated_option instead of
9327         handle_option.  Do not pass -Werror argument as argument of
9328         generated option.
9329
9330 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9331
9332         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
9333         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
9334         (SUBWORD_BOOL_CAS): Likewise.
9335         (SUBWORD_SYNC_OP): Likewise.
9336         (SUBWORD_TEST_AND_SET): Likewise.
9337         (FETCH_AND_OP_WORD): Parenthesise INF_OP
9338         (SUBWORD_SYNC_OP): Likewise.
9339         (OP_AND_FETCH_WORD): Likewise.
9340
9341 2010-08-10  Xinliang David Li  <davidxl@google.com>
9342
9343         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
9344         compute max/min offset in address.
9345
9346 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
9347
9348         * ira-live.c: Include sbitmap.h.
9349         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
9350         Compress live ranges even more.
9351
9352 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
9353
9354         * coverage.c (ctr_labels): Delete.
9355
9356 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
9357
9358         PR bootstrap/45177
9359         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
9360         test here from arm_gen_load_multiple_1.
9361         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
9362         multiple_operation_profitable_p.
9363
9364 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
9365
9366         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
9367         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
9368
9369 2010-08-10  Richard Henderson  <rth@redhat.com>
9370
9371         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
9372         after saving registers.  Assert that SSE registers are only saved
9373         with a sufficiently aligned frame.
9374         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
9375         remove stack_realign_fp handling.
9376         (ix86_expand_prologue): Save int registers before stack_realign_fp,
9377         and do not mark the stack alignment as frame related.
9378         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
9379
9380         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
9381         saves when re-aligning the stack.
9382
9383 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
9384
9385         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
9386         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
9387         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
9388
9389 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
9390
9391         * dwarf2out.c (struct die_struct): Move die_tag to the end.
9392
9393 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
9394
9395         * config/arm/iterators.md: New file.
9396         * config/arm/arm.md: Include iterators.md.
9397         (QHSI): Move to new file.
9398         (LTUGEU, cnb, optab, ior_xor): Likewise.
9399         * config/arm/iwmmxt.md (VMMX): Move to new file.
9400         (VSHFT, MMX_char): Likewise.
9401         * config/arm/neon.md (VD): Move to new file.
9402         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
9403         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
9404         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
9405         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
9406         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
9407         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
9408         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
9409         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
9410         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
9411         (Is_d_reg, V_mode_nunits): Likewise.
9412         * config/arm/vec-common.md (VALL): Move to new file.
9413         (VALLW, VINT, VINTW): Likewise.
9414
9415 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
9416
9417         PR middle-end/45182
9418         * combine.c (make_compound_operation): Don't try to convert
9419         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
9420
9421 2010-08-10  Richard Guenther  <rguenther@suse.de>
9422
9423         * tree.h (get_object_alignment): Adjust prototype.
9424         * builtins.c (get_object_alignment): Return unsigned int,
9425         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
9426         and TARGET_MEM_REF properly.
9427         (get_pointer_alignment): Adjust.
9428         * emit-rtl.c (get_mem_align_offset): Adjust comment.
9429         (set_mem_attributes_minus_bitpos): Adjust.
9430         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
9431
9432 2010-08-10  Richard Guenther  <rguenther@suse.de>
9433
9434         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
9435         (copy_prop_visit_assignment): Simplify.
9436         (copy_prop_visit_stmt): Also visit assignments from
9437         constants.
9438         (copy_prop_visit_phi_node): Use operand_equal_p.
9439
9440 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
9441
9442         * ipa-split.c (find_split_points): Free stack.
9443
9444 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
9445
9446         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
9447         * tree.c (tree_node_kind): Delete corresponding entries.
9448
9449 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
9450
9451         * alias.c (may_alias_p): Remove unused ret.
9452
9453 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
9454
9455         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
9456         alias_sets_conflict_p.
9457         (walk_mems_1): Moved from alias.c.
9458         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
9459         in alias.c.
9460         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
9461         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
9462         * alias.c (walk_mems_2): Moved to ddg.c.
9463         (walk_mems_1): Ditto.
9464         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
9465         to ddg.c.
9466         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
9467         disambiguation.
9468         *(may_alias_p): New function to check whether two memory expression
9469         may alias or not. Currently used in buidling inter-iteration memory
9470         dependence.
9471         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
9472         (insn_alias_sets_conflict_p): Removed
9473         *rtl.h (may_alias_p): New function prototype.
9474
9475 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
9476
9477         * tree.c (nreverse): Assert that we don't have a BLOCK.
9478
9479 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
9480
9481         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
9482         * config/arm/arm.c (arm_get_pcs_model): Likewise.
9483         * config/avr/avr.c (init_cumulative_args): Likewise.
9484         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9485         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9486         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
9487         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
9488         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
9489         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9490         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9491         * dwarf2out.c (gen_subprogram_die): Likewise.
9492         * function.c (allocate_struct_function): Likewise.
9493         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
9494         (deserves_ellipsis): Delete.
9495
9496 2010-08-09  Richard Guenther  <rguenther@suse.de>
9497
9498         * tree-ssa-copy.c (cached_last_copy_of): Remove.
9499         (valueize_val): New function.
9500         (get_last_copy_of): Remove.
9501         (set_copy_of_val): Simplify.
9502         (dump_copy_of): Likewise.
9503         (copy_prop_visit_cond_stmt): Use valueize_val.
9504         (copy_prop_visit_phi_node): Properly handle unvisited names.
9505         Drop code managing copy-of chains.
9506         (init_copy_prop): Adjust.
9507         (fini_copy_prop): Likewise.
9508         (execute_copy_prop): Remove obsolete comment.
9509
9510 2010-08-09  Richard Guenther  <rguenther@suse.de>
9511
9512         PR middle-end/44632
9513         * function.c (gimplify_parameters): Do not clear addressable
9514         bit of the original parameter.
9515
9516 2010-08-09  Richard Guenther  <rguenther@suse.de>
9517
9518         PR middle-end/45212
9519         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
9520         alignment from MEM_REF offset only if we took it from the
9521         base object.
9522
9523 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
9524
9525         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
9526
9527 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9528
9529         * c-tree.h (build_arg_info): Declare.
9530         * c-decl.c (build_arg_info): Define.
9531         (get_parm_info): Call it.  Delete initialization code.
9532         * c-parser.c (c_parser_parms_declarator): Likewise.
9533         (c_parser_parms_list_declaractor): Likewise.
9534
9535 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9536
9537         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
9538         (struct c_arg_info): Change type of tags field.
9539         * c-decl.c (grokdeclarator): Update for changed type of tags field.
9540         (get_parm_info): Likewise.
9541         (store_parm_decls_newstyle): Likewise.
9542
9543 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9544
9545         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
9546         (branch_island_list): Delete.
9547         (branch_islands): Declare.
9548         (add_compiler_branch_island): Adjust for branch_islands instead of
9549         branch_island_list.
9550         (macho_branch_islands): Likewise.
9551         (no_previous_def): Likewise.
9552         (get_prev_label): Likewise.
9553
9554 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9555
9556         PR boehm-gc/34544
9557         * gthr-posix.h (__gthread_start): Delete.
9558         (__gthread_active_init): Use pthread_default_stacksize_np instead of
9559         pthread_create to determine if hpux pthreads are active.
9560         * gthr-posix95.h (__gthread_start): Delete.
9561         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
9562
9563 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
9564
9565         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
9566         _WIN64 not expanded.
9567
9568 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
9569             H.J. Lu  <hongjiu.lu@intel.com>
9570
9571         PR target/45213
9572         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
9573         to output 32bit SFmode immediate as 8 byte sign extended value.
9574
9575 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9576
9577         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
9578         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
9579         (SUBWORD_BOOL_CAS): Likewise.
9580         (SUBWORD_SYNC_OP): Likewise.
9581         (SUBWORD_TEST_AND_SET): Likewise.
9582         (FETCH_AND_OP_WORD): Parenthesise INF_OP
9583         (SUBWORD_SYNC_OP): Likewise.
9584         (OP_AND_FETCH_WORD): Likewise.
9585
9586 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9587
9588         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
9589         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
9590         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
9591         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
9592         generic part.
9593         (cortex_a9_sched_adjust_cost): New function.
9594         (xscale_sched_adjust_cost): New function.
9595         * config/arm/arm-protos.h (struct tune_params): New field
9596         sched_adjust_cost.
9597         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
9598
9599 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
9600
9601         PR target/44942
9602         * config/sparc/sparc.c (function_arg_advance): Always take into account
9603         the padding, if any.
9604
9605 2010-08-06  Richard Guenther  <rguenther@suse.de>
9606
9607         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
9608         (dump_lattice_value): Dump it.
9609         (get_default_value): Adjust.
9610         (get_constant_value): Likewise.
9611         (set_value_varying): Likewise.
9612         (set_lattice_value): Make sure to not go up the lattice
9613         with bitwise constant values.
9614         (get_value_for_expr): Handle ADDR_EXPRs.
9615         (value_to_double_int): New function.
9616         (get_value_from_alignment): Likewise.
9617         (do_dbg_cnt): Adjust.
9618         (ccp_lattice_meet): Handle partially constant values.
9619         (bit_value_unop_1): New function.
9620         (bit_value_binop_1): Likewise.
9621         (bit_value_unop): Likewise.
9622         (bit_value_binop): Likewise.
9623         (evaluate_stmt): Track partially constant values if
9624         flag_tree_bit_ccp is set.
9625         (ccp_fold_stmt): Dump if we folded a predicate.
9626         (ccp_visit_stmt): Adjust.
9627         * common.opt (ftree-bit-ccp): New flag.
9628         * doc/invoke.texi (ftree-bit-ccp): Document.
9629         * opts.c (decode_options): Enable bit-CCP at -O1.
9630
9631 2010-08-06  Alan Modra  <amodra@gmail.com>
9632
9633         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
9634         and -mrelocatable-lib description.
9635
9636 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
9637
9638         From Martin Thuresson  <martint@google.com>
9639         * postreload.c (reload_cse_simplify_operands): Use
9640         SET_REGNO_RAW instead of SET_REGNO.
9641         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
9642         SET_REGNO.
9643         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
9644         instead of SET_REGNO.
9645         * rtl.h (SET_REGNO_RAW): New macro.
9646
9647 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
9648
9649         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
9650         computations.  Fix formatting issues.
9651         (num_sign_bit_copies1): Likewise.
9652         (canonicalize_condition): Likewise.
9653
9654 2010-08-05  Richard Henderson  <rth@redhat.com>
9655
9656         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
9657         (floor_log2): Use clz_hwi.
9658         (exact_log2): Use ctz_hwi.
9659         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
9660         * builtins.c (fold_builtin_bitop): Use them.
9661         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9662         * combine.c (get_pos_from_mask): Use ctz_hwi.
9663         * double-int.c (double_int_ctz): Likewise.
9664         * explow.c (force_reg): Likewise.
9665         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
9666
9667 2010-08-05  Richard Henderson  <rth@redhat.com>
9668
9669         PR target/45189
9670         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
9671         the alignment constant is properly sign-extended.
9672
9673 2010-08-05  Richard Guenther  <rguenther@suse.de>
9674
9675         * expr.c (store_expr): Use emit_block_move only if both
9676         source and target are MEMs.  Use store_bit_field if only
9677         the target is a MEM.
9678
9679 2010-08-05  Richard Henderson  <rth@redhat.com>
9680
9681         PR debug/45188
9682         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
9683         (INCOMING_RETURN_ADDR_RTX): Likewise.
9684         (dwarf2out_do_frame): Remove conditional compilation.
9685         (dwarf2out_frame_init): Likewise.
9686
9687 2010-08-05  Nicolas Setton  <setton@adacore.com>
9688
9689         * gcov.c (flag_display_progress): New static variable.
9690         (main): Display progress info on standard output if requested.
9691         (options): Add -d/--display-progress.
9692         (print_usage): Print them.
9693         (process_args): Handle them.
9694         * doc/gcov.texi: Document them.
9695
9696 2010-08-05  Martin Jambor  <mjambor@suse.cz>
9697
9698         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
9699         (ipcp_insert_stage): Redirect only edges not flagged with
9700         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
9701         discovered constants.
9702
9703 2010-08-05  Martin Jambor  <mjambor@suse.cz>
9704
9705         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
9706         (struct ipa_param_descriptor): New fields types and
9707         cannot_devirtualize.
9708         (ipa_param_cannot_devirtualize_p): New function.
9709         (ipa_param_types_vec_empty): Likewise.
9710         (ipa_make_edge_direct_to_target): Declare.
9711         * ipa-cp.c: Fixed first stage driver name in initial comment,
9712         described devirtualization there too.
9713         (ipcp_analyze_node): Call ipa_analyze_params_uses.
9714         (ipcp_print_all_lattices): Print devirtualization info.
9715         (ipa_set_param_cannot_devirtualize): New function.
9716         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
9717         lattice to BOTTOM.
9718         (ipcp_init_stage): Merged into...
9719         (ipcp_generate_summary): ...its caller.
9720         (ipcp_change_tops_to_bottom): Also process type lists.
9721         (ipcp_add_param_type): New function.
9722         (ipcp_copy_types): Likewise.
9723         (ipcp_propagate_types): Likewise.
9724         (ipcp_propagate_stage): Also propagate types.
9725         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
9726         Also return true if propagated types require it.
9727         (ipcp_update_callgraph): Dump redirection info.
9728         (ipcp_process_devirtualization_opportunities): New function.
9729         (ipcp_const_param_count): Include known type information.
9730         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
9731         on new node.  Fixed formatting.
9732         * ipa-prop.c (make_edge_direct_to_target): Renamed to
9733         ipa_make_edge_direct_to_target and changed all callers.  Made
9734         externally visible.
9735         (ipa_node_duplication_hook): Duplicate types vector.
9736         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
9737         redirect outgoing calls for which we can't get a decl from the
9738         statement.  Check that we can get a decl from the call statement.
9739         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9740         ipa_analyze_params_uses only when ipa-cp is disabled.
9741         * tree-inline.c (get_indirect_callee_fndecl): Removed.
9742         (expand_call_inline): Do not call get_indirect_callee_fndecl.
9743         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
9744         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
9745
9746 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
9747
9748         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
9749         temporary. Emit move from temporary to accum, so REG_EQUAL note will
9750         be attached to this insn in correct mode.
9751
9752 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
9753
9754         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
9755         using REGNO of base_reg directly.
9756
9757 2010-08-05  Jie Zhang  <jie@codesourcery.com>
9758
9759         PR tree-optimization/45144
9760         * tree-sra.c (type_consists_of_records_p): Return false
9761         if the record contains bit-field.
9762
9763 2010-08-04  Richard Henderson  <rth@redhat.com>
9764
9765         * config/i386/i386.c (struct ix86_frame): Remove padding and
9766         to_allocate members.
9767         (ix86_compute_frame_layout): Don't store them.
9768         (ix86_can_use_return_insn_p): Use a more direct and more obviously
9769         correct condition for the position of the stack pointer.
9770         (ix86_expand_prologue): Compute remaining stack allocation based
9771         on the ultimate stack pointer offset.
9772         (ix86_expand_epilogue): Use more obvious expressions testing for
9773         the stack pointer already pointing to the saved registers.
9774
9775         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
9776         duplication deconstructing the frame pointer.  Simplify
9777         deallocation of the local stack frame.
9778
9779         * reg-notes.def (CFA_EXPRESSION): New.
9780         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9781         (dwarf2out_frame_debug_cfa_expression): New.
9782         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
9783
9784         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
9785         * config/i386/i386.c (ix86_expand_prologue): Set it.
9786         (ix86_expand_epilogue): Clear it.
9787         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
9788         context, add REG_CFA_EXPRESSION notes.
9789
9790         * config/i386/i386.h (struct machine_frame_state): Rename from
9791         machine_cfa_state.  Add members tracking SP and FP regardless
9792         of the current CFA register.
9793         (ix86_cfa_state): Remove.
9794         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
9795         and sse_reg_save_offset members.
9796         (ix86_compute_frame_layout): Set them.
9797         (gen_push): Increment sp_offset too.
9798         (choose_baseaddr_len, choose_baseaddr): New.
9799         (ix86_emit_save_reg_using_mov): New.
9800         (ix86_emit_save_regs_using_mov): Use it.
9801         (ix86_emit_save_sse_regs_using_mov): Likewise.
9802         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
9803         compare vs the saved red_zone_offset.
9804         (pro_epilogue_adjust_stack): Adjust sp_offset.
9805         (ix86_adjust_stack_and_probe): Likewise.
9806         (ix86_expand_prologue): Set up, use, and validate the new
9807         frame_state_info members.  Use gen_frame_mem.
9808         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
9809         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
9810         new frame_state_info members.
9811         (ix86_emit_leave): Likewise.
9812         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
9813         out-of-range stack pointer offsets here.
9814         (ix86_emit_restore_sse_regs_using_mov): Likewise.
9815         (ix86_expand_epilogue): Use and validate the new frame_state_info
9816         members.  Break up and simplify the logic selecting the
9817         restore_regs_via_mov code path.  Ensure that there will be no
9818         out-of-range stack pointer offsets.
9819
9820         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
9821
9822         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
9823         argument name to reflect the expected tree; fix indentation.
9824         (ix86_asm_output_function_label): Output the entire 32-bit
9825         ms_hook here as bytes ...
9826         (ix86_expand_prologue): ... not here as insns.  Attach the
9827         unwind info for the ms_hook to a blockage insn.
9828         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
9829         (ix86_ms_bitfield_layout_p): Fix indentation.
9830         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
9831
9832         * config/i386/i386.c (ix86_using_red_zone): New.
9833         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
9834         ix86_expand_prologue, ix86_force_to_memory): Use it.
9835
9836         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
9837         saving the int registers.
9838
9839         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
9840         and DWARF2_UNWIND_INFO conditional compilation.
9841
9842 2010-08-04  Richard Henderson  <rth@redhat.com>
9843
9844         PR debug/45171
9845         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
9846         an is_naming_typedef_decl.
9847
9848 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
9849
9850         PR rtl-optimization/45162
9851         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
9852         * dce.c (word_dce_process_block): Likewise.
9853
9854 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
9855
9856         PR target/44583
9857         * config/ia64/constraints.md (Z): New.
9858         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
9859         (xfreg_or_signed_fp01_operand): New.
9860         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
9861         with fr_reg_or_signed_fp01_operand and constraint G with Z.
9862         (subsf3): Ditto.
9863         (*maddsf4): Ditto.
9864         (*msubsf4): Ditto.
9865         (adddf3): Ditto.
9866         (adddf3_trunc): Ditto.
9867         (subdf3): Ditto.
9868         (*subdf3_trunc): Ditto.
9869         (*madddf4): Ditto.
9870         (*madddf4_trunc): Ditto.
9871         (*msubdf4): Ditto.
9872         (*msubdf4_trunc): Ditto.
9873         (addxf3): Replace xfreg_or_fp01_operand with
9874         xfreg_or_signed_fp01_operand and constraint G with Z.
9875         (*addxf3_truncsf): Ditto.
9876         (*addxf3_truncdf): Ditto.
9877         (subxf3): Ditto.
9878         (*subxf3_truncsf): Ditto.
9879         (*subxf3_truncdf): Ditto.
9880         (*maddxf4): Ditto.
9881         (*maddxf4_truncsf): Ditto.
9882         (*maddxf4_truncdf): Ditto.
9883         (*msubxf4): Ditto.
9884         (*msubxf4_truncsf): Ditto.
9885         (*msubxf4_truncdf): Ditto.
9886
9887 2010-08-04  Richard Guenther  <rguenther@suse.de>
9888
9889         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
9890         if either alias-set is zero.
9891
9892 2010-08-04  Richard Guenther  <rguenther@suse.de>
9893
9894         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
9895         * tree-ssa-ccp.c: ... here.
9896         * tree-ssa-copy.c: ... and here.
9897         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
9898         value_range_t): Move ...
9899         * tree-vrp.c: ... here.
9900         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
9901         (substitute_and_fold): Adjust prototype.
9902         * tree-ssa-propagate.c (replace_uses_in): Adjust.
9903         (replace_phi_args_in): Likewise.
9904         (substitute_and_fold): Take callback to query lattice instead
9905         of pointer to lattice.  Replace SSA name defs with lattice
9906         values first.
9907         * tree-ssa-ccp.c (ccp_finalize): Adjust.
9908         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
9909         (get_value): New function.
9910         (fini_copy_prop): Adjust.
9911         * tree-vrp.c (vrp_finalize): Adjust.
9912
9913 2010-08-04  Richard Guenther  <rguenther@suse.de>
9914
9915         PR middle-end/45176
9916         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
9917         points-to set for original MEM_REF.
9918
9919 2010-08-04  Richard Guenther  <rguenther@suse.de>
9920
9921         * tree-ssa-ccp.c (get_constant_value): New function.
9922         (get_rhs_assign_op_for_ccp): Remove.
9923         (valueize_op): New function.
9924         (ccp_fold): Use get_constant_value and valueize_op.
9925         (fold_const_aggregate_ref): Likewise.
9926         (ccp_fold_stmt): Likewise.
9927         (visit_assignment): Simplify.
9928
9929 2010-08-04  Richard Guenther  <rguenther@suse.de>
9930
9931         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
9932         * double-int.h (double_int_ctz): Declare.
9933         * double-int.c (double_int_ctz): New function.
9934
9935 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
9936
9937         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
9938         Define.
9939         picochip_expand_movmemhi : Expand movmem pattern.
9940         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
9941         Declare.
9942         * config/picochip/picochip.md (movmemhi) : New pattern.
9943
9944 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
9945
9946         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
9947
9948 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
9949
9950         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
9951         NEG as operand of a MULT by merging it with the other operand.
9952         * combine.c (make_compound_operation): Use trunc_int_for_mode when
9953         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
9954         MULT.
9955         * config/arm/constraints.md (M): Examine only 32 bits of a
9956         HOST_WIDE_INT.
9957         * config/arm/predicates.md (power_of_two_operand): Likewise.
9958
9959 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9960
9961         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
9962         non-NOTE insns.
9963
9964 2010-08-03  Jan Hubicka  <jh@suse.cz>
9965
9966         * ipa-split.c (struct split_point): Add split_part_set_retval.
9967         (find_retval): Forward declare.
9968         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
9969         (consider_split): Compute current->split_part_set_retval.
9970         (visit_bb): Do not look into return value.
9971         (split_function): Handle !split_part_set_retval
9972
9973 2010-08-03  Martin Jambor  <mjambor@suse.cz>
9974
9975         * tree-sra.c (completely_scalarize_record): New parameter REF, create
9976         its own access->expr intead of using build_ref_for_offset.
9977
9978 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
9979
9980         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
9981         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
9982         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
9983         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
9984         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
9985         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
9986         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
9987         DEFAULT_SWITCH_TAKES_ARG.
9988         * config/rx/rx.opt (-patch=): Remove option.
9989         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
9990         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
9991         * doc/invoke.texi (RX Options): Remove -patch=.
9992         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
9993         (option_map): Remove --profile-blocks, --quiet and --silent.
9994
9995 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
9996
9997         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
9998         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
9999         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
10000         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
10001         Update calls to ix86_expand_compare and ix86_expand_branch.
10002         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
10003         ix86_expand_compare.
10004         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
10005         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
10006         Make static.
10007         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
10008         and ix86_compare_op1.  Update calls to ix86_expand_compare.
10009         (ix86_expand_int_movcc): Ditto.
10010         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
10011         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
10012         (ix86_expand_setcc): Ditto.
10013         (ix86_expand_compare): Remove prototype.
10014         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
10015         ix86_compare_op0 and ix86_compare_op1.  Update calls
10016         to ix86_expand_branch to directly pass operands[1] and operands[2].
10017         (cbranchxf4): Ditto.
10018         (cbranch<MODEF:mode>4): Ditto.
10019         (cbranchcc4): Ditto.
10020         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
10021         Update calls to ix86_expand_setcc to directly pass operands[2] and
10022         operands[3].
10023         (cstorexf4): Ditto.
10024         (cstore<MODEF:mode>4): Ditto.
10025         (cstorecc4): Ditto.
10026
10027 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
10028
10029         PR target/45063
10030         * caller-save.c (save_call_clobbered_regs): Remove regs from
10031         hard_regs_saved when they are set.
10032
10033 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
10034
10035         PR target/41089
10036         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
10037         as volatile.
10038
10039 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
10040
10041         * common.opt (ftree-loop-distribute-patterns): New.
10042         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
10043         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
10044         at -O3.
10045         * tree-data-ref.c (stores_zero_from_loop): New.
10046         * tree-data-ref.h (stores_zero_from_loop): Declared.
10047         * tree-loop-distribution.c (tree_loop_distribution): Call
10048         stores_zero_from_loop.
10049         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
10050
10051 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
10052
10053         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
10054         into account.
10055
10056         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
10057         * config/arm/arm.c (thumb1_code): New variable.
10058         (arm_override_options): Set it.
10059         (thumb1_final_prescan_insn): Keep track of condition code status.
10060         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
10061         jumps that depend on them.
10062         * config/arm/arm.h (thumb1_code): Declare variable.
10063         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
10064         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
10065         thumb1_cc_mode.
10066         (CC_STATUS_INIT): New macro.
10067         * config/arm/constraints.md (Pd): New constraint.
10068         * config/arm/predicates.md (noov_comparison_operator): New predicate.
10069         * config/arm/arm.md (is_thumb1): New define_attr.
10070         (conds): Set default to "clob" when generating Thumb1 code.
10071         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
10072         code are set.  Use two-operand assembly syntax.
10073         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
10074         pattern.
10075         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
10076         codes are set.  Use two-operand assembly syntax.
10077         (zero_extendhisi splitter): Remove constraints.
10078         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
10079         thumb1_movsf_insn): Set conds attribute as appropriate.
10080         (cbranchsi4_insn): Use condition code status from struct
10081         machine_function to determine whether the comparison can be eliminated.
10082         Discourage the alternative using high registers.
10083         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
10084         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
10085         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
10086         subsi3_cbranch): Delete.
10087         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
10088         one subtract and one cbranch insn.
10089
10090         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
10091         thumb2_movdf_soft_insn): Delete patterns.
10092         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
10093         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
10094         (pool_range, neg_pool_range): Use them to define defaults.
10095         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
10096         and allow for TARGET_32BIT.
10097
10098         PR target/40457
10099         * config/arm/arm.h (arm_regs_in_sequence): Declare.
10100         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
10101         load_multiple_sequence, store_multiple_sequence): Delete
10102         declarations.
10103         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
10104         declarations.
10105         * config/arm/ldmstm.md: New file.
10106         * config/arm/arm.c (arm_regs_in_sequence): New array.
10107         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
10108         CHECK_REGS.  All callers changed.
10109         If SAVED_ORDER is nonnull, copy the computed order into it.
10110         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
10111         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
10112         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
10113         If SAVED_ORDER is nonnull, copy the computed order into it.
10114         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
10115         like REGS.  Handle Thumb mode.
10116         (arm_gen_load_multiple_1): New function, broken out of
10117         arm_gen_load_multiple.
10118         (arm_gen_store_multiple_1): New function, broken out of
10119         arm_gen_store_multiple.
10120         (arm_gen_multiple_op): New function, with code from
10121         arm_gen_load_multiple and arm_gen_store_multiple moved here.
10122         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
10123         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
10124         changed.
10125         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
10126         * config/arm/predicates.md (commutative_binary_operator): New.
10127         (load_multiple_operation, store_multiple_operation): Handle more
10128         variants of these patterns with different starting offsets.  Handle
10129         Thumb-1.
10130         * config/arm/arm.md: Include "ldmstm.md".
10131         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
10132         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
10133         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
10134         peepholes): Delete.
10135         * config/arm/ldmstm.md: New file.
10136         * config/arm/arm-ldmstm.ml: New file.
10137
10138         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
10139         if statement which adds extra costs to frame-related expressions.
10140
10141 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10142
10143         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
10144
10145 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
10146
10147         PR target/45142
10148         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
10149         alternative 2.
10150         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
10151         split V4SI operands.
10152
10153 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
10154
10155         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10156         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
10157         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
10158         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
10159
10160 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
10161
10162         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
10163         LOCAL_INCLUDE_DIR.
10164
10165 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
10166
10167         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
10168         used in the call to optab_for_tree_code.  Fix the second
10169         is_widening_mult_p call.  Check that both unwidened operands
10170         have the same sign.
10171
10172 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
10173
10174         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
10175
10176 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
10177
10178         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10179
10180 2010-07-30  DJ Delorie  <dj@redhat.com>
10181
10182         * config/rx/predicates.md (rx_constshift_operand): New.
10183         * config/rx/rx.md (zs_cond): New.
10184         (cbranchsi4): Remove mode.
10185         (*cbranchsi4_<code>): Likewise.
10186         (*tstbranchsi4_<code>): New.
10187         (*tstbranchsi4r_<code>): New.
10188         (*tstbranchsi4m_eq): New.
10189         (*tstbranchsi4m_ne): New.
10190         (cbranchsf4): Remove mode.
10191         (*cbranchsf4_<code>): Likewise.
10192
10193 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
10194
10195         * rtlanal.c (simplify_subreg_regno): Don't treat
10196         HARD_FRAME_POINTER_REGNUM specially.
10197
10198 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
10199
10200         * common.opt (-G): Don't define option here.
10201         * config/g.opt: New.
10202         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
10203         rs6000/powerpc and score targets.
10204         * opts.c (common_handle_option): Don't handle -G here.
10205         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
10206         * config/frv/frv.c (frv_handle_option): Handle -G.
10207         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
10208         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
10209         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
10210         * config/mips/mips.c (mips_handle_option): Handle -G.
10211         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
10212         * config/score/score.c (score_handle_option): Handle -G.
10213
10214 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
10215
10216         * config/mmix/mmix.c: Include basic-block.h.
10217
10218 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
10219
10220         PR debug/45055
10221         PR rtl-optimization/45137
10222         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
10223         prototypes.
10224         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
10225         New functions.
10226         * combine.c (next_nonnote_nondebug_insn): Removed.
10227         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
10228         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
10229         * sched-deps.c (sched_analyze_insn): Likewise.
10230         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
10231         * rtlanal.c (canonicalize_condition): Likewise.
10232         * postreload.c (reload_combine_recognize_pattern): Likewise.
10233         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
10234
10235 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
10236
10237         * config/i386/i386.md (int_cond): Remove code iterator.
10238         (fp_cond): Ditto.
10239         (cbranch<mode>4): Use ordered_comparison_operator predicate
10240         for operator0.
10241         (cstore<mode>4): Ditto for operator1.
10242         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
10243         (add<mode>cc): ditto.
10244
10245 2010-07-30  Richard Guenther  <rguenther@suse.de>
10246
10247         PR middle-end/45141
10248         * expr.c (expand_expr_real_1): Check for not handled base address.
10249
10250 2010-07-30  Richard Guenther  <rguenther@suse.de>
10251
10252         * ipa-prop.c (ipa_modify_formal_parameters): Use
10253         build_distinct_type_copy.
10254
10255 2010-07-30  Anthony Green  <green@moxielogic.com>
10256
10257         * config/moxie/rtems.h: New file.
10258         * config.gcc: Add moxie-rtems support.
10259
10260 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
10261
10262         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
10263         df flags as in run_fast_df_dce.
10264
10265 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
10266
10267         Revert:
10268         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
10269
10270         * rtl.def (NOTE): Swap operands 4 and 5.
10271         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
10272         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
10273         Adjust accordingly.
10274         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
10275
10276 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
10277
10278         PR debug/45110
10279         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
10280         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
10281         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
10282         formal parameters.
10283         (gen_decl_die): Change return type to dw_die_ref, return what
10284         gen_formal_parameter_die returned.
10285
10286 2010-07-29  Martin Jambor  <mjambor@suse.cz>
10287
10288         * dbgcnt.def (eipa_sra): New counter.
10289         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
10290
10291 2010-07-29  Xinliang David Li  <davidxl@google.com>
10292
10293         PR bootstrap/45119
10294         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
10295         in revision 162652.
10296
10297 2010-07-29  Richard Guenther  <rguenther@suse.de>
10298
10299         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
10300         (TV_TREE_STORE_CCP): Likewise.
10301         (TV_TREE_REDPHI): Likewise.
10302
10303 2010-07-29  Richard Guenther  <rguenther@suse.de>
10304
10305         * double-int.h (double_int_and_not): New function.
10306         * combine.c (try_combine): Use it.
10307         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
10308
10309 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
10310
10311         PR rtl-optimization/42575
10312         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
10313         Argument AU removed.  All callers changed.  Ignore artificial refs.
10314         Use return value of df_word_lr_simulate_defs to decide whether an insn
10315         is necessary.
10316         (fast_dce): Rename arg to WORD_LEVEL.
10317         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
10318         static.
10319         (pass_fast_rtl_byte_dce): Delete.
10320         * dce.h (run_word_dce): Declare.
10321         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
10322         All callers changed.  Simplify code to only deal with two-word regs.
10323         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
10324         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
10325         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
10326         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
10327         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
10328         (df_word_lr_mark_ref): Declare.
10329         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
10330         df_word_lr_simulate_uses): Declare or rename from byte variants.
10331         (df_byte_lr_simulate_artificial_refs_at_top,
10332         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
10333         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
10334         declarations.
10335         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
10336         (enum df_mm): Delete.
10337         * df-byte-scan.c: Delete file.
10338         * df-problems.c (df_word_lr_problem_data): Renamed from
10339         df_byte_lr_problem_data, all members deleted except for
10340         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
10341         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
10342         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
10343         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
10344         df_byte_lr_confluence_0): Delete functions.
10345         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
10346         callers changed.
10347         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
10348         Don't initialize members that were deleted, don't try to discover data
10349         about registers.  Ignore hard regs.
10350         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
10351         (df_word_lr_mark_ref): New function.
10352         (df_word_lr_bb_local_compute): Renamed from
10353         df_byte_bb_lr_local_compute; all callers changed.  Use
10354         df_word_lr_mark_ref.  Assert that artificial refs don't include
10355         pseudos.  Ignore hard registers.
10356         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
10357         Assert that exit block uses don't contain pseudos.
10358         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
10359         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
10360         callers changed.  Ignore hard regs.
10361         (df_word_lr_transfer_function): Renamed from
10362         df_byte_lr_transfer_function; all callers changed.
10363         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
10364         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
10365         changed.
10366         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
10367         callers changed.
10368         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
10369         confluence operator 0 set to NULL.
10370         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
10371         callers changed.
10372         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
10373         Return bool, true if bitmap changed or insn otherwise necessary.
10374         All callers changed.  Simplify using df_word_lr_mark_ref.
10375         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
10376         all callers changed.  Simplify using df_word_lr_mark_ref.
10377         * lower-subreg.c: Include "dce.h"
10378         (decompose_multiword_subregs): Call run_word_dce if df available.
10379         * Makefile.in (lower-subreg.o): Adjust dependencies.
10380         (df-byte-scan.o): Delete.
10381         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
10382
10383 2010-07-29  Richard Guenther  <rguenther@suse.de>
10384
10385         * tree.c (build_vector): Assert that the vector constant
10386         has enough elements.
10387         (build_vector_from_ctor): Pad with trailing zeros.
10388
10389 2010-07-29  Richard Guenther  <rguenther@suse.de>
10390
10391         PR tree-optimization/45120
10392         * tree-ssa-structalias.c (get_constraint_for_component_ref):
10393         Handle offset in DEREFs properly.
10394         (get_constraint_for_1): Handle MEM_REF offset properly.
10395
10396 2010-07-29  Richard Guenther  <rguenther@suse.de>
10397
10398         PR middle-end/45034
10399         * convert.c (convert_to_integer): Always use an unsigned
10400         type for narrowed negate and bitwise not.
10401
10402 2010-07-29  Ira Rosen  <irar@il.ibm.com>
10403
10404         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
10405         to outer loop when creating reduction epilogue for double reduction,
10406         and switch back to the inner loop when updating the phi nodes.
10407         Update uses of outer loop exit phi nodes in double reduction (instead
10408         of uses of reduction).
10409
10410 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
10411
10412         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
10413         popcount on power7 and parity on power6 systems.
10414         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
10415         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
10416         instructions.
10417
10418         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
10419         (UNSPEC_PARITY): Ditto.
10420         (SFDF): New iterator for SF/DF.
10421         (rreg2): New mode attribute for floating register constraint.
10422         (TARGET_FLOAT): New mode attribute for whether single/double float
10423         is supported.
10424         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
10425         pattern.
10426         (parity<mode>2_cmpb): New insn for parity on power6 and newer
10427         machines.
10428         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
10429         pattern.  Add support for fcpsgn instruction added in power6.
10430         (copysignsf3): Delete.
10431         (copysigndf3): Delete.
10432         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
10433         instead of if_then_else in RTL to avoid problems with -0.
10434
10435         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
10436         of if_then_else to mirror scalar code.
10437         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
10438         rs6000.md.
10439
10440         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
10441         instead of if_then_else.
10442
10443 2010-07-28  Xinliang David Li  <davidxl@google.com>
10444
10445         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
10446         (dump_cand): Dump var_before/after.
10447         (htab_inv_expr_eq): New function.
10448         (htab_inv_expr_hash): New function.
10449         (tree_ssa_iv_optimize_init): Support pseudo invariants.
10450         (add_candidate_1): consider base type precision.
10451         (set_use_iv_cost): New parameter.
10452         (adjust_setup_cost): Use profile information.
10453         (get_address_cost): Do not hard code width in computing address
10454         offset limits.
10455         (compare_aff_trees): New function.
10456         (get_loop_invariant_expr_id): New function.
10457         (get_computation_cost_at): New parameter and use profile information.
10458         (get_computation_cost): New parameter.
10459         (determine_use_iv_cost_generic): Pass new parameter.
10460         (determine_use_iv_cost_address): Ditto.
10461         (determine_use_iv_cost_condition): Ditto.
10462         (autoinc_possible_for_pair): Ditto.
10463         (determine_use_iv_costs): More dumps.
10464         (iv_ca_get_num_inv_exprs): New function.
10465         (iv_ca_recount_cost): Consider loop invariants in register pressure
10466         cost.
10467         (iv_ca_add_use): New parameter.
10468         (iv_ca_dump): Better dumping.
10469         (iv_ca_extend): New parameter.
10470         (try_add_cand_for): Attempt to get better partial solution.
10471         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
10472         (create_new-ivs): More dumps.
10473         (rewrite_use_compare): Ditto.
10474         (free_loop_data): More cleanup.
10475         (treee_ssa_iv_optimize_finalize): Ditto.
10476
10477 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
10478
10479         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
10480         * config/i386/i386.c (ix86_profile_before_prologue): New.
10481         (override_options): Add special handling for -mfentry.
10482         (ix86_function_regparm): Likewise.
10483         (ix86_function_sseregparm): Likewise.
10484         (ix86_frame_pointer_required): Likewise.
10485         (ix86_expand_prologue): Check for ms_hook_prologue.
10486         (x86_function_profiler): Adjust mcount output.
10487         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
10488         * config/i386/i386.opt (mfentry): New.
10489         * doc/invoke.texi (mfentry): Add documentation.
10490         * doc/tm.texi: Regenerated..
10491         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
10492         * final.c (final_start_function): Replace macro
10493         PROFILE_BEFORE_PROLOGUE by target hook.
10494         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10495         * target.def (profile_before_prologue): New hook.
10496         * targhooks.c (default_profile_before_prologue): New.
10497         * targhooks.h (default_profile_before_prologue): New.
10498
10499 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
10500
10501         PR debug/45105
10502         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
10503
10504         PR debug/45103
10505         * dwarf2out.c (dwarf2out_var_location): Always consider
10506         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
10507
10508 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
10509
10510         PR rtl-optimization/45107
10511         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
10512
10513 2010-07-28  Richard Guenther  <rguenther@suse.de>
10514
10515         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
10516         (set_lattice_value): Do not query an old default value.
10517         (get_value_for_expr): New function.  Properly canonicalize
10518         float values.
10519         (ccp_visit_phi_node): Use it.
10520
10521 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
10522
10523         * config/arm/arm.c (arm_pcs_default): Remove static.
10524         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
10525         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
10526         (arm_pcs_default): Declare.
10527
10528 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
10529
10530         * config/rs6000/rs6000.c (rs6000_override_options):
10531         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
10532         ... to darwin_rs6000_override_options.
10533         (rs6000_return_in_memory): Update preceding comment for darwin
10534         64 bit ABI.  Use TARGET_MACHO inline.
10535         (rs6000_darwin64_struct_check_p): New.
10536         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
10537         (function_arg): Likewise.
10538         (rs6000_arg_partial_bytes): Likewise.
10539         (rs6000_function_value): Likewise.
10540
10541 2010-07-28  Andi Kleen  <ak@linux.intel.com>
10542
10543         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
10544
10545 2010-07-28  Richard Guenther  <rguenther@suse.de>
10546
10547         PR middle-end/44903
10548         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
10549         targets try harder to not generate unaligned accesses.
10550
10551 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
10552
10553         PR rtl-optimization/45101
10554         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
10555         for gcse-las.
10556
10557 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
10558
10559         PR tree-optimization/44885
10560         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
10561         with non-aliased component.
10562
10563 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
10564
10565         * config/darwin-driver.c (SWITCH_TAKES_ARG,
10566         WORD_SWITCH_TAKES_ARG): Remove.
10567         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
10568         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
10569         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
10570         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
10571         definitions from gcc.c.
10572         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
10573         defaults.h.
10574         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
10575         Move to defaults.h.
10576         * opts-common.c: Include tm.h.
10577         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
10578         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
10579         Handle more than one argument.  Set canonical_option_num_elements.
10580         (decode_cmdline_options_to_array): Set
10581         canonical_option_num_elements and trailing elements of
10582         canonical_option.
10583         * opts.h (struct cl_decoded_option): Allow four elements in
10584         canonical_option.  Add field canonical_option_num_elements.
10585         * Makefile.in (opts-common.o): Update dependencies.
10586
10587 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
10588
10589         PR middle-end/44790
10590         PR middle-end/44993
10591         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
10592         sure the base has address_mode before adding the offset.
10593
10594 2010-07-27  Xinliang David Li  <davidxl@google.com>
10595
10596         * tree-flow.h (create_mem_ref): Add one new parameter.
10597         * tree-ssa-address.c (create_mem_ref): New parameter.
10598         (addr_to_parts): Ditto.
10599         (move_variant_to_index): New function.
10600         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
10601
10602 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
10603
10604         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
10605         4 and 5.
10606         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
10607         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
10608         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
10609         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
10610         CODE_LABELs and NOTEs.
10611         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
10612         * combine.c (try_combine): Likewise.
10613         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10614         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
10615
10616 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
10617
10618         * coretypes.h (struct cl_option_handlers): Declare.
10619         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
10620         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
10621         * langhooks-def.h (lhd_handle_option): Declare.
10622         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
10623         * langhooks.c (lhd_handle_option): New.
10624         * langhooks.h (struct lang_hooks): Update prototype and return
10625         value type of handle_option hook.
10626         * optc-gen.awk: Generate target_flags_explicit definition for the
10627         driver.
10628         * opts-common.c: Include diagnostic.h.
10629         (handle_option): Move from opts.c.  Update prototype and return
10630         value type.  Use handlers structure.
10631         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
10632         handlers structure.
10633         (set_option): Move from opts.c.
10634         * opts.c (common_handle_option): Update prototype and return value
10635         type.  Update calls to handle_option and enable_warning_as_error.
10636         (unknown_option_callback, post_handling_callback,
10637         lang_handle_option, target_handle_option): New.
10638         (handle_option, read_cmdline_option): Move to opts-common.c.
10639         (read_cmdline_options): Update prototype.  Update call to
10640         read_cmdline_option.
10641         (decode_options): Initialize and use handlers structure.
10642         (set_option): Move to opts-common.c.
10643         (enable_warning_as_error): Update prototype.  Update call to
10644         handle_option.
10645         * opts.h (struct cl_option_handler_func, struct
10646         cl_option_handlers): New.
10647         (handle_option, enable_warning_as_error): Update prototypes.
10648         (read_cmdline_option): Declare.
10649         * Makefile.in (opts-common.o): Update dependencies.
10650
10651 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10652
10653         * config/arm/arm.c (params.h): Include.
10654         (arm_override_options): Tune gcse-unrestricted-cost.
10655         * config/arm/t-arm (arm.o): Define dependencies.
10656
10657 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10658
10659         PR target/42495
10660         PR middle-end/42574
10661         * basic-block.h (get_dominated_to_depth): Declare.
10662         * dominance.c (get_dominated_to_depth): New function, use
10663         get_all_dominated_blocks as a base.
10664         (get_all_dominated_blocks): Use get_dominated_to_depth.
10665
10666         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
10667         (hoist_exprs): Remove.
10668         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
10669         (compute_code_hoist_vbeinout): Add debug print outs.
10670         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
10671
10672         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
10673         quadratic behavior.
10674         * params.h (MAX_HOIST_DEPTH): New macro.
10675         * doc/invoke.texi (max-hoist-depth): Document.
10676
10677 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10678
10679         PR rtl-optimization/40956
10680         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
10681         constants.
10682
10683 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10684
10685         PR target/42495
10686         PR middle-end/42574
10687         * config/arm/arm.c (legitimize_pic_address): Use
10688         gen_calculate_pic_address pattern to emit calculation of PIC address.
10689         (will_be_in_index_register): New function.
10690         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
10691         (thumb1_legitimate_address_p): Use it provided !strict_p.
10692         * config/arm/arm.md (calculate_pic_address): New expand and split.
10693
10694 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10695
10696         PR target/42495
10697         PR middle-end/42574
10698         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
10699         * config/arm/arm.md (define_split "J", define_split "K"): Make
10700         IRA/reload friendly.
10701
10702 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10703
10704         * gcse.c (insert_insn_end_basic_block): Update signature, remove
10705         unused checks.
10706         (pre_edge_insert, hoist_code): Update.
10707
10708 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10709
10710         PR target/42495
10711         PR middle-end/42574
10712         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
10713
10714 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10715
10716         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
10717
10718 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10719
10720         PR rtl-optimization/40956
10721         PR target/42495
10722         PR middle-end/42574
10723         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
10724         for hoisting.
10725         (hoist_code): Count occurences in current block too.
10726
10727 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10728
10729         * gcse.c (struct expr:max_distance): New field.
10730         (doing_code_hoisting_p): New static variable.
10731         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
10732         simple expressions, don't change behavior for PRE.  Set max_distance.
10733         (insert_expr_in_table): Set new max_distance field.
10734         (hash_scan_set): Update.
10735         (hoist_expr_reaches_here_p): Stop search after max_distance
10736         instructions.
10737         (find_occr_in_bb): New static function.  Use it in ...
10738         (hoist_code): Calculate sizes of basic block before any changes are
10739         done.  Pass max_distance to hoist_expr_reaches_here_p.
10740         (one_code_hoisting_pass): Set doing_code_hoisting_p.
10741
10742         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
10743         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
10744         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
10745         macros.
10746         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
10747         Document.
10748
10749 2010-07-27  Jeff Law  <law@redhat.com>
10750             Maxim Kuvyrkov  <maxim@codesourcery.com>
10751
10752         * gcse.c (compute_transpout, transpout): Remove, move logic
10753         to prune_expressions.
10754         (compute_pre_data): Move pruning of trapping expressions ...
10755         (prune_expressions): ... here.  New static function.
10756         (compute_code_hoist_data): Use it.
10757         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
10758
10759 2010-07-27  Xinliang David Li  <davidxl@google.com>
10760
10761         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
10762         (rewrite_use_address): Adjust iv update position when needed.
10763
10764 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10765
10766         * dbgcnt.def (hoist_insn): New debug counter.
10767         * gcse.c (hoist_code): Use it.
10768
10769 2010-07-27  Xinliang David Li  <davidxl@google.com>
10770
10771         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
10772         (niter_for_single_dom_exit): Passes additional parameter.
10773         (iv_period): Fix comments.
10774         (may_eliminate_iv): Handles multiple exit loops properly.
10775         (free_tree_niter_desc): New function.
10776         (free_loop_data): Frees up loop iteration descriptors.
10777
10778 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
10779
10780         PR target/44542
10781         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
10782         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
10783         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
10784         (expand_one_var): Don't consider DECL_ALIGN for variables for
10785         which expand_one_stack_var_at has been already called.
10786
10787         PR testsuite/44701
10788         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
10789         constraints on IA-64.
10790
10791 2010-07-27  Jie Zhang  <jie@codesourcery.com>
10792
10793         PR target/44290
10794         Revert:
10795         2010-07-23  Jie Zhang  <jie@codesourcery.com>
10796
10797         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10798         false if ! tree_versionable_function_p.
10799
10800 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
10801
10802         * dwarf2out.c (add_data_member_location_attribute): Use
10803         add_AT_unsigned instead of add_AT_int if offset is non-negative.
10804
10805 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
10806
10807         * postreload.c (try_replace_in_use): New static function.
10808         (reload_combine_recognize_const_pattern): Use it here.  Allow
10809         substituting into a final add insn, and substituting into a memory
10810         reference in an insn that sets the reg.
10811
10812 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
10813
10814         * common.opt (o): Add MissingArgError.
10815         * doc/options.texi (MissingArgError): Document.
10816         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
10817         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
10818         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10819         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
10820         * langhooks.h (struct lang_hooks): Remove missing_argument.
10821         * optc-gen.awk: Handle MissingArgError and output new structure
10822         field initializers.
10823         * opts.c (read_cmdline_option): Use missing_argument_error field
10824         instead of missing_argument langhook.
10825         * opts.h (struct cl_option): Add missing_argument_error field.
10826         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
10827
10828 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
10829
10830         PR target/29090
10831         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
10832         Darwin64 ABI, for zero-sized objects.
10833
10834 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
10835
10836         PR target/35491
10837         PR target/29090
10838
10839         Merge from Apple local 4.2.1.
10840         2005-05-11  Stan Shebs  <shebs@apple.com>
10841         Fix 64-bit varargs for Darwin (Radar 4028089).
10842         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
10843         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10844         Add argument, add case for 8-byte register half-filled with a float.
10845         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
10846         single-precision floats specially.
10847
10848 2010-07-27  Ira Rosen  <irar@il.ibm.com>
10849
10850         PR tree-optimization/44152
10851         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
10852         complex numbers for further check.
10853         (vect_supported_load_permutation_p): Check nodes with
10854         complex numbers.
10855
10856 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
10857
10858         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
10859         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
10860         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
10861         (LANG_HOOKS_INITIALIZER): Add new hooks.
10862         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
10863         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
10864         and complain_wrong_lang_p.  Update init_options prototype.
10865         * c-objc-common.c (c_initialize_diagnostics): First call
10866         c_common_initialize_diagnostics.
10867         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
10868         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
10869         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
10870         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
10871         (hook_uint_void_0): New.
10872         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
10873         (hook_uint_void_0): New.
10874         * opts-common.c (decode_cmdline_option,
10875         decode_cmdline_options_to_array): Also fill in canonical_option field.
10876         * opts.c (complain_wrong_lang): Use langhook to determine whether
10877         to complain instead of special-casing LTO.
10878         (decode_options): Separate lang_mask determination with
10879         option_lang_mask hook from call of init_options hook.
10880         * opts.h (struct cl_decoded_option): Add canonical_option.
10881
10882 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
10883
10884         PR tree-optimization/45083
10885         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
10886
10887 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
10888
10889         * postreload.c (reload_combine_recognize_const_pattern): Move test
10890         for limiting the insn movement to the right scope.
10891
10892         PR rtl-optimization/45051
10893         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
10894         than reg_mentioned_p.
10895
10896 2010-07-26  Richard Henderson  <rth@redhat.com>
10897
10898         PR target/44132
10899         * tree-emutls.c: New file.
10900         * Makefile.in (OBJS-common): Add it.
10901         * tree-pass.h (pass_ipa_lower_emutls): Declare.
10902         * passes.c (init_optimization_passes): Add it.
10903
10904         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
10905         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
10906         * expr.c (emutls_var_address): Delete.
10907         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
10908         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
10909         (emutls_finish): Delete.
10910         * toplev.c (compile_file): Don't call it.
10911         * tree.h (emutls_decl): Delete.
10912         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
10913         (emutls_finish, emutls_finalize_control_var): Delete.
10914         (emutls_object_type): Move to tree-emutls.c.
10915         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
10916         default_emutls_var_fields, get_emutls_object_type,
10917         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
10918         default_emutls_var_init): Likewise.
10919         (get_variable_section): Don't special case emutls.
10920         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
10921         default_elf_select_section, default_unique_section,
10922         default_encode_section_info): Likewise.
10923         * varpool.c (decide_is_variable_needed): Likewise.
10924         * gimple-iterator.c (update_call_edge_frequencies): New
10925         (gsi_insert_on_edge_immediate): Use it.
10926         (gsi_insert_seq_on_edge_immediate): Likewise.
10927         (gsi_commit_one_edge_insert): Likewise.
10928
10929         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
10930         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
10931         (x86_64_elf_unique_section): Likewise.
10932
10933 2010-07-26  Jan Hubicka  <jh@suse.cz>
10934
10935         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
10936         GTY((skip)).
10937
10938 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
10939
10940         * target.def (output_source_filename): New hook.
10941         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
10942         * doc/tm.texi: Regenerate.
10943         * toplev.c (output_file_directive) Remove function.
10944         * toplev.h (output_file_directive) Remove.
10945         * output.h (default_asm_output_source_filename,
10946         output_file_directive): Declare.
10947         * varasm.h (default_asm_output_source_filename,
10948         output_file_directive): New functions.
10949
10950         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10951         * config/mips/mips-protos.h (mips_output_filename): Remove.
10952         * config/mips/mips.c (mips_output_filename): Make Static.
10953         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
10954
10955 2010-07-26  Richard Guenther  <rguenther@suse.de>
10956
10957         PR tree-optimization/43784
10958         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
10959         if the destination is used by the call.
10960
10961 2010-07-26  Richard Guenther  <rguenther@suse.de>
10962
10963         PR middle-end/45073
10964         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
10965         SSA updating on being in SSA form.
10966
10967 2010-07-26  Richard Guenther  <rguenther@suse.de>
10968
10969         PR middle-end/45056
10970         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
10971
10972 2010-07-26  Richard Guenther  <rguenther@suse.de>
10973
10974         PR tree-optimization/45071
10975         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
10976         adjust op->opcode.
10977
10978 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
10979
10980         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
10981         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
10982         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
10983         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
10984         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
10985         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
10986         save_r31, return_r31, save_interrupt, return_interrupt,
10987         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
10988         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
10989         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
10990         new ABI requirements.
10991         (save_r6_r9, L_callt_save_r6_r9): Remove.
10992         * config/v850/predicates.md (even_reg_operand, disp23_operand,
10993         const_float_1_operand const_float_0_operand): New Predicates.
10994         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
10995         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
10996         * config/v850/t-v850: Update multilibs for new target variants.
10997         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
10998         * config/v850/t-v850e: Likewise.
10999         * config/v850/v850.c (v850_issue_rate): New.
11000         (v850_strict_argument_naming): New.
11001         (function_arg): Modify to generate a different ABI.
11002         (print_operand): Update case 'z' to support float modes.
11003         (output_move_single): Modify to generate appropriate and better
11004         assembly.
11005         (v850_float_z_comparison_operator, v850_select_cc_mode,
11006         v850_float_nz_comparison_operator,  v850_gen_float_compare,
11007         v850_gen_compare): New functions to support comparison of float values.
11008         (ep_memory_offset): Add support for V850E2 targets.
11009         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
11010         (INTERRUPT_REGPARM_NUM): Remove.
11011         (compute_register_save_size): Add extra case to save/restore long call.
11012         (use_prolog_function): New function to support prologue.
11013         (expand_prologue): Add support for V850E2 targets and modified
11014         as per the current ABI requirements.
11015         (expand_epilogue): Likewise.
11016         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
11017         (construct_save_jarl): Likewise.
11018         (construct_dispose_instruction): Update as per the current ABI
11019         requirements.
11020         (construct_prepare_instruction): Likewise.
11021         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
11022         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
11023         (CPP_SPEC): Updated to support v850e2 targets.
11024         (STRICT_ALIGNMENT): Modified.
11025         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
11026         (FIXED_REGISTERS): Likewise.
11027         (CALL_USED_REGISTERS): Likewise.
11028         (CONDITIONAL_REGISTER_USAGE): Updated.
11029         (HARD_REGNO_MODE_OK): Updated.
11030         (reg_class): Updated to add even registers.
11031         (REG_CLASS_NAMES): Likewise.
11032         (REG_CLASS_CONTENTS): Likewise.
11033         (REGNO_REG_CLASS): Updated for CC registers.
11034         (REG_CLASS_FROM_LETTER): Added support for even registers.
11035         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
11036         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
11037         ARG_POINTER_REGNUM): Updated.
11038         (FUNCTION_ARG_ADVANCE): Define.
11039         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
11040         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
11041         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
11042         (GO_IF_LEGITIMATE_ADDRESS): Updated.
11043         (SELECT_CC_MODE): Define.
11044         (REGISTER_NAMES): Updated to add psw and fcc registers.
11045         (ADDITIONAL_REGISTER_NAMES): Updated.
11046         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
11047         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
11048         * config/v850/v850.md (define_constants): Define new constants.
11049         (type): Update store,bit1,macc,div,fpu and single attributes.
11050         (cpu): New attribute.
11051         (cc): Add set_z attribute.
11052         (unsign23byte_load, sign23byte_load, unsign23hword_load,
11053         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
11054         23word_store): New instructions for 23-bit displacement load and store.
11055         (movqi_internal, movhi_internal): Update the attributes.
11056         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
11057         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
11058         the attributes.
11059         (v850_tst1): Modified using CC_REGNUM.
11060         (tstsi): Remove.
11061         (cmpsi): Modified as define_expand from define_insn.
11062         (cmpsi_insn, cmpsf, cmpdf): New instructions.
11063         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
11064         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
11065         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
11066         one_cmplsi2): Clobber the CC_REGNUM register.
11067         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
11068         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
11069         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
11070         (setf_insn, set_z_insn, set_nz_insn): New instructions for
11071         v850e2v3 target.
11072         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
11073         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
11074         targets.
11075         (sasf_1, sasf_2): Remove.
11076         (sasf): New instruction.
11077         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
11078         targets. CC_REGNUM register is clobbered and attributes are
11079         updated.
11080         (branch_z_normal, branch_z_invert, branch_nz_normal,
11081         branch_nz_invert): New branch related instructions.
11082         (jump): Updated the attributes.
11083         (switch): Update to support new targets. CC_REGNUM register is
11084         clobbered and attributes are updated.
11085         (call_internal_short, call_internal_long, call_value_internal_short,
11086         call_value_internal_long): Updated the attributes.
11087         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
11088         clobbered and attributes are updated.
11089         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
11090         Update to support new targets. CC_REGNUM register is clobbered.
11091         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
11092         instructions.
11093         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
11094         are updated.
11095         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
11096         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
11097         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
11098         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
11099         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
11100         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
11101         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
11102         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
11103         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
11104         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
11105         point instructions defined for V850e2v3 target.
11106         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
11107         Add support for V850E2 targets and CC_REGNUM register is clobbered.
11108         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
11109         support for new targets.
11110         * config/v850/v850-modes.def: New file.
11111         * config/v850/v850.opt(mstrict-align): Remove.
11112         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
11113         mv850e2v3): New command line options for V850.
11114         * config.gcc: Update the newly added files.
11115         * doc/invoke.texi: Update the newly added command line options for
11116         V850 target.
11117
11118 2010-07-26  Richard Guenther  <rguenther@suse.de>
11119
11120         PR tree-optimization/45052
11121         * ipa-pure-const.c (check_stmt): Check volatileness.
11122
11123 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
11124
11125         PR target/44707
11126         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
11127         * config/sparc/sparc.c: Include reload.h.
11128         (legitimize_tls_address): Rename into...
11129         (sparc_legitimize_tls_address): ...this.
11130         (legitimize_pic_address): Rename into...
11131         (sparc_legitimize_pic_address): ...this.
11132         (sparc_expand_move): Adjust to above renaming.
11133         (sparc_tls_referenced_p): Likewise.
11134         (sparc_legitimize_tls_address): Likewise.
11135         (sparc_legitimize_pic_address): Likewise.
11136         (sparc_legitimize_address): Likewise.
11137         (sparc_output_mi_thunk): Likewise.
11138         (sparc_legitimize_reload_address): New global function.  Recognize
11139         (lo_sum (high ...) ...) patterns generated by earlier passes.
11140         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
11141
11142 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
11143
11144         PR target/44484
11145         * config/sparc/predicates.md (memory_reg_operand): Delete.
11146         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
11147         (*sync_compare_and_swap): Encode the address form in the pattern.
11148         (*sync_compare_and_swapdi_v8plus): Likewise.
11149
11150 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
11151
11152         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
11153         Streamline paragraph on compatibility with the system compiler.
11154
11155 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
11156
11157         PR middle-end/45035
11158         * alias.c (true_dependence_1): Fix thinko in merge of old
11159         true_dependence and canon_true_dependence.
11160
11161 2010-07-23  Jan Hubicka  <jh@suse.cz>
11162
11163         * lto-streamer-out.c (write_symbol): Fix visibilities of external
11164         references.
11165
11166 2010-07-23  Le-Chun Wu  <lcwu@google.com>
11167
11168         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
11169         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
11170         and an unnecessary assignment.
11171         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
11172         self-assign warning.
11173         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
11174         unnecessary self-init.
11175
11176 2010-07-23  Richard Guenther  <rguenther@suse.de>
11177
11178         PR lto/43071
11179         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
11180         for -flto and -fwhopr.
11181
11182 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
11183
11184         PR target/41943
11185         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
11186         (stmp-int-hdrs): Prefix/postfix headers by include_next.
11187         * config.gcc (user_headers_inc_next_pre): New.
11188         (user_headers_inc_next_post): Likewise.
11189         (*-w64-mingw*): Use for float.h post-fixing, and for
11190         stddef.h/stdarg.h pre-fixing by include_next.
11191         * configure.ac (user_headers_inc_next_post): New.
11192         (user_headers_inc_next_pre): New.
11193         * configure: Regenerated.
11194
11195 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11196
11197         * configure.ac: Don't disable TLS on Solaris 8/9 by default
11198         Set tga_func for Solaris 2/x86 resp. SPARC.
11199         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
11200         (LIB_THREAD_LDFLAGS_SPEC): Define.
11201         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
11202         * configure: Regenerate.
11203         * config.in: Regenerate.
11204         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
11205         -pthread, -threads, LIB_TLS_SPEC with -pthread.
11206         * doc/install.texi (Specific, *-*-solaris2*): Document use of
11207         alternate thread libraries on Solaris 8.
11208         Document TLS patch requirements.
11209         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
11210         Document tls.
11211
11212         PR target/18788
11213         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
11214         -shared.
11215
11216 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
11217
11218         * tree.h (struct tree_base): Add nameless_flag bitfield.
11219         (TYPE_NAMELESS, DECL_NAMELESS): Define.
11220         * omp-low.c (create_omp_child_function, scan_omp_parallel,
11221         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
11222         DECL_ARTIFICIAL where needed.
11223         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
11224         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
11225         has DECL_NAMELESS set.
11226
11227 2010-07-23  Martin Jambor  <mjambor@suse.cz>
11228
11229         PR tree-optimization/44915
11230         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
11231         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
11232         (analyze_function): Likewise.
11233
11234 2010-07-23  Martin Jambor  <mjambor@suse.cz>
11235
11236         PR tree-optimization/44914
11237         * tree-sra.c (sra_modify_function_body): Return true if CFG was
11238         changed, add purging dead eh edges.
11239         (ipa_sra_modify_function_body): Return true if CFG was changed,
11240         simplify purging dead eh edges.
11241         (modify_function): Return true if CFG was changed.
11242         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
11243         was changed.
11244         (ipa_early_sra): Likewise.
11245
11246 2010-07-23  Jie Zhang  <jie@codesourcery.com>
11247
11248         PR target/44290
11249         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
11250         if "naked".
11251         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
11252         false if ! tree_versionable_function_p.
11253
11254 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
11255
11256         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
11257         * ipa-pure-const.c (special_builtlin_state): Remove
11258         BUILT_IN_ARGS_INFO case.
11259         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
11260         * builtins.c (expand_builtin): Likewise.
11261         (expand_builtin_args_info): Remove.
11262         * doc/tm.texi (__builtin_args_info): Remove.
11263         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
11264         * doc/tm.text.in: Likewise.
11265
11266 2010-07-23  Richard Guenther  <rguenther@suse.de>
11267
11268         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
11269         (lto_symtab_merge_decls_2): Likewise.
11270         * tree-ssa.c (useless_type_conversion_p): Likewise.
11271         * lto-streamer-in.c (input_gimple_stmt): Likewise.
11272         * gimple.c (gtc_visited2, gtc_ob2): Remove.
11273         (struct type_pair_d): Make same_p an array indexed by mode.
11274         Update comment.
11275         (lookup_type_pair): Update initialization.
11276         (struct sccs): Adjust same_p type.
11277         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
11278         Adjust.
11279         (print_gimple_types_stats): Likewise.
11280         * gimple.h (enum gtc_mode): New.
11281         (gimple_types_compatible_p): Adjust prototype.
11282
11283 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
11284
11285         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
11286         again after processing insn.
11287
11288 2010-07-23  Jie Zhang  <jie@codesourcery.com>
11289
11290         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
11291         proper words when !tree_versionable_function_p.
11292
11293 2010-07-23  Richard Guenther  <rguenther@suse.de>
11294
11295         PR tree-optimization/45037
11296         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
11297
11298 2010-07-23  Jie Zhang  <jie@codesourcery.com>
11299
11300         * doc/extend.texi: Remove IP2K from the description of naked attribute.
11301         Add MCORE instead.
11302
11303 2010-07-10  Andi Kleen  <ak@linux.intel.com>
11304
11305         PR lto/44992
11306         * lto-opts.c (lto_write_options): Add NULL file_data argument to
11307         lto_get_section_name.
11308         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11309         * lto-streamer-out.c (produce_asm): Likewise.
11310         (copy_function): Likewise.
11311         (produce_symtab): Likewise.
11312         (produce_asm_for_decls): Likewise.
11313         * lto-streamer.c (lto_get_section_name): Add file_data argument.
11314         Rewrite to add random postfix to LTO sections.
11315         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
11316         (lto_get_section_name): Add file_data argument to prototype.
11317
11318 2010-07-10  Andi Kleen  <ak@linux.intel.com>
11319
11320         * lto-section-in.c (lto_section_name): Synchronize names
11321         with lto_get_section_name.
11322
11323 2010-07-10  Andi Kleen  <ak@linux.intel.com>
11324
11325         * lto-opts.c (lto_read_file_options): Check for missing section.
11326
11327 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11328
11329         * ira.c (check_allocation): Correctly handle the case where an allocno
11330         with two objects was allocated to a single reg.
11331
11332 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
11333
11334         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
11335         (is_widening_mult_p): Likewise.
11336         (convert_to_widen): Use them.
11337         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
11338         well as integer ones.
11339
11340 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
11341
11342         * alias.c (true_dependence_1): New function, merged version of
11343         true_dependence and canon_true_dependence.
11344         (true_dependence): Simplify.
11345         (canon_true_dependence): Simplify.
11346
11347 2010-07-22  Richard Henderson  <rth@redhat.com>
11348
11349         PR target/45027
11350         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
11351         of V4SFmode for the SSE saves; increase stack alignment if needed.
11352         (ix86_gimplify_va_arg): Don't increase stack alignment here.
11353
11354 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
11355
11356         PR bootstrap/45028
11357         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
11358         call cprop_find_used_regs again via note_uses.
11359
11360 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
11361
11362         * alias.c (get_alias_set): Fix formatting issues.
11363
11364 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
11365
11366         PR middle-end/44878
11367         * stmt.c (expand_value_return):  Call promote_function_mode with
11368         a for_return argument of 2 when returning by reference.
11369
11370 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
11371
11372         PR debug/45024
11373         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
11374         unit DIE if we can find the scope DIE.
11375
11376 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11377
11378         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
11379         changed.  Initialize OBJECT_SUBWORD.
11380         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
11381         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
11382         all callers changed.
11383         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
11384         (finish_allocno): Likewise.
11385         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
11386         (remove_low_level_allocnos): Likewise.
11387         (update_bad_spill_attribute): Likewise.
11388         (setup_min_max_allocno_live_range_point): Likewise.
11389         (sort_conflict_id_map): Likewise.
11390         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
11391         (ior_hard_reg_conflicts): New function.
11392         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
11393         (compress_conflict_vecs): Iterate over objects, not allocnos.
11394         (ira_add_live_range_to_object): New function.
11395         (object_range_compare_func): Renamed from allocno_range_compare_func.
11396         All callers changed.
11397         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
11398         subobjects, widen the min/max range of the lowest-order object to
11399         potentially include all other such low-order objects.
11400         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
11401         (check_allocation): Likewise.  Use more fine-grained tests for register
11402         conflicts.
11403         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
11404         allocno subobjects.
11405         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
11406         choices about which bits to set in each set.  Don't use
11407         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
11408         using the multiple sets we computed.
11409         (push_allocno_to_stack): Iterate over allocno subobjects.
11410         (all_conflicting_hard_regs_coalesced): New static function.
11411         (setup_allocno_available_regs_num): Use it.
11412         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
11413         subobjects.
11414         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
11415         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11416         by ALLOCNO_NUM_OBJECTS.
11417         (calculate_spill_cost): Likewise.
11418         (color_pass): Express if statement in a more normal way.
11419         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
11420         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
11421         (setup_slot_coalesced_allocno_live_ranges): Likewise.
11422         (allocno_reload_assign): Likewise.
11423         (ira_reassign_pseudos): Likewise.
11424         (fast_allocation): Likewise.
11425         * ira-conflicts.c (build_conflict_bit_table): Likewise.
11426         (print_allocno_conflicts): Likewise.
11427         (ira_build_conflicts): Likewise.
11428         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
11429         callers changed.  Test subword 0 of each allocno for conflicts.
11430         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
11431         callers changed.  Iterate over allocno subobjects.
11432         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
11433         * ira-int.h (struct ira_allocno): New member: num_objects.
11434         Rename object to objects and change it into an array.
11435         (ALLOCNO_OBJECT): Add new argument N.
11436         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
11437         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
11438         (ior_hard_reg_conflicts): Declare.
11439         (ira_add_live_range_to_object): Declare.
11440         (ira_allocno_object_iterator): New.
11441         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
11442         (FOR_EACH_ALLOCNO_OBJECT): New macro.
11443         * ira-lives.c (objects_live): Renamed from allocnos_live; all
11444         uses changed.
11445         (allocnos_processed): New sparseset.
11446         (make_object_born): Renamed from make_allocno_born; take an
11447         ira_object_t argument.  All callers changed.
11448         (make_object_dead): Renamed from make_allocno_dead; take an
11449         ira_object_t argument.  All callers changed.
11450         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
11451         All callers changed.
11452         (mark_pseudo_regno_live): Iterate over allocno subobjects.
11453         (mark_pseudo_regno_dead): Likewise.
11454         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
11455         functions.
11456         (mark_ref_live): Detect subword accesses and call
11457         mark_pseudo_regno_subword_live as appropriate.
11458         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
11459         (process_bb_nodes_live): Deal with object-related updates first; set
11460         and test bits in allocnos_processed to avoid computing allocno
11461         statistics more than once.
11462         (create_start_finish_chains): Iterate over objects, not allocnos.
11463         (print_object_live_ranges): New function.
11464         (print_allocno_live_ranges): Use it.
11465         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
11466         and objects_live.
11467
11468 2010-07-22  Richard Guenther  <rguenther@suse.de>
11469
11470         PR lto/42451
11471         * gimple.c (gtc_next_dfs_num): New global.
11472         (struct sccs): Make value a union, add integer same_p member.
11473         (gtc_visit): New function.
11474         (gimple_types_compatible_p_1): New function, split out from ...
11475         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
11476         (iterative_hash_gimple_type): Adjust for sccs change.
11477
11478 2010-07-22  Martin Jambor  <mjambor@suse.cz>
11479
11480         PR tree-optimization/44891
11481         * tree-sra.c: Include gimple-pretty-print.h.
11482         (replace_uses_with_default_def_ssa_name): Renamed to
11483         get_repl_default_def_ssa_name, return the new SSA name instead of
11484         replacing the old one.
11485         (sra_modify_assign): Dump a message when removing a load, if the LHS
11486         is an SSA_NAME, do not do any propagation, just set the RHS to a
11487         default definition SSA NAME, type convert if necessary.
11488         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
11489
11490 2010-07-22  Richard Guenther  <rguenther@suse.de>
11491
11492         PR tree-optimization/45017
11493         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
11494         TYPE_PRECISION of integral types in addition to size.
11495
11496 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11497
11498         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
11499         when no C library is specified.
11500
11501 2010-07-22  Martin Jambor  <mjambor@suse.cz>
11502
11503         * ipa-prop.h (struct ipa_node_params): Updated comment.
11504         (struct ipa_edge_args): Likewise.
11505         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
11506
11507 2010-07-22  Martin Jambor  <mjambor@suse.cz>
11508
11509         * cgraphunit.c (verify_edge_count_and_frequency): New function.
11510         (verify_cgraph_node): Verify frequencies of indirect edges.
11511         * tree-inline.c (tree_function_versioning): Update frequencies of
11512         indirect edges.
11513
11514 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11515
11516         PR target/43698
11517         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
11518         Set *arm_rev to be predicable.
11519
11520 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
11521
11522         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
11523         (LINK_COMMAND_SPEC_A): New.
11524         (DSYMUTIL): New.
11525         (DSYMUTIL_SPEC): New.
11526         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
11527         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
11528
11529 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
11530
11531         * calls.c (load_register_parameters): Move check for zero
11532         sized items so that only the call to
11533         mem_overlaps_already_clobbered_arg_p () is protected.
11534
11535 2010-07-22  Jan Hubicka  <jh@suse.cz>
11536
11537         * ipa-pure-const.c (varying_state): Break out from ...
11538         (get_function_state): ... here; always return varying_state
11539         when state would be NULL otherwise.
11540         (remove_node_data): Do not free varying state.
11541
11542 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11543
11544         PR bootstrap/44970
11545         PR middle-end/45009
11546         * postreload.c: Include "target.h".
11547         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
11548         into account.
11549         (fixup_debug_insns): Don't copy the rtx.
11550         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
11551         Don't copy when replacing.  Call fixup_debug_insns in the case where
11552         we merged one add with another.
11553         (reload_combine_recognize_pattern): Fail if there aren't any uses.
11554         Try harder to determine whether we're picking a valid index register.
11555         Don't set store_ruid for an insn we're going to scan in the
11556         next iteration.
11557         (reload_combine): Remove unused code.
11558         (reload_combine_note_use): When updating use information for
11559         an old insn, ignore a use that occurs after store_ruid.
11560         * Makefile.in (postreload.o): Update dependencies.
11561
11562         * function.c (record_hard_reg_sets): Restrict the previous change
11563         to cases where the incoming nominal mode is the same as the
11564         incoming promoted mode and everything happens in MODE_INT.
11565
11566 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
11567
11568         PR debug/45015
11569         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
11570         ASM_OPERANDS_OUTPUT_IDX.
11571         (adjust_insn): For inline asm with multiple sets ensure first
11572         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
11573         the insn.
11574
11575 2010-07-21  Richard Henderson  <rth@redhat.com>
11576
11577         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
11578         comparison for avoiding xmm register saves.  Emit the xmm register
11579         saves explicitly.
11580         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
11581         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
11582         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
11583         Remove patterns and the associated splitters.
11584
11585 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
11586
11587         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
11588         and imagine parts of a complex, so that they can have the same
11589         base and fall into the same group.
11590
11591 2010-07-21  Richard Guenther  <rguenther@suse.de>
11592
11593         PR lto/45018
11594         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
11595         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
11596         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
11597
11598 2010-07-21  Martin Jambor  <mjambor@suse.cz>
11599
11600         PR tree-optimization/44900
11601         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
11602         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
11603
11604 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
11605
11606         PR middle-end/44738
11607         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
11608
11609 2010-07-21  Richard Guenther  <rguenther@suse.de>
11610
11611         PR middle-end/45013
11612         * tree-ssa.c (useless_type_conversion_p): Dispatch to
11613         gimple_types_compatible_p only when in lto.
11614         * gimple.c (gimple_types_compatible_p): Use canonical types
11615         to speed up comparison.
11616
11617 2010-07-21  Richard Guenther  <rguenther@suse.de>
11618
11619         * tree-flow.h (referenced_var): Move define ...
11620         * tree-flow-inline.h (referenced_var): ... here as an inline
11621         function.  Assert here ...
11622         * tree-dfa.c (referenced_var_lookup): ... instead of here.
11623         * tree-ssa.c (maybe_optimize_var): Check if the variable
11624         is in referenced vars.
11625         (execute_update_addresses_taken): Remove old broken check.
11626         * gimple-pretty-print.c (pp_points_to_solution): Use
11627         referenced_var_lookup.
11628         * tree-into-ssa.c (dump_decl_set): Likewise.
11629
11630 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
11631
11632         PR debug/45003
11633         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
11634         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
11635         ZERO_EXTEND here.
11636
11637 2010-07-20  Richard Henderson  <rth@redhat.com>
11638
11639         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
11640
11641 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
11642
11643         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
11644         computing the sum of the stack pointer and a large constant.
11645         * config/arm/constraints.md (M): Remove superfluous parentheses.
11646         (Pc): New constraint.
11647
11648 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
11649
11650         PR debug/45006
11651         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
11652         operand's type if exp is tcc_unary class tree.
11653
11654 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
11655
11656         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
11657         Reverse sense of if_then_else condition.
11658
11659 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
11660
11661         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
11662         * config/rs6000/rs6000.c (rs6000_override_options): Set
11663         rs6000_block_move_inline_limit appropriately.
11664         (expand_block_move): Use rs6000_block_move_inline_limit.
11665         * doc/invoke.texi (mblock-move-inline-limit): Document.
11666
11667 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
11668
11669         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
11670         FROM and TO.  All callers changed.  Don't look for tracked uses,
11671         just scan the RTL for DEBUG_INSNs and substitute.
11672         (reload_combine_recognize_pattern): Call fixup_debug_insns.
11673         (reload_combine): Ignore DEBUG_INSNs.
11674
11675 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
11676
11677         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
11678         depth to 8 from 5.
11679
11680         PR debug/45003
11681         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
11682         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
11683         instead of the result's type.
11684
11685 2010-07-20  Richard Guenther  <rguenther@suse.de>
11686
11687         PR tree-optimization/44977
11688         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
11689         SSA form.
11690
11691 2010-07-20  Richard Guenther  <rguenther@suse.de>
11692
11693         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
11694         (lto_symtab_merge_decls_2): Likewise.
11695         * gimple.h (gimple_types_compatible_p): Declare.
11696         * gimple.c (gimple_queue_type_fixup): Remove.
11697         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
11698         (gimple_compatible_complete_and_incomplete_type_p): New function.
11699         (gimple_types_compatible_p): Adjust.
11700         (gimple_register_type): Remove type fixup code.
11701         (print_gimple_types_stats): Adjust.
11702         (free_gimple_type_tables): Likewise.
11703         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
11704         * tree-ssa.c (useless_type_conversion_p): Likewise.
11705
11706 2010-07-20  Richard Guenther  <rguenther@suse.de>
11707
11708         PR middle-end/44971
11709         PR middle-end/44988
11710         * tree-ssa.c (maybe_optimize_var): New function split out from ...
11711         (execute_update_addresses_taken): ... here.
11712         (non_rewritable_mem_ref_base): Likewise.
11713         (execute_update_addresses_taken): Do not iterate over all referenced
11714         vars but just all local decls and parms.
11715         Properly check call and asm arguments and rewrite call arguments.
11716
11717 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
11718
11719         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
11720         to top level.
11721         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
11722         definitions ...
11723         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
11724         New macro.
11725         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
11726
11727 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
11728
11729         * gengtype.c (start_root_entry): New function, split out from
11730         write_root.  Check whether V is null and raise an error if so.
11731         (write_field_root): Check for V being null.  Don't raise an error here;
11732         set V to null instead.
11733         (write_root): Update comment above function.  Use start_root_entry.
11734
11735 2010-07-19  Xinliang David Li  <davidxl@google.com>
11736
11737         PR testsuite/44932
11738         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
11739         def edges.
11740         (find_uninit_use): Add dump.
11741         (is_use_properly_guarded): Ditto.
11742         (warn_uninitialized_phi): Ditto.
11743         (execute_late_warn_uninitialized): Ditto.
11744
11745 2010-07-19  Richard Guenther  <rguenther@suse.de>
11746
11747         PR middle-end/44941
11748         * expr.c (emit_block_move_hints): Move zero size check first.
11749         Move asserts to more useful places.
11750         * calls.c (load_register_parameters): Check for zero size.
11751
11752 2010-07-19  Richard Henderson  <rth@redhat.com>
11753
11754         * tree-optimize.c (execute_all_early_local_passes): New.  Change
11755         cgraph_state here ...
11756         (execute_early_local_optimizations): ... not here.  Remove.
11757         (pass_early_local_passes, pass_all_early_optimizations): Update.
11758
11759 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
11760
11761         * postreload.c (reload_combine_closest_single_use): Ignore the
11762         number of uses for DEBUG_INSNs.
11763         (fixup_debug_insns): New static function.
11764         (reload_combine_recognize_const_pattern): Use it.  Don't let the
11765         main loop be affected by DEBUG_INSNs.
11766         Really disallow moving adds past a jump insn.
11767         (reload_combine_recognize_pattern): Don't update use_ruid here.
11768         (reload_combine_note_use): Do it here.
11769         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
11770
11771 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
11772
11773         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
11774         of a loop.
11775         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
11776
11777 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
11778
11779         * config/i386/darwin.h: Define darwin_emit_branch_islands.
11780         (TARGET_MACHO_BRANCH_ISLANDS): New.
11781         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
11782         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
11783         default value.
11784         * config/i386/i386.c (output_pic_addr_const): Do not emit
11785         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
11786         (x86_output_mi_thunk): Adjust symbol creation.
11787         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
11788         Remove out of date comment.
11789         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
11790         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11791         (DARWIN_GENERATE_ISLANDS): Ditto.
11792         (output_call):  Do not emit branch islands unless
11793         darwin_emit_branch_islands is set.
11794         * config/darwin.c: Declare darwin_emit_branch_islands.
11795         (machopic_indirect_data_reference): Do not emit unless
11796         darwin_emit_branch_islands is set.
11797         (darwin_override_options): Set darwin_emit_branch_islands
11798         where it is needed.
11799         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11800
11801 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11802
11803         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11804         sse_runtime, sse2_runtime.
11805
11806 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
11807
11808         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
11809         low half of a single-register SCmode return value before ORing
11810         it with the high half.
11811         * config/mips/mips16.S (MERGE_GPRf): Likewise.
11812
11813 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11814
11815         PR target/44805
11816         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
11817         on all targets.
11818
11819 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
11820
11821         PR target/42235
11822         * postreload.c (reload_cse_move2add): Return bool, true if anything.
11823         changed.  All callers changed.
11824         (move2add_use_add2_insn): Likewise.
11825         (move2add_use_add3_insn): Likewise.
11826         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
11827         reload_combine.
11828         (RELOAD_COMBINE_MAX_USES): Bump to 16.
11829         (last_jump_ruid): New static variable.
11830         (struct reg_use): New members CONTAINING_MEM and RUID.
11831         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
11832         (reload_combine_split_one_ruid, reload_combine_split_ruids,
11833         reload_combine_purge_insn_uses, reload_combine_closest_single_use
11834         reload_combine_purge_reg_uses_after_ruid,
11835         reload_combine_recognize_const_pattern): New static functions.
11836         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
11837         is true for our reg and that we have available index regs.
11838         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
11839         callers changed.  Use them to initialize fields in struct reg_use.
11840         (reload_combine): Initialize last_jump_ruid.  Be careful when to
11841         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
11842         Call reload_combine_recognize_const_pattern.
11843         (reload_combine_note_store): Update REAL_STORE_RUID field.
11844
11845 2010-07-16  Jason Merrill  <jason@redhat.com>
11846
11847         * Makefile.in (opts-common.o): Depend on options.h.
11848
11849 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
11850
11851         * tree.c (build_common_builtin_nodes): Use build_function_type_list
11852         instead of build_function_type.
11853         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
11854         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
11855
11856 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
11857
11858         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
11859         do all the work.
11860         (rs6000_emit_int_cmove): Use function pointers for insn generation.
11861         Don't force values into registers unnecessarily.
11862         (output_isel): Assert that we're not given conditions we can't handle.
11863         Delete corresponding code.
11864         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
11865         scc_comparison_operator constraint.  Permit 0 for the consequent
11866         operand.  Permit any GPR for the alternative operand.
11867         (isel_unsigned_<mode>): Likewise.
11868
11869 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
11870
11871         PR target/44942
11872         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
11873         argument to const_tree.
11874         * config/i386/i386.c (function_arg_advance): If padding needs to be
11875         inserted before argument, increment cum->words by number of padding
11876         words as well.
11877         (contains_aligned_value_p): Change argument to const_tree.
11878         (ix86_function_arg_boundary): Change second argument to const_tree.
11879
11880 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
11881
11882         PR target/42235
11883         * function.c (record_hard_reg_sets): New static function.
11884         (assign_parm_setup_reg): If an optab for extending exists and the
11885         generated code clobbbers no hard regs, emit the insn directly and
11886         create a REG_EQUIV note.
11887
11888 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
11889
11890         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
11891         TREE_CHAIN.
11892         * c-typeck.c (push_init_level): Likewise.
11893         (process_init_element): Likewise.
11894
11895 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
11896
11897         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
11898         (integer_three_node): Add.
11899         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
11900         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
11901         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
11902         of call build_int_cst.
11903         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
11904         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
11905         (find_interesting_uses_address): Ditto.
11906         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
11907         * tree-eh.c (lower_eh_constructs_2): Ditto.
11908         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
11909         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
11910         * expmed.c (expand_divmod): Ditto.
11911         * tree-mudflap.c (mx_register_decls): Ditto.
11912         * varasm.c (array_size_for_constructor): Ditto.
11913         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
11914         * c-parser.c (c_parser_postfix_expression): Ditto.
11915
11916 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
11917
11918         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
11919         New static variables.
11920         (reload_combine_recognize_pattern): New static function, broken out
11921         of reload_combine.
11922         (reload_combine): Use it.  Only initialize first_index_reg and
11923         last_index_reg once.
11924
11925 2010-07-15  Richard Henderson  <rth@redhat.com>
11926
11927         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
11928         when done.
11929
11930 2010-07-15  Jan Hubicka  <jh@suse.cz>
11931
11932         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
11933         comdats for broken gold.
11934         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
11935
11936 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
11937
11938         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
11939
11940 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
11941
11942         * tree.h (DECL_CHAIN): Define.
11943         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
11944         * c-decl.c: Likewise.
11945         * c-parser.c: Likewise.
11946         * c-typeck.c: Likewise.
11947         * cfgexpand.c: Likewise.
11948         * cgraph.c: Likewise.
11949         * cgraphunit.c: Likewise.
11950         * combine.c: Likewise.
11951         * config/alpha/alpha.c: Likewise.
11952         * config/arm/arm.c: Likewise.
11953         * config/frv/frv.c: Likewise.
11954         * config/i386/i386.c: Likewise.
11955         * config/i386/winnt-cxx.c: Likewise.
11956         * config/ia64/ia64.c: Likewise.
11957         * config/iq2000/iq2000.c: Likewise.
11958         * config/mep/mep.c: Likewise.
11959         * config/mips/mips.c: Likewise.
11960         * config/pa/som.h: Likewise.
11961         * config/rs6000/rs6000.c: Likewise.
11962         * config/s390/s390.c: Likewise.
11963         * config/sh/sh.c: Likewise.
11964         * config/sh/symbian-cxx.c: Likewise.
11965         * config/sparc/sparc.c: Likewise.
11966         * config/spu/spu.c: Likewise.
11967         * config/stormy16/stormy16.c: Likewise.
11968         * config/vxworks.c: Likewise.
11969         * config/xtensa/xtensa.c: Likewise.
11970         * coverage.c: Likewise.
11971         * dbxout.c: Likewise.
11972         * dwarf2out.c: Likewise.
11973         * emit-rtl.c: Likewise.
11974         * expr.c: Likewise.
11975         * function.c: Likewise.
11976         * gimple-low.c: Likewise.
11977         * gimple-pretty-print.c: Likewise.
11978         * gimplify.c: Likewise.
11979         * integrate.c: Likewise.
11980         * ipa-inline.c: Likewise.
11981         * ipa-prop.c: Likewise.
11982         * ipa-split.c: Likewise.
11983         * ipa-struct-reorg.c: Likewise.
11984         * ipa-type-escape.c: Likewise.
11985         * langhooks.c: Likewise.
11986         * lto-cgraph.c: Likewise.
11987         * omp-low.c: Likewise.
11988         * stor-layout.c: Likewise.
11989         * tree-cfg.c: Likewise.
11990         * tree-complex.c: Likewise.
11991         * tree-dfa.c: Likewise.
11992         * tree-dump.c: Likewise.
11993         * tree-inline.c: Likewise.
11994         * tree-mudflap.c: Likewise.
11995         * tree-nested.c: Likewise.
11996         * tree-object-size.c: Likewise.
11997         * tree-pretty-print.c: Likewise.
11998         * tree-sra.c: Likewise.
11999         * tree-ssa-live.c: Likewise.
12000         * tree-ssa-loop-niter.c: Likewise.
12001         * tree-ssa-math-opts.c: Likewise.
12002         * tree-ssa-reassoc.c: Likewise.
12003         * tree-ssa-sccvn.c: Likewise.
12004         * tree-ssa-structalias.c: Likewise.
12005         * tree-tailcall.c: Likewise.
12006         * tree-vrp.c: Likewise.
12007         * tree.c: Likewise.
12008         * var-tracking.c: Likewise.
12009         * varasm.c: Likewise.
12010
12011 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12012
12013         PR target/44877
12014         * config/spu/spu.c (spu_expand_builtin_1): Allow references
12015         (as well as pointers) as argument to mask_for_load builtins.
12016
12017 2010-07-15  Richard Guenther  <rguenther@suse.de>
12018
12019         PR tree-optimization/44946
12020         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
12021         with accessing only padding properly.
12022
12023 2010-07-15  Jan Hubicka  <jh@suse.cz>
12024
12025         * ipa.c (function_and_variable_visibility): Variables marked as used
12026         should not be localized.
12027
12028 2010-07-15  Jan Hubicka  <jh@suse.cz>
12029
12030         * cgraph.c: Include lto-streamer.h
12031         (change_decl_assembler_name): Work when assembler name hash is at place.
12032         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
12033         be sure to rename it to avoid name clash.
12034         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
12035         Localize hidden symbols only when locally defined.
12036
12037 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
12038
12039         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
12040
12041 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
12042             Kevin F. Quinn  <kevquinn@gentoo.org>
12043
12044         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
12045         * common.opt: Add -Wtrampolines.
12046         * doc/invoke.texi: Add -Wtrampolines.
12047
12048 2010-07-15  Jie Zhang  <jie@codesourcery.com>
12049
12050         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
12051         cortex_a8_issue_ls.
12052
12053 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
12054
12055         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
12056         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
12057
12058 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12059
12060         * config/spu/spu.c (reg_names): Remove prototype.
12061         (call_used_regs): Likewise.
12062
12063 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
12064
12065         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
12066         "unused" with attribute "used".
12067         (__JCR_END__): Likewise.
12068         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
12069         "used" attribute.
12070         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
12071
12072 2010-07-14  Richard Guenther  <rguenther@suse.de>
12073
12074         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
12075         (maybe_fixup_decls): Likewise.
12076         (input_gimple_stmt): Do not fixup anything.
12077         * lto-streamer-out.c (output_gimple_stmt): Make sure all
12078         non-automatic variable uses are wrapped inside a MEM_REF.
12079
12080 2010-07-14  Richard Henderson  <rth@redhat.com>
12081
12082         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
12083         for functions.
12084         * varasm.c (assemble_variable): Remove early exit for functions;
12085         assert that we're given a variable.
12086
12087 2010-07-14  Jie Zhang  <jie@codesourcery.com>
12088
12089         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
12090         cortex_a8_default when neon_type is not none.
12091
12092 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
12093
12094         * lower-subreg.c (subreg_context): New static bitmap.
12095         (decompose_multiword_subregs): Allocate and free it.
12096         (find_decomposable_subregs): Set a bit in it for a register that
12097         occurs in a subreg that changes mode but not size.
12098         (can_decompose_p): Test it instead of non_decomposable_context.
12099
12100 2010-07-14  Richard Guenther  <rguenther@suse.de>
12101
12102         PR tree-optimization/44824
12103         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
12104         is_gimple_mem_ref_addr.
12105         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
12106         non-decl_address_invariant_p addresses.
12107
12108 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
12109
12110         * reload.c (find_reloads): Revert code to penalize small register
12111         classes that was brought in with the IRA merge.
12112
12113 2010-07-14  Richard Guenther  <rguenther@suse.de>
12114
12115         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
12116         as base of ARRAY_REFs.
12117
12118 2010-07-14  Richard Guenther  <rguenther@suse.de>
12119
12120         PR middle-end/44930
12121         * tree-pretty-print.c (do_niy): Do not print a newline.
12122
12123 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
12124
12125         * ira-int.h (struct ira_object): New.
12126         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
12127         (struct ira_allocno): Remove members min, max,
12128         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
12129         conflict_allocnos_num and conflict_vec_p.  Add new member object.
12130         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
12131         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
12132         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
12133         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
12134         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
12135         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
12136         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
12137         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
12138         an ira_object_t rather than ira_allocno_t.  All uses changed.
12139         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
12140         contains a vector of ira_object_t; all uses changed.
12141         (ira_objects_num): Declare variable.
12142         (ira_create_allocno_object): Declare function.
12143         (ira_conflict_vector_profitable_p): Adjust prototype.
12144         (ira_allocate_conflict_vec): Renamed from
12145         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
12146         (ira_allocate_object_conflicts): Renamed from
12147         ira_allocate_allocno_conflicts; first arg now ira_object_t.
12148         (struct ira_object_iterator): New.
12149         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
12150         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
12151         to conflict_vec_p.  All uses changed.
12152         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
12153         Changed to take into account that conflicts are now tracked for
12154         objects.
12155         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
12156         Args changed to accept ira_object_t.  All uses changed.
12157         (allocnos_conflict_p): New static function.
12158         (collected_conflict_objects): Renamed from collected_allocno_objects;
12159         now a vector of ira_object_t.  All uses changed.
12160         (build_conflict_bit_table): Changed to take into account that
12161         conflicts are now tracked for objects.
12162         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
12163         (print_allocno_conflicts, ira_build_conflicts): Likewise.
12164         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
12165         setup_allocno_left_conflicts_size, allocno_reload_assign,
12166         fast_allocation): Likewise.
12167         * ira-lives.c (make_hard_regno_born, make_allocno_born)
12168         process_single_reg_class_operands, process_bb_node_lives): Likewise.
12169         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
12170         Likewise.
12171         * ira-build.c (ira_objects_num): New variable.
12172         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
12173         contains a vector of ira_object_t; all uses changed.
12174         (ira_object_id_map_vec): Corresponding change.
12175         (object_pool): New static variable.
12176         (initiate_allocnos): Initialize it.
12177         (finish_allocnos): Free it.
12178         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
12179         New functions.
12180         (ira_create_allocno): Don't set members that were removed.
12181         (ira_set_allocno_cover_class): Don't change conflict hard regs.
12182         (merge_hard_reg_conflicts): Changed to take into account that
12183         conflicts are now tracked for objects.
12184         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
12185         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
12186         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
12187         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
12188         setup_min_max_conflict_allocno_ids, ):  Likewise.
12189         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
12190         to ira_object_t; all callers changed.
12191         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
12192         to ira_object_t, all callers changed.
12193         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
12194         to ira_object_t, all callers changed.
12195         (conflict_check, curr_conflict_check_tick): Renamed from
12196         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
12197         changed.
12198         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
12199         arg changed to ira_object_t, all callers changed.
12200         (create_cap_allocno): Call ira_create_allocno_object.
12201         (finish_allocno): Free the corresponding object.
12202         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
12203         callers changed.  Adjusted for dealing with objects.
12204         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
12205         dealing with objects.
12206         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
12207
12208         * ira-int.h (struct live_range): Rename allocno member to object
12209         and change type to ira_object_t.
12210         (struct ira_object): New member live_ranges.
12211         (struct ira_allocno): Remove member live_ranges.
12212         (ALLOCNO_LIVE_RANGES): Remove.
12213         (OBJECT_LIVE_RANGES): New macro.
12214         (ira_create_live_range, ira_copy_live_range_list,
12215         ira_merge_live_range_list, ira_live_ranges_intersect_p,
12216         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
12217         * ira-build.c (ira_create_object): Initialize live ranges here.
12218         (ira_create_allocno): Not here.
12219         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
12220         changed to ira_object_t, all callers changed.
12221         (copy_live_range): Rename from copy_allocno_live_range, all callers
12222         changed.
12223         (ira_copy_live_range_list): Rename from
12224         ira_copy_allocno_live_range_list, all callers changed.
12225         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
12226         all callers changed.
12227         (ira_live_ranges_intersect_p): Rename from
12228         ira_allocno_live_ranges_intersect_p, all callers changed.
12229         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
12230         callers changed.
12231         (ira_finish_live_range_list): Rename from
12232         ira_finish_allocno_live_range_list, all callers changed.
12233         (change_object_in_range_list): Rename from change_allocno_in_range_list,
12234         last arg changed to ira_object_t, all callers changed.
12235         (finish_allocno): Changed to expect live ranges in the allocno's object.
12236         (move_allocno_live_ranges, copy_allocno_live_ranges,
12237         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
12238         ira_flattening, ira_build): Likewise.
12239         * ira-color.c (allocnos_have_intersected_live_ranges_p,
12240         slot_coalesced_allocno_live_ranges_intersect,
12241         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
12242         * ira-conflicts.c (build_conflict_bit_table): Likewise.
12243         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
12244         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
12245         make_allocno_dead, create_start_finish_chains,
12246         remove_some_program_points_and_update_live_ranges,
12247         ira_debug_live_range_list): Likewise.
12248
12249         * ira-int.h (ira_object_conflict_iterator): Rename from
12250         ira_allocno_conflict_iterator.
12251         (ira_object_conflict_iter_init): Rename from
12252         ira_allocno_conflict_iter_init, second arg changed to
12253         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
12254         FOR_EACH_ALLOCNO_CONFLICT.
12255         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
12256         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
12257         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
12258         * ira-conflicts.c (print_allocno_conflicts): Likewise.
12259
12260 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
12261
12262         PR other/44874
12263         * tree-dump.c (dump_options): Add enumerate_locals entry.
12264         Add TDF_NOID exclusion to all entry.
12265         * tree-dump.h (dump_enumerated_decls): Declare.
12266         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
12267         Don't display type uid.
12268         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
12269         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
12270         * tree-ssa-live.c: Include gimple.h.
12271         (numbered_tree_d): New struct.
12272         (numbered_tree): New typedef.
12273         (DEF_VEC_O (numbered_tree): New.
12274         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
12275         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
12276         (dump_enumerated_decls): Likewise.
12277         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
12278         debug info and flag_dump_final_insns, call dump_enumerated_decls.
12279         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
12280         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
12281
12282 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
12283
12284         * expmed.h (MAX_BITS_PER_WORD): Move to...
12285         * defaults.h (MAX_BITS_PER_WORD): ...here.
12286
12287 2010-07-13  DJ Delorie  <dj@redhat.com>
12288
12289         * config/h8300/h8300.c (h8300_init_once): Default to
12290         -fstrict_volatile_bitfields.
12291
12292         * config/sh/sh.c (sh_override_options): Default to
12293         -fstrict_volatile_bitfields.
12294
12295         * config/rx/rx.c (rx_option_override): New.
12296
12297         * config/m32c/m32c.c (m32c_override_options): Default to
12298         -fstrict_volatile_bitfields.
12299
12300 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
12301
12302         * tree.h (build_function_call_expr): Delete.
12303         (build_call_expr_loc_array): New function.
12304         (build_call_expr_loc_vec): New function.
12305         * tree-flow.h (struct omp_region): Change type of ws_args field
12306         to a VEC.
12307         * builtins.c (build_function_call_expr): Delete.
12308         (build_call_expr_loc_array): New function.
12309         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
12310         (build_call_expr): Likewise.
12311         (build_call_expr_loc_vec): New function.
12312         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
12313         build_function_call_expr.
12314         * expr.c (emutls_var_address): Likewise.
12315         * varasm.c (emutls_common_1): Likewise.
12316         * omp-low.c (expand_omp_atomic_mutex): Likewise.
12317         (expand_omp_taskreg): Adjust for new type of region->ws_args.
12318         (get_ws_args_for): Return a VEC instead of a tree.
12319         (expand_parallel_call): Call build_call_expr_loc_vec instead of
12320         build_function_call_expr.
12321         * stor-layout.c (self_referential_size): Likewise.
12322
12323 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
12324
12325         PR testsuite/44701
12326         * recog.c (constrain_operands): Allow side-effects in memory
12327         operands if either < or > constraint is used, rather than if
12328         both < and > is used.
12329
12330 2010-07-13  Richard Guenther  <rguenther@suse.de>
12331
12332         PR middle-end/44911
12333         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
12334         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
12335         without name.
12336
12337 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
12338
12339         PR target/44761
12340         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
12341         to variable emited.
12342         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
12343         * config/sh/sh.md (symGOT_load): Likewise.
12344         (symDTPOFF2reg): Likewise.
12345         (symTPOFF2reg): Likewise.
12346
12347 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12348
12349         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
12350         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
12351
12352 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12353
12354         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
12355         explanation.
12356         Find ucontext_t * on Solaris 11.
12357         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
12358         Handle new Solaris 11 __sighndlr patterns.
12359
12360 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
12361
12362         PR debug/44901
12363         * vec.h (VEC_block_remove): Fix comment.
12364         * tree-ssa-live.c (remove_unused_locals): Don't use
12365         VEC_unordered_remove on local_decls, instead replace a single
12366         vector element in each iteration if at least one element had
12367         to be removed and VEC_truncate at the end.
12368         * omp-low.c (expand_omp_taskreg): Likewise.
12369
12370 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12371
12372         * c-decl.c (finish_function): Fix typo in comment.
12373
12374 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
12375
12376         PR bootstrap/44921
12377         * postreload.c (move2add_use_add3_insn): Silence gcc warning
12378         on min_regno.
12379
12380 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
12381
12382         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
12383         (simplify_stmt_using_ranges): Use it.
12384
12385 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12386
12387         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
12388         member.  Do not mark as GTY(()).
12389         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
12390         (spu_builtin_decls): New static variable.
12391         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
12392         (spu_init_builtins): Likewise.
12393         (spu_builtin_mul_widen_even): Likewise.
12394         (spu_builtin_mul_widen_odd): Likewise.
12395         (spu_builtin_mask_for_load): Likewise.
12396         (spu_builtin_vec_perm): Likewise.
12397         * config/spu/spu-c.c: Include "target.h".
12398         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
12399         of using spu_builtins[].fndecl.
12400
12401 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12402
12403         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
12404         imply -minterlink-mips16.
12405
12406 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12407
12408         * config/mips/mips.h (mips16_globals): Declare.
12409         (SWITCHABLE_TARGET): Define.
12410         * config/mips/mips.c: Include target-globals.h.
12411         (mips16_globals): New variable.
12412         (mips_set_mips16_mode): Use save_target_globals and
12413         restore_target_globals instead of target_reinit.
12414
12415 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12416
12417         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
12418         to say that the function can be called more than once.
12419         * target-globals.c (save_target_globals): Call init_reg_sets.
12420
12421 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12422
12423         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
12424         * bb-reorder.h: New file.
12425         * bb-reorder.c (default_target_bb_reorder): New variable.
12426         (this_target_bb_reorder): New conditional variable.
12427         (uncond_jump_length): Redefine as a macro.
12428         * target-globals.h (this_target_bb_reorder): Declare.
12429         (target_globals): Add a bb_reorder field.
12430         (restore_target_globals): Copy the bb_reorder field to
12431         this_target_bb-reorder.
12432         * target-globals.c: Include bb-reorder.h.
12433         (default_target_globals): Initialize the bb_reorder field.
12434         (save_target_globals): Likewise.
12435
12436 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12437
12438         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
12439         * gcse.h: New file.
12440         * gcse.c: Include gcse.h.
12441         (default_target_gcse): New variable.
12442         (this_target_gcse): New conditional variable.
12443         (can_copy): Redefine as a macro.
12444         (can_copy_init_p): New macro.
12445         (can_copy_p): Remove can_copy_init_p.
12446         * target-globals.h (this_target_gcse): Declare.
12447         (target_globals): Add a gcse field.
12448         (restore_target_globals): Copy the gcse field to this_target_gcse.
12449         * target-globals.c: Include gcse.h.
12450         (default_target_globals): Initialize the gcse field.
12451         (save_target_globals): Likewise.
12452
12453 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12454
12455         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
12456         and x_ira_prohibited_mode_move_regs_initialized_p.
12457         (ira_prohibited_mode_move_regs): Redefine as a macro.
12458         * ira.c (ira_prohibited_mode_move_regs): Delete.
12459         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
12460
12461 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12462
12463         * reload.h (target_reload): Add x_cached_reg_save_code and
12464         x_cached_reg_restore_code.
12465         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
12466         Redefine as macros.
12467
12468 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12469
12470         * Makefile.in (target-globals.o): Depend on builtins.h.
12471         * builtins.h: New file.
12472         * builtins.c: Include builtins.h.
12473         (default_target_builtins): New variable.
12474         (this_target_builtins): New conditional variable.
12475         (apply_args_mode, apply_result_mode): Redefine as macros.
12476         * target-globals.h (this_target_builtins): Declare.
12477         (target_globals): Add a builtins field.
12478         (restore_target_globals): Copy the builtins field to
12479         this_target_builtins.
12480         * target-globals.c: Include builtins.h.
12481         (default_target_globals): Initialize the builtins field.
12482         (save_target_globals): Likewise.
12483
12484 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12485
12486         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
12487         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
12488         from expmed.c.
12489         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
12490         (alg_hash, alg_hash_used_p): New macros.
12491         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
12492         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
12493         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
12494
12495 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12496
12497         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
12498         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
12499         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
12500         (this_op_costs, costs_classes): Redefine as macros.
12501         (record_reg_classes): Don't take op_costs as a parameter.
12502         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
12503         (scan_one_insn): Update call to record_operand_costs.
12504
12505 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12506
12507         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
12508         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
12509         (target_ira_int): New structure.
12510         (default_target_ira_int): Declare.
12511         (this_target_ira_int): Declare as a variable or define as a macro.
12512         (ira_reg_mode_hard_regset, ira_register_move_cost)
12513         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
12514         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
12515         (prohibited_class_mode_regs, ira_important_classes_num)
12516         (ira_important_classes, ira_reg_class_intersect)
12517         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
12518         (ira_reg_class_union): Redefine as macros.
12519         * ira.h (target_ira): New structure.
12520         (default_target_ira): Declare.
12521         (this_target_ira): Declare as a variable or define as a macro.
12522         (ira_available_class_regs, ira_hard_regno_cover_class)
12523         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
12524         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
12525         (ira_class_hard_regs_num): Redefine as macros.
12526         * ira.c (default_target_ira, default_target_ira_int): New variables.
12527         (this_target_ira, this_target_ira_int): New conditional variables.
12528         (ira_reg_mode_hard_regset, ira_memory_move_cost)
12529         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
12530         (ira_class_subset_p): Delete.
12531         (no_unit_alloc_regs): Redefine as a macro.
12532         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
12533         (ira_class_hard_regs_num, ira_class_hard_reg_index)
12534         (ira_available_class_regs): Delete.
12535         (alloc_reg_class_subclasses): Redefine as a macro.
12536         (ira_reg_class_cover_size, ira_reg_class_cover)
12537         (ira_important_classes_num, ira_important_classes)
12538         (ira_important_class_nums, ira_class_translate): Delete.
12539         (cover_class_order): Document the variable's lifetime.
12540         (reorder_important_classes): Don't set ira_important_class_nums.
12541         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
12542         (ira_reg_class_super_classes, ira_reg_class_union)
12543         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
12544         Delete.
12545         (setup_reg_class_nregs): Don't set ira_max_regs.
12546         (prohibited_class_mode_regs): Delete.
12547         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
12548         (target_globals): Add ira and ira_int fields.
12549         (restore_target_globals): Copy the ira field to this_target_ira
12550         and the ira_int field to this_target_ira_int.
12551         * target-globals.c: Include ira-int.h.
12552         (default_target_globals): Initialize the ira and ira_int fields.
12553         (save_target_globals): Likewise.
12554
12555 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12556
12557         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
12558         * cfgloop.h (target_cfgloop): New structure.
12559         (default_target_cfgloop): Declare.
12560         (this_target_cfgloop): Declare as a variable or define as a macro.
12561         (target_avail_regs, target_clobbered_regs, target_res_regs)
12562         (target_reg_cost, target_spill_cost): Redefine as macros.
12563         * cfgloopanal.c (default_target_cfgloop): New variable.
12564         (this_target_cfgloop): New conditional variable.
12565         (target_avail_regs, target_clobbered_regs, target_res_regs)
12566         (target_reg_cost, target_spill_cost): Delete.
12567         * target-globals.h (this_target_cfgloop): Declare.
12568         (target_globals): Add a cfgloop field.
12569         (restore_target_globals): Copy the cfgloop field to
12570         this_target_cfgloop.
12571         * target-globals.c: Include cfgloop.h.
12572         (default_target_globals): Initialize the cfgloop field.
12573         (save_target_globals): Likewise.
12574
12575 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12576
12577         * regs.h (target_regs): Add x_direct_load, x_direct_store and
12578         x_float_extend_from_mem.
12579         (direct_load, direct_store, float_extend_from_mem): New macros.
12580         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
12581
12582 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12583
12584         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
12585         (target-globals.o): Depend on $(LIBFUNCS_H).
12586         * libfuncs.h: Include hashtab.h.
12587         (libfunc_entry): Moved from optabs.c.
12588         (target_libfuncs): New structure.
12589         (default_target_libfuncs): Declare.
12590         (this_target_libfuncs): Declare as a variable or define as a macro.
12591         (libfunc_table): Redefine as a macro.
12592         * optabs.c (default_target_libfuncs): New variable.
12593         (this_target_libfuncs): New conditional variable.
12594         (libfunc_table): Delete.
12595         (libfunc_entry): Moved to optabs.h.
12596         (libfunc_hash): Redefine as a macro.
12597         (hash_libfunc, eq_libfunc): Fix comments.
12598         (init_optabs): Use libfunc_hash to detect cases where the function
12599         has already been called.  Clear the hash table instead of
12600         recreating it.
12601         * target-globals.h (this_target_libfuncs): Declare.
12602         (target_globals): Add a libfuncs field.
12603         (restore_target_globals): Copy the libfuncs field to
12604         this_target_libfuncs.
12605         * target-globals.c: Include libfuncs.h.
12606         (default_target_globals): Initialize the libfuncs field.
12607         (save_target_globals): Likewise.
12608
12609 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12610
12611         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
12612         in all dependency lists.
12613
12614 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12615
12616         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
12617         * optabs.h (target_optabs): New structure.
12618         (default_target_optabs): Declare.
12619         (this_target_optabs): Declare as a variable or define as a macro.
12620         (optab_table, convert_optab_table, direct_optab_table): Redefine
12621         as macros.
12622         * optabs.c (default_target_optabs): New variable.
12623         (this_target_optabs): New conditional variable.
12624         (optab_table, convert_optab_table, direct_optab_table): Delete.
12625         * target-globals.h (this_target_optabs): Declare.
12626         (target_globals): Add a optabs field.
12627         (restore_target_globals): Copy the optabs field to
12628         this_target_optabs.
12629         * target-globals.c: Include expr.h and optabs.h.
12630         (default_target_globals): Initialize the optabs field.
12631         (save_target_globals): Likewise.
12632
12633 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12634
12635         * flags.h (target_flagstate): Add x_flag_excess_precision.
12636         (flag_excess_precision): Redefine as a macro.
12637         * toplev.c (flag_excess_precision): Delete.
12638
12639 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12640
12641         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
12642         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
12643         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
12644         (no_caller_save_reg_set): Redefine as a macro.
12645         * reload.h (target_reload): Add x_caller_save_initialized_p and
12646         x_regno_save_mode.
12647         (caller_save_initialized_p): Redefine as a macro.
12648         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
12649         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
12650         (regno_save_mode): Redefine as a macro.
12651
12652 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12653
12654         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
12655         * expmed.h: New file.
12656         * expmed.c (default_target_costs): New variable.
12657         (this_target_costs): New conditional variable.
12658         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
12659         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
12660         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
12661         * target-globals.h (this_target_expmed): Declare.
12662         (target_globals): Add a expmed field.
12663         (restore_target_globals): Copy the expmed field to
12664         this_target_expmed.
12665         * target-globals.c: Include expmed.h.
12666         (default_target_globals): Initialize the expmed field.
12667         (save_target_globals): Likewise.
12668
12669 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12670
12671         * Makefile.in (target-globals.o): Depend on reload.h.
12672         * reload.h (target_reload): New structure.
12673         (default_target_reload): Declare.
12674         (this_target_reload): Declare as a variable or define as a macro.
12675         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
12676         * reload1.c (default_target_reload): New variable
12677         (this_target_reload): New conditional variable.
12678         (indirect_symref_ok, double_reg_address_ok): Delete.
12679         (spill_indirect_levels): Redefine as a macro.
12680         * target-globals.h (this_target_reload): Declare.
12681         (target_globals): Add a reload field.
12682         (restore_target_globals): Copy the reload field to
12683         this_target_reload.
12684         * target-globals.c: Include hard-reg-set.h.
12685         (default_target_globals): Initialize the reload field.
12686         (save_target_globals): Likewise.
12687
12688 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12689
12690         * rtl.h (target_rtl): Add x_static_reg_base_value.
12691         * alias.c (static_reg_base_value): Redefine as a macro.
12692
12693 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12694
12695         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
12696         (GTFILES): Remove reginfo.c.
12697         * rtl.h (target_rtl): Add x_top_of_stack.
12698         (top_of_stack): New macro.
12699         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
12700         (top_of_stack): Delete.
12701
12702 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12703
12704         * regs.h (target_regs): Add x_hard_regs_of_mode,
12705         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
12706         x_may_move_out_cost and x_last_mode_for_init_move_cost.
12707         (have_regs_of_mode, contains_reg_of_mode, move_cost)
12708         (may_move_in_cost, may_move_out_cost): Redefine as macros.
12709         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
12710         (may_move_in_cost, may_move_out_cost): Delete.
12711         (last_mode_for_init_move_cost): Redefine as a macro.
12712
12713 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12714
12715         * hard-reg-set.h (target_hard_regs): New structure.
12716         (default_target_hard_regs): Declare.
12717         (this_target_hard_regs): Declare as a variable or define as a macro.
12718         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
12719         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
12720         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
12721         (reg_class_size, reg_class_subclasses, reg_class_subunion)
12722         (reg_class_superunion, reg_names): Redefine as macros.
12723         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
12724         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
12725         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
12726         (reg_class_contents, reg_class_size, reg_class_subclasses)
12727         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
12728         (default_target_hard_regs): New variable
12729         (this_target_hard_regs, initial_call_really_used_regs)
12730         (initial_reg_alloc_order): New conditional variables.
12731         (initial_reg_names): New variable.
12732         (init_reg_sets): Assert that initial_call_really_used_regs,
12733         initial_reg_alloc_order and initial_reg_names
12734         are all the same size as their variable counterparts.  Use them to
12735         initialize those counterparts.
12736         * target-globals.h (this_target_hard_regs): Declare.
12737         (target_globals): Add a hard_regs field.
12738         (restore_target_globals): Copy the hard_regs field to
12739         this_target_hard_regs.
12740         * target-globals.c: Include hard-reg-set.h.
12741         (default_target_globals): Initialize the hard_regs field.
12742         (save_target_globals): Likewise.
12743
12744 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12745
12746         * Makefile.in (target-globals.o): Depend on $(RTL_H).
12747         * rtl.h (target_rtl): New structure.
12748         (default_target_rtl): Declare.
12749         (this_target_rtl): Declare as a variable or define as a macro.
12750         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
12751         Redefine as macros.
12752         * emit-rtl.c (default_target_rtl): New variable.
12753         (this_target_rtl): New conditional variable.
12754         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
12755         (return_address_pointer_rtx): Delete.
12756         (initial_regno_reg_rtx): New macro.
12757         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
12758         (init_emit_regs): Likewise.
12759         * target-globals.h (this_target_rtl): Declare.
12760         (target_globals): Add a rtl field.
12761         (restore_target_globals): Copy the rtl field to this_target_rtl.
12762         * target-globals.c: Include rtl.h.
12763         (default_target_globals): Initialize the rtl field.
12764         (save_target_globals): Likewise.
12765
12766 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12767
12768         * Makefile.in (target-globals.o): Depend on $(REGS_H).
12769         * regs.h (target_reg_modes): New structure.
12770         (default_target_reg_modes): Declare.
12771         (this_target_reg_modes): Declare as a variable or define as a macro.
12772         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
12773         * reginfo.c (default_target_reg_modes): New variable.
12774         (this_target_reg_modes): New conditional variable.
12775         (hard_regno_nregs, reg_raw_mode): Delete.
12776         * target-globals.h (this_target_regs): Declare.
12777         (target_globals): Add a regs field.
12778         (restore_target_globals): Copy the regs field to this_target_regs.
12779         * target-globals.c: Include regs.h.
12780         (default_target_globals): Initialize the regs field.
12781         (save_target_globals): Likewise.
12782
12783 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12784
12785         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
12786         * doc/tm.texi: Regenerate.
12787         * Makefile.in (OBJS-common): Add target-globals.o.
12788         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
12789         and target-globals.h.
12790         (target-globals.o): New rule.
12791         (GTFILES): Include $(srcdir)/target-globals.h.
12792         * defaults.h (SWITCHABLE_TARGET): Define.
12793         * gengtype.c (open_base_files): Add target-globals.h to the
12794         list of includes.
12795         * target-globals.h: New file.
12796         * target-globals.c: Likewise.
12797
12798         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
12799         * flags.h (target_flag_state): New structure.
12800         (default_target_flag_state): Declare.
12801         (this_target_flag_state): Declare as a variable or define as a macro.
12802         (align_loops_log): Redefine as a macro.
12803         (align_loops_max_skip, align_jumps_log): Likewise.
12804         (align_jumps_max_skip, align_labels_log): Likewise.
12805         (align_labels_max_skip, align_functions_log): Likewise.
12806         * toplev.c (default_target_flag_state): New variable.
12807         (this_target_flag_state): New conditional variable.
12808         (align_loops_log): Delete.
12809         (align_loops_max_skip, align_jumps_log): Likewise.
12810         (align_jumps_max_skip, align_labels_log): Likewise.
12811         (align_labels_max_skip, align_functions_log): Likewise.
12812         * target-globals.h (this_target_flag_state): Declare.
12813         (target_globals): Add a flag_state field.
12814         (restore_target_globals): Copy the flag_state field to
12815         this_target_flag_state.
12816         * target-globals.c: Include flags.h.
12817         (default_target_globals): Initialize the flag_state field.
12818         (save_target_globals): Likewise.
12819
12820 2010-07-12  Jie Zhang  <jie@codesourcery.com>
12821
12822         * postreload.c (reg_symbol_ref[]): New.
12823         (move2add_use_add2_insn): New.
12824         (move2add_use_add3_insn): New.
12825         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
12826         (move2add_note_store): Likewise.
12827
12828 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
12829
12830         PR rtl-optimization/44752
12831         * genautomata.c (main): Don't emit an empty file even if there
12832         is no automaton.
12833
12834 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12835
12836         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
12837         ix86_solaris_return_in_memory.
12838         * config/i386-protos.h: Reflect this.
12839         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12840         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12841         Move ...
12842         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
12843
12844 2010-07-12  Jie Zhang  <jie@codesourcery.com>
12845
12846         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
12847         align the stack when it's going to be saved.
12848
12849 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12850
12851         PR pch/14940
12852         * config/host-solaris.c (mmap_fixed): New function.
12853         (sol_gt_pch_get_address): Use it.
12854         (sol_gt_pch_use_address): Likewise.
12855
12856 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12857
12858         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12859         pentiumpro on Solaris 8 and 9/x86.
12860         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
12861         Document SSE/SSE2 support.
12862         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
12863
12864 2010-07-12  Andi Kleen  <ak@linux.intel.com>
12865
12866         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
12867         instead of gcc_assert to print better error message for multiple
12868         prevailing defs.
12869
12870 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
12871
12872         * config/i386/i386.c (ix86_asm_output_function_label): Change format
12873         string placeholder from 0x%x to %#x.
12874         (ix86_code_end): Use putc to output '\n'.
12875         (ix86_print_operand) <case ';'>: Use putc to output ';'.
12876
12877 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
12878
12879         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
12880         in directive -export.
12881
12882 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
12883
12884         * reginfo.h (reg_classes_intersect_p): Change arguments type to
12885         reg_class_t.
12886         * rtl.h (reg_classes_intersect_p): Adjust prototype.
12887
12888         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12889         Remove macros.
12890         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
12891         rs6000_memory_move_cost): Remove
12892         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
12893         TARGET_MEMORY_MOVE_COST): Define.
12894         (rs6000_register_move_cost): Make static. Change arguments type from
12895         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
12896         (rs6000_memory_move_cost): Make static. Change arguments type from
12897         'enum reg_class' to reg_class_t.
12898
12899 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
12900
12901         PR middle-end/42505
12902         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
12903         lookup code into....
12904         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
12905         new functions.
12906         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
12907         * cfgloopanal.c (target_clobbered_regs): Define.
12908         (init_set_costs): Initialize target_clobbered_regs.
12909         (estimate_reg_pressure_cost): Add call_p argument.  When true,
12910         adjust the number of available registers to exclude the
12911         call-clobbered registers.
12912         * cfgloop.h (target_clobbered_regs): Declare.
12913         (estimate_reg_pressure_cost): Adjust declaration.
12914         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
12915         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
12916         (determine_set_costs): Dump target_clobbered_regs.
12917         (loop_body_includes_call): New function.
12918         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
12919         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
12920         call_p flag through.
12921         (best_gain_for_invariant): Likewise.
12922         (find_invariants_to_move): Likewise.
12923         (move_single_loop_invariants): Likewise, using already-computed
12924         has_call field.
12925
12926 2010-07-10  Richard Guenther  <rguenther@suse.de>
12927             Joern Rennecke  <joern.rennecke@embecosm.com>
12928
12929         PR debug/44832
12930         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
12931         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
12932         unless they have DECL_IGNORED_P set.
12933
12934 2010-07-10  Richard Guenther  <rguenther@suse.de>
12935
12936         PR lto/44889
12937         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
12938         helper function.
12939         (gimple_types_compatible_p): Similar to pointed-to
12940         types allow and merge a mix of complete and incomplete aggregate.
12941         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
12942         (iterative_hash_gimple_type): Adjust for that.
12943
12944 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
12945
12946         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
12947
12948 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
12949
12950         PR objc/44140
12951         * config/darwin.c (output_objc_section_asm_op): Save and restore
12952         section when outputting ObjC section list.
12953
12954 2010-07-09  Jan Hubicka  <jh@suse.cz>
12955
12956         * lto-streamer-out.c (produce_symtab): Do not write alias
12957         cgraph/varpool nodes.
12958
12959 2010-07-09  Jan Hubicka  <jh@suse.cz>
12960
12961         * tree-inline.c (declare_return_variable): Fix ICE while
12962         inlining DECL_BY_VALUE function not in SSA form
12963
12964 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
12965
12966         PR tree-optimization/44576
12967         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
12968         New.  Pull out from is_loop_prefetching_profitable to implement
12969         the trip count to ahead ratio heuristic.
12970         (mem_ref_count_reasonable_p): New.  Pull out from
12971         is_loop_prefetching_profitable to implement the instruction to
12972         memory reference ratio heuristic.  Also consider not reasonable if
12973         the memory reference count is above a threshold (to avoid
12974         explosive compilation time.
12975         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
12976         is_loop_prefetching_profitable to implement the instruction to
12977         prefetch ratio heuristic.
12978         (is_loop_prefetching_profitable): Removed.
12979         (loop_prefetch_arrays): Distribute the cost analysis across the
12980         function to allow early exit of the prefetch analysis.
12981         is_loop_prefetching_profitable is splitted into three functions,
12982         with each one called as early as possible.
12983         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
12984         number of memory references in a loop is considered too many.
12985
12986 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
12987
12988         * reload.c (find_reloads): Don't clear badop if we have a winreg
12989         alternative, but not win, and the class only has fixed regs.
12990         * hard-reg-set.h (class_only_fixed_regs): Declare.
12991         * reginfo.c (class_only_fixed_regs): New array.
12992         (init_reg_sets_1): Initialize it.
12993         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
12994         discourage alternatives using the stack pointer.
12995
12996         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
12997
12998         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
12999
13000         * config/arm/arm.md (cbranchqi4): Fix array size.
13001         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
13002         calculating length.
13003
13004 2010-07-09  Richard Guenther  <rguenther@suse.de>
13005
13006         * gimple.c (struct type_fixup_s): New struct and VEC type.
13007         (gimple_register_type_fixups): New static global.
13008         (gimple_queue_type_fixup): New function.
13009         (gimple_types_compatible_p): Queue type fixups instead of
13010         applying them here.
13011         (gimple_register_type): Apply queued fixups for the
13012         canonical type.  Empty the type fixup queue.
13013
13014 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
13015
13016         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
13017         * configure: Regenerate.
13018         * config.in: Ditto.
13019
13020 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
13021             Denys Vlasenko  <dvlasenk@redhat.com>
13022             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13023
13024         PR tree-optimization/28632
13025         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
13026         (extract_range_from_binary_expr): Further optimize
13027         BIT_AND_EXPR and BIT_IOR_EXPR.
13028
13029 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
13030
13031         * tree-if-conv.c (fold_or_predicates): New.
13032         (add_to_predicate_list): Call it.
13033
13034 2010-07-09  Richard Guenther  <rguenther@suse.de>
13035
13036         PR middle-end/44890
13037         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
13038         if base is a pointer.
13039         * tree-cfg.c (verify_expr): Update MEM_REF checking.
13040
13041 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
13042
13043         PR target/44877
13044         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
13045         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
13046         builtin mask for load/store builtins.
13047
13048 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
13049
13050         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
13051         for "lock addl".
13052         * configure: Regenerate.
13053         * config/i386/i386.c (ix86_print_operand) <case ';'>:
13054         Remove TARGET_MACHO.
13055
13056 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
13057
13058         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
13059         default ISA flags.
13060         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
13061
13062 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
13063
13064         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
13065
13066 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
13067
13068         * config/picochip/picochip.md (commsTestPort): Emit more
13069         efficient sequence for tstport instruction.
13070
13071 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
13072
13073         * config/i386/i386.c (ix86_veclib_handler): Make static.
13074
13075 2010-07-09  Richard Guenther  <rguenther@suse.de>
13076
13077         PR tree-optimization/44852
13078         * tree-ssa-alias.c: Include toplev.h for exact_log2.
13079         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
13080         in MEM_REF.
13081         (indirect_refs_may_alias_p): Likewise.
13082         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
13083
13084 2010-07-09  Richard Guenther  <rguenther@suse.de>
13085
13086         PR tree-optimization/44882
13087         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
13088         sets do conflict.
13089         (vectorizable_load): Likewise.
13090
13091 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
13092
13093         PR target/40657
13094         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
13095         All callers changed.
13096         Handle the case when we're called for the epilogue.
13097         (thumb_unexpanded_epilogue): Use it.
13098         (thumb1_expand_epilogue): Likewise.
13099
13100 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
13101
13102         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
13103         both ranges are range_int_cst_p with non-negative minimum,
13104         try harder to derive smaller range.
13105
13106 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13107
13108         * genrecog.c: Include diagnostic-core.h before toplev.h.
13109         * genoutput.c: Likewise.
13110         * genextract.c: Likewise.
13111         * genautomata.c: Likewise.
13112         * genemit.c: Likewise.
13113         * genpeep.c: Likewise.
13114         * genattrtab.c: Likewise.
13115         * genconditions.c: Likewise.
13116         * genpreds.c: Likewise.
13117
13118 2010-07-08  Andi Kleen  <ak@linux.intel.com>
13119
13120         * lto-section-in.c (lto_section_name): Add missing comma.
13121
13122 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
13123
13124         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
13125         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
13126         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
13127         (ia64_override_options): Rename to...
13128         (ia64_option_override): ... this one. Make static.
13129
13130 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
13131
13132         PR middle-end/44843
13133         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
13134         pointed-to type of the offset in a MEM_REF to compute the alignment.
13135
13136 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
13137
13138         * final.c (final_scan_insn): Replace
13139         TARGET_UNWIND_INFO macro check by unwind_emit
13140         hook NULL check.
13141         * targhooks.c (default_unwind_emit): Removed.
13142         * targhooks.h (default_unwind_emit): Likewise.
13143         * target.def (unwind_emit): Set default value to NULL.
13144
13145         * config/i386/i386-protos.h (ix86_asm_output_function_label):
13146         New prototype.
13147         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
13148         for NULL fntype argument and allow 64-bit targets.
13149         (ix86_asm_output_function_label): New function.
13150         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
13151         (ix86_handle_fndecl_attribute): Likewise.
13152         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
13153         * doc/doc/tm.texi: Regenerated.
13154         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
13155         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
13156         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
13157         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
13158         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
13159         * config/elfos.h: Likewise.
13160         * config/i386/cygming.h: Likewise.
13161         * config/netbsd-aout.h: Likewise.
13162         * config/openbsd.h: Likewise.
13163         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
13164         by ix86_asm_output_function_label function call.
13165         * varasm.c (assemble_start_function): Use
13166         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
13167
13168 2010-07-08  Jan Hubicka  <jh@suse.cz>
13169
13170         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
13171         New function.
13172         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
13173         Declare.
13174         * ipa-cp.c (ipcp_estimate_growth): Use it.
13175         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
13176         Likewise.
13177
13178 2010-07-08  Jan Hubicka  <jh@suse.cz>
13179
13180         * tree-inline.c (declare_return_variable): Allocate annotation for new
13181         temporary.
13182
13183 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
13184
13185         PR tree-optimization/44710
13186         * tree-if-conv.c (parse_predicate): New.
13187         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
13188         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
13189
13190 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
13191
13192         * common.opt (ftree-loop-if-convert): New flag.
13193         * doc/invoke.texi (ftree-loop-if-convert): Documented.
13194         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
13195         when flag_tree_loop_if_convert is set.
13196
13197 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
13198
13199         * config/i386/i386.c: Use short syntax for function calls
13200         through function pointers.
13201         * config/i386/i386.md: Ditto.
13202
13203 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
13204
13205         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
13206
13207 2010-07-08  Richard Guenther  <rguenther@suse.de>
13208
13209         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
13210         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
13211
13212 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
13213
13214         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
13215         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
13216         (loc_list_from_tree): Likewise.
13217         (output_loc_operands): Handle outputting DW_OP_const[48]u
13218         with loc->dtprel set.
13219         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
13220
13221 2010-07-08  Jan Hubicka  <jh@suse.cz>
13222
13223         * ipa.c: Include pointer-set.h
13224         (cgraph_externally_visible_p): New attribute ALIASED;
13225         when in LTO, hidden symbols are local unless they are aliased.
13226         (function_and_variable_visibility): Compute aliased nodes;
13227         handle LTO and hidden symbol on functions and vars.
13228         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
13229         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
13230
13231 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
13232
13233         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
13234         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13235         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13236         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13237         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13238         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
13239         (ix86_gen_probe_stack_range): Likewise.
13240         (override_options): Set them.
13241         (ix86_target_stack_probe): New function.
13242         (ix86_compute_frame_layout): Force use of push instructions to
13243         save registers if stack checking with probes is enabled.
13244         (get_scratch_register_on_entry): New function.
13245         (release_scratch_register_on_entry): Likewise.
13246         (ix86_adjust_stack_and_probe): Likewise.
13247         (output_adjust_stack_and_probe): Likewise.
13248         (ix86_emit_probe_stack_range): Likewise.
13249         (output_probe_stack_range): Likewise.
13250         (ix86_expand_prologue): Emit stack checking code if static built-in
13251         stack checking is enabled.
13252         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
13253         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
13254         (output_adjust_stack_and_probe): Likewise.
13255         (output_probe_stack_range): Likewise.
13256         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
13257         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
13258         TARGET_STACK_PROBE.
13259         (allocate_stack_worker_64): Likewise.
13260         (allocate_stack): Likewise.
13261         (adjust_stack_and_probe): New insn.
13262         (probe_stack_range): Likewise.
13263
13264 2010-07-08  Richard Guenther  <rguenther@suse.de>
13265
13266         PR tree-optimization/44831
13267         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
13268         a MEM_REF preserving TBAA info of the original dereference.
13269         Dereference the original pointer if the address is not invariant.
13270         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
13271         at least one invariant address that we are going to dereference.
13272
13273 2010-07-08  Richard Guenther  <rguenther@suse.de>
13274
13275         PR tree-optimization/44861
13276         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
13277         information when building MEM_REFs.
13278         (vectorizable_load): Likewise.
13279         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
13280
13281 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
13282
13283         * config/sol2-c.c: Do not include diagnostic-core.h.
13284
13285 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13286
13287         PR bootstrap/44768
13288         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
13289         with respect to current_function_decl. Pass decl of the function.
13290         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
13291         * ipa-inline.c (compute_inline_parameters): Pass decl to
13292         estimated_stack_frame_size.
13293
13294 2010-07-08  Richard Guenther  <rguenther@suse.de>
13295
13296         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13297         New function.
13298         (valueize_refs): Call it.
13299
13300 2010-07-08  Richard Guenther  <rguenther@suse.de>
13301
13302         PR rtl-optimization/44838
13303         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
13304         SSA form do not use pointer equivalence.
13305
13306 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
13307
13308         * dwarf2out.c (AT_linkage_name): Delete.
13309         (add_linkage_attr): New function.
13310         (add_linkage_name): Call it to emit the linkage attribute.
13311         (dwarf2out_finish): Likewise.
13312         (move_linkage_attr): Explicitly accept both attribute variants.
13313
13314 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13315
13316         * toplev.h: Do not include diagnostic-core.h.
13317         Include diagnostic-core.h in every file that includes toplev.h.
13318         * c-tree.h: Do not include toplev.h.
13319         * pretty-print.h: Update comment.
13320         * Makefile.in: Update dependencies.
13321         * alias.c: Include diagnostic-core.h in every file that includes
13322         toplev.h.
13323         * attribs.c: Likewise.
13324         * auto-inc-dec.c: Likewise.
13325         * bb-reorder.c: Likewise.
13326         * bt-load.c: Likewise.
13327         * caller-save.c: Likewise.
13328         * calls.c: Likewise.
13329         * cfg.c: Likewise.
13330         * cfganal.c: Likewise.
13331         * cfgbuild.c: Likewise.
13332         * cfgcleanup.c: Likewise.
13333         * cfghooks.c: Likewise.
13334         * cfgloop.c: Likewise.
13335         * combine.c: Likewise.
13336         * config/alpha/alpha.c: Likewise.
13337         * config/arc/arc.c: Likewise.
13338         * config/arm/arm.c: Likewise.
13339         * config/arm/pe.c: Likewise.
13340         * config/avr/avr.c: Likewise.
13341         * config/bfin/bfin.c: Likewise.
13342         * config/cris/cris.c: Likewise.
13343         * config/crx/crx.c: Likewise.
13344         * config/darwin-c.c: Likewise.
13345         * config/darwin.c: Likewise.
13346         * config/fr30/fr30.c: Likewise.
13347         * config/frv/frv.c: Likewise.
13348         * config/h8300/h8300.c: Likewise.
13349         * config/host-darwin.c: Likewise.
13350         * config/i386/i386.c: Likewise.
13351         * config/i386/netware.c: Likewise.
13352         * config/i386/nwld.c: Likewise.
13353         * config/i386/winnt-cxx.c: Likewise.
13354         * config/i386/winnt-stubs.c: Likewise.
13355         * config/i386/winnt.c: Likewise.
13356         * config/ia64/ia64-c.c: Likewise.
13357         * config/ia64/ia64.c: Likewise.
13358         * config/iq2000/iq2000.c: Likewise.
13359         * config/lm32/lm32.c: Likewise.
13360         * config/m32c/m32c-pragma.c: Likewise.
13361         * config/m32c/m32c.c: Likewise.
13362         * config/m32r/m32r.c: Likewise.
13363         * config/m68hc11/m68hc11.c: Likewise.
13364         * config/m68k/m68k.c: Likewise.
13365         * config/mcore/mcore.c: Likewise.
13366         * config/mep/mep-pragma.c: Likewise.
13367         * config/mep/mep.c: Likewise.
13368         * config/mmix/mmix.c: Likewise.
13369         * config/mn10300/mn10300.c: Likewise.
13370         * config/moxie/moxie.c: Likewise.
13371         * config/pa/pa.c: Likewise.
13372         * config/pdp11/pdp11.c: Likewise.
13373         * config/picochip/picochip.c: Likewise.
13374         * config/rs6000/rs6000-c.c: Likewise.
13375         * config/rs6000/rs6000.c: Likewise.
13376         * config/rx/rx.c: Likewise.
13377         * config/s390/s390.c: Likewise.
13378         * config/score/score.c: Likewise.
13379         * config/score/score3.c: Likewise.
13380         * config/score/score7.c: Likewise.
13381         * config/sh/sh.c: Likewise.
13382         * config/sh/symbian-base.c: Likewise.
13383         * config/sh/symbian-c.c: Likewise.
13384         * config/sh/symbian-cxx.c: Likewise.
13385         * config/sol2-c.c: Likewise.
13386         * config/sol2.c: Likewise.
13387         * config/sparc/sparc.c: Likewise.
13388         * config/spu/spu.c: Likewise.
13389         * config/stormy16/stormy16.c: Likewise.
13390         * config/v850/v850-c.c: Likewise.
13391         * config/v850/v850.c: Likewise.
13392         * config/vax/vax.c: Likewise.
13393         * config/vxworks.c: Likewise.
13394         * config/xtensa/xtensa.c: Likewise.
13395         * convert.c: Likewise.
13396         * cse.c: Likewise.
13397         * cselib.c: Likewise.
13398         * dbgcnt.c: Likewise.
13399         * dbxout.c: Likewise.
13400         * ddg.c: Likewise.
13401         * dominance.c: Likewise.
13402         * emit-rtl.c: Likewise.
13403         * explow.c: Likewise.
13404         * expmed.c: Likewise.
13405         * fixed-value.c: Likewise.
13406         * fold-const.c: Likewise.
13407         * fwprop.c: Likewise.
13408         * gcse.c: Likewise.
13409         * ggc-common.c: Likewise.
13410         * ggc-page.c: Likewise.
13411         * ggc-zone.c: Likewise.
13412         * gimple-low.c: Likewise.
13413         * gimplify.c: Likewise.
13414         * graph.c: Likewise.
13415         * haifa-sched.c: Likewise.
13416         * ifcvt.c: Likewise.
13417         * implicit-zee.c: Likewise.
13418         * integrate.c: Likewise.
13419         * ira-build.c: Likewise.
13420         * ira-color.c: Likewise.
13421         * ira-conflicts.c: Likewise.
13422         * ira-costs.c: Likewise.
13423         * ira-lives.c: Likewise.
13424         * ira.c: Likewise.
13425         * lists.c: Likewise.
13426         * loop-doloop.c: Likewise.
13427         * loop-iv.c: Likewise.
13428         * lto-opts.c: Likewise.
13429         * lto-symtab.c: Likewise.
13430         * main.c: Likewise.
13431         * modulo-sched.c: Likewise.
13432         * optabs.c: Likewise.
13433         * params.c: Likewise.
13434         * plugin.c: Likewise.
13435         * postreload-gcse.c: Likewise.
13436         * postreload.c: Likewise.
13437         * predict.c: Likewise.
13438         * profile.c: Likewise.
13439         * real.c: Likewise.
13440         * regcprop.c: Likewise.
13441         * reginfo.c: Likewise.
13442         * regmove.c: Likewise.
13443         * reorg.c: Likewise.
13444         * resource.c: Likewise.
13445         * rtl.c: Likewise.
13446         * rtlanal.c: Likewise.
13447         * sched-deps.c: Likewise.
13448         * sched-ebb.c: Likewise.
13449         * sched-rgn.c: Likewise.
13450         * sdbout.c: Likewise.
13451         * sel-sched-dump.c: Likewise.
13452         * sel-sched-ir.c: Likewise.
13453         * simplify-rtx.c: Likewise.
13454         * stmt.c: Likewise.
13455         * stor-layout.c: Likewise.
13456         * store-motion.c: Likewise.
13457         * targhooks.c: Likewise.
13458         * tree-cfg.c: Likewise.
13459         * tree-cfgcleanup.c: Likewise.
13460         * tree-dump.c: Likewise.
13461         * tree-eh.c: Likewise.
13462         * tree-inline.c: Likewise.
13463         * tree-nomudflap.c: Likewise.
13464         * tree-object-size.c: Likewise.
13465         * tree-optimize.c: Likewise.
13466         * tree-outof-ssa.c: Likewise.
13467         * tree-phinodes.c: Likewise.
13468         * tree-profile.c: Likewise.
13469         * tree-ssa-ccp.c: Likewise.
13470         * tree-ssa-coalesce.c: Likewise.
13471         * tree-ssa-live.c: Likewise.
13472         * tree-ssa-loop-niter.c: Likewise.
13473         * tree-ssa-loop-prefetch.c: Likewise.
13474         * tree-ssa-loop.c: Likewise.
13475         * tree-ssa-structalias.c: Likewise.
13476         * tree-ssa-uninit.c: Likewise.
13477         * tree-ssa.c: Likewise.
13478         * tree-vect-data-refs.c: Likewise.
13479         * tree-vect-loop-manip.c: Likewise.
13480         * tree-vect-loop.c: Likewise.
13481         * tree-vect-patterns.c: Likewise.
13482         * tree-vect-stmts.c: Likewise.
13483         * tree-vrp.c: Likewise.
13484         * varasm.c: Likewise.
13485         * vec.c: Likewise.
13486         * web.c: Likewise.
13487         * xcoffout.c: Likewise.
13488
13489 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
13490
13491         * gengtype.c (write_field_root): New function.
13492         (write_root): Use it.
13493
13494 2010-07-07  Wei Guozhi  <carrot@google.com>
13495
13496         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
13497         of lowest bits to lshift/compare): Add a missing line.
13498
13499 2010-07-07  Wei Guozhi  <carrot@google.com>
13500
13501         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
13502         of lowest bits to lshift/compare): New.
13503
13504 2010-07-07  Tom Tromey  <tromey@redhat.com>
13505
13506         * doc/tm.texi: Update.
13507         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
13508         Add @hook.
13509         * target.def (want_debug_pub_sections): New hook.
13510         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
13511         * dwarf2out.c (add_pubname_string): Check
13512         targetm.want_debug_pub_sections.
13513         (add_pubname): Likewise.
13514         (add_pubtype): Likewise.
13515
13516 2010-07-07  Jie Zhang  <jie@codesourcery.com>
13517
13518         * genautomata.c (output_automata_list_min_issue_delay_code):
13519         Correctly decompress min_issue_delay.
13520
13521 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
13522
13523         PR rtl-optimization/44404
13524         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
13525         possible, use reg_overlap_mentioned_p instead.
13526
13527 2010-07-07  Duncan Sands  <baldrick@free.fr>
13528
13529         PR middle-end/41355
13530         * tree.c (build_function_type_skip_args): Copy the original type using
13531         build_distinct_type_copy rather than copy_node.
13532
13533 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
13534
13535         PR target/44850
13536         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
13537         revision 161876.
13538         (ix86_expand_prologue): Likewise.
13539         (ix86_handle_fndecl_attribute): Likewise.
13540         (ix86_asm_declare_function_name): Likewise.
13541         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13542         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13543         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
13544         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
13545         * doc/extend.texi: Likewise.
13546
13547 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
13548
13549         PR target/44844
13550         * config/i386/i386.md (rdrand<mode>): Changed to expand to
13551         retry if the carry flag isn't valid.
13552         (rdrand<mode>_1): New.
13553
13554 2010-07-07  Richard Guenther  <rguenther@suse.de>
13555
13556         PR middle-end/44790
13557         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
13558         for expanding the constant offset for MEM_REFs.
13559
13560 2010-07-07  Richard Guenther  <rguenther@suse.de>
13561
13562         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
13563         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
13564         * gimple.h (is_gimple_operand): Remove.
13565         * gimple.c (is_gimple_operand): Likewise.
13566         (walk_gimple_op): Fix wi->val_only setting for calls.
13567         * tree-cfg.c (verify_gimple_call): Fix argument validation.
13568         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
13569         invalid gimple calls.
13570
13571 2010-07-06  Jan Hubicka  <jh@suse.cz>
13572
13573         * lto-cgraph.c (output_cgraph): Add missing declaration.
13574
13575 2010-07-06  Jan Hubicka  <jh@suse.cz>
13576
13577         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
13578         partition.
13579
13580 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
13581
13582         * doc/gimple.texi (GIMPLE_DEBUG): Document.
13583         * doc/rtl.texi (Debug Information): New node.
13584         (NOTE_INSN_VAR_LOCATION): Document.
13585         (debug_insn): Likewise.
13586         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
13587
13588 2010-07-07  Jan Hubicka  <jh@suse.cz>
13589
13590         With parts by Richard Guenther.
13591
13592         PR middle-end/44813
13593         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
13594         for functions passed by reference.
13595         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
13596         in memory when passed by reference.
13597         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
13598         beggining.
13599         * ipa-split.c (split_function): Cleanup way return value is passed;
13600         handle SSA DECL_BY_REFERENCE retvals.
13601         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
13602         DECL_BY_REFERENCE is set.
13603         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
13604         find_what_p_points_to): Handle RESULT_DECL.
13605         * tree-inline.c (declare_return_variable): Get new entry_block argument;
13606         when passing by reference ensure that RESULT_DECL is gimple_val.
13607         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
13608         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
13609
13610 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
13611
13612         PR rtl-optimization/44787
13613         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
13614         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
13615
13616 2010-07-06  Jan Hubicka  <jh@suse.cz>
13617
13618         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
13619         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
13620         with body can prevail.
13621         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
13622         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
13623         * cgraph.c (cgraph_get_node_or_alias): New function.
13624         * cgraph.h (cgraph_get_node_or_alias): Declare.
13625
13626 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
13627
13628         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
13629         support.
13630         (ix86_expand_prologue): Likewise.
13631         (ix86_handle_fndecl_attribute): Likewise.
13632         (ix86_asm_declare_function_name): New function for
13633         ASM_DECLARE_FUNCTION_NAME.
13634         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
13635         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
13636         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
13637         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
13638         * doc/extend.texi: Adjust documentation about ms_hook_prologue
13639         attribute.
13640
13641 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
13642
13643         * config/i386/i386.md (immediate_operand): New mode attribute.
13644
13645         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
13646         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
13647         using P mode iterator.
13648         (pro_epilogue_adjust_stack_di_2): Rename from
13649         pro_epilogue_adjust_stack_rex64_2.
13650
13651         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
13652
13653 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
13654
13655         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
13656         through gen_mov_insv_1 function pointer.
13657         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
13658         gen_truncxf<mode>2 through gen_truncxf function pointer.
13659         (remainder<mode>3): Ditto.
13660         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
13661         (allocate_stack): Call gen_allocate_stack_worker_64 or
13662         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
13663         function pointer.
13664         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
13665         function pointer.
13666
13667 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
13668
13669         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
13670         operand constraint instead of <r><i>m.
13671
13672 2010-07-06  Richard Guenther  <rguenther@suse.de>
13673
13674         PR middle-end/44828
13675         * convert.c (convert_to_integer): Watch out for overflowing
13676         MULT_EXPR as well.
13677
13678 2010-07-05  Jan Hubicka  <jh@suse.cz>
13679
13680         * lto-streamer.c (write_symbol_vec): Rename to ...
13681         (write_symbol) ... this one; write only symbol given and when
13682         present in cache. Sanity check that what is defined is present
13683         in cgraph/varpool with body/finalized decl.
13684         (write_symbols_of_kind): Remove.
13685         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
13686         pairs to produce symtab.
13687         (produce_asm_for_decls): Update call of produce_symtab; don't do so
13688         when doing WPA streaming.
13689
13690 2010-07-05  Jan Hubicka  <jh@suse.cz>
13691
13692         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
13693         function is still available to fold into.
13694
13695 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
13696
13697         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
13698         * function.h (struct_function): Change type of local_decls field
13699         to a VEC.
13700         (add_local_decl): New function.
13701         (FOR_EACH_LOCAL_DECL): New macro.
13702         * cfgexpand.c (init_vars_expansion): Adjust for new type of
13703         cfun->local_decls.
13704         (estimated_stack_frame_size): Likewise.
13705         (expand_used_vars): Likewise.
13706         * cgraphbuild.c (build_cgraph_edges): Likewise.
13707         * function.c (instantiate_decls_1): Likewise.
13708         * ipa-struct-reorg.c (build_data_structure): Likewise.
13709         * ipa-type-escape.c (analyze_function): Likewise.
13710         * lto-streamer-in.c (input_function): Likewise.
13711         * lto-streamer-out.c (output_function): Likewise.
13712         * tree-ssa-live.c (remove_unused_locals): Likewise.
13713         * tree.c (free_lang_data_in_decl): Likewise.
13714         (find_decls_types_in_node): Likewise.
13715         * omp-low.c (remove_exit_barrier): Likewise.
13716         (expand_omp_taskreg): Likewise.
13717         (list2chain): Rename to...
13718         (vec2chain): ...this.  Adjust.
13719         * cgraphunit.c (assemble_thunk): Call add_local_decl.
13720         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
13721         * gimple-low.c (record_vars_into): Likewise.
13722         * tree-inline.c (remap_decls): Likewise.
13723         (declare_return_variable): Likewise.
13724         (declare_inline_vars): Likewise.
13725         (copy_forbidden): Adjust for new type of cfun->local_decls.
13726         (add_local_variables): New function.
13727         (expand_call_inline): Call it.
13728         (tree_function_versioning): Likewise.
13729
13730 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
13731
13732         AVX Programming Reference (June, 2010)
13733         * config/i386/cpuid.h (bit_F16C): New.
13734         (bit_RDRND): Likewise.
13735         (bit_FSGSBASE): Likewise.
13736
13737         * config/i386/i386-builtin-types.def: Add
13738         "DEF_FUNCTION_TYPE (UINT16)", function types for
13739         float16 <-> float conversions and
13740         "DEF_FUNCTION_TYPE (VOID, UINT64)".
13741
13742         * config/i386/i386-c.c (ix86_target_macros_internal): Support
13743         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
13744         OPTION_MASK_ISA_F16C.
13745
13746         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
13747         (OPTION_MASK_ISA_RDRND_SET): Likewise.
13748         (OPTION_MASK_ISA_F16C_SET): Likewise.
13749         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
13750         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
13751         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
13752         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
13753         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
13754         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
13755         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
13756         (override_options): Handle them.
13757         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
13758         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
13759         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
13760         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
13761         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
13762         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
13763         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
13764         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
13765         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
13766         (bdesc_args): Likewise.
13767         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
13768         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
13769         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
13770         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
13771         Handle non-memory store.
13772
13773         * config/i386/i386.h (TARGET_FSGSBASE): New.
13774         (TARGET_RDRND): Likewise.
13775         (TARGET_F12C): Likewise.
13776
13777         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
13778         (UNSPEC_VCVTPS2PH): Likewise.
13779         (UNSPECV_RDFSBASE): Likewise.
13780         (UNSPECV_RDGSBASE): Likewise.
13781         (UNSPECV_WRFSBASE): Likewise.
13782         (UNSPECV_WRGSBASE): Likewise.
13783         (UNSPECV_RDRAND): Likewise.
13784         (rdfsbase<mode>): Likewise.
13785         (rdgsbase<mode>): Likewise.
13786         (wrfsbase<mode>): Likewise.
13787         (wrgsbase<mode>): Likewise.
13788         (rdrand<mode>): Likewise.
13789
13790         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
13791
13792         * config/i386/immintrin.h (_rdrand_u16): New.
13793         (_rdrand_u32): Likewise.
13794         (_readfsbase_u32): Likewise.
13795         (_readfsbase_u64): Likewise.
13796         (_readgsbase_u32): Likewise.
13797         (_readgsbase_u64): Likewise.
13798         (_writefsbase_u32): Likewise.
13799         (_writefsbase_u64): Likewise.
13800         (_writegsbase_u32): Likewise.
13801         (_writegsbase_u64): Likewise.
13802         (_rdrand_u64): Likewise.
13803         (_cvtsh_ss): Likewise.
13804         (_mm_cvtph_ps): Likewise.
13805         (_mm256_cvtph_ps): Likewise.
13806         (_cvtss_sh): Likewise.
13807         (_mm_cvtps_ph): Likewise.
13808         (_mm256_cvtps_ph): Likewise.
13809
13810         * config/i386/sse.md (vcvtph2ps): New.
13811         (*vcvtph2ps_load): Likewise.
13812         (vcvtph2ps256): Likewise.
13813         (vcvtps2ph): Likewise.
13814         (*vcvtps2ph): Likewise.
13815         (*vcvtps2ph_store): Likewise.
13816         (vcvtps2ph256): Likewise.
13817
13818         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
13819
13820         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
13821
13822 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
13823
13824         PR bootstrap/44512
13825         * genenums.c (main): Output include of insn-constants.h
13826         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
13827
13828 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
13829
13830         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
13831         (override_options): Initialize it.
13832         (ix86_expand_prologue): Use it.
13833
13834 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
13835
13836         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
13837
13838 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
13839
13840         * double-int.h (fit_double_type): Remove declaration.
13841         * double-int.c (fit_double_type): Remove function.
13842         * tree.h (int_fits_type_p): Adjust prototype.
13843         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
13844         instead of fit_double_type.
13845         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
13846         instead of fit_double_type and build_int_cst_wide.
13847         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
13848         instead of fit_double_type and build_int_cst_wide.
13849         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
13850         of fit_double_type.
13851
13852 2010-07-05  Jan Hubicka  <jh@suse.cz>
13853
13854         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
13855         in_other_partition.
13856         * lto-cgraph.c (referenced_from_other_partition_p,
13857         reachable_from_other_partition_p): Use in_other_partition flags.
13858         (output_node, output_varpool_node): COMDAT nodes always have private
13859         copies and thus are never used from other partition.
13860
13861 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
13862
13863         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13864         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
13865         * config/ia64/ia64.c Include reload.h.
13866         (ia64_memory_move_cost): New function.
13867         (TARGET_MEMORY_MOVE_COST): Define.
13868         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
13869         memory_move_cost.
13870
13871 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
13872
13873         PR middle-end/42505
13874         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
13875         comments about cost model.
13876         (try_add_cand_for):  Add second strategy for choosing initial set
13877         based on original IVs, controlled by ORIGINALP argument.
13878         (get_initial_solution): Add ORIGINALP argument.
13879         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
13880         (find_optimal_iv_set): Try two different strategies for choosing
13881         the IV set, and return the one with lower cost.
13882
13883 2010-07-05  Richard Guenther  <rguenther@suse.de>
13884
13885         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
13886
13887 2010-07-05  Richard Guenther  <rguenther@suse.de>
13888
13889         * tree.c (reference_alias_ptr_type): New function.
13890         * tree.h (reference_alias_ptr_type): Declare.
13891         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
13892         allow non-TARGET_MEM_REF new refs.
13893         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
13894         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
13895         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
13896         (create_mem_ref): Get alias pointer type.  Adjust calls to
13897         create_mem_ref_raw.
13898         (maybe_fold_tmr): Likewise.
13899         * tree-flow.h (create_mem_ref): Adjust prototype.
13900
13901 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
13902
13903         PR c++/44808
13904         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
13905         *from_p is VAR_DECL.
13906
13907 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
13908
13909         * tree.h (build_call_list): Remove.
13910         * tree.c (build_call_list): Remove.
13911
13912 2010-07-05  Richard Guenther  <rguenther@suse.de>
13913
13914         * double-int.h (double_int_sub): Declare.
13915         * double-int.c (double_int_sub): New function.
13916         * dwarf2out.c (field_byte_offset): Use it.
13917         * fixed-value.c (do_fixed_add): Likewise.
13918         (do_fixed_multiply): Likewise.
13919         (do_fixed_divide): Likewise.
13920         * tree-predcom.c (add_ref_to_chain): Likewise.
13921         (determine_roots_comp): Likewise.
13922         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
13923
13924 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
13925
13926         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
13927         implementations.
13928
13929 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
13930
13931         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
13932         * arm-modes.def (CC_NOTB): Don't define.
13933         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
13934         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
13935         (LTUGEU): New code_iterator.
13936         (cnb, optab): New corresponding code_attrs.
13937         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
13938         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
13939         using LTUGEU.
13940         (addsi3_carryin_shift_<optab>): Likewise.
13941         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
13942         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
13943         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
13944         (subsi3_compare): Renamed from subsi3_compare0_c.
13945         Change CC_NOTB to CC.
13946         (arm_subsi3_insn): Allow constants for operand 0.
13947         (compare_scc peephole for eq case): New.
13948         (compare_scc splitters): Change CC_NOTB to CC.
13949
13950 2010-07-05  Richard Guenther  <rguenther@suse.de>
13951
13952         * tree-ssa-loop-im.c (for_each_index): Do not handle
13953         ALIGN_INDIRECT_REF.
13954         (gen_lsm_tmp_name): Likewise.
13955         * tree-dump.c (dequeue_and_dump): Likewise.
13956         * tree-pretty-print.c (dump_generic_node): Likewise.
13957         (op_code_prio): Likewise.
13958         (op_symbol_code): Likewise.
13959         * tree.c (staticp): Likewise.
13960         (build1_stat): Likewise.
13961         * tree.h (INDIRECT_REF_P): Likewise.
13962         * fold-const.c (maybe_lvalue_p): Likewise.
13963         (operand_equal_p): Likewise.
13964         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13965         (ao_ref_init_from_vn_reference): Likewise.
13966         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13967         (find_interesting_uses_address): Likewise.
13968         * dwarf2out.c (loc_list_from_tree): Likewise.
13969         * gimplify.c (gimplify_expr): Likewise.
13970         * tree-eh.c (tree_could_trap_p): Likewise.
13971         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13972         * cfgexpand.c (expand_debug_expr): Likewise.
13973         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13974         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13975         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13976         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
13977         * tree-ssa-operands.c (get_expr_operands): Likewise.
13978         * expr.c (safe_from_p): Likewise.
13979         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
13980         * tree-vect-data-refs.c (vect_setup_realignment): Build
13981         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
13982         * tree-vect-stmts.c (vectorizable_load): Likewise.
13983         * tree.def (ALIGN_INDIRECT_REF): Remove.
13984
13985 2010-07-05  Richard Guenther  <rguenther@suse.de>
13986
13987         PR tree-optimization/44784
13988         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
13989         for inserted stmts.
13990         (find_or_generate_expression): Fix SCCVN insertion check.
13991
13992 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
13993
13994         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
13995         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
13996         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
13997         directives.
13998
13999 2010-07-05  Ira Rosen  <irar@il.ibm.com>
14000
14001         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
14002         statements that are not vectorized.
14003         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
14004         in INSIDE_COST.
14005
14006 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
14007
14008         PR bootstrap/44820
14009         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
14010
14011 2010-07-05  Richard Guenther  <rguenther@suse.de>
14012
14013         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
14014         RESULT_DECLs properly.
14015
14016 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
14017
14018         PR rtl-optimization/44695
14019         * config/i386/i386.md (extract_code): Removed.
14020         (<u>divmodqi4): Likewise.
14021         (divmodqi4): New.
14022         (udivmodqi4): Likewise.
14023         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
14024         (udivmodhiqi3): Likewise.
14025
14026 2010-07-04  Jan Hubicka  <jh@suse.cz>
14027
14028         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
14029
14030 2010-07-04  Jan Hubicka  <jh@suse.cz>
14031
14032         * cgraphunit.c (init_cgraph): Only initialize dump file if it
14033         is not already initialized.
14034
14035 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
14036
14037         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
14038         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
14039         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
14040         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
14041         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
14042         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
14043         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
14044         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
14045         (sync_new_nand_optab): Redefine as macros.
14046         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
14047         Delete.
14048         (direct_optab_index): New enum.
14049         (direct_optab_d): New structure.
14050         (direct_optab): New typedef.
14051         (direct_optab_table): Declare.
14052         (direct_optab_handler, set_direct_optab_handler): New functions.
14053         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
14054         (sync_lock_release_optab): New macros.
14055         * optabs.c (direct_optab_table): New variable.
14056         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
14057         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
14058         cmpstr_optab and cmpstrn_optab.
14059         (emit_conditional_move): Likewise for movcc_optab.
14060         (can_conditionally_move_p): Likewise for movcc_gen_code.
14061         (init_insn_codes): Clear direct_optab_table.
14062         (init_optabs): Don't initialize the new "direct optabs" here.
14063         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
14064         vcond_gen_code.
14065         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
14066         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
14067         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
14068         (expand_sync_operation): Likewise other sync_*_optabs.
14069         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
14070         to sync_compare_and_swap_optab.
14071         (expand_sync_lock_test_and_set): Use direct_optab_handler for
14072         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
14073         to the names of both.
14074         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
14075         cmpstr_optab and cmpstrn_optab.
14076         (expand_builtin_lock_release): Likewise sync_lock_release.
14077         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
14078         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
14079         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
14080         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
14081         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
14082         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
14083         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
14084         (sync_lock_test_and_set, sync_lock_release): Delete.
14085         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
14086         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
14087         * genopinit.c (optabs): Use set_direct_optab_handler for the new
14088         macro optabs.
14089         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
14090         the "optab" local variable.  Use direct_optab_handler for optab and
14091         sync_compare_and_swap_optab.
14092         * reload1.c (reload_in_optab, reload_out_optab): Delete.
14093         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
14094         reload_in_optab and reload_out_optab.
14095         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
14096         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
14097         * config/pa/pa.c (pa_secondary_reload): Likewise.
14098         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
14099         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
14100         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
14101         (VMSupportsCS8_builtin): Likewise.
14102
14103 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
14104
14105         * optabs.h (optab_handlers): Change type of insn_code to int.
14106         (optab_handler, set_optab_handler, convert_optab_handler)
14107         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
14108         CODE_FOR_nothing".
14109         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
14110         (init_insn_codes): Zero both the above arrays.
14111         (init_optabs): Never call init_insn_codes first time around.
14112
14113 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
14114
14115         * optabs.h (optab_handler, convert_optab_handler): Turn into
14116         inline functions that return an insn code.
14117         (set_optab_handler, set_convert_optab_handler): New functions.
14118         * builtins.c: Replace optab_handler(X)->insn_code with
14119         optab_handler or set_optab_handler thoughout.  Likewise
14120         convert_optab_handler(X)->insn_code with convert_optab_handler
14121         and set_convert_optab_handler.
14122         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
14123         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
14124         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
14125         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14126         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
14127         config/spu/spu.c: Likewise.
14128
14129 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14130
14131         PR target/44531
14132         * config.gcc (sh*-*-*): Use regular expressions instead of
14133         the 'i' modifier for sed substitutions.
14134
14135 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
14136
14137         * gimple.c (gimple_body): Comments added.
14138
14139 2010-07-04  Richard Guenther  <rguenther@suse.de>
14140
14141         PR middle-end/44809
14142         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
14143         of an INDIRECT_REF.
14144
14145 2010-07-04  Richard Guenther  <rguenther@suse.de>
14146
14147         PR tree-optimization/44479
14148         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
14149         extra SSA name copy statements which preserves points-to
14150         information.
14151         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
14152         Copy points-to information for all pointers.  Properly handle
14153         MEM_REFs.
14154         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
14155         copy statements.
14156         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
14157         dependency.
14158
14159 2010-07-04  Richard Guenther  <rguenther@suse.de>
14160
14161         PR middle-end/44785
14162         * tree-inline.c (initialize_inlined_parameters): Do not
14163         re-use pointer-map slot over remap_type call.
14164
14165 2010-07-04  Richard Guenther  <rguenther@suse.de>
14166
14167         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
14168
14169 2010-07-04  Richard Guenther  <rguenther@suse.de>
14170
14171         PR tree-optimization/44656
14172         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
14173         again after value-replacing in the defintions lhs.
14174
14175 2010-07-04  Ira Rosen  <irar@il.ibm.com>
14176             Revital Eres  <eres@il.ibm.com>
14177
14178         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
14179         Document new arguments.
14180         * doc/tm.texi: Regenerate.
14181         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
14182         Handle unaligned store.
14183         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
14184         * target.def (builtin_vectorization_cost): Add new arguments.
14185         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
14186         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
14187         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
14188         (vect_vfa_segment_size): Fix indentation.
14189         * tree-vectorizer.h (struct _vect_peel_info): New.
14190         (struct _vect_peel_extended_info): New.
14191         (struct _loop_vec_info): Add new field for peeling hash table and a
14192         macro for its access.
14193         (VECT_MAX_COST): Define.
14194         (vect_get_load_cost): Declare.
14195         (vect_get_store_cost, vect_get_known_peeling_cost,
14196         vect_get_single_scalar_iteraion_cost): Likewise.
14197         (vect_supportable_dr_alignment): Add new argument.
14198         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
14199         field.
14200         (destroy_loop_vec_info): Free peeling hash table.
14201         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
14202         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
14203         vect_analyze_slp. Fix indentation.
14204         (vect_get_single_scalar_iteraion_cost): New function.
14205         (vect_get_known_peeling_cost): Likewise.
14206         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
14207         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
14208         statement. Move outside cost calculation inside unknown peeling case.
14209         Call vect_get_known_peeling_cost for known amount of peeling.
14210         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
14211         reference to the print message of forced alignment.
14212         (vect_verify_datarefs_alignment): Update call to
14213         vect_supportable_dr_alignment.
14214         (vect_get_data_access_cost): New function.
14215         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
14216         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
14217         vect_peeling_hash_choose_best_peeling): Likewise.
14218         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
14219         to store all the accesses in the loop and find best possible access to
14220         align using peeling for known alignment case. For unknown alignment
14221         check if stores are preferred or if peeling is worthy.
14222         (vect_find_same_alignment_drs): Analyze pairs of loads too.
14223         (vect_supportable_dr_alignment): Add new argument and check aligned
14224         accesses according to it.
14225         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
14226         (cost_for_stmt): Call vect_get_stmt_cost.
14227         (vect_model_simple_cost): Likewise.
14228         (vect_model_store_cost): Call vect_get_stmt_cost. Call
14229         vect_get_store_cost to calculate the cost of the statement.
14230         (vect_get_store_cost): New function.
14231         (vect_model_load_cost): Call vect_get_stmt_cost. Call
14232         vect_get_load_cost to calculate the cost of the statement.
14233         (vect_get_load_cost): New function.
14234         (vectorizable_store): Update call to vect_supportable_dr_alignment.
14235         (vectorizable_load): Likewise.
14236         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
14237         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
14238         arguments. Handle unaligned store.
14239         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
14240         (rs6000_builtin_support_vector_misalignment): Return true for word and
14241         double word alignments for VSX.
14242         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
14243         vect_supportable_dr_alignment and builtin_vectorization_cost.
14244
14245 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14246
14247         PR target/44597
14248         * config/pa/predicates.md (prefetch_cc_operand): Remove.
14249         (prefetch_nocc_operand): Likewise.
14250         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
14251         (prefetch_20): New insn.
14252         (prefetch_cc): Remove.
14253         (prefetch_nocc): Likewise.
14254
14255 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14256
14257         * expr.c (vector_mode_valid_p): Move to c-common.c.
14258         * expr.h (vector_mode_valid_p): Do not declare here.
14259         * system.h: Poison GCC_EXPR_H in front-ends.
14260         * Makefile.in: Update dependencies.
14261
14262 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14263
14264         PR target/44705
14265         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
14266
14267 2010-07-03  Jan Hubicka  <jh@suse.cz>
14268
14269         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
14270         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
14271         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
14272         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
14273         Likewise.
14274
14275         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
14276         Update timevars.V
14277         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
14278         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
14279         TV_IPA_LTO_DECL_OUT): New.
14280         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
14281
14282 2010-07-03  Jan Hubicka  <jh@suse.cz>
14283
14284         * ipa-inline.c (update_edge_key): Break out from ...
14285         update_callers_keys): ... here;
14286         (update_callee_keys): Update only the edges from caller to callee.
14287         (update_all_calle_keys): Do what update_calle_keys did.
14288         (decide_inlining_of_small_functions): Avoid recomputing of all
14289         callees when badness increase.
14290
14291 2010-07-03  Jie Zhang  <jie@codesourcery.com>
14292
14293         * config/arm/arm.c (arm_attr_length_move_neon): New.
14294         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
14295         * config/arm/neon.md (define_mode_attr V_slen): Remove.
14296         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
14297         to compute length attribute.
14298
14299 2010-07-03  Jie Zhang  <jie@codesourcery.com>
14300
14301         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
14302         as predicate for operand 1 and remove its constraint.
14303         * config/arm/predicates.md (vfp_register_operand): New.
14304         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
14305         (*push_fp_multi): Likewise.
14306
14307 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
14308
14309         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
14310
14311 2010-07-03  Jan Hubicka  <jh@suse.cz>
14312
14313         * config/i386/i386.c (override_options): Revert accidental commit.
14314
14315 2010-07-02  Le-Chun Wu  <lcwu@google.com>
14316
14317         PR c++/44128
14318         * doc/invoke.texi: Update documentation of -Wshadow.
14319
14320 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
14321             Julian Brown  <julian@codesourcery.com>
14322             Sandra Loosemore  <sandra@codesourcery.com>
14323
14324         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
14325         comparisons.  Adjust to take both operands.
14326         (arm_select_cc_mode): Handle DImode comparisons.
14327         (arm_gen_compare_reg): Generate a scratch register for DImode
14328         comparisons which require one.  Use xor for Thumb equality checks.
14329         (arm_const_double_by_immediates): New.
14330         (arm_print_operand): Allow 'Q' and 'R' for constants.
14331         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
14332         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
14333         arm_canonicalize_comparison.
14334         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
14335         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
14336         prototype.
14337         (arm_const_double_by_immediates): Declare.
14338         * config/arm/constraints.md (Di): New constraint.
14339         * config/arm/predicates.md (arm_immediate_di_operand)
14340         (arm_di_operand, cmpdi_operand): New.
14341         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
14342         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
14343         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
14344         (cstoredi4): Handle non-Cirrus also.
14345
14346 2010-07-02  Julian Brown  <julian@codesourcery.com>
14347             Sandra Loosemore  <sandra@codesourcery.com>
14348
14349         PR target/43703
14350         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
14351         (smax<mode>3): Disable for NEON float modes when
14352         flag_unsafe_math_optimizations is false.
14353         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
14354         (*mul<mode>3_neon)
14355         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
14356         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
14357         for NEON float modes when flag_unsafe_math_optimizations is false.
14358         (quad_halves_<code>v4sf): Only enable if
14359         flag_unsafe_math_optimizations is true.
14360         * doc/invoke.texi (ARM Options): Add note about floating point
14361         vectorization requiring -funsafe-math-optimizations.
14362
14363 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
14364             Julian Brown  <julian@codesourcery.com>
14365
14366         * config/arm/neon.md (UNSPEC_VABA): Delete.
14367         (UNSPEC_VABAL): Delete.
14368         (UNSPEC_VABS): Delete.
14369         (UNSPEC_VMUL_N): Delete.
14370         (adddi3_neon): New.
14371         (subdi3_neon): New.
14372         (mul<mode>3add<mode>_neon): Make the pattern named.
14373         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14374         (neon_vadd<mode>): Replace with define_expand, and move the remaining
14375         unspec parts...
14376         (neon_vadd<mode>_unspec): ...to this.
14377         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
14378         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
14379         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
14380         (neon_vaba<mode>): Rewrite in terms of vabd.
14381         (neon_vabal<mode>): Rewrite in terms of vabdl.
14382         (neon_vabs<mode>): Rewrite without unspec.
14383         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
14384         (*arm_subdi3): Likewise.
14385         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
14386         No_op attribute to disable assembly output checks.
14387         * config/arm/arm_neon.h: Regenerated.
14388         * doc/arm-neon-intrinsics.texi: Regenerated.
14389
14390 2010-07-02  Jan Hubicka  <jh@suse.cz>
14391
14392         * ipa-split.c (split_function): For aggregate values, set the return
14393         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
14394         *<retval> = fncall.part ().
14395         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
14396
14397 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
14398
14399         * config/arm/neon.md (UNSPEC_VAND): Delete.
14400         (UNSPEC_VBIC): Delete.
14401         (UNSPEC_VCLZ): Delete.
14402         (UNSPEC_VCNT): Delete.
14403         (UNSPEC_VEOR): Delete.
14404         (UNSPEC_VORN): Delete.
14405         (UNSPEC_VORR): Delete.
14406         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
14407         core registers too.
14408         (anddi3_neon): Likewise.
14409         (orndi3_neon): Likewise.
14410         (bicdi3_neon): Likewise.
14411         (xordi3_neon): Likewise.
14412         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
14413         rid of unspec and handle unused operand.
14414         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
14415         * config/arm/predicates.md (imm_for_neon_logic_operand):
14416         Require TARGET_NEON.
14417         (imm_for_neon_inv_logic_operand): Likewise.
14418         * config/arm/arm.md (define_split for logical_binary_operator):
14419         Disable for NEON registers.
14420         (anddi3): Add new define_expand, and rename the insn.  Disable
14421         this insn for NEON, where anddi3_neon now applies.
14422         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
14423         (iordi3): As for anddi3.
14424         (xordi3): Likewise.
14425         * config/arm/neon.ml (Vand): Split DImode variants and mark them
14426         as No_op to disable testing for exact instruction match.
14427         (Vorr): Likewise.
14428         (Veor): Likewise.
14429         (Vbic): Likewise.
14430         (Vorn): Likewise.
14431         * config/arm/arm_neon.h: Regenerated.
14432         * doc/arm-neon-intrinsics.texi: Regenerated.
14433
14434 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
14435
14436         * expr.h (emit_stack_probe): Declare.
14437         * explow.c (emit_stack_probe): Make global.
14438         (anti_adjust_stack_and_probe): Fix comments.
14439         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14440         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14441         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14442         * config/sparc/sparc.c: Include except.h.
14443         (sparc_emit_probe_stack_range): New function.
14444         (output_probe_stack_range): Likewise.
14445         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
14446         built-in stack checking is enabled.
14447         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
14448         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14449         (probe_stack_range): New insn.
14450
14451 2010-07-02  Richard Guenther  <rguenther@suse.de>
14452
14453         PR target/43958
14454         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
14455         for argument alignment.
14456
14457 2010-07-02  Jan Hubicka  <jh@suse.cz>
14458
14459         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
14460         walk backwards from entry_bb to check only those basic block of header
14461         that might lead to execution of split part.
14462         (consider_split) ... here.
14463         (find_return_bb): Allow assignment in return BB.
14464         (find_retval): New.
14465         (split_function): Fix name of cloned function; take care of updating
14466         return value in return_bb containing move.
14467
14468 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
14469
14470         PR target/44771
14471         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
14472         used variable insn.
14473
14474 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
14475
14476         * implicit-zee.c (combine_reaching_defs): Fix long lines.
14477         (is_set_with_extension_DI): Delete.
14478         (struct zero_extend_info): New structure.
14479         (add_removable_zero_extend): New function.
14480         (find_removable_zero_extends): Use note_stores to find SETs.
14481         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
14482
14483 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
14484
14485         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
14486         is_miss_rate_acceptable. Pull total_positions computation
14487         out of the loops.  Early return if miss_positions exceeds
14488         the acceptable threshold.
14489         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
14490         is_miss_rate_acceptable after renaming of compute_miss_rate.
14491
14492 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
14493
14494         PR middle-end/44576
14495         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
14496         of 1000) for miss rate if the address diference is greater than or
14497         equal to the cache line size (the two reference will never hit the
14498         same cache line).
14499
14500 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
14501
14502         PR target/42835
14503         * config/arm/arm-modes.def (CC_NOTB): New mode.
14504         * config/arm/arm.c (get_arm_condition_code): Handle it.
14505         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
14506         * config/arm/arm.md (subsi3_compare0_c): New pattern.
14507         (compare_scc): Now a define_and_split.  Add a number of extra
14508         splitters before it.
14509
14510         PR target/42172
14511         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
14512         and ZERO_EXTEND.
14513         (arm_rtx_costs_1): Likewise.
14514         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
14515         * config/arm/arm.md (is_arch6): New attribute.
14516         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
14517         extendqisi2): Tighten the code somewhat, avoiding invalid
14518         RTL to occur in the expander patterns.
14519         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
14520         (thumb1_zero_extendhisi2_v6): Delete.
14521         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
14522         (thumb1_extendhisi2_v6): Delete.
14523         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
14524         (thumb1_extendqisi2_v6): Delete.
14525         (zero_extendhisi2 for register input splitter): New.
14526         (zero_extendqisi2 for register input splitter): New.
14527         (thumb1_extendhisi2 for register input splitter): New.
14528         (extendhisi2 for register input splitter): New.
14529         (extendqisi2 for register input splitter): New.
14530         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
14531         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
14532         and add support for a register alternative requiring a split.
14533         (thumb1_zero_extendqisi2): Likewise.
14534         (arm_zero_extendqisi2): Likewise.
14535         (arm_extendhisi2): Likewise.
14536         (arm_extendqisi2): Likewise.
14537
14538 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
14539
14540         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
14541         instead of an unspec.
14542         (neon_expand_vector_init): Likewise.
14543         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
14544         (UNSPEC_VDUP_LANE): Delete.
14545         (UNSPEC VDUP_N): Delete.
14546         (UNSPEC_VGET_HIGH): Delete.
14547         (UNSPEC_VGET_LANE): Delete.
14548         (UNSPEC_VGET_LOW): Delete.
14549         (UNSPEC_VMVN): Delete.
14550         (UNSPEC_VSET_LANE): Delete.
14551         (V_double_vector_mode): New.
14552         (vec_set<mode>_internal): Make code emitted match that for the
14553         corresponding intrinsics.
14554         (vec_setv2di_internal): Likewise.
14555         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
14556         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
14557         (neon_vset_lane<mode>): Combine double and quad patterns and
14558         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
14559         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
14560         (neon_vdup_n<mode>): Rewrite RTL without unspec.
14561         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
14562         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
14563         with neon_vdup_lanev2di, adjusting the pattern from the latter
14564         to be predicable for consistency.
14565         (neon_vdup_lane<mode>_internal): New.
14566         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
14567         to avoid using an unspec.
14568         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
14569         (neon_vdup_lanev2di): Turn into a define_expand.
14570         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
14571         (neon_vget_high<mode>): Replace with....
14572         (neon_vget_highv16qi): New pattern using canonical RTL.
14573         (neon_vget_highv8hi): Likewise.
14574         (neon_vget_highv4si): Likewise.
14575         (neon_vget_highv4sf): Likewise.
14576         (neon_vget_highv2di): Likewise.
14577         (neon_vget_low<mode>): Replace with....
14578         (neon_vget_lowv16qi): New pattern using canonical RTL.
14579         (neon_vget_lowv8hi): Likewise.
14580         (neon_vget_lowv4si): Likewise.
14581         (neon_vget_lowv4sf): Likewise.
14582         (neon_vget_lowv2di): Likewise.
14583
14584         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
14585         test for this emitting vmov.
14586         (Vset_lane): Likewise.
14587         (Vdup_n): Likewise.
14588         (Vmov_n): Likewise.
14589
14590         * doc/arm-neon-intrinsics.texi: Regenerated.
14591
14592 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
14593
14594         * config/arm/neon.md (vec_extractv2di): Correct error in register
14595         numbering to reconcile with neon_vget_lanev2di.
14596
14597 2010-07-02  Richard Guenther  <rguenther@suse.de>
14598
14599         * tree-ssa-structalias.c (pt_solution_set_var): New function.
14600         * tree-ssa-alias.h (pt_solution_set_var): Declare.
14601         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
14602         points-to information.
14603
14604 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
14605
14606         * config/s390/s390.c (override_options): Adopt prefetching
14607         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
14608
14609 2010-07-02  Jan Hubicka  <jh@suse.cz>
14610
14611         * df-problems.c (df_kill_notes): Do not collect dead  notes.
14612         (df_set_note): Just call add_reg_note.
14613         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
14614         df_create_unused_note): Do not deal with lists of old notes.
14615         (df_note_bb_compute): Likewise.
14616
14617 2010-07-02  Richard Guenther  <rguenther@suse.de>
14618
14619         * tree-ssa-structalias.c (find_func_aliases): Handle
14620         pointer alignment via BIT_AND_EXPR.
14621         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
14622
14623 2010-07-02  Richard Guenther  <rguenther@suse.de>
14624
14625         * tree-data-ref.c (initialize_data_dependence_relation): Handle
14626         mismatching number of dimensions properly.
14627
14628 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14629
14630         PR target/44707
14631         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
14632         (lo_sum (high ...) ...) patterns generated by earlier passes.
14633
14634 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14635
14636         * doc/install.texi (Prerequisites): Document Perl requirement on
14637         Solaris 2.
14638         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
14639
14640 2010-07-02  Richard Guenther  <rguenther@suse.de>
14641
14642         PR middle-end/44777
14643         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
14644
14645 2010-07-02  Jan Hubicka  <jh@suse.cz>
14646
14647         PR middle-end/44706
14648         * predict.c (predict_paths_for_bb): Handle case when control dependence
14649         BB has only abnormal edges.
14650
14651 2010-07-02  Richard Guenther  <rguenther@suse.de>
14652
14653         PR tree-optimization/44748
14654         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
14655         the embedded conversion in MEM_REFs.
14656
14657 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
14658
14659         * reload.c: Include toplev.h.
14660         * recog.c:  Likewise.
14661         * Makefile.in: Adjust dependencies.
14662
14663 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
14664
14665         PR debug/44694
14666         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
14667         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
14668
14669 2010-07-01  Richard Guenther  <rguenther@suse.de>
14670
14671         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
14672         types for offsets.
14673
14674 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
14675
14676         PR target/44732
14677         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
14678         Fix argument types.
14679
14680 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
14681
14682         PR target/44727
14683         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14684         Make sure operand 0 dies.
14685
14686 2010-07-01  Richard Guenther  <rguenther@suse.de>
14687
14688         PR middle-end/42834
14689         PR middle-end/44468
14690         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
14691         * doc/generic.texi (References to storage): Document MEM_REF.
14692         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
14693         (print_call_name): Likewise.
14694         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
14695         (build_simple_mem_ref_loc): New function.
14696         (mem_ref_offset): Likewise.
14697         * tree.h (build_simple_mem_ref_loc): Declare.
14698         (build_simple_mem_ref): Define.
14699         (mem_ref_offset): Declare.
14700         * fold-const.c: Include tree-flow.h.
14701         (operand_equal_p): Handle MEM_REF.
14702         (build_fold_addr_expr_with_type_loc): Likewise.
14703         (fold_comparison): Likewise.
14704         (fold_unary_loc): Fold
14705         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
14706         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
14707         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
14708         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
14709         (ptr_deref_may_alias_ref_p_1): Likewise.
14710         (ao_ref_base_alias_set): Properly differentiate base object for
14711         offset and TBAA.
14712         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
14713         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
14714         (indirect_refs_may_alias_p): Likewise.
14715         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
14716         chasing code.
14717         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
14718         (call_may_clobber_ref_p_1): Likewise.
14719         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
14720         * expr.c (expand_assignment): Handle MEM_REF.
14721         (store_expr): Handle MEM_REFs from STRING_CSTs.
14722         (store_field): If expanding a MEM_REF of a non-addressable
14723         decl use bitfield operations.
14724         (get_inner_reference): Handle MEM_REF.
14725         (expand_expr_addr_expr_1): Likewise.
14726         (expand_expr_real_1): Likewise.
14727         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
14728         * alias.c (ao_ref_from_mem): Handle MEM_REF.
14729         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
14730         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
14731         (dr_analyze_indices): Likewise.
14732         (dr_analyze_alias): Likewise.
14733         (object_address_invariant_in_loop_p): Likewise.
14734         * gimplify.c (mark_addressable): Handle MEM_REF.
14735         (gimplify_cond_expr): Build MEM_REFs.
14736         (gimplify_modify_expr_to_memcpy): Likewise.
14737         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
14738         (gimple_fold_indirect_ref): Adjust.
14739         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
14740         * tree.def (MEM_REF): New tree code.
14741         * tree-dfa.c: Include toplev.h.
14742         (get_ref_base_and_extent): Handle MEM_REF.
14743         (get_addr_base_and_unit_offset): New function.
14744         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
14745         * gimple-fold.c (may_propagate_address_into_dereference): Handle
14746         MEM_REF.
14747         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
14748         accesses if the array has just one dimension.  Remove always true
14749         parameter.  Do not require type compatibility here.
14750         (maybe_fold_offset_to_component_ref): Remove.
14751         (maybe_fold_stmt_indirect): Remove.
14752         (maybe_fold_reference): Remove INDIRECT_REF handling.
14753         Fold back to non-MEM_REF.
14754         (maybe_fold_offset_to_address): Simplify.  Deal with type
14755         mismatches here.
14756         (maybe_fold_reference): Likewise.
14757         (maybe_fold_stmt_addition): Likewise.  Also handle
14758         &ARRAY + I in addition to &ARRAY[0] + I.
14759         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
14760         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
14761         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
14762         * tree-ssa.c (useless_type_conversion_p): Make most pointer
14763         conversions useless.
14764         (warn_uninitialized_var): Handle MEM_REF.
14765         (maybe_rewrite_mem_ref_base): New function.
14766         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
14767         to SSA form.
14768         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
14769         INDIRECT_REF handling.
14770         (copy_tree_body_r): Handle MEM_REF.
14771         * gimple.c (is_gimple_addressable): Adjust.
14772         (is_gimple_address): Likewise.
14773         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
14774         invariant base are invariant.
14775         (is_gimple_min_lval): Adjust.
14776         (is_gimple_mem_ref_addr): New function.
14777         (get_base_address): Handle MEM_REF.
14778         (count_ptr_derefs): Likewise.
14779         (get_base_loadstore): Likewise.
14780         * gimple.h (is_gimple_mem_ref_addr): Declare.
14781         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
14782         * tree-cfg.c (verify_address): New function, split out from ...
14783         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
14784         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
14785         INDIRECT_REFs.
14786         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
14787         INDIRECT_REF.  Allow conversions.
14788         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
14789         a register does not change its size.
14790         (verify_types_in_gimple_reference): Verify MEM_REF.
14791         (verify_gimple_assign_single): Disallow INDIRECT_REF.
14792         Handle MEM_REF.
14793         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
14794         New.
14795         (mark_address_taken): Handle MEM_REF.
14796         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
14797         (get_asm_expr_operands): Pass opf_not_non_addressable.
14798         (get_expr_operands): Handle opf_[not_]non_addressable.
14799         Handle MEM_REF.  Remove INDIRECT_REF handling.
14800         * tree-vrp.c (check_array_ref): Handle MEM_REF.
14801         (search_for_addr_array): Likewise.
14802         (check_array_bounds): Likewise.
14803         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
14804         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
14805         (ref_always_accessed_p): Likewise.
14806         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
14807         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
14808         Handle MEM_REF.
14809         * cgraphbuild.c (mark_load): Properly check for NULL result
14810         from get_base_address.
14811         (mark_store): Likewise.
14812         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
14813         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
14814         handling for MEM_REF.
14815         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
14816         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
14817         * builtins.c (stabilize_va_list_loc): Use the function ABI
14818         valist type if we couldn't canonicalize the argument type.
14819         Always dereference with the canonical va-list type.
14820         (maybe_emit_free_warning): Handle MEM_REF.
14821         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
14822         memmove to memcpy.
14823         * builtins.c (fold_builtin_memory_op): Use ref-all types
14824         for all memcpy foldings.
14825         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
14826         (build_outer_var_ref): Likewise.
14827         (scan_omp_1_op): Likewise.
14828         (lower_rec_input_clauses): Likewise.
14829         (lower_lastprivate_clauses): Likewise.
14830         (lower_reduction_clauses): Likewise.
14831         (lower_copyprivate_clauses): Likewise.
14832         (expand_omp_atomic_pipeline): Likewise.
14833         (expand_omp_atomic_mutex): Likewise.
14834         (create_task_copyfn): Likewise.
14835         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
14836         Remove old union trick.  Initialize constant offsets.
14837         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
14838         INDIRECT_REF.  Init base_alias_set properly.
14839         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
14840         (vn_reference_fold_indirect): Adjust for MEM_REFs.
14841         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
14842         for ARRAY_REFs.
14843         (may_insert): Remove.
14844         (visit_reference_op_load): Do not test may_insert.
14845         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
14846         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14847         a field to store the constant offset this op applies.
14848         (run_scc_vn): Adjust prototype.
14849         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
14850         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
14851         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
14852         bother about volatile qualifiers on pointers.
14853         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
14854         * tree-ssa-loop-ivopts.c
14855         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
14856         (strip_offset_1): Likewise.
14857         (find_interesting_uses_address): Replace INDIRECT_REF handling with
14858         MEM_REF handling.
14859         (get_computation_cost_at): Likewise.
14860         * ipa-pure-const.c (check_op): Handle MEM_REF.
14861         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
14862         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
14863         and constants.
14864         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
14865         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
14866         (eliminate_local_variables_1): Likewise.
14867         (create_call_for_reduction_1): Likewise.
14868         (create_loads_for_reductions): Likewise.
14869         (create_loads_and_stores_for_name): Likewise.
14870         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
14871         (ssa_accessed_in_tree): Handle MEM_REF.
14872         (ssa_accessed_in_assign_rhs): Likewise.
14873         (update_type_size): Likewise.
14874         (analyze_accesses_for_call_stmt): Likewise.
14875         (analyze_accesses_for_assign_stmt): Likewise.
14876         (transform_access_sites): Likewise.
14877         (transform_allocation_sites): Likewise.
14878         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
14879         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14880         not handle INDIRECT_REF.
14881         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
14882         (cond_store_replacement): Likewise.
14883         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
14884         MEM_REF, no not handle INDIRECT_REFs.
14885         (insert_into_preds_of_block): Properly initialize avail.
14886         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
14887         for ARRAY_REFs.  Properly handle reference lookups that
14888         require a bit re-interpretation.
14889         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
14890         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
14891         (build_ref_for_offset_1): Remove.
14892         (build_ref_for_offset): Build MEM_REFs.
14893         (gate_intra_sra): Disable for now.
14894         (sra_ipa_modify_expr): Handle MEM_REF.
14895         (ipa_early_sra_gate): Disable for now.
14896         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
14897         MEM_REF handling.
14898         (disqualify_base_of_expr): Likewise.
14899         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
14900         MEM_REF handling.
14901         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
14902         Use mem_ref_offset.  Remove bogus folding.
14903         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
14904         (make_fancy_name_1): Add support for MEM_REF.
14905         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
14906         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
14907         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
14908         (compute_complex_ancestor_jump_func): Likewise.
14909         (ipa_analyze_virtual_call_uses): Likewise.
14910         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
14911         INDIRECT_REF folding with more generalized MEM_REF folding.
14912         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
14913         (forward_propagate_addr_into_variable_array_index): Also handle
14914         &ARRAY + I in addition to &ARRAY[0] + I.
14915         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
14916         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
14917         creates assignments with overlap.
14918         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
14919         (get_frame_field): Likewise.
14920         (get_nonlocal_debug_decl): Likewise.
14921         (convert_nonlocal_reference_op): Likewise.
14922         (struct nesting_info): Add mem_refs pointer-set.
14923         (create_nesting_tree): Allocate it.
14924         (convert_local_reference_op): Insert to be folded mem-refs.
14925         (fold_mem_refs): New function.
14926         (finalize_nesting_tree_1): Perform defered folding of mem-refs
14927         (free_nesting_tree): Free the pointer-set.
14928         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
14929         (vectorizable_load): Likewise.
14930         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
14931         (propagate_with_phi): Likewise.
14932         * tree-object-size.c (addr_object_size): Handle MEM_REFs
14933         instead of INDIRECT_REFs.
14934         (compute_object_offset): Handle MEM_REF.
14935         (plus_stmt_object_size): Handle MEM_REF.
14936         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
14937         for &MEM_REF.
14938         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
14939         (symbol_marked_for_renaming): Likewise.
14940         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
14941         (fold-const.o): Add $(TREE_FLOW_H).
14942         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
14943         (find_func_clobbers): Likewise.
14944         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
14945         (decompose_access): Likewise.
14946         (replace_field_acc): Likewise.
14947         (replace_field_access_stmt): Likewise.
14948         (insert_new_var_in_stmt): Likewise.
14949         (get_stmt_accesses): Likewise.
14950         (reorg_structs_drive): Disable.
14951         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
14952         (ix86_canonical_va_list_type): Likewise.
14953
14954 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
14955
14956         PR other/44566
14957         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
14958         * target.def (struct gcc_target): Replace enum reg_class with
14959         reg_class_t in hook argument / return types.
14960         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
14961         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
14962         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14963         * targhooks.h (default_branch_target_register_class): Likewise.
14964         (default_ira_cover_classes, default_secondary_reload): Likewise.
14965         (default_memory_move_cost, default_register_move_cost): Likewise.
14966         * targhooks.c (default_branch_target_register_class): Likewise.
14967         (default_ira_cover_classes, default_secondary_reload): Likewise.
14968         (default_memory_move_cost, default_register_move_cost): Likewise.
14969         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
14970         * bt-load.c (branch_target_load_optimize): Likewise.
14971         * ira.c (setup_cover_and_important_classes): Likewise.
14972         * ira-costs.c (copy_cost): Likewise.
14973         * reload1.c (emit_input_reload_insns): Likewise.
14974         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
14975         * config/frv/frv.c (frv_secondary_reload): Likewise.
14976         * config/s390/s390.c (s390_secondary_reload): Likewise.
14977         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
14978         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
14979         (ix86_register_move_cost): Likewise.
14980         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
14981         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
14982         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
14983         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
14984         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
14985         (rs6000_ira_cover_classes): Likewise.
14986         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
14987         * config/picochip/picochip-protos.h (picochip_secondary_reload):
14988         Likewise.
14989         * config/pa/pa.c (pa_secondary_reload): Likewise.
14990         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
14991         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
14992         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
14993         * doc/tm.texi: Regenerate.
14994
14995 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
14996
14997         PR bootstrrap/44726
14998         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
14999         use.
15000         (build_alias_set_optimal_p): Likewise.
15001         (build_base_obj_set_for_drs): Likewise.
15002
15003 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
15004
15005         * target.def: Remove comment about licensing problems of function
15006         declarations.
15007
15008         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
15009         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
15010         * doc/tm.texi: Regenerate.
15011
15012         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
15013         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
15014
15015         * target.def (enum_va_list_p): Use DEFHOOK.
15016         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
15017         Rename ptype to ptree.
15018         * doc/tm.texi: Regenerate.
15019
15020         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
15021         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
15022         * doc/tm.texi: Regenerate.
15023
15024         * target.def (memory_move_cost): Use DEFHOOK.
15025         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
15026         Rename regclass AKA class to rclass.
15027         * doc/tm.texi: Regenerate.
15028
15029         * target.def (pragma_parse): Use DEFHOOK.
15030         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
15031         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
15032         * doc/tm.texi: Regenerate.
15033
15034         * target.def (pass_by_reference): Use DEFHOOK.
15035         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
15036         * doc/tm.texi: Regenerate.
15037
15038         * target.def (resolve_overloaded_builtin): Rename params to arglist.
15039         Use DEFHOOK.
15040         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
15041         * doc/tm.texi: Regenerate.
15042
15043         * target.def (return_pops_args): Use DEFHOOK.
15044         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
15045         Rename stack-size to size.
15046         * doc/tm.texi: Regenerate.
15047
15048         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
15049         last-sched_cycle to last_clock, cur_cycle to clock.
15050         * doc/tm.texi.in: Use @hook.
15051         * doc/tm.texi: Regenerate.
15052
15053         * target.def (print_operand, print_operand_address): Update comment.
15054         (print_operand_punct_valid_p): Likewise.
15055
15056 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15057
15058         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
15059         to rtl.h.
15060         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
15061         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
15062         * rtl-error.h: New.
15063         * regrename.c: Do not include toplev.h. Include rtl-error.h.
15064         * rtl-error.c: Likewise.
15065         * reload.c: Likewise.
15066         * recog.c:  Likewise.
15067         * sel-sched.c: Likewise.
15068         * function.c: Likewise.
15069         * reg-stack.c: Likewise.
15070         * cfgrtl.c: Likewise.
15071         * reload1.c: Likewise.
15072         * final.c: Include rtl-error.
15073         * Makefile.in: Adjust dependencies.
15074
15075 2010-06-30  Jan Hubicka  <jh@suse.cz>
15076
15077         PR middle-end/PR44706
15078         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
15079         to return the value.
15080
15081 2010-06-30  Michael Matz  <matz@suse.de>
15082
15083         PR bootstrap/44699
15084         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
15085         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
15086         a gimple reg, attach the original VDEF to the last store in the
15087         sequence.
15088
15089 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
15090
15091         PR other/44034
15092         * config/darwin.c (darwin_override_options): Use renamed
15093         targetm.asm_out.emit_unwind_label.
15094
15095 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
15096
15097         PR tree-optimization/39799
15098         * tree-inline.c (remap_ssa_name): Initialize variable only if
15099         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15100
15101 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
15102
15103         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
15104
15105 2010-06-30  Richard Guenther  <rguenther@suse.de>
15106
15107         PR target/44722
15108         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
15109         against oscillation with reverse peephole2.
15110
15111 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
15112
15113         PR target/44721
15114         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
15115         Fix last commit.
15116
15117 2010-06-30  Nick Clifton  <nickc@redhat.com>
15118
15119         * config/rx/rx-modes.def: New file.
15120         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
15121         (CC_REGNUM): Define.
15122         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
15123         register.
15124         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
15125         (SELECT_CC_MODE): Define.
15126         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
15127         (reg:CC CC_REG) instead of (cc0).
15128         (attr "cc"): Delete.
15129         (cbranchsi4): Do not split compare and branch here. Instead move
15130         it to...
15131         (cbranchsi4_<code>): ... here.  New patterns.
15132         (cmpsi): Call rx-compare_redundant to find out if it is necessary
15133         to emit the compare instruction.
15134         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
15135         cc_status flags.
15136         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
15137         FIRST_PSEUDO_REGNUM.
15138         (rx_expand_prologue, rx_expand_epilogue): Likewise.
15139         (rx_notice_update_cc): Delete.
15140         (rx_cc_modes_compatible): New function.
15141         (flags_needed_for_conditional): New function.
15142         (flags_from_mode): New function.
15143         (rx_compare_redundant): New function - scans backwards through
15144         insn list to find out if condition flags are already set correctly.
15145         (TARGET_CC_MODES_COMPATIBLE): Define.
15146         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
15147
15148         * config/rx/rx.h (BRANCH_COST): Define.
15149         (REGISTER_MOVE_COST): Define.
15150         * config/rx/predicates (rx_source_operand): Allow all constant types.
15151         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
15152         (tstsi4): New pattern.
15153         * config/rx/rx.c (rx_memory_move_cost): Define.
15154         (TARGET_MEMORY_MOVE_COST): Define.
15155
15156 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15157
15158         * tree.h (block_may_fallthru): Declare here.
15159         * tree-flow.h (block_may_fallthru): Do not declare here.
15160         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
15161         bitmap.h
15162         * Makefile.in (c-typeck.o): Update dependencies.
15163
15164 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
15165
15166         PR debug/44694
15167         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
15168         * cselib.c (cfa_base_preserved_regno): New static variable.
15169         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
15170         of REGNO (cfa_base_preserved_val->locs->loc).
15171         (cselib_preserve_cfa_base_value): Add regno argument, set
15172         cfa_base_preserved_regno to it.
15173         (cselib_invalidate_regno): Allow removal of registers other than
15174         cfa_base_preserved_regno from cfa_base_preserved_val.
15175         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
15176         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
15177         of MEM addresses, if not on LHS.
15178         (reverse_op): Don't add reverse ops for cfa_base_rtx.
15179         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
15180
15181 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
15182
15183         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
15184         static variables.
15185         (peep2_buf_position): New static function.
15186         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
15187         peephole2_optimize): Use it.
15188         (peep2_attempt, peep2_update_life): New static functions, broken out
15189         of peephole2_optimize.
15190         (peep2_fill_buffer): New static function.
15191         (peephole2_optimize): Change the main loop to try to fill the buffer
15192         with the maximum number of insns before matching them against
15193         peepholes.  Use a forward scan.  Remove special case for targets with
15194         conditional execution.
15195         * genrecog.c (change_state): Delete dead code.
15196         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
15197         Rewrite so as not to expect the second insn to have had a peephole
15198         applied yet.
15199
15200 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
15201
15202         * genhooks.c (emit_findices): Cast field precision to int.
15203         (emit_documentation): Likewise.
15204
15205 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
15206
15207         PR tree-optimization/43801
15208         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
15209         if old_decl was DECL_ONE_ONLY.
15210
15211         PR debug/44668
15212         * dwarf2out.c (add_accessibility_attribute): New function.
15213         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
15214         instead of adding DW_AT_accessibility manually.
15215         (gen_enumeration_type_die, gen_struct_or_union_type_die,
15216         gen_typedef_die): Use it.
15217
15218 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
15219
15220         * vmsdbgout.c (full_name): Just output the file name if not native.
15221
15222 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
15223
15224         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
15225         (funcnam_table): New static table.
15226         (funcnum_table): New static table.
15227         (write_rtnbeg): Write value saved in funcnum_table.
15228         (write_rtnend): Write value saved in funcnum_table.
15229         (vmsdbgout_begin_function): Save current function info in
15230         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
15231         (vmsdbgout_finish): Iterate over funcnum_table.
15232
15233 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
15234
15235         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
15236         (vmsdbgout_type_decl): Declare
15237         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
15238         (FUNC_EPILOGUE_LABEL): New macro
15239         (vmsdbgout_begin_epilogue): New function.
15240         (vmsdbgout_type_decl): New function.
15241
15242 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
15243
15244         * vmsdbg.h: Update copyright.
15245
15246 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
15247
15248         * vmsdbg.h (DST_K_TBG): New DST constant.
15249         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
15250         (write_modbeg): Cast module_language to avoid warning.
15251         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
15252
15253 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
15254
15255         PR other/44034
15256         * target.def, doc/tm.texi.in, genhooks.c: New files.
15257         * target.h: Instead of defining individual hook members,
15258         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
15259         include target.def.
15260         * target-def.h: Instead of defining individual hook initializers,
15261         include target-hooks-def.h.
15262         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
15263         targetm.live_on_entry -> targetm.extra_live_on_entry
15264         targetm.sched.md_finish ->targetm.sched.finish
15265         targetm.sched.md_init -> targetm.sched.init
15266         targetm.sched.md_init_global -> targetm.sched.init_global
15267         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
15268         targetm.asm_out.except_table_label ->
15269           targetm.asm_out.emit_except_table_label
15270         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
15271         targetm.target_help -> targetm.help
15272         targetm.vectorize.builtin_support_vector_misalignment ->
15273           targetm.vectorize.support_vector_misalignment
15274         targetm.file_start_app_off -> targetm.asm_file_start_app_off
15275         targetm.file_start_file_directive ->
15276          targetm.asm_file_start_file_directive
15277         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
15278         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
15279         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
15280         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
15281           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
15282         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
15283           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
15284         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
15285         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
15286         * Makefile.in (TARGET_H): Depend on target.def.
15287         (TARGET_DEF_H): Depend on target-hooks-def.h.
15288         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
15289         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
15290         * doc/tm.texi: Regenerate.
15291
15292         * Makefile.in (s-tm-texi): Remove stray tab / rule.
15293
15294         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
15295         (targetm.sched.init): Likewise.
15296
15297 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
15298
15299         PR bootstrap/44713
15300         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
15301         (function_arg_advance_32): Const-ify TYPE parameter.
15302         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
15303         (ix86_function_arg_advance): Change type of NAMED to bool.
15304         (function_arg_32): Const-ify CUM and TYPE parameters.
15305         (function_arg_64): Likewise.  Change type of NAMED to bool.
15306         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
15307         to bool.
15308         (ix86_function_arg): Change type of NAMED to bool.
15309         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
15310         last argument as a bool.
15311
15312 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
15313
15314         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
15315         (OVERRIDE_OPTIONS): Add note of obsolescence.
15316         Replace references with references to TARGET_OPTION_OVERRIDE.
15317         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
15318          the macro).
15319         * targhooks.c (default_target_option_override): New function.
15320         * targhooks.h (default_target_option_override): Declare.
15321         * target.h (struct gcc_target): Add override member to
15322         target_option member.
15323         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
15324         targetm.target_option.override call.
15325         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
15326         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
15327
15328 2010-06-29  Jan Hubicka  <jh@suse.cz>
15329
15330         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
15331
15332 2010-06-29  Jan Hubicka  <jh@suse.cz>
15333
15334         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
15335         unreachable.
15336         (rebuild_frequencies): New function.
15337         * predict.h (rebuild_frequencies): Declare.
15338         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
15339         entry block and edge reaching new_entry.
15340         (tree_function_versioning): When doing partial cloning, rebuild
15341         frequencies when done.
15342         * passes.c (execute_function_todo): Use rebild_frequencies.
15343
15344 2010-06-29  Richard Guenther  <rguenther@suse.de>
15345
15346         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
15347         * tree-flow.h (enum noalias_state): Remove.
15348         (struct var_ann_d): Remove noalias_state member.
15349
15350 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
15351
15352         PR target/43902
15353         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
15354         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
15355         (maddhidi4): Likewise.
15356
15357         Revert parts of the change for PR25130.
15358         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
15359         MEM_ALIAS_SET.
15360
15361 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
15362
15363         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
15364         targetm.calls.function_incoming_arg, and
15365         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
15366         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
15367         * target.h (struct gcc_target): Add function_arg_advance,
15368         function_arg, and function_incoming_arg fields.
15369         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
15370         (TARGET_FUNCTION_INCOMING_ARG): Define.
15371         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
15372         and TARGET_FUNCTION_INCOMING_ARG.
15373         * targhooks.h (default_function_arg_advance): Declare.
15374         (default_function_arg, default_function_incoming_arg): Declare.
15375         * targhooks.c (default_function_arg_advance): New function.
15376         (default_function_arg, default_function_incoming_arg): New function.
15377         * config/i386/i386.c (function_arg_advance): Rename to...
15378         (ix86_function_arg_advance): ...this.  Make static.
15379         (function_arg): Rename to...
15380         (ix86_function_arg): ...this.  Make static.
15381         (TARGET_FUNCTION_ARG_ADVANCE): Define.
15382         (TARGET_FUNCTION_ARG): Define.
15383         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
15384         (FUNCTION_ARG): Delete.
15385         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
15386         (function_arg): Delete prototype.
15387
15388 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
15389
15390         * reginfo.c (init_reg_sets_1): Adjust comments.
15391         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
15392         * calls.c (prepare_call_address): Likewise.
15393         (emit_call_1): Use targetm.calls.return_pops_args.
15394         (expand_call): Likewise.
15395         * function.c (assign_parms): Likewise.
15396         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
15397         * target.h (struct gcc_target) [struct calls]: Add
15398         return_pops_args field.
15399         * targhooks.h (default_return_pops_args): Declare.
15400         * targhooks.c (default_return_pops_args): Define.
15401         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
15402         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
15403         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
15404         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
15405         documentation.
15406         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
15407         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
15408         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
15409         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
15410         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
15411         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
15412         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
15413         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
15414         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
15415         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
15416         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
15417         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
15418         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
15419         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
15420         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
15421         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
15422         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
15423         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
15424         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
15425         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
15426         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
15427         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
15428         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
15429         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
15430         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
15431         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
15432         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
15433         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
15434         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
15435         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
15436         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
15437         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
15438         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
15439         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
15440         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
15441         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
15442         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
15443         * config/i386/i386.c (ix86_return_pops_args): Make static.
15444         Constify arguments.
15445         (TARGET_RETURN_POPS_ARGS): Define.
15446         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
15447         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
15448         (TARGET_RETURN_POPS_ARGS): Define.
15449         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
15450         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
15451         (TARGET_RETURN_POPS_ARGS): Define.
15452
15453 2010-06-29  Richard Guenther  <rguenther@suse.de>
15454
15455         PR middle-end/44667
15456         * tree-inline.c (initialize_inlined_parameters): Make sure
15457         to remap the inlined parameter variable substitutions types.
15458
15459 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
15460
15461         PR rtl-optimization/44659
15462         * combine.c (make_compound_operation) <SUBREG>: Do not return the
15463         result of force_to_mode if it partially re-expanded the compound.
15464
15465 2010-06-28  Jan Hubicka  <jh@suse.cz>
15466
15467         PR middle-end/44671
15468         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
15469         RESULT_DECL.
15470
15471 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
15472
15473         * double-int.h (force_fit_type_double): Remove declaration.
15474         * double-int.c (force_fit_type_double): Move to tree.c.
15475         * tree.h (force_fit_type_double): Declare.
15476         * tree.h (force_fit_type_double): Moved from double-int.c. Use
15477         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
15478         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
15479         * convert.c (convert_to_pointer): Adjust call to
15480         force_fit_type_double.
15481         * tree-vrp.c (extract_range_from_assert,
15482         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
15483         * fold-const.c: Update comment.
15484         (int_const_binop, fold_convert_const_int_from_int,
15485         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
15486         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
15487         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
15488         round_up_loc): Adjust call to force_fit_type_double.
15489
15490 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15491
15492         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
15493
15494 2010-06-28  Martin Jambor  <mjambor@suse.cz>
15495
15496         * tree-sra.c (convert_callers): New parameter, change fndecls of
15497         recursive calls.
15498         (modify_function): Pass the old decl to convert_callers.
15499
15500 2010-06-28  Martin Jambor  <mjambor@suse.cz>
15501
15502         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
15503         ipa_check_create_node_params and ipa_initialize_node_params with
15504         checking asserts they are not necessary.
15505
15506 2010-06-28  Jan Hubicka  <jh@suse.cz>
15507
15508         PR tree-optimization/44687
15509         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
15510
15511 2010-06-28  Martin Jambor  <mjambor@suse.cz>
15512
15513         PR c++/44535
15514         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
15515         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
15516         instead of BINFO_BASE_BINFO.
15517
15518 2010-06-28  Michael Matz  <matz@suse.de>
15519
15520         PR middle-end/44592
15521         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
15522         proper VDEF chain for intermediate stores in the sequence.
15523
15524 2010-06-28  Jan Hubicka  <jh@suse.cz>
15525
15526         PR tree-optimization/44357
15527         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
15528         uninlinable functions.
15529
15530 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15531
15532         * config.gcc (powerpc*-*-*): Handle titan.
15533         * config/rs6000/rs6000.c (titan_cost): New costs.
15534         (rs6000_override_options): Add "titan" to processor_target_table.
15535         Add Titan to branch alignment logic.
15536         Correctly set rs6000_cost for titan.
15537         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
15538         * config/rs6000/titan.md: New file.
15539         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
15540
15541 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15542
15543         * tree-browser.c (TB_history_stack): Convert to a VEC.
15544         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
15545         (TB_history_prev): Likewise.
15546
15547 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15548
15549         * vec.h (vec_heap_free): Add parentheses around free.
15550
15551 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
15552
15553         * system.h: Poison GCC_EXCEPT_H for front-end files.
15554
15555         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
15556         langhook.
15557         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
15558         Define to NULL by default.
15559         * except.h: Define GCC_EXCEPT_H.
15560         (doing_eh): Remove prototype.
15561         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
15562         (lang_protect_cleanup_actions): Remove.
15563         * except.c (lang_protect_cleanup_actions): Remove.
15564         (doing_eh): Remove.
15565         (gen_eh_region): Don't check doing_eh here.
15566         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
15567         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
15568         instead of lang_protect_cleanup_actions.
15569         * omp-low.c (maybe_catch_exception): Likewise.
15570         * Makefile.in: Update dependencies.
15571
15572 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
15573
15574         * cgraph.h (struct varpool_node): new used_from_object_file flag.
15575         (struct cgraph_local_info): new used_from_object_file flag.
15576         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
15577         (cgraph_clone_node): initialize used_from_object_file.
15578         (cgraph_create_virtual_clone): initialize used_from_object_file.
15579         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
15580         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
15581         when compiling with -fwhole-program.
15582         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
15583         internal resolver.
15584         * ipa.c (function_and_variable_visibility): Set externally_visible
15585         flag of varpool_node if used_from_object_file flag is set.
15586         (cgraph_externally_visible_p): check used_from_object_file flag.
15587         * doc/invoke.texi (-fwhole-program option): Change description of
15588         externally_visible attribute accordingly.
15589         * doc/extend.texi (externally_visible): Ditto.
15590
15591 2010-06-27  Jan Hubicka  <jh@suse.cz>
15592
15593         * params.def (max-inline-insns-auto): Default to 40.
15594         * doc/invoke.texi (max-inline-insns-auto): Document the change.
15595
15596 2010-06-27  Jan Hubicka  <jh@suse.cz>
15597
15598         PR middle-end/44671
15599         PR middle-end/44686
15600         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
15601         signature change.
15602         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
15603         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
15604
15605 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
15606
15607         * target.h (struct gcc_target): Add register_move_cost field.
15608         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
15609         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
15610         * targhooks.c (default_register_move_cost): New function.
15611         * targhooks.h (default_register_move_cost): Declare function.
15612         * defaults.h (REGISTER_MOVE_COST): Delete.
15613         * ira-int.h (ira_register_move_cost): Update comment.
15614         * ira.c (ira_register_move_cost): Update comment.
15615         * reload.h (register_move_cost): Declare.
15616         * reginfo.c (register_move_cost): New function.
15617         (move_cost): Update comment.
15618         (init_move_cost, memory_move_secondary_cost): Replace
15619         REGISTER_MOVE_COST with register_move_cost.
15620         * postreload.c (reload_cse_simplify_set): (Ditto.).
15621         * reload.c (find_valid_class, find_reloads): (Ditto.).
15622         * reload1.c (choose_reload_regs): (Ditto.).
15623         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
15624         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
15625         * doc/md.texi (can_create_pseudo_p): Update documentation.
15626
15627         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
15628         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
15629         * config/i386/i386.h (ix86_memory_move_cost): Make static.
15630         (TARGET_MEMORY_MOVE_COST): Define.
15631
15632         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15633         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
15634         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
15635         (TARGET_MEMORY_MOVE_COST): Define.
15636
15637 2010-06-27  Richard Guenther  <rguenther@suse.de>
15638
15639         PR tree-optimization/44683
15640         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
15641         false edge from the inverted condition.
15642
15643 2010-06-27  Richard Guenther  <rguenther@suse.de>
15644
15645         PR middle-end/44684
15646         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
15647         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
15648         for register LHS.  Or non-store assignments.
15649
15650 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
15651
15652         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
15653         (sparc_emit_set_const64): Likewise.  Remove disabled code.
15654         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
15655         (sparc_emit_set_const64): Likewise.
15656
15657 2010-06-26  Catherine Moore  <clm@codesourcery.com>
15658
15659         * config/mips/mips.md (alu_type): New attribute.
15660         (type): Infer type from alu_type.
15661         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
15662         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
15663         *subsi3_extended, negsi2, negdi2, *low<mode>,
15664         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
15665         xor<mode>3, *nor<mode>3,
15666         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
15667         *zero_extendhi_truncqi):  Set alu_type instead of type.
15668
15669 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
15670
15671         * config/alpha/alpha.c (alpha_need_linkage): Adjust
15672         splay_tree_new_ggc call.
15673         (alpha_use_linkage): Likewise.
15674
15675 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
15676
15677         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
15678         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
15679         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
15680         (static_specs): Remove switches_need_spaces.
15681         (process_command, do_self_spec): Hardcode handling "-o" instead of
15682         checking switches_need_spaces.
15683         * system.h (SWITCHES_NEED_SPACES): Poison.
15684
15685 2010-06-26  Richard Guenther  <rguenther@suse.de>
15686
15687         PR tree-optimization/44393
15688         * tree-loop-distribution.c (generate_loops_for_partition): Fix
15689         stmt removal and VOP renaming.
15690         (generate_memset_zero): Remove redundant stmt updating.
15691         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
15692         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
15693
15694 2010-06-26  Jan Hubicka  <jh@suse.cz>
15695
15696         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
15697         edges comming from header are equivalent.
15698         (visit_bb): Handle PHIs correctly.
15699         * tree-inline.c (copy_phis_for_bb): Be able to copy
15700         PHI from entry edge.
15701         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
15702
15703 2010-06-26  Richard Guenther  <rguenther@suse.de>
15704
15705         PR middle-end/44674
15706         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
15707         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
15708
15709 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
15710
15711         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
15712         add_infile, alloc_switch): New.
15713         (process_command): Remove variable lang_n_infiles.  Process
15714         options in a single pass.  Use new functions for allocating
15715         infiles and switches arrays.  Properly skip operands of
15716         -Xpreprocessor and -Xassembler.
15717
15718 2010-06-26  Jan Hubicka  <jh@suse.cz>
15719
15720         PR middle-end/44671
15721         * cgraphunit.c (cgraph_function_versioning): Remove wrong
15722         cgraph_make_decl_local call; fix typo copying RTL data.
15723
15724 2010-06-25  DJ Delorie  <dj@redhat.com>
15725
15726         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
15727         (m32c_output_aligned_common): Likewise.
15728         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15729         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15730         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
15731         (m32c_register_pragmas): Register it.
15732         * config/m32c/m32c.c (m32c_get_pragma_address): New.
15733         (m32c_insert_attributes): Set #pragma address decls volatile.
15734         (pragma_entry_eq): New.
15735         (pragma_entry_hash): New.
15736         (m32c_note_pragma_address): New.
15737         (m32c_get_pragma_address): New.
15738         (m32c_output_aligned_common): New.
15739         * doc/extend.texi: Document the new pragma.
15740
15741         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
15742         also.
15743         * config/m32c/predicates.md (m32c_any_operand): Check the code
15744         instead of memory_operand so as to allow matching volatile MEMs.
15745         (m32c_nonimmediate_operand): Likewise.
15746         (mra_operand): Allow volatiles.
15747
15748 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
15749
15750         PR debug/44610
15751         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
15752         address if the offset is unknown.
15753
15754 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
15755
15756         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
15757         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
15758         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
15759         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
15760         to ia64_start_function. Invoke it.
15761         * config/ia64/ia64.c (ia64_start_function): Call new function
15762         dwarf2out_vms_debug_main_pointer.
15763
15764 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
15765
15766         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
15767         statements computing the true predicate.
15768
15769 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
15770
15771         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
15772         to boolean_true_node.
15773         (reset_bb_predicate): New.
15774         (predicate_bbs): Call reset_bb_predicate.
15775
15776 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
15777
15778         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
15779         (tree_if_conversion): Returns true when something has been changed.
15780         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
15781         changed something.
15782
15783 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
15784
15785         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
15786         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
15787         * tree-if-conv.c: Include dbgcnt.h.
15788         (tree_if_conversion): Use if_conversion_tree to count the number of
15789         if-convertible loops.
15790
15791 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
15792
15793         * common.opt (fprefetch-loop-arrays): Re-define
15794         -fprefetch-loop-arrays as a tri-state option with the initial
15795         value of -1.
15796         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
15797         pass only when flag_prefetch_loop_arrays > 0.
15798         * toplev.c (process_options): Note that, with tri-states,
15799         flag_prefetch_loop_arrays>0 means prefetching is enabled.
15800         * config/i386/i386.c (override_options): Enable prefetching at -O3
15801         for a set of CPUs that sw prefetching is helpful.
15802         (software_prefetching_beneficial_p): New.  Return TRUE if software
15803         prefetching is beneficial for the given CPU.
15804
15805 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15806
15807         PR rtl-optimization/44326
15808         * implicit-zee.c (find_removable_zero_extends): Replace
15809         INSN_P with NONDEBUG_INSN_P.
15810
15811 2010-06-25  Martin Jambor  <mjambor@suse.cz>
15812
15813         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
15814         (struct ipa_node_params): Removed the modification_analysis_done flag.
15815         (ipa_is_param_modified): Removed.
15816         (ipa_analyze_node): Declare.
15817         (ipa_compute_jump_functions): Remove declaration.
15818         (ipa_count_arguments): Likewise.
15819         (ipa_detect_param_modifications): Likewise.
15820         (ipa_analyze_params_uses): Likewise.
15821         * ipa-prop.c (struct param_analysis_info): New type.
15822         (visit_store_addr_for_mod_analysis): Removed.
15823         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
15824         moved down in the file.
15825         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
15826         (ipa_count_arguments): Made static.
15827         (mark_modified): New function.
15828         (is_parm_modified_before_call): New function.
15829         (compute_pass_through_member_ptrs): New parameter parms_info, call
15830         is_parm_modified_before_call instead of ipa_is_param_modified.
15831         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
15832         it to compute_pass_through_member_ptrs.
15833         (ipa_compute_jump_functions): New parameter parms_info, pass it to
15834         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
15835         on the callee if it is analyzed.  Made static.
15836         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
15837         is_parm_modified_before_call instead of ipa_is_param_modified.
15838         (ipa_analyze_call_uses): New parameter parms_info, pass it to
15839         ipa_analyze_indirect_call_uses.
15840         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
15841         ipa_analyze_call_uses.
15842         (ipa_analyze_params_uses): New parameter parms_info, pass it to
15843         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
15844         (ipa_analyze_node): New function.
15845         (ipa_print_node_params): Do not dump the modified flag.
15846         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
15847         it.  Do not stream the modified parameter flag.
15848         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
15849         it.  Do not stream the modified parameter flag.
15850         * ipa-cp.c (ipcp_analyze_node): Removed.
15851         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
15852         with only a call to ipa_analyze_node.
15853         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
15854         node with only a call to ipa_analyze_node.
15855
15856 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15857
15858         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
15859
15860 2010-06-25  Jan Hubicka  <jh@suse.cz>
15861
15862         * tree-pass.h (pass_split_functions): Declare.
15863         * opts.c (decode_options): Enable function splitting at -O2
15864         * timevar.def (TV_IPA_FNSPLIT): New macro.
15865         * ipa-split.c: New file.
15866         * common.opt (-fpartial-inlining): New flag.
15867         * Makefile.in (ipa-split.o): New object file.
15868         * passes.c (init_optimization_passes): Add ipa-split.
15869         * params.def (partial-inlining-entry-probability): New parameters.
15870         * doc/invoke.texi (-fpartial-inlining): New.
15871
15872 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15873
15874         PR 44665
15875         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
15876         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
15877         (gimplify_expr): Likewise.
15878
15879 2010-06-25  Martin Jambor  <mjambor@suse.cz>
15880
15881         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
15882         statements instead of bailing out on them.
15883         (ipa_analyze_indirect_call_uses): Do not require that loads from the
15884         parameter are in the same BB as the condition.  Update comments.
15885
15886 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
15887
15888         PR middle-end/43866
15889         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
15890         true or always false, return NULL_TREE.
15891         (tree_unswitch_single_loop): Optimize conditions even when reaching
15892         max-unswitch-level parameter.  If num > 0, optimize first all conditions
15893         using entry checks, then do still reachable block discovery and consider
15894         only conditions in still reachable basic blocks in the loop.
15895
15896         PR tree-optimization/44539
15897         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
15898         the call doesn't have LHS, but has VDEF.
15899
15900 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
15901
15902         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
15903         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
15904         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
15905         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
15906         * system.h (MODIFY_TARGET_NAME): Poison.
15907
15908 2010-06-25  Alan Modra  <amodra@gmail.com>
15909
15910         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
15911         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
15912         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15913         CMODEL_LARGE as default.
15914         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
15915         (offsettable_ok_by_alignment): Delete.
15916         (rs6000_emit_move): Remove mcmodel=medium optimization.
15917
15918 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
15919
15920         With large parts from Jim Wilson:
15921         PR target/43902
15922         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
15923         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15924         * optabs.c (optab_for_tree_code): Likewise.
15925         (expand_widen_pattern_expr): Likewise.
15926         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
15927         out of execute_optimize_widening_mul.
15928         (convert_plusminus_to_widen): New function.
15929         (execute_optimize_widening_mul): Use the two new functions.
15930         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
15931         Remove code to generate widening multiply-accumulate.  Add support
15932         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15933         * gimple-pretty-print.c (dump_ternary_rhs): New function.
15934         (dump_gimple_assign): Call it when appropriate.
15935         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
15936         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
15937         (expand_gimple_stmt_1): Likewise.
15938         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
15939         WIDEN_MULT_MINUS_EXPR.
15940         * tree-ssa-operands.c (get_expr_operands): Likewise.
15941         * tree-inline.c (estimate_operator_cost): Likewise.
15942         * gimple.c (extract_ops_from_tree_1): Renamed from
15943         extract_ops_from_tree.  Add new arg for a third operand; fill it.
15944         (gimple_build_assign_stat): Support operations with three operands.
15945         (gimple_build_assign_with_ops_stat): Likewise.
15946         (gimple_assign_set_rhs_from_tree): Likewise.
15947         (gimple_assign_set_rhs_with_ops_1): Renamed from
15948         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
15949         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
15950         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
15951         WIDEN_MULT_MINUS_EXPR.
15952         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
15953         (extract_ops_from_tree_1): Adjust declaration.
15954         (gimple_assign_set_rhs_with_ops_1): Likewise.
15955         (gimple_build_assign_with_ops): Pass NULL for last operand.
15956         (gimple_build_assign_with_ops3): New macro.
15957         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
15958         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
15959         functions.
15960         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
15961         (verify_gimple_assign): Call it.
15962         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
15963         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
15964         functions for dealing with three-operand statements.
15965         * tree.c (commutative_ternary_tree_code): New function.
15966         * tree.h (commutative_ternary_tree_code): Declare it.
15967         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
15968         ternary statements.
15969         (gimple_assign_nonzero_warnv_p): Likewise.
15970         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
15971         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
15972         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
15973         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
15974         (struct hashtable_expr): New member ternary in the union.
15975         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
15976         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
15977         (iterative_hash_hashable_expr): Likewise.
15978         (print_expr_hash_elt): Handle EXPR_TERNARY.
15979         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
15980         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
15981         statements.  Handle GIMPLE_TERNARY_RHS.
15982
15983 2010-06-25  Jan Hubicka  <jh@suse.cz>
15984
15985         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
15986
15987 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
15988
15989         PR c/44517
15990         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
15991         parameters are not good.
15992         (c_parser_parameter_declaration): Error unknown type name if the type
15993         name can't start declaration specifiers.
15994
15995 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
15996
15997         * gcc.c (translate_options): Don't mention +e in comment.
15998         (process_command): Don't handle +e specially.
15999
16000 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
16001
16002         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
16003
16004         * ira-build.c (merge_hard_reg_conflicts): New function.
16005         (create_cap_allocno, copy_info_to_removed_store_destinations,
16006         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
16007         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
16008         (remove_unnecessary_allocnos, remove_low_level_allocnos)
16009         copy_nifo_to_removed_store_destination): Use them.
16010         * ira-lives.c (make_hard_regno_born): New function, split out of
16011         make_regno_born.
16012         (make_allocno_born): Likewise.
16013         (make_hard_regno_dead): New function, split out of make_regno_dead.
16014         (make_allocno_dead): Likewise.
16015         (inc_register_pressure): New function, split out of set_allocno_live.
16016         (dec_register_pressure): New function, split out of clear_allocno_live.
16017         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
16018         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
16019         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
16020         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
16021         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
16022         mark_pseudo_regno_live.
16023         (process_bb_node_lives): Use mark_pseudo_regno_live,
16024         make_hard_regno_born and make_allocno_dead.
16025         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
16026         set_allocno_live, clear_allocno_live): Delete functions.
16027
16028         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
16029         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
16030         functions.
16031         (ira_flattening): Use ira_parent_allocno.
16032         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
16033         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
16034
16035         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
16036         statement.
16037
16038         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
16039         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
16040         minmax_set_iter_cond, minmax_set_iter_next,
16041         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
16042         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
16043         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
16044         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
16045         uses changed.
16046
16047         * ira-int.h (struct live_range, live_range_t): Renamed from struct
16048         ira_allocno_live_range and allocno_live_range_t; all uses changed.
16049         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
16050         All uses changed.
16051
16052 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
16053
16054         * thumb2.md (thumb2_tlobits_cbranch): Delete.
16055         (peephole2 to convert zero_extract/compare of single bit to
16056          lshift/compare): New.
16057
16058 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
16059
16060         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
16061         recursive call and call to 'int_const_binop'.
16062         (build_range_check, fold_cond_expr_with_comparison, unextend,
16063         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
16064         multiple_of_p): Adjust call to const_binop.
16065
16066 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
16067
16068         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
16069         determine size of XFmode operand.
16070         (XFmode extended DFmode push splitter): Ditto.
16071         (XFmode extended SFmode push splitter): Ditto.
16072
16073 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16074
16075         PR target/44588
16076         * config/i386/i386.md (extract_code): New.
16077         (<u>divmodqi4): Likewise.
16078         (divmodhiqi3): Likewise.
16079         (udivmodhiqi3): Likewise.
16080         (<u>divqi3): Remvoved.
16081
16082 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
16083
16084         PR middle-end/44492
16085         * recog.h (struct recog_data): Add is_asm field.
16086         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
16087         present in constraints of inline-asm operand and memory operand
16088         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
16089         (extract_insn): Initialize recog_data.is_asm.
16090         * doc/md.texi (Constraints): Document operand side-effect rules.
16091
16092 2010-06-24  Andi Kleen  <ak@linux.intel.com>
16093
16094         * c-parser.c (c_parser_conditional_expression): Call
16095         warn_for_omitted_condop.
16096         * doc/invoke.texi: Document omitted condop warning.
16097
16098 2010-06-24  Nick Clifton<nickc@redhat.com>
16099
16100         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
16101         insn in the sequence is a jump insn before setting its label.
16102
16103 2010-06-24  Alan Modra  <amodra@gmail.com>
16104
16105         * collect2.c (main): Match exactly --version and --help.
16106
16107 2010-06-24  DJ Delorie  <dj@redhat.com>
16108
16109         * config/m32c/m32c-pragma.c: Don't include rtl.h.
16110
16111 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
16112
16113         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
16114         using X87MODEF mode iterator.
16115         (pushsf splitter): Macroize splitter using P mode iterator.
16116         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
16117         mode iterator.
16118
16119         (*movxf_internal): Rename from *movxf_integer.
16120         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
16121         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
16122         (*movdf_internal): Rename from *movdf_integer.
16123         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
16124         (*movsf_internal): Rename from *movdf_1.
16125
16126 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
16127
16128         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
16129         (const_gimple_seq_node): Removed typedefs.
16130
16131         * gimple.h (gimple_seq_node_d, gimple_seq_node)
16132         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
16133
16134 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16135
16136         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
16137         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
16138         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
16139         and CODE_FOR_vec_extract_lo_v4df.
16140
16141         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
16142         Changed to define_insn_and_split.
16143         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
16144         (vec_extract_lo_v16hi): Likewise.
16145         (vec_extract_lo_v32qi): Likewise.
16146         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
16147         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
16148
16149 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
16150
16151         PR target/44640
16152         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
16153         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
16154         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
16155         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
16156         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
16157
16158         PR target/44640
16159         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
16160
16161         PR other/44644
16162         * df-core.c (struct df): Rename to df_d.
16163         * df.h (struct df): Likewise.
16164         * dse.h (struct df): Remove forward declaration.
16165         * recog.h (struct insn_data): Rename to:
16166         (struct_insn_data_d).  Adjusted all users.
16167
16168 2010-06-23  Arnaud Charlet  <charlet@adacore.com
16169
16170         PR ada/22220
16171         * doc/install.texi: Update requirements to build GNAT.
16172
16173 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
16174
16175         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
16176         enum type.
16177         (m68k_sched_attr_opx_type): Remove unreachable return.
16178         (m68k_sched_attr_opy_type): Likewise.
16179         (m68k_sched_attr_size): Likewise.
16180         (sched_get_opxy_mem_type): Likewise.
16181         (m68k_sched_attr_op_mem): Likewise.
16182
16183 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
16184
16185         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
16186         new statement and adjust VDEF only if necessary.  Remove superfluous
16187         call to maybe_clean_or_replace_eh_stmt.
16188         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
16189         copy the flags.
16190         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
16191         * tree-inline.c (copy_bb): ...and not there.
16192
16193 2010-06-22  Cary Coutant  <ccoutant@google.com>
16194
16195         * dwarf2out.c (is_nested_in_subprogram): New function.
16196         (should_move_die_to_comdat): Use it.
16197         (copy_ancestor_tree): Don't mark DIEs here.
16198         (copy_decls_walk): Start walk from root of newly-added tree;
16199         mark DIEs here instead.
16200
16201 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16202
16203         * config/i386/i386.md (unit): Also check sseishft1.
16204
16205 2010-06-22  Jan Hubicka  <jh@suse.cz>
16206
16207         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
16208         enabled.
16209
16210 2010-06-22  Jan Hubicka  <jh@suse.cz>
16211
16212         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
16213         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
16214         Return true if something changed.
16215         * df.h (df_confluence_function_n): Return bool.
16216         * df-core.c (df_worklist_propagate_forward,
16217         df_worklist_propagate_backward): Track changes and ages.
16218         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
16219         track ages.
16220         * dse.c (dse_confluence_n): Return always true.
16221
16222 2010-06-22  Jan Hubicka  <jh@suse.cz>
16223
16224         * bitmap.c (bitmap_clear_bit): Micro optimize.
16225
16226 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
16227
16228         * config/i386/i386.md (SWI1248x): New mode iterator.
16229         (SWI48x): Ditto.
16230         (SWI12): Ditto.
16231         (SWI24): Ditto.
16232
16233         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
16234         SWI1248x mode iterator.
16235         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
16236         using SWI124 mode iterator.
16237         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
16238         mode iterator.
16239         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
16240         *pushdi2_prologue_rex64 using P mode iterator.
16241         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
16242         using SWI48 mode iterator.
16243         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
16244         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
16245         using SWI1248x mode iterator.
16246         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
16247         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
16248         SWI48 mode iterator.
16249         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
16250         iterator.
16251         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
16252         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
16253         SWI12 mode iterator.
16254         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
16255         SWI12 mode iterator.
16256         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
16257         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
16258         SWI24 mode iterator.
16259         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
16260         SWI48 mode iterator.
16261         (mov<mode>_insn_1): New expander.
16262         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
16263         using SWI48x mode iterator.
16264
16265         (*movoi_internal_avx): Rename from *movoi_internal.
16266         (*movti_internal_rex64): Rename from *movti_rex64.
16267         (*movti_internal_sse): Rename from *movti_sse.
16268         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
16269         (*movdi_internal): Rename from *movdi_2.
16270         (*movsi_internal): Rename from *movsi_1.
16271         (*movhi_internal): Rename from *movhi_1.
16272         (*movqi_internal): Rename from *movqi_1.
16273
16274         (insv): Update the call to gen_movsi_insv_1 for rename.
16275         * config/i386/i386.c (promote_duplicated_reg): Ditto.
16276
16277 2010-06-22  Jan Hubicka  <jh@suse.cz>
16278
16279         * passes.c (execute_function_todo): Move call of statistics_fini_pass
16280         to ...
16281         (execute_todo) ... this one.
16282
16283 2010-06-22  Alan Modra  <amodra@gmail.com>
16284
16285         PR target/44364
16286         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16287         * caller-save.c (insert_restore, insert_save): Use non-validate
16288         form of adjust_address.
16289
16290 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16291
16292         PR target/39690
16293         * config/pa/pa.c (override_options): Disable
16294         -freorder-blocks-and-partition.
16295
16296 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
16297
16298         PR target/44615
16299         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
16300
16301         * config/i386/i386.md (type): Add sseishft1
16302
16303         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
16304         (ppro_insn_load): Likewise.
16305         (ppro_insn_store): Likewise.
16306         (ppro_insn_both): Likewise.
16307
16308         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
16309         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
16310         for type.
16311         (*vec_extractv2di_1_avx): Likewise.
16312         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
16313         type.  Remove atom_unit.
16314         (*vec_extractv2di_1_sse2): Likewise.
16315
16316 2010-06-21  DJ Delorie  <dj@redhat.com>
16317
16318         * diagnostic.h (diagnostic_classification_change_t): New.
16319         (diagnostic_context): Add history and push/pop list.
16320         (diagnostic_push_diagnostics): Declare.
16321         (diagnostic_pop_diagnostics): Declare.
16322         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
16323         from pragmas in a history chain instead of the global table.
16324         (diagnostic_push_diagnostics): New.
16325         (diagnostic_pop_diagnostics): New.
16326         (diagnostic_report_diagnostic): Scan history chain to find state
16327         of diagnostics as of the diagnostic location.
16328         * opts.c (set_option): Pass UNKNOWN_LOCATION to
16329         diagnostic_classify_diagnostic.
16330         (enable_warning_as_error): Likewise.
16331         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
16332         use in the history chain.
16333         * doc/extend.texi: Document pragma GCC diagnostic changes.
16334
16335 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
16336
16337         * dwarf2out.c (add_linkage_name): New function.  Don't add
16338         anything to DW_TAG_member DIEs.
16339         (add_name_and_src_coords_attributes): Use it.
16340         (gen_variable_die): Call it for C++ static data members if
16341         specification is DW_TAG_member.
16342
16343         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
16344         C++ char16_t and char32_t.
16345
16346         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
16347         * genattrtab.c: Include vecprim.h.
16348         (cached_attrs, cached_attr_count, attrs_seen_once,
16349         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
16350         attrs_cached_after): New variables.
16351         (find_attrs_to_cache): New function.
16352         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
16353         (write_test_expr): Add attrs_cached argument, return it too,
16354         attempt to cache non-const attributes used more than once in
16355         a single case handling.
16356         (write_attr_get): Use find_attrs_to_cache, for caching candidates
16357         emit cached_* variables.  Adjust write_attr_set callers.
16358         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
16359         to find attributes that should be cached in this block.  Adjust
16360         write_test_expr callers.
16361         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
16362         callers.
16363         (make_automaton_attrs): Adjust write_test_expr caller.
16364
16365         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
16366         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
16367         (make_automaton_attrs): If find_tune_attr returns non-NULL,
16368         write separate internal_dfa_insn_code_* and insn_default_latency_*
16369         functions for each attribute's value and emit init_sched_attrs
16370         function and function pointers.
16371         * genattr.c (const_attrs, reservations): New variables.
16372         (gen_attr): Add const attributes to const_attrs vector.
16373         (check_tune_attr, find_tune_attr): New functions.
16374         (main): Add reservations to reservations vector.  If find_tune_attr
16375         returns true, add prototype for init_sched_attrs and make
16376         internal_dfa_insn_code and insn_default_latency function pointers,
16377         otherwise define init_sched_attrs as dummy macro.
16378         * cfgexpand.c: Include insn-attr.h.
16379         (gimple_expand_cfg): Call init_sched_attrs.
16380
16381         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
16382
16383         PR target/44575
16384         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
16385         va_arg from a set of register save slots into a temporary,
16386         if the container is bigger than type size, do the copying
16387         using smaller mode or using memcpy.
16388
16389         PR bootstrap/44426
16390         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
16391         prototype.
16392         (sel_print_to_dot): Remove macro.
16393         (sel_print): Likewise.  New prototype.
16394         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
16395         (sel_print): New function.
16396
16397 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16398
16399         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
16400         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
16401
16402 2010-06-21  Nick Clifton  <nickc@redhat.com>
16403
16404         * config/rx/rx.h (PTRDIFF_TYPE): Define.
16405         (SMALL_REGISTER_CLASS): Define (to zero).
16406         (PRINT_OPERAND): Delete.
16407         (PRINT_OPERAND_ADDRESS): Delete.
16408         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
16409         (rx_print_operand_address): Delete prototype.
16410         * config/rx/rx.c (rx_print_operand): Make static.
16411         Allow %H and %L to handle CONST_DOUBLEs.
16412         (rx_print_operand_address): Make static.
16413         (rx_gen_move_template): Rename local variable 'template' to
16414         out_template.
16415         (rx_function_arg): Do not pass unknown sized objects in registers.
16416         (TARGET_PRINT_OPERAND): Define.
16417         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16418
16419 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
16420
16421         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
16422
16423 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
16424
16425         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
16426         stack-alignment for simple leaf-functions.
16427
16428 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
16429
16430         * doc/install.texi: Document bootstrap-lto.
16431
16432 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
16433
16434         PR debug/44248
16435         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
16436         (input_function): Drop them here, if VTA is disabled.
16437
16438 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
16439
16440         PR target/44546
16441         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
16442         New predicate.
16443         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
16444         ix86_swapped_fp_comparsion_operator instead of
16445         ix86_fp_comparison_operator.
16446
16447         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
16448         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
16449         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
16450         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
16451         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
16452         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
16453
16454 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
16455
16456         PR other/32998
16457         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
16458         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
16459         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
16460         (decode_cmdline_option): Update for this return value.  Set
16461         orig_option_with_args_text field.  Set arg field for unknown
16462         options.  Make static.
16463         (decode_cmdline_options_to_array): New.
16464         (prune_options): Update handling of find_opt return value.
16465         * opts.c (read_cmdline_option): Take decoded option.  Return void.
16466         (read_cmdline_options): Take decoded options.
16467         (decode_options): Add parameters for decoded options.  Use
16468         decode_cmdline_options_to_array.  Use decoded options for -O
16469         scan.  Use integral_argument for -O parameters.  Update call to
16470         read_cmdline_options.
16471         (enable_warning_as_error): Update handling of find_opt return value.
16472         * opts.h: Update comment on unknown options.
16473         (struct cl_decoded_option): Update comments on opt_index and arg.
16474         Add orig_option_with_args_text.
16475         (decode_cmdline_option): Remove.
16476         (decode_cmdline_options_to_array): Declare.
16477         (decode_options): Update prototype.
16478         * toplev.c (save_argv): Remove.
16479         (save_decoded_options, save_decoded_options_count): New.
16480         (read_integral_parameter): Remove.
16481         (print_switch_values): Use decoded options.
16482         (toplev_main): Don't set save_argv.  Update call to decode_options.
16483         * toplev.h (read_integral_parameter): Remove.
16484         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
16485
16486 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
16487
16488         PR target/44072
16489         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
16490         immediate.
16491         * constraints.md (Pw, Px): New constraints.
16492         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
16493
16494 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
16495
16496         * config/i386/sse.md (fma4modesuffixf4): Removed.
16497         (ssemodesuffixf2s): Likewise.
16498         (ssemodesuffixf4): Likewise.
16499         (ssemodesuffixf2c): Likewise.
16500         (ssescalarmodesuffix2s): Likewise.
16501         (avxmodesuffixf2c): Likewise.
16502         (ssemodesuffix): New.
16503         (ssescalarmodesuffix): Likewise.
16504         Update patterns with ssemodesuffix and ssescalarmodesuffix.
16505
16506 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
16507
16508         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
16509
16510 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16511
16512         * stor-layout.c (debug_rli): Remove unused local variables.
16513
16514 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
16515
16516         PR rtl-optimization/40900
16517         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
16518         original expression for later reuse.
16519         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
16520         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
16521
16522 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
16523
16524         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
16525         double_int_fits_in_uhwi_p): Implement as static inline.
16526         (double_int_xor): New inline function.
16527         (double_int_lrotate, double_int_rrotate, double_int_max,
16528         double_int_umax, double_int_smax, double_int_min, double_int_umin,
16529         double_int_smin): Declare.
16530         (lrotate_double, rrotate_double): Remove declaration.
16531         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
16532         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
16533         (double_int_lrotate, double_int_rrotate, double_int_max,
16534         double_int_umax, double_int_smax, double_int_min, double_int_umin,
16535         double_int_smin): New function.
16536         * fold-const.c (int_const_binop): Clean up, use double_int_*
16537         functions.
16538         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
16539         double_int_* and immed_double_int_const functions.
16540
16541 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
16542
16543         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
16544         * function.c (types_used_by_cur_var_decl): Likewise.
16545         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
16546
16547 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
16548
16549         * tree.h (record_layout_info): Change type of pending_statics field
16550         to a VEC.
16551         * stor-layout.c (start_record_layout): Store NULL into
16552         pending_statics.
16553         (debug_rli): Call debug_vec_tree instead of debug_tree.
16554         (place_field): Likewise.
16555         (finish_record_layout): Likewise.
16556
16557 2010-06-18  Alan Modra  <amodra@gmail.com>
16558
16559         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
16560
16561 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16562
16563         PR target/43740
16564         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
16565         for SET source operand from SET destination operand.
16566
16567 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
16568
16569         PR rtl-optimization/39871
16570         * reload1.c (init_eliminable_invariants): For flag_pic, disable
16571         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
16572         (function_invariant_p): Rule out a plus of frame or arg pointer with
16573         a SYMBOL_REF.
16574         * ira.c (find_reg_equiv_invariant_const): Likewise.
16575
16576 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
16577
16578         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
16579         print_operand_address and puts to output the operand for CONST.
16580
16581 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
16582
16583         PR debug/44572
16584         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
16585         hook.
16586
16587 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16588
16589         * v850-protos.h (print_operand): Delete.
16590         (print_operand_address): Delete.
16591         * v850.h (PRINT_OPERAND): Delete.
16592         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16593         (PRINT_OPERAND_ADDRESS): Delete.
16594         * v850.c (print_operand_address): Rename to...
16595         (v850_print_operand_address): ...this.  Make static. Call
16596         v850_print_operand.
16597         (print_operand): Rename to...
16598         (v850_print_operand): ...this.  Make static.  Call
16599         v850_print_operand_address.
16600         (v850_print_operand_punct_valid_p): New function.
16601         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16602         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16603
16604 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16605
16606         * config/sh/sh-protos.h (print_operand): Delete.
16607         (print_operand_address): Delete.
16608         * config/sh/sh.h (PRINT_OPERAND): Delete.
16609         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16610         (PRINT_OPERAND_ADDRESS): Delete.
16611         * config/sh/sh.c (sh_print_operand_address): Make static.
16612         (sh_print_operand): Make static.  Call sh_print_operand_address
16613         and sh_print_operand.
16614         (sh_print_operand_punct_valid_p): New function.
16615         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16616         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16617
16618 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16619
16620         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
16621         (mcore_print_operand_address): Delete.
16622         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
16623         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16624         (PRINT_OPERAND_ADDRESS): Delete.
16625         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
16626         (mcore_print_operand): Make static.
16627         (mcore_print_operand_punct_valid_p): New function.
16628         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
16629         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16630
16631 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16632
16633         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
16634         (print_operand_address): Delete.
16635         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
16636         (PRINT_OPERAND_ADDRESS): Delete.
16637         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
16638         static.
16639         (m68hc11_print_operand): Make static.
16640         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16641
16642 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16643
16644         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
16645         (m32r_print_operand_address): Delete.
16646         * config/m32r/m32r.h (m32r_punct_chars): Delete.
16647         (PRINT_OPERAND): Delete.
16648         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16649         (PRINT_OPERAND_ADDRESS): Delete.
16650         * config/m32r/m32r.c (m32r_punct_chars): Make static.
16651         (m32r_print_operand_address): Make static.
16652         (m32r_print_operand): Make static.
16653         (m32r_print_operand_punct_valid_p): New function.
16654         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16655         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16656
16657 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16658
16659         * config/iq2000/iq2000-protos.h (print_operand): Delete.
16660         (print_operand_address): Delete.
16661         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
16662         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16663         (PRINT_OPERAND_ADDRESS): Delete.
16664         (iq2000_print_operand_punct): Delete.
16665         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
16666         (iq2000_print_operand_address): Make static.
16667         (iq2000_print_operand): Make static.
16668         (iq2000_print_operand_punct_valid_p): New function.
16669         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16670         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16671
16672 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16673
16674         * config/frv/frv-protos.h (frv_print_operand): Delete.
16675         (frv_print_operand_address): Delete.
16676         * config/frv/frv.h (PRINT_OPERAND): Delete.
16677         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16678         (PRINT_OPERAND_ADDRESS): Delete.
16679         * config/frv/frv.c (frv_print_operand_address): Make static.
16680         (frv_print_operand): Make static.
16681         (frv_print_operand_punct_valid_p): New function.
16682         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16683         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16684
16685 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16686
16687         * tree.h (vec_member): Declare.
16688         * tree.c (vec_member): Define.
16689
16690 2010-06-17  Richard Guenther  <rguenther@suse.de>
16691
16692         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
16693         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
16694
16695 2010-06-17  Richard Guenther  <rguenther@suse.de>
16696
16697         * tree-inline.c (declare_return_variable): Remove bogus code.
16698
16699 2010-06-17  Richard Guenther  <rguenther@suse.de>
16700
16701         * gimplify.c (gimplify_bind_expr): Always promote complex
16702         and vector variables to registers if possible.
16703
16704 2010-06-17  Richard Guenther  <rguenther@suse.de>
16705
16706         * expr.c (get_inner_reference): Use double_int for bit_offset
16707         calculation.
16708
16709 2010-06-16  DJ Delorie  <dj@redhat.com>
16710
16711         * common.opt (-fstrict-volatile-bitfields): new.
16712         * doc/invoke.texi: Document it.
16713         * fold-const.c (optimize_bit_field_compare): For volatile
16714         bitfields, use the field's type to determine the mode, not the
16715         field's size.
16716         * expr.c (expand_assignment): Likewise.
16717         (get_inner_reference): Likewise.
16718         (expand_expr_real_1): Likewise.
16719         * expmed.c (store_fixed_bit_field): Likewise.
16720         (extract_bit_field_1): Likewise.
16721         (extract_fixed_bit_field): Likewise.
16722
16723 2010-06-16  Richard Guenther  <rguenther@suse.de>
16724
16725         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
16726
16727 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
16728
16729         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
16730         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
16731         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
16732         * debug.c: Likewise.
16733         * sdbout.c: Likewise.
16734         * vmsdbgout.c: Likewise.
16735         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
16736         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
16737         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
16738         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
16739         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
16740         * dwarf2out.c (dw_fde_struct): New fields
16741         dw_fde_vms_{end,begin}_prologue.
16742         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
16743         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
16744         (dwarf2out_vms_end_prologue): New function.
16745         (dwarf2out_vms_begin_epilogue): New function.
16746         (dw_val_struct): New value dw_val_class_vms_delta.
16747         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
16748         begin_epilogue for VMS.
16749         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
16750         new static functions.
16751         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
16752         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
16753         static functions.
16754         (print_die): New case dw_val_class_vms_delta.
16755         (attr_checksum): Likewise.
16756         (same_dw_val_p: Likewise.
16757         (size_of_die): Likewise.
16758         (value_format): Likewise.
16759         (output_die): Likewise.
16760         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
16761         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
16762         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
16763         dwarf2out_cfi_begin_epilogue
16764         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
16765
16766 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
16767
16768         * config/cris/cris-protos.h (cris_print_operand): Delete.
16769         (cris_print_operand_address): Delete.
16770         * config/cris/cris.h (PRINT_OPERAND): Delete.
16771         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16772         (PRINT_OPERAND_ADDRESS): Delete.
16773         * config/cris/cris.c (cris_print_operand_address): Make static.
16774         (cris_print_operand): Make static.
16775         (cris_print_operand_punct_valid_p): New function.
16776         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16777         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16778
16779 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
16780
16781         * config/arm/arm-protos.h (arm_print_operand): Delete.
16782         (arm_print_operand_address): Delete.
16783         * config/arm/arm.h (PRINT_OPERAND): Delete.
16784         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16785         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
16786         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
16787         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
16788         (arm_print_operand): Make static.
16789         (arm_print_operand_punct_valid_p): New function.
16790         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16791         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16792
16793 2010-06-16  Nick Clifton  <nickc@redhat.com>
16794
16795         * config/rx/constraints.md (NEGint4): New constraint.
16796         * config/rx/rx.md (attr cc): Add set_zsc.
16797         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
16798         initialised.
16799         (cmpsf): Likewise.
16800         (call_internal): Clobber the cc0 register.
16801         (call_value_internal): Likewise.
16802         (cstoresi4): Likewise.
16803         (movsieq): Likewise.
16804         (movsine): Likewise.
16805         (addsi3): Add alternative to handle small negative constants.
16806         (sunsi3): Likewise.
16807         (addsi3): Do not set the O bit in the cc0 register.
16808         (adddi3): Likewise.
16809         (subsi3): Likewise.
16810         (subdi3): Likewise.
16811         (andsi3): Reorder alternatives to prefer shorter forms.
16812         (mulsi3): Likewise.
16813         (iorsi3): Likewise.
16814         (negsi2): Note that the cc0 flags are set.
16815         (rotlsi3): Note that only the Z and S bits are set in cc0.
16816         (lshrsi3): Likewise.
16817         (ashlsi3): Likewise.
16818         (subsf3): Use %Q for the MEM operand.
16819         (fix_truncsfsi2): Likewise.
16820         (floatsisf2): Likewise.
16821         (bitset): Remove early clobber from destination.
16822         (bitset_in_memory): Likewise.
16823         (lrintsf2): Clobber the cc0 register.
16824         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
16825         (rx_print_operand): Handle %N.
16826
16827 2010-06-16  Jan Hubicka  <jh@suse.cz>
16828
16829         * df-core.c (df_compact_blocks): Free problem_temps vector.
16830
16831 2010-06-16  Martin Jambor  <mjambor@suse.cz>
16832
16833         PR tree-optimization/43905
16834         * tree-sra.c: Include tree-inline.h.
16835         (create_abstract_origin): Removed.
16836         (modify_function): Version the call graph node instead of creating
16837         abstract origins and dealing with same_body aliases.
16838         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
16839         function is versionable.
16840         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
16841
16842 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
16843
16844         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
16845         (CHOOSE_DYNAMIC_LINKER): Update.
16846
16847 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
16848
16849         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
16850         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
16851         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
16852         *prefetch_3dnow_rex.
16853
16854 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
16855
16856         * target.h (struct asm_out):Add declare_constant_name field.
16857         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16858         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
16859         * output.h (default_asm_declare_constant_name): Declare.
16860         (assemble_label): Update prototype.
16861         * varasm.c (assemble_constant_contents): Use
16862         targetm.asm_out.declare_constant_name target hook.
16863         (assemble_label): Add 'file' argument.
16864         (default_asm_declare_constant_name): New function.
16865         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
16866         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
16867         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
16868
16869         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
16870         * config/darwin.c (darwin_asm_declare_constant_name): New function.
16871         (machopic_output_indirection): Update assemble_label argument list.
16872         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
16873         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16874
16875 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
16876
16877         PR middle-end/44391
16878         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16879         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
16880
16881 2010-06-15  Richard Guenther  <rguenther@suse.de>
16882
16883         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
16884
16885 2010-06-15  Paul Brook  <paul@codesourcery.com>
16886
16887         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
16888         hard-float ABI.
16889
16890 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
16891
16892         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
16893         don't get a vector type for output.
16894
16895 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
16896
16897         PR fortran/44536
16898         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
16899         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
16900         (LANG_HOOKS_DECLS): Add it.
16901         * gimplify.c (omp_notice_variable): Call
16902         lang_hooks.decls.omp_report_decl.
16903
16904 2010-06-15  Martin Jambor  <mjambor@suse.cz>
16905
16906         PR lto/44464
16907         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
16908         on the newly dead SSA name.
16909
16910 2010-06-15  Alan Modra  <amodra@gmail.com>
16911
16912         * doc/invoke.texi: Add mcmodel to powerpc options.
16913         * configure.ac: Add HAVE_LD_LARGE_TOC test.
16914         * configure: Regenerate.
16915         * config.in: Regenerate.
16916         * config/rs6000/linux64.opt (mcmodel): New.
16917         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
16918         (TARGET_CMODEL, SET_CMODEL): Define.
16919         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
16920         select CMODEL_MEDIUM default.
16921         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
16922         (TARGET_CMODEL): Define default.
16923         * config/rs6000/rs6000.c (cmodel): New variable.
16924         (rs6000_explicit_options): Add cmodel field.
16925         (rs6000_handle_option): Handle -mcmodel.
16926         (create_TOC_reference): Add largetoc_reg param.  Generate high,
16927         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
16928         (rs6000_delegitimize_address): Recognise new toc reference rtl
16929         and minimal-toc rtl.
16930         (rs6000_legitimize_reload_address): Handle new toc references.
16931         (print_operand_address): Handle legitimate_constant_pool_address_p
16932         match before lo_sum.
16933         (rs6000_eliminate_indexed_memrefs): Tidy.
16934         (rs6000_emit_move): Tweak threshold for inlining constants.
16935         Keep rs6000_emit_allocate_stack large stack frame offsets
16936         loaded into r0 inline.
16937         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
16938         (tocrel_base, tocrel_offset): New variables.
16939         (toc_relative_expr_p): Set them here.
16940         (print_operand_address): Skip over any offset on constant pool address.
16941         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
16942         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
16943         (offsettable_ok_by_alignment): New function.
16944         (rs6000_emit_move): Address suitably aligned local symbol_refs
16945         relative to the toc pointer for -mcmodel=medium.
16946         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
16947         strict param.  Allow lo_sum version of addressing.  Verify reg
16948         used for -mminimal-toc and -mcmodel != small.  Update all callers.
16949         * config/rs6000/constraints.md: Update for above change.
16950         * config/rs6000/predicates.md: Likewise.
16951         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
16952         code.
16953         (tls_gd): Split for -mcmodel=medium/large.
16954         (tls_gd_high, tls_gd_low): New.
16955         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
16956         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
16957         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
16958         (largetoc_high, largetoc_low): New.
16959         (cmptf_internal2): Add clobber.
16960         * config/rs6000/rs6000-protos.h: Update.
16961
16962 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
16963
16964         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
16965         true if no prefetch is going to be generated for a given group.
16966         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
16967         estimate the prefetch_count.
16968         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
16969         prefetch count by considering the unroll_factor and prefetch_mod
16970         for is_loop_prefetching_profitable.
16971
16972 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
16973
16974         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
16975         anything if the argument is not a MEM.
16976
16977 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
16978
16979         PR debug/43650
16980         PR debug/44181
16981         PR debug/44247
16982         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
16983         debug stmts.
16984         (canonicalize_loop_ivs): Likewise.
16985
16986 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
16987
16988         PR debug/43656
16989         * haifa-sched.c (setup_insn_reg_pressure_info,
16990         update_register_pressure): Reject debug insns.
16991         (ready_sort): Don't setup reg pressure for debug insns.
16992         (schedule_insn): Don't update reg pressure for debug insns.
16993
16994 2010-06-14  Richard Guenther  <rguenther@suse.de>
16995
16996         * lto-streamer.c (cached_bp): Remove.
16997         (bitpack_delete): Likewise.
16998         (bitpack_create): Likewise.
16999         (bp_get_next_word): Likewise.
17000         (bp_pack_value, bp_unpack_value): Move ...
17001         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
17002         Re-implement.
17003         (struct bitpack_d): Likewise.
17004         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
17005         New inline functions.
17006         * lto-streamer-out.c (lto_output_bitpack): Remove.
17007         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
17008         (pack_value_fields): Adjust.
17009         (lto_write_tree): Likewise.
17010         (output_gimple_stmt): Likewise.
17011         (output_function): Likewise.
17012         * lto-streamer-in.c (input_gimple_stmt): Adjust.
17013         (input_function): Likewise.
17014         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
17015         (lto_input_bitpack): Remove.
17016         (lto_materialize_tree): Adjust.
17017         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
17018         * lto-cgraph.c (lto_output_edge): Adjust.
17019         (lto_output_node): Likewise.
17020         (lto_output_varpool_node): Likewise.
17021         (lto_output_ref): Likewise.
17022         (input_node): Likewise.
17023         (input_varpool_node): Likewise.
17024         (input_ref): Likewise.
17025         (input_edge): Likewise.
17026         (output_node_opt_summary): Likewise.
17027         (input_node_opt_summary): Likewise.
17028         * ipa-pure-const.c (pure_const_write_summary): Likewise.
17029         (pure_const_read_summary): Likewise.
17030         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
17031         (ipa_read_indirect_edge_info): Likewise.
17032         (ipa_write_node_info): Likewise.
17033         (ipa_read_node_info): Likewise.
17034
17035 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
17036
17037         PR target/44534
17038         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
17039         (vec_extract_lo_v16hi): Likewise.
17040         (vec_extract_lo_v32qi): Likewise.
17041
17042 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
17043
17044         PR bootstrap/44426
17045         * tree.h (build_call_expr): Don't define as vararg macro, instead
17046         add a prototype.
17047         * builtins.c (build_call_nofold): Remove.
17048         (expand_builtin_int_roundingfn, expand_builtin_pow,
17049         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
17050         expand_builtin_memset_args, expand_builtin_strcmp,
17051         expand_builtin_strncmp, expand_builtin_memory_chk): Use
17052         build_call_nofold_loc instead of build_call_nofold.
17053         (build_call_expr): New function.
17054
17055         PR tree-optimization/44508
17056         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
17057         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
17058         don't eliminate trivially dead stmts.
17059         * tree-vrp.c (vrp_finalize): Pass false as last argument
17060         to substitute_and_fold.
17061         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
17062         to substitute_and_fold.
17063         * tree-ssa-ccp.c (ccp_finalize): Likewise.
17064
17065         PR bootstrap/44509
17066         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
17067
17068 2010-06-14  Ira Rosen  <irar@il.ibm.com>
17069
17070         PR tree-optimization/44507
17071         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
17072         to build initial vector for BIT_AND_EXPR.
17073         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
17074
17075 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
17076
17077         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
17078         adjust z10prop set_attr.
17079
17080 2010-06-13  Jan Hubicka  <jh@suse.cz>
17081
17082         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
17083         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
17084         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
17085         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
17086         datastructure checks into checking asserts.
17087         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
17088         * tree-ssa-sccvn.c (VN_INFO): Likewise.
17089         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
17090         df_ref_create_structure): Likewise.
17091         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
17092         pool_free): Use gcc_checking_assert.
17093         * alias.c (get_alias_set): Likewise.
17094         * var-tracking.c (variable_htab_free, shared_hash_copy,
17095         canonicalize_values_mark, variable_merge_over_cur): Likewise.
17096         * lto-streamer.c (bp_unpack_value): Likewise.
17097
17098 2010-06-13  Richard Guenther  <rguenther@suse.de>
17099
17100         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
17101         Do not stream but initialize TYPE_CANONICAL to NULL.
17102         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
17103         * gimple.c (gimple_types_compatible_p): Disregard
17104         TYPE_STRUCTURAL_EQUALITY_P.
17105         (gimple_register_type): Use TYPE_CANONICAL as cache.
17106         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
17107         before registering common types.
17108         * config/i386/i386.c (ix86_function_arg_boundary): Do not
17109         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
17110         * tree.h (TYPE_CANONICAL): Clarify documentation.
17111
17112 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
17113
17114         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
17115         LIBCALL_VALUE): Remove macros.
17116         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
17117         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17118         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17119         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
17120         (ia64_function_value): Make static. Handle receiving the function
17121         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
17122
17123 2010-06-12  Jan Hubicka  <jh@suse.cz>
17124
17125         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
17126         at correct place.
17127
17128 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
17129
17130         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
17131
17132 2010-06-12  Jan Hubicka  <jh@suse.cz>
17133
17134         * df-core.c (df_clear_bb_info): New function.
17135         (df_set_blocks): bb_info is always allocated.
17136         (df_get_bb_info): Use block_info_elt_size.
17137         (df_set_bb_info): Likewise.
17138         (df_compact_blocks): Update for new block_info.
17139         (grow_bb_info): New function.
17140         * df-problems.c (df_grow_bb_info): Move to df-core.c
17141         (df_rd_set_bb_info): Remove.
17142         (df_rd_free_bb_info): Do not free block pool.
17143         (df_rd_alloc): Do not create pool, use check for
17144         obstack presence instead of NULL pointer for new blocks.
17145         (df_rd_free): DO not free alloc pool; clear block_info.
17146         (problem_RD): Add size of block info structure.
17147         (df_lr_set_bb_info): Remove.
17148         (df_lr_free_bb_info): Do not free block pool.
17149         (df_lr_alloc): Do not create pool, use check for
17150         obstack presence instead of NULL pointer for new blocks.
17151         (df_lr_free): DO not free alloc pool; clear block_info.
17152         (problem_LR): Add size of block info structure.
17153         (df_live_set_bb_info): Remove.
17154         (df_live_free_bb_info): Do not free block pool.
17155         (df_live_alloc): Do not create pool, use check for
17156         obstack presence instead of NULL pointer for new blocks.
17157         (df_live_free): DO not free alloc pool; clear block_info.
17158         (problem_LIVE): Add size of block info structure.
17159         (problem_CHAIN): Add size of block info structure.
17160         (df_byte_lr_set_bb_info): Remove.
17161         (df_byte_lr_free_bb_info): Do not free block pool.
17162         (df_byte_lr_alloc): Do not create pool, use check for
17163         obstack presence instead of NULL pointer for new blocks.
17164         (df_byte_lr_free): DO not free alloc pool; clear block_info.
17165         (problem_BYTE_LR): Add size of block info structure.
17166         (problem_NOTE): Add size of block info structure.
17167         (df_byte_MD_set_bb_info): Remove.
17168         (df_byte_MD_free_bb_info): Do not free block pool.
17169         (df_byte_MD_alloc): Do not create pool, use check for
17170         obstack presence instead of NULL pointer for new blocks.
17171         (df_byte_MD_free): DO not free alloc pool; clear block_info.
17172         (problem_BD): Add size of block info structure.
17173         * df-scan.c (df_scan_free_internal): Free block pool.
17174         (df_scan_set_bb_info): Remove.
17175         (df_scan_free_bb_info): Check for artificial_defs instead
17176         of bb_info being non-NULL.
17177         (df_scan_alloc): DO not create df_scan_block pool.
17178         (problem_SCAN): Set size of block info.
17179         (df_bb_refs_record): Do not allocate bb_info.
17180         * df.h (df_problem): Add block_info_elt_size.
17181         (struct dataflow): Change block_info to void *.
17182         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
17183         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
17184         in-line structures.
17185
17186 2010-06-12  Jan Hubicka  <jh@suse.cz>
17187
17188         PR tree-optimize/44485
17189         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
17190         containing use of return value of noreturn function.
17191
17192 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
17193
17194         * targhooks.c (default_function_value): Don't use
17195         FUNCTION_OUTGOING_VALUE.
17196         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
17197         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
17198
17199 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
17200
17201         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
17202         Add crtfastmath.o to extra_parts.
17203         * config/mips/crtfastmath.c: New.
17204         * config/mips/linux.h (ENDFILE_SPEC): New.
17205
17206 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
17207
17208         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
17209         old_type in parameter.
17210         (gcc_type_for_value): Update call to gcc_type_for_interval.
17211         (compute_type_for_level_1): Renamed compute_type_for_level.
17212         Update call to gcc_type_for_interval.
17213
17214 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
17215
17216         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
17217         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
17218
17219 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
17220
17221         * opts-common.c: Include options.h.
17222         (integral_argument): Move from opts.c.
17223         (decode_cmdline_option): New.  Based on read_cmdline_option.
17224         * opts.c (integral_argument): Move to opts-common.c.
17225         (read_cmdline_option): Move most contents to
17226         decode_cmdline_option.  Use %qs in diagnostics.
17227         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
17228         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
17229         decode_cmdline_option): New.
17230
17231 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
17232
17233         PR target/44481
17234         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
17235         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
17236         (partiysi2_cmp): Ditto.
17237         (*partiyhi2_cmp): Ditto.
17238         (*parityqi2_cmp): Remove.
17239
17240 2010-06-11  Jan Hubicka  <jh@suse.cz>
17241
17242         * bitmap.h (bmp_iter_next_bit): New.
17243         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
17244
17245 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
17246             Eric Botcazou  <ebotcazou@adacore.com>
17247
17248         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
17249         computed cost.
17250
17251 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
17252
17253         * config/i386/i386.md (unspec): New define_c_enum.
17254         (unspecv): Ditto.
17255
17256 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
17257
17258         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
17259
17260 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
17261
17262         PR middle-end/44483
17263         * tree-if-conv.c (bb_predicate_s): New struct.
17264         (bb_predicate_p): New.
17265         (bb_has_predicate): New.
17266         (bb_predicate): New.
17267         (set_bb_predicate): New.
17268         (bb_predicate_gimplified_stmts): New.
17269         (set_bb_predicate_gimplified_stmts): New.
17270         (add_bb_predicate_gimplified_stmts): New.
17271         (init_bb_predicate): New.
17272         (free_bb_predicate): New.
17273         (is_predicated): Use bb_predicate.
17274         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
17275         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
17276         before processing their successors.
17277         (clean_predicate_lists): Removed.
17278         (find_phi_replacement_condition): Use bb_predicate.
17279         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
17280         computations.
17281         (insert_gimplified_predicates): New.
17282         (combine_blocks): Call insert_gimplified_predicates.
17283         (tree_if_conversion): Call free_bb_predicate instead of
17284         clean_predicate_lists.
17285
17286 2010-10-11  Paul Brook  <paul@codesourcery.com>
17287
17288         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
17289         * config/arm/arm.c (all_architectures): Change v7e-m default to
17290         cortexm4.
17291         * config/arm/arm-cores.def: Add cortex-m4.
17292         * config/arm/arm-tune.md: Regenerate.
17293
17294 2010-06-11  Jan Hubicka  <jh@suse.cz>
17295
17296         * ipa-pure-const.c (special_builtlin_state): New function.
17297         (check_call): Use it instead of special casign BUILT_IN_RETURN.
17298         (propagate_pure_const): Use it.
17299
17300 2010-06-11  Jan Hubicka  <jh@suse.cz>
17301
17302         * df-problems.c (df_live_scratch): Convert to bitmap_head.
17303         (df_live_alloc): Initialize df_live_scratch when initializing
17304         problem_data.
17305         (df_live_transfer_function): Update uses of df_live_scratch.
17306         (df_live_free): Free problem_data; clear df_live_scratch before
17307         releasing the obstack.
17308         (df_md_free): Free problem data.
17309
17310 2010-06-11  Jan Hubicka  <jh@suse.cz>
17311
17312         * doc/invoke.texi (Wsuggest-attribute): Document.
17313         (Wmissing-noreturn): Remove.
17314         * ipa-pure-const.c (warn_function_noreturn): New function.
17315         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
17316         warn_missing_noreturn.
17317         * common.opt (Wsuggest-attribute=noreturn): New.
17318         * tree-flow.h (warn_function_noreturn): Declare.
17319         * tree-cfg.c (execute_warn_function_noreturn): Use
17320         warn_function_noreturn.
17321         (gate_warn_function_noreturn): New.
17322         (pass_warn_function_noreturn): Update.
17323
17324 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17325
17326         * c-typeck.c (handle_warn_cast_qual): Add loc
17327         parameter. Improve warning message.
17328         (build_c_cast): Pass location to handle_warn_cast_qual.
17329
17330 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
17331
17332         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
17333         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
17334         insn mnemonic.
17335         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
17336
17337 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
17338
17339         Fix bootstap on mips
17340         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
17341         be naming typedefs.
17342
17343 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
17344
17345         * system.h (helper_const_non_const_cast): New inline for
17346         gcc version <= 4.0.
17347         (CONST_CAST2): For gcc version <= 4.0 use
17348         new helper to do const/non-const casting.
17349
17350 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17351
17352         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
17353         * Makefile.in (OBJS-common): Include insn-enums.o.
17354         (insn-enums.o): New rule.
17355         (simple_generated_c): Add insn-enums.c.
17356         (build/genenums.o): New rule.
17357         (genprogmd): Add "enums".
17358         * genconstants.c (print_enum_type): Declare a C string array
17359         for each enum.
17360         * genenums.c: New file.
17361         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
17362         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
17363         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
17364
17365 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17366
17367         * doc/md.texi (define_enum_attr): Document.
17368         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
17369         * read-md.h (lookup_enum_type): Declare.
17370         * read-md.c (lookup_enum_type): New function.
17371         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
17372         * genattrtab.c (attr_desc): Add an enum_name field.
17373         (evaluate_eq_attr): Take the associated attribute as argument.
17374         Get the enum prefix from the enum_name field, if defined.
17375         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
17376         (simplify_test_exp): Pass attr to evaluate_eq_attr.
17377         (add_attr_value): New function, split out from...
17378         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
17379         (write_test_expr): Pass attr to evaluate_eq_attr.
17380         (write_attr_get): Use the enum_name as the enum tag, if defined.
17381         (write_attr_valueq): Use the enum_name as a prefix, if defined.
17382         (find_attr): Initialize enum_name.
17383         (main): Handle DEFINE_ENUM_ATTR.
17384         * gensupport.c (process_rtx): Likewise.
17385         * config/mips/mips.h (mips_tune_attr): Delete.
17386         * config/mips/mips.md (cpu): Use define_attr_enum.
17387
17388 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17389
17390         * doc/md.texi (define_c_enum, define_enum): Document.
17391         * read-md.h (md_constant): Add a parent_enum field.
17392         (enum_value, enum_type): New structures.
17393         (upcase_string, traverse_enum_types): Declare.
17394         * read-md.c (enum_types): New variable.
17395         (upcase_string, add_constant): New functions.
17396         (handle_constants): Don't create the hash table here.
17397         Use add_constant.
17398         (traverse_md_constants): Don't check for a null md_constants.
17399         (decimal_string, handle_enum, traverse_enum_types): New functions.
17400         (read_md_files): Initialize md_constants and md_enums.
17401         * genconstants.c (print_md_constant): Ignore info argument.
17402         Only print constants that belong to no enum.
17403         (print_enum_type): New function.
17404         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
17405         for each defined enum type.
17406         * config/mips/mips.md (processor): New define_enum.
17407         (unspec): New define_c_enum.
17408         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
17409         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
17410         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
17411         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
17412         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
17413         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
17414         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
17415         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
17416         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
17417         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
17418         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
17419         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
17420         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
17421         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
17422         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
17423         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
17424         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
17425         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
17426         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
17427         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
17428         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
17429         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
17430         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
17431         (UNSPEC_RDDSP): Move to mips-dsp.md.
17432         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
17433         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
17434         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
17435         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
17436         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
17437         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
17438         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
17439         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
17440         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
17441         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
17442         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
17443         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
17444         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
17445         Moved to mips-dspr2.md.
17446         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
17447         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
17448         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
17449         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
17450         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
17451         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
17452         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
17453         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
17454         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
17455         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
17456         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
17457         UNSPEC_LOONGSON_PSADBH)
17458         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
17459         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
17460         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
17461         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
17462         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
17463         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
17464         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
17465         (cpu): Update comment.
17466         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
17467         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
17468         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
17469         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
17470         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
17471         UNSPEC_LOONGSON_PCMPEQ)
17472         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
17473         UNSPEC_LOONGSON_PINSR_0)
17474         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
17475         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
17476         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
17477         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
17478         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
17479         UNSPEC_LOONGSON_PSADBH)
17480         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
17481         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
17482         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
17483         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
17484         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
17485         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
17486         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
17487         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
17488         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
17489         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
17490         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
17491         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
17492         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
17493         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
17494         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
17495         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
17496         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
17497         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
17498         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
17499         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
17500         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
17501         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
17502         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
17503         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
17504         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
17505         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
17506         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
17507         (UNSPEC_RDDSP): Moved from mips.md.
17508         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
17509         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
17510         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
17511         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
17512         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
17513         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
17514         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
17515         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
17516         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
17517         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
17518         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
17519         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
17520         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
17521         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
17522         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
17523         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
17524         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
17525         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
17526         (UNSPEC_SCC): Moved from mips.md.
17527         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
17528         "processor_type" to "processor".
17529         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
17530         * config/mips/mips.h (processor_type): Delete.
17531         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
17532         "processor_type" to "processor".
17533
17534 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17535
17536         * configure.ac (tm_include_list): Add insn-constants.h.
17537         * configure: Regenerate.
17538         * Makefile.in (GTM_H): Move insn-constants.h here from...
17539         (TM_H): ...here.
17540         * mkconfig.sh: Remove special handling for insn-constants.h.
17541
17542 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17543
17544         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
17545         (BUILD_MD): ...this new variable.
17546         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
17547         that include the old contents of simple_generated_h and
17548         simple_generated_c.
17549         (simple_generated_h, simple_generated_c): Include them.  Add
17550         insn-constants.h.
17551         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
17552         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
17553         Remove these dependencies from the main rule and include
17554         insn-conditions.md in the command line only if it appears
17555         in the dependency list.
17556         (insn-constants.h, s-constants): Delete.
17557         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
17558         or gensupport.h.
17559         (build/genmddeps.o): Likewise.
17560         (genprogrtl): New variable that contains everything from genprogmd
17561         except mddeps and constants.
17562         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
17563         depend on $(BUILD_MD)
17564         (genprog): New variable.  Make these programs depend on
17565         $(BUILD_ERRORS).
17566         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
17567         (main): Use read_md_files instead of init_rtx_reader_args.
17568         * genconstants.c: As for genmddeps.c.
17569         * read-md.h (read_skip_construct): Declare.
17570         * read-md.c (read_skip_construct): New function.
17571         (handle_file): Allow a null handle_directive, skipping the
17572         construct if so.
17573         (parse_include): Update the comment accordingly.
17574
17575 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17576
17577         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
17578         * genmddeps.c: Include read-md.h.
17579         (main): Call init_rtx_reader_args instead of init_md_reader_args.
17580         * genattr.c (main): Likewise.
17581         * genattrtab.c (main): Likewise.
17582         * genautomata.c (main): Likewise.
17583         * gencodes.c (main): Likewise.
17584         * genconditions.c (main): Likewise.
17585         * genconfig.c (main): Likewise.
17586         * genconstants.c (main): Likewise.
17587         * genemit.c (main): Likewise.
17588         * genextract.c (main): Likewise.
17589         * genflags.c (main): Likewise.
17590         * genopinit.c (main): Likewise.
17591         * genoutput.c (main): Likewise.
17592         * genpeep.c (main): Likewise.
17593         * genrecog.c (main): Likewise.
17594         * genpreds.c (main): Likewise.
17595         * gensupport.h (in_fname): Move to read-md.h.
17596         (init_md_reader_args_cb): Rename to...
17597         (init_rtx_reader_args_cb): ...this and return a bool.
17598         (init_md_reader_args): Rename to...
17599         (init_rtx_reader_args): ...this and return a bool.
17600         (include_callback): Move to read-md.h.
17601         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
17602         (file_name_list, first_dir_md_include): Move to read-md.c
17603         (first_bracket_include): Delete unused variable.
17604         (last_dir_md_include): Move to read-md.c.
17605         (process_include): Delete, moving code to read-md.c:handle_include.
17606         (process_rtx): Don't handle INCLUDE.
17607         (save_string): Delete.
17608         (rtx_handle_directive): New function.
17609         (init_md_reader_args_cb): Rename to...
17610         (init_rtx_reader_args_cb): ...this and return a boolean success value.
17611         Use read_md_args.
17612         (init_md_reader_args): Rename to...
17613         (init_rtx_reader_args): ...this and return a boolean success value.
17614         * rtl.def (INCLUDE): Delete.
17615         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
17616         argument.
17617         * read-rtl.c (read_conditions): Don't gobble ')' here.
17618         (read_mapping): Likewise.
17619         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
17620         Handle top-level non-rtx constructs here rather than in read_rtx_1.
17621         Store the whole queue in *X.  Remove call to init_md_reader.
17622         (read_rtx_1): Rename to...
17623         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
17624         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
17625         here.
17626         (read_nested_rtx): New function.  Handle (nil) here rather than
17627         in read_rtx_code.
17628         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
17629         gobble ')' here.
17630         * read-md.h (directive_handler_t): New type.
17631         (in_fname, include_callback): Moved from read-md.h.
17632         (read_constants, init_md_reader): Delete.
17633         (read_md_files): Declare.
17634         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
17635         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
17636         from gensupport.c.
17637         (read_constants): Rename to...
17638         (handle_constants): ...this.  Don't gobble ')' here.
17639         (handle_include, handle_file, handle_toplevel_file)
17640         (parse_include): New functions, mostly taken from gensupport.c.
17641         (init_md_reader): Subsume into...
17642         (read_md_files): ...this new function.
17643
17644 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17645
17646         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
17647         (unread_char): Decrement read_md_lineno after putting back '\n'.
17648         * read-md.c (fatal_with_file_and_line): Push back any characters
17649         that we decide not to add to the context.
17650         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
17651         fatal_expected_char in cases where '/' ends a line (for example).
17652         (read_name): Don't increment read_md_lineno here.
17653         (read_escape): Likewise.
17654         (read_quoted_string): Likewise.
17655         (read_braced_string): Likewise.
17656
17657 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17658
17659         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
17660         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
17661         * genconstants.c: Include read-md.h.
17662         * read-rtl.c (md_constants): Move to read-md.c.
17663         (md_name): Move to read-md.h.
17664         (initialize_iterators): Use leading_string_hash instead of def_hash
17665         and leading_string_eq_p instead of def_name_eq_p.
17666         (read_name): Move to read-md.c.
17667         (def_hash, def_name_eq_p): Delete.
17668         (read_constants, traverse_md_constants): Move to read-md.c.
17669         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
17670         * read-md.h: Include hashtab.h.
17671         (md_name): Moved from read-rtl.c.
17672         (md_constant): Moved from read-md.h.
17673         (leading_string_hash, leading_string_eq_p, read_name)
17674         (read_constants, traverse_md_constants): Declare.
17675         * read-md.c (md_constants): Moved from read-rtl.c.
17676         (leading_string_hash, leading_string_eq_p): New functions.
17677         (read_name, read_constants, traverse_md_constants): Moved from
17678         read-rtl.c.
17679
17680 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17681
17682         * read-rtl.c (md_name): New structure.
17683         (read_name): Take an md_name instead of a buffer pointer.
17684         Use the "string" field instead of strcpy when expanding constants.
17685         (read_constants): Remove the tmp_char argument.  Update the calls
17686         to read_name, using two local name buffers instead of the tmp_char
17687         argument.  Merge the constant-creation code.
17688         (read_conditions): Remove the tmp_char argument.  Update the calls
17689         to read_name, using a local name buffer instead of the tmp_char
17690         argument.
17691         (read_mapping): Replace tmp_char variable with a local name buffer.
17692         Update the calls to read_name.
17693         (read_rtx_1): Likewise.  Update the calls to read_constants and
17694         read_conditions.
17695
17696 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17697
17698         * Makefile.in (build/read-md.o): Depend on errors.h.
17699         * read-md.h (error_with_line): Declare.
17700         * read-md.c: Include errors.h.
17701         (message_with_line_1): New function, extracted from...
17702         (message_with_line): ...here.
17703         (error_with_line): New function.
17704         * genattrtab.c: If a call to message_with_line is followed by
17705         "have_error = 1;", replace both statements with a call to
17706         error_with_line.
17707         * genoutput.c: Likewise.
17708         * genpreds.c: Likewise.
17709         * genrecog.c: If a call to message_with_line is followed by
17710         "error_count++;", replace both statements with a call to
17711         error_with_line.
17712         (errorcount): Delete.
17713         (main): Don't check it.
17714         * gensupport.c: If a call to message_with_line is followed by
17715         "errors = 1;", replace both statements with a call to error_with_line.
17716         (errors): Delete.
17717         (process_define_cond_exec): Check have_error instead of errors.
17718         (init_md_reader_args_cb): Likewise.  Don't set errors.
17719
17720 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17721
17722         * read-md.h (read_md_file): Declare.
17723         (read_char, unread_char): New functions.
17724         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17725         (read_quoted_string, read_string): Remove FILE * argument.
17726         * read-md.c (read_md_file): New variable.
17727         (read_md_filename, read_md_lineno): Update comments and remove
17728         unnecessary initialization.
17729         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17730         (read_escape, read_quoted_string, read_braced_string, read_string):
17731         Remove FILE * argument.  Update calls accordingly, using read_char
17732         and unread_char instead of getc and ungetc.
17733         * rtl.h (read_rtx): Remove FILE * argument.
17734         * read-rtl.c (iterator_group): Remove FILE * argument from
17735         "find_builtin".
17736         (iterator_traverse_data): Remove "infile" field.
17737         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
17738         (add_mapping, read_name, read_constants, read_conditions)
17739         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
17740         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
17741         Remove file arguments from all calls, using read_char and unread_char
17742         instead of getc and ungetc.
17743         * gensupport.c (process_include): Preserve read_md_file around
17744         the include.  Set read_md_file to the handle of the included file.
17745         Update call to read_rtx.
17746         (init_md_reader_args_cb): Set read_md_file to the handle of the file
17747         and remove local FILE *.  Update calls to read_rtx.
17748
17749 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17750
17751         * read-md.h (read_rtx_lineno): Rename to...
17752         (read_md_lineno): ...this.
17753         (read_rtx_filename): Rename to...
17754         (read_md_filename): ...this.
17755         (copy_rtx_ptr_loc): Rename to...
17756         (copy_md_ptr_loc): ...this.
17757         (print_rtx_ptr_loc): Rename to...
17758         (print_md_ptr_loc): ...this.
17759         * read-md.c: Likewise.  Update references after renaming.
17760         (string_obstack): Replace RTL with MD in comment.
17761         (set_rtx_ptr_loc): Rename to...
17762         (set_md_ptr_loc): ...this.
17763         (get_rtx_ptr_loc): Rename to...
17764         (get_md_ptr_loc): ...this.
17765         * genconditions.c: Update references after renaming.
17766         * genemit.c: Likewise.
17767         * genoutput.c: Likewise.
17768         * genpreds.c: Likewise.
17769         * gensupport.c: Likewise.
17770         * read-rtl.c: Likewise.
17771
17772 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17773
17774         * Makefile.in (READ_MD_H): New variable.
17775         (BUILD_RTL): Add build/read-md.o.
17776         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
17777         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
17778         (build/genattrtab.o, build/genconditions.o build/genemit.o)
17779         (build/genextract.o, build/genflags.o, build/genoutput.o)
17780         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
17781         (build/read-md.o): New rule.
17782         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
17783         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
17784         * coretypes.h: ...here.
17785         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
17786         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
17787         * genattr.c: Include read-md.h.
17788         * genattrtab.c: Likewise.
17789         * genconditions.c: Likewise.
17790         * genemit.c: Likewise.
17791         * genextract.c: Likewise.
17792         * genflags.c: Likewise.
17793         * genoutput.c: Likewise.
17794         * genpreds.c: Likewise.
17795         * genrecog.c: Likewise.
17796         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
17797         (join_c_conditions, print_c_condition, read_rtx_filename)
17798         (read_rtx_lineno): Move to read-md.h.
17799         * read-rtl.c: Include read-md.h.
17800         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
17801         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
17802         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
17803         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
17804         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
17805         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
17806         (read_braced_string, read_string): Move to read-md.c.
17807         (read_rtx): Move some initialization to init_md_reader and call
17808         init_md_reader here.
17809         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
17810         Move to read-md.h.
17811         * gensupport.c: Include read-md.h.
17812         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
17813         * read-md.h, read-md.c: New files.
17814
17815 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
17816
17817         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17818         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17819         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
17820         * config/moxie/moxie.c (moxie_function_value): Make static.
17821         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
17822         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17823
17824 2010-06-10  Martin Jambor  <mjambor@suse.cz>
17825
17826         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
17827         * dbgcnt.def (tree_sra): New counter.
17828         * tree-sra.c: Include dbgcnt.h.
17829         (gate_intra_sra): Check tree_sra debug counter.
17830
17831 2010-06-10  Martin Jambor  <mjambor@suse.cz>
17832
17833         PR tree-optimization/44258
17834         * tree-sra.c (build_access_subtree): Return false iff there is a
17835         partial overlap.
17836         (build_access_trees): Likewise.
17837         (analyze_all_variable_accesses): Disqualify candidates if
17838         build_access_trees returns true for them.
17839
17840 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
17841
17842         PR debug/41371
17843         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
17844         tail-recurse into canonical node.  Fast-forward over
17845         non-canonical VALUEs.
17846
17847 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
17848
17849         PR boostrap/44470
17850         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
17851         (*addsi_1_zext) <TYPE_LEA>: Likewise.
17852         (add lea splitter): Likewise.
17853         (add_zext lea splitter): Likewise.
17854
17855 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
17856
17857         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
17858
17859 2010-06-10  Jan Hubicka  <jh@suse.cz>
17860
17861         * df-problems.c (df_live_problem_data): Add live_bitmaps.
17862         (df_live_alloc): Initialize problem data and live_osbtacks.
17863         (df_live_finalize): Remove obstack, problem data; do not
17864         clear all bitmaps.
17865         (df_live_top_dump, df_live_bottom_dump): Do not dump old
17866         data when not allocated.
17867         (df_live_verify_solution_start): Do not allocate problem data.
17868         (df_live_verify_solution_end): Check if out is allocated.
17869         (struct df_md_problem_data): New structure.
17870         (df_md_alloc): Allocate problem data.
17871         (df_md_free): Free problem data; do not clear bitmaps.
17872
17873 2010-06-10  Jan Beulich  <jbeulich@novell.com>
17874
17875         PR bootstrap/37304
17876         * configure.ac: Replace $() with ${} when intending to expand
17877         variables rather than invoking commands.
17878         * configure: Re-generate.
17879
17880 2010-06-10  Jan Hubicka  <jh@suse.cz>
17881
17882         PR rtl-optimization/44460
17883         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
17884         TYPE_NEEDS_CONSTRUCTING sanity check.
17885
17886 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17887
17888         * doc/include/fdl.texi: Move to GFDL version 1.3.
17889
17890         * doc/cpp.texi: Move to GFDL version 1.3.
17891         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
17892         * doc/gccint.texi: Move to GFDL version 1.3.
17893         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
17894         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
17895         * doc/invoke.texi: Move to GFDL version 1.3.
17896
17897 2010-06-09  Jan Hubicka  <jh@suse.cz>
17898
17899         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
17900         Break out from ...
17901         (propagate) ... here; swap the order.
17902
17903 2010-06-09  Jan Hubicka  <jh@suse.cz>
17904
17905         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
17906         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
17907         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
17908         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
17909
17910 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
17911
17912         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
17913         Do not the gather memory reference in the outer loop if the step
17914         is not a constant.
17915
17916 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
17917
17918         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
17919         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
17920         8 to 4.  Minor change of the related comments.
17921
17922 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
17923
17924         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
17925         the scev analysis when the variable is not used outside the loop
17926         in a close phi node: call compute_overall_effect_of_inner_loop.
17927
17928 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
17929
17930         * graphite-sese-to-poly.c (single_pred_cond): Renamed
17931         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
17932         (build_sese_conditions_before): Renamed call to single_pred_cond.
17933         (build_sese_conditions_after): Same.
17934
17935 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
17936
17937         * graphite-poly.h: Fix comments and indentation.
17938         * graphite-sese-to-poly.c: Same.
17939         (build_sese_conditions_before): Compute stmt and gbb only when needed.
17940         * tree-chrec.c: Fix comments and indentation.
17941         (tree-ssa-loop-niter.c): Same.
17942
17943 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
17944
17945         PR rtl-optimization/42461
17946         * dce.c (deletable_insn_p): Return true for const or pure calls again.
17947         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
17948
17949 2010-06-09  Jan Hubicka  <jh@suse.cz>
17950
17951         * bitmap.c (bitmap_and): Walk array forward.
17952         (bitmap_and_compl_into): Likewise.
17953         (bitmap_xor): Likewise.
17954         (bitmap_xor_into):  Likewise.
17955         (bitmap_equal_p): Likewise.
17956         (bitmap_intersect_p): Likewise.
17957         (bitmap_intersect_compl_p): Likewise.
17958         (bitmap_ior_and_into): Likewise.
17959         (bitmap_elt_copy): Likewise.
17960         (bitmap_and_compl): Likewise.
17961         (bitmap_elt_ior): Likewise.
17962
17963 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
17964
17965         * opts-common.c (prune_options): Ensure replacement argv array
17966         is correctly terminated by a NULL entry.
17967
17968 2010-06-09  Jan Hubicka  <jh@suse.cz>
17969
17970         * cgraph.h (varpool_first_static_initializer,
17971         varpool_next_static_initializer): Make checking only when
17972         checking enabled.
17973         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
17974         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
17975         gcc_assert to gcc_checking_assert.
17976         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
17977         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
17978         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
17979         op_iter_init_phiuse, op_iter_init_phidef,
17980         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
17981         gcc_checking_assert.
17982         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
17983         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
17984         partition_is_global, live_on_entry, live_on_exit,
17985         live_merge_and_clear): Likewise.
17986         * system.h (gcc_checking_assert): New macro.
17987         * gimple.h (set_bb_seq): Use gcc_checking_assert.
17988
17989 2010-06-09  Jason Merrill  <jason@redhat.com>
17990
17991         * Makefile.in (TAGS): Collect tags info from c-family.
17992
17993 2010-06-09  Jan Hubicka  <jh@suse.cz>
17994
17995         * gimple.h (gcc_gimple_checking_assert): New macro.
17996         (gimple_set_def_ops, gimple_set_use_ops,
17997         gimple_set_vuse, gimple_set_vdef,
17998         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
17999         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
18000         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
18001         gimple_asm_output_op, gimple_asm_output_op_ptr,
18002         gimple_asm_set_output_op, gimple_asm_clobber_op,
18003         gimple_asm_set_clobber_op, gimple_asm_label_op,
18004         gimple_asm_set_label_op, gimple_try_set_kind,
18005         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
18006         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
18007         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
18008         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
18009         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
18010         gimple_omp_for_set_initial, gimple_omp_for_final,
18011         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
18012         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
18013         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
18014         conditional with ENABLE_GIMPLE_CHECKING.
18015         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
18016
18017 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
18018
18019         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
18020         (get_computation_cost_at): Use it.
18021         (determine_use_iv_cost_condition): Likewise.
18022         (determine_iv_cost): Likewise.
18023
18024 2010-06-09  Richard Guenther  <rguenther@suse.de>
18025
18026         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
18027         replace constants.
18028
18029 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
18030
18031         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
18032
18033 2010-06-09  Martin Jambor  <mjambor@suse.cz>
18034
18035         PR tree-optimization/44423
18036         * tree-sra.c (dump_access): Dump also grp_assignment_read.
18037         (analyze_access_subtree): Pass negative allow_replacements to children
18038         if the current type is scalar.
18039
18040 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
18041
18042         PR testsuite/42843
18043         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
18044         * doc/plugins.texi (Plugin license check): Update information
18045         on type of plugin_is_GPL_compatible.
18046         * Makefile.in (PLUGINCC): Define as $(COMPILER).
18047         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
18048
18049 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
18050
18051         * config/arm/arm.c (thumb2_reorg): New function.
18052         (arm_reorg): Call it.
18053         * config/arm/thumb2.md (define_peephole2 for flag clobbering
18054         arithmetic operations): Delete.
18055
18056 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
18057
18058         PR target/44067
18059         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
18060         e500v2 target.
18061
18062 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
18063
18064         PR plugins/44459
18065         * gcc-plugin.h: Encapsulate all declarations in extern "C".
18066
18067 2010-06-08  Jan Hubicka  <jh@suse.cz>
18068
18069         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
18070         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
18071
18072 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
18073
18074         PR tree-optimization/39874
18075         PR middle-end/28685
18076         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
18077         Declare.
18078         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
18079         same_bool_result_p): New.
18080         (and_var_with_comparison, and_var_with_comparison_1,
18081         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
18082         (or_var_with_comparison, or_var_with_comparison_1,
18083         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
18084         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
18085         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
18086         of combine_comparisons.
18087         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
18088
18089 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
18090
18091         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18092         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18093         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
18094         pdp11_function_value_regno_p): New functions.
18095         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18096         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18097
18098 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
18099
18100         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
18101         Thumb-2 in the MINUS case.
18102
18103 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18104
18105         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
18106
18107         * doc/gty.texi (GTY Options): Document typed GC allocation and
18108         variable_size GTY option.
18109
18110         * ggc-internal.h: New.
18111
18112         * ggc.h: Update copyright year.
18113         (digit_string): Move to stringpool.c.
18114         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
18115         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
18116         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
18117         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
18118         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
18119         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
18120         (ggc_force_collect, ggc_get_size, ggc_statistics)
18121         (ggc_print_common_statistics): Move to ggc-internal.h.
18122         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
18123         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
18124         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
18125         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
18126         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
18127         (ggc_alloc_zone_pass_stat): Remove.
18128         (ggc_internal_alloc_stat, ggc_internal_alloc)
18129         (ggc_internal_cleared_alloc_stat): New.
18130         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
18131         (ggc_internal_vec_alloc_stat)
18132         (ggc_internal_cleared_vec_alloc_stat)
18133         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
18134         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
18135         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
18136         (ggc_cleared_alloc_ptr_array_two_args): New.
18137         (htab_create_ggc, splay_tree_new_ggc): Redefine.
18138         (ggc_splay_alloc): Change the type of the first argument to
18139         enum gt_types_enum.
18140         (ggc_alloc_string): Make macro.
18141         (ggc_alloc_string_stat): New.
18142         (ggc_strdup): Redefine.
18143         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
18144         (ggc_alloc_rtvec_sized): New.
18145         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
18146         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
18147         (ggc_internal_cleared_alloc_zone_stat)
18148         (ggc_internal_zone_alloc_stat)
18149         (ggc_internal_zone_cleared_alloc_stat)
18150         (ggc_internal_zone_vec_alloc_stat)
18151         (ggc_alloc_zone_rtx_def_stat)
18152         (ggc_alloc_zone_tree_node_stat)
18153         (ggc_alloc_zone_cleared_tree_node_stat)
18154         (ggc_alloc_cleared_gimple_statement_d_stat): New.
18155
18156         * ggc-common.c: Include ggc-internal.h.
18157         (ggc_internal_cleared_alloc_stat): Rename from
18158         ggc_alloc_cleared_stat.
18159         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
18160         (ggc_calloc): Remove.
18161         (ggc_cleared_alloc_htab_ignore_args): New.
18162         (ggc_cleared_alloc_ptr_array_two_args): New.
18163         (ggc_splay_alloc): Add obj_type parameter.
18164         (init_ggc_heuristics): Formatting fixes.
18165
18166         * ggc-none.c: Update copyright year.
18167         (ggc_alloc_stat): Rename to ggc_alloc_stat.
18168         (ggc_alloc_cleared_stat): Rename to
18169         ggc_internal_cleared_alloc_stat.
18170         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
18171
18172         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
18173         Remove references to ggc_alloc in comments.
18174         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
18175         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
18176         (new_ggc_zone, destroy_ggc_zone): Remove.
18177         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
18178
18179         * ggc-zone.c: Include ggc-internal.h.  Remove references to
18180         ggc_alloc in comments.
18181         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
18182         (ggc_internal_alloc_zone_pass_stat): New.
18183         (ggc_internal_cleared_alloc_zone_stat): New.
18184         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
18185         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
18186         (new_ggc_zone, destroy_ggc_zone): Remove.
18187
18188         * stringpool.c: Update copyright year.  Include ggc-internal.h
18189         (digit_vector): Make static.
18190         (digit_string): Moved from ggc.h.
18191         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
18192         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
18193
18194         * Makefile.in (GGC_INTERNAL_H): New.
18195         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
18196         $(GGC_INTERNAL_H) to dependencies.
18197
18198         * gentype.c: Update copyright year.
18199         (walk_type): Accept variable_size GTY option.
18200         (USED_BY_TYPED_GC_P): New macro.
18201         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
18202         whitespace at the end of strings.
18203         (get_type_specifier, variable_size_p): New functions.
18204         (alloc_quantity, alloc_zone): New enums.
18205         (write_typed_alloc_def): New function.
18206         (write_typed_struct_alloc_def): Likewise.
18207         (write_typed_typed_typedef_alloc_def): Likewise.
18208         (write_typed_alloc_defns): Likewise.
18209         (output_typename, write_splay_tree_allocator_def): Likewise.
18210         (write_splay_tree_allocators): Likewise.
18211         (main): Call write_typed_alloc_defns and
18212         write_splay_tree_allocators.
18213
18214         * lto-streamer.h (lto_file_decl_data_ptr): New.
18215
18216         * passes.c (order): Define using cgraph_node_ptr.
18217
18218         * strinpool.c (struct string_pool_data): Declare nested_ptr using
18219         ht_identifier_ptr.
18220
18221         * gimple.h (union gimple_statement_d): Likewise.
18222
18223         * rtl.h (struct rtx_def): Likewise.
18224         (struct rtvec_def): Likewise.
18225
18226         * tree.h (union tree_node): Likewise.
18227
18228         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
18229
18230         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
18231
18232         * tree-scalar-evolution.c (scev_initialize): Likewise.
18233
18234         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
18235
18236         * dwarf2asm.c (dw2_force_const_mem): Likewise.
18237
18238         * omp-low.c (lower_omp_critical): Likewise.
18239
18240         * bitmap.h (struct bitmap_head_def): Update comment to not
18241         reference ggc_alloc.
18242
18243         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
18244
18245         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
18246
18247         * ipa-prop.c (duplicate_ggc_array): Rename to
18248         duplicate_ipa_jump_func_array.  Use typed GC allocation.
18249         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
18250
18251         * gimple.c (gimple_alloc_stat): Use
18252         ggc_alloc_cleared_gimple_statement_d_stat.
18253
18254         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
18255
18256         * tree.c (make_node_stat): Use
18257         ggc_alloc_zone_cleared_tree_node_stat.
18258         (make_tree_vec_stat): Likewise.
18259         (build_vl_exp_stat): Likewise.
18260         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
18261         (make_tree_binfo_stat): Likewise.
18262         (tree_cons_stat): Likewise.
18263
18264         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
18265         (shallow_copy_rtx_stat): Likewise.
18266         (make_node_stat): Likewise.
18267
18268         * lto-symtab.c: Fix comment.
18269
18270         * tree-cfg.c (create_bb): Update comment to not reference
18271         ggc_alloc_cleared.
18272         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
18273
18274         * varpool.c (varpool_node): Use typed GC allocation.
18275         (varpool_extra_name_alias): Likewise.
18276
18277         * varasm.c (emutls_decl): Likewise.
18278         (get_unnamed_section): Likewise.
18279         (get_noswitch_section): Likewise.
18280         (get_section): Likewise.
18281         (get_block_for_section): Likewise.
18282         (build_constant_desc): Likewise.
18283         (create_constant_pool): Likewise.
18284         (force_const_mem): Likewise.
18285
18286         * tree.c (build_vl_exp_stat): Likewise.
18287         (build_real): Likewise.
18288         (build_string): Likewise.
18289         (decl_debug_expr_insert): Likewise.
18290         (decl_value_expr_insert): Likewise.
18291         (type_hash_add): Likewise.
18292         (build_omp_clause): Likewise.
18293
18294         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
18295
18296         * tree-ssa.c (init_tree_ssa): Likewise.
18297
18298         * tree-ssa-structalias.c (heapvar_insert): Likewise.
18299
18300         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
18301
18302         * tree-ssa-loop-niter.c (record_estimate): Likewise.
18303
18304         * tree-ssa-alias.c (get_ptr_info): Likewise.
18305
18306         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
18307
18308         * tree-phinodes.c (allocate_phi_node): Likewise.
18309
18310         * tree-iterator.c (tsi_link_before): Likewise.
18311         (tsi_link_after): Likewise.
18312
18313         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
18314
18315         * tree-dfa.c (create_var_ann): Likewise.
18316
18317         * tree-cfg.c (create_bb): Likewise.
18318
18319         * toplev.c (alloc_for_identifier_to_locale): Likewise.
18320         (general_init): Likewise.
18321
18322         * stringpool.c (stringpool_ggc_alloc): Likewise.
18323         (gt_pch_save_stringpool): Likewise.
18324
18325         * sese.c (if_region_set_false_region): Likewise.
18326
18327         * passes.c (do_per_function_toporder): Likewise.
18328
18329         * optabs.c (set_optab_libfunc): Likewise.
18330         (set_conv_libfunc): Likewise.
18331
18332         * lto-symtab.c (lto_symtab_register_decl): Likewise.
18333
18334         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
18335         (input_eh_region): Likewise.
18336         (input_eh_lp): Likewise.
18337         (make_new_block): Likewise.
18338         (unpack_ts_real_cst_value_fields): Likewise.
18339
18340         * lto-section-in.c (lto_new_in_decl_state): Likewise.
18341
18342         * lto-cgraph.c (input_node_opt_summary): Likewise.
18343
18344         * loop-init.c (loop_optimizer_init): Likewise.
18345
18346         * lambda.h (lambda_vector_new): Likewise.
18347
18348         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
18349
18350         * ira.c (update_equiv_regs): Likewise.
18351
18352         * ipa.c (cgraph_node_set_new): Likewise.
18353         (cgraph_node_set_add): Likewise.
18354         (varpool_node_set_new): Likewise.
18355         (varpool_node_set_add): Likewise.
18356
18357         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
18358         (duplicate_ipa_jump_func_array): Likewise.
18359         (ipa_read_node_info): Likewise.
18360
18361         * ipa-cp.c (ipcp_create_replace_map): Likewise.
18362
18363         * integrate.c (get_hard_reg_initial_val): Likewise.
18364
18365         * gimple.c (gimple_alloc_stat): Likewise.
18366         (gimple_build_omp_for): Likewise.
18367         (gimple_seq_alloc): Likewise.
18368         (gimple_copy): Likewise.
18369
18370         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
18371         (gsi_insert_after_without_update): Likewise.
18372
18373         * function.c (add_frame_space): Likewise.
18374         (insert_temp_slot_address): Likewise.
18375         (assign_stack_temp_for_type): Likewise.
18376         (allocate_struct_function): Likewise.
18377         (types_used_by_var_decl_insert): Likewise.
18378
18379         * except.c (init_eh_for_function): Likewise.
18380         (gen_eh_region): Likewise.
18381         (gen_eh_region_catch): Likewise.
18382         (gen_eh_landing_pad): Likewise.
18383         (add_call_site): Likewise.
18384
18385         * emit-rtl.c (get_mem_attrs): Likewise.
18386         (get_reg_attrs): Likewise.
18387         (start_sequence): Likewise.
18388         (init_emit): Likewise.
18389
18390         * dwarf2out.c (new_cfi): Likewise.
18391         (queue_reg_save): Likewise.
18392         (dwarf2out_frame_init): Likewise.
18393         (new_loc_descr): Likewise.
18394         (find_AT_string): Likewise.
18395         (new_die): Likewise.
18396         (add_var_loc_to_decl): Likewise.
18397         (clone_die): Likewise.
18398         (clone_as_declaration): Likewise.
18399         (break_out_comdat_types): Likewise.
18400         (new_loc_list): Likewise.
18401         (loc_descriptor): Likewise.
18402         (add_loc_descr_to_each): Likewise.
18403         (add_const_value_attribute): Likewise.
18404         (tree_add_const_value_attribute): Likewise.
18405         (add_comp_dir_attribute): Likewise.
18406         (add_name_and_src_coords_attributes): Likewise.
18407         (lookup_filename): Likewise.
18408         (store_vcall_insn): Likewise.
18409         (dwarf2out_init): Likewise.
18410
18411         * dbxout.c (dbxout_init): Likewise.
18412
18413         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
18414
18415         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
18416
18417         * config/score/score7.c (score7_output_external): Likewise.
18418
18419         * config/score/score3.c (score3_output_external): Likewise.
18420
18421         * config/s390/s390.c (s390_init_machine_status): Likewise.
18422
18423         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
18424         (rs6000_init_machine_status): Likewise.
18425         (output_toc): Likewise.
18426
18427         * config/pa/pa.c (pa_init_machine_status): Likewise.
18428         (get_deferred_plabel): Likewise.
18429
18430         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18431
18432         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18433
18434         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18435
18436         * config/mep/mep.c (mep_init_machine_status): Likewise.
18437         (mep_note_pragma_flag): Likewise.
18438
18439         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18440
18441         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18442
18443         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18444
18445         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18446         (i386_pe_maybe_record_exported_symbol): Likewise.
18447
18448         * config/i386/i386.c (get_dllimport_decl): Likewise.
18449         (ix86_init_machine_status): Likewise.
18450         (assign_386_stack_local): Likewise.
18451
18452         * config/frv/frv.c (frv_init_machine_status): Likewise.
18453
18454         * config/darwin.c (machopic_indirection_name): Likewise.
18455
18456         * config/cris/cris.c (cris_init_machine_status): Likewise.
18457
18458         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18459
18460         * config/avr/avr.c (avr_init_machine_status): Likewise.
18461
18462         * config/arm/arm.c (arm_init_machine_status): Likewise.
18463
18464         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18465         (alpha_need_linkage): Likewise.
18466         (alpha_use_linkage): Likewise.
18467
18468         * cgraph.c (cgraph_allocate_node): Likewise.
18469         (cgraph_create_edge_1): Likewise.
18470         (cgraph_create_indirect_edge): Likewise.
18471         (cgraph_add_asm_node): Likewise.
18472
18473         * cfgrtl.c (init_rtl_bb_info): Likewise.
18474
18475         * cfgloop.c (alloc_loop): Likewise.
18476         (rescan_loop_exit): Likewise.
18477
18478         * cfg.c (init_flow): Likewise.
18479         (alloc_block): Likewise.
18480         (unchecked_make_edge): Likewise.
18481
18482         * c-parser.c (c_parse_init): Likewise.
18483         (c_parse_file): Likewise.
18484
18485         * c-decl.c (bind): Likewise.
18486         (record_inline_static): Likewise.
18487         (push_scope): Likewise.
18488         (make_label): Likewise.
18489         (lookup_label_for_goto): Likewise.
18490         (finish_struct): Likewise.
18491         (finish_enum): Likewise.
18492         (c_push_function_context): Likewise.
18493
18494         * bitmap.c (bitmap_element_allocate): Likewise.
18495         (bitmap_gc_alloc_stat): Likewise.
18496
18497         * alias.c (record_alias_subset): Likewise.
18498         (init_alias_analysis): Likewise.
18499
18500 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
18501
18502         * fold-const.c (fold_comparison): Remove redundant parenthesis.
18503         * tree-inline.c (expand_call_inline): Pass translated return value of
18504         cgraph_inline_failed_string to diagnostic function.
18505
18506 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
18507             Shujing Zhao  <pearly.zhao@oracle.com>
18508
18509         PR c/37724
18510         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
18511         implicit bad conversions is initialization.
18512         (error_init): Use gmsgid instead of msgid for argument name and change
18513         the call for error.
18514         (pedwarn_init): Use gmsgid instead of msgid for argument name and
18515         change the call for pedwarn.
18516         (warning_init): Use gmsgid instead of msgid for argument name and
18517         change the call for warning.
18518
18519 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
18520
18521         * config/mips/mips-protos.h (mips_print_operand): Delete.
18522         (mips_print_operand_address): Delete.
18523         * config/mips/mips.h (mips_print_operand_punct): Delete.
18524         (PRINT_OPERAND): Delete.
18525         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18526         (PRINT_OPERAND_ADDRESS): Delete.
18527         * config/mips/mips.c (mips_print_operand_punct): Make static.
18528         (mips_print_operand_address): Make static.
18529         (mips_print_operand): Make static.  Call
18530         mips_print_operand_punct_valid_p.
18531         (mips_print_operand_punct_valid_p): New function.
18532         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18533         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18534
18535 2010-06-07  Jan Hubicka  <jh@suse.cz>
18536
18537         PR middle-end/44454
18538         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
18539         are allocated.
18540
18541 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18542
18543         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
18544         name of RECORD.
18545
18546 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18547
18548         * doc/sourcebuild.texi (Effective-Target Keywords, Other
18549         attributes): Document gas.
18550
18551 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
18552
18553         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
18554         <TYPE_LEA>: Split instruction.
18555         <default>: Remove alternative 2 handling.
18556         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
18557         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
18558         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
18559
18560         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
18561         (ashift_zext lea splitter): Use DImode for multiplication.
18562
18563         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
18564         to generate addition.
18565
18566 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
18567
18568         * common.opt (fira-verbose): Use Var.
18569         (fpcc-struct-return): Use Init instead of VarExists.
18570         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
18571         toplev.c.
18572         * flags.h (flag_signed_char, flag_short_enums,
18573         flag_pcc_struct_return, flag_ira_verbose,
18574         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
18575         * toplev.c (flag_detailed_statistics, flag_signed_char,
18576         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
18577         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
18578         * toplev.h (flag_crossjumping, flag_if_conversion,
18579         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
18580         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
18581         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
18582         flag_cprop_registers, time_report, flag_ira_loop_pressure,
18583         flag_ira_coalesce, flag_ira_move_spills,
18584         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
18585
18586 2010-06-07  Jan Hubicka  <jh@suse.cz>
18587
18588         * df-core.c (df_analyze_problem): Do verification after allocation.
18589
18590         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
18591         (df_lr_alloc): Initialize problem data; move bitmaps to
18592         lr_bitmaps obstack.
18593         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
18594         (df_lr_verify_solution_start): Do not initialize problem data;
18595         allocate bitmaps in lr_bitmaps.
18596         (df_lr_verify_solution_end): Do not free problem data.
18597
18598 2010-06-07  Jan Hubicka  <jh@suse.cz>
18599
18600         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
18601         if caller is noreturn.
18602         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
18603         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
18604         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
18605         * ipa-pure-const.c (check_decl): Add IPA parameter.
18606         (state_from_flags): New function.
18607         (better_state, worse_state): New functions.
18608         (check_call): When in IPA mode, do not care about callees.
18609         (check_load, check_store): Update.
18610         (check_ipa_load, check_ipa_store): New.
18611         (check_stmt): When in IPA mode, use IPA checkers.
18612         (analyze_function): Use state_from_flags.
18613         (propagate): Check indirect edges and references.
18614
18615 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
18616
18617         PR rtl-optimization/44404
18618         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
18619         of count_occurrences to see if it's safe to modify mem_insn.
18620
18621 2010-06-07  Richard Guenther  <rguenther@suse.de>
18622
18623         * gimplify.c (gimplify_cleanup_point_expr): For empty body
18624         and EH-only cleanup drop the cleanup instead of inserting it
18625         unconditionally.
18626
18627 2010-06-07  Ira Rosen  <irar@il.ibm.com>
18628
18629         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
18630         documentation.
18631         * targhooks.c (default_builtin_vectorization_cost): New function.
18632         * targhooks.h (default_builtin_vectorization_cost): Declare.
18633         * target.h (enum vect_cost_for_stmt): Define.
18634         (builtin_vectorization_cost): Change argument and comment.
18635         * tree-vectorizer.h: Remove cost model macros.
18636         * tree-vect-loop.c: Include target.h.
18637         (vect_get_cost): New function.
18638         (vect_estimate_min_profitable_iters): Replace cost model macros with
18639         calls to vect_get_cost.
18640         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
18641         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
18642         default implementation.
18643         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
18644         calls to target hook builtin_vectorization_cost.
18645         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
18646         Likewise.
18647         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
18648         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
18649         implementation to return costs.
18650         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
18651         * config/spu/spu.h: Remove vectorizer cost model macros.
18652         * config/i386/i386.h: Likewise.
18653         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
18654         a call to target hook builtin_vectorization_cost.
18655
18656 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
18657
18658         PR target/44319
18659         * config/i386/i386.c (override_options): Turn zee pass on for level 2
18660         and above and defer till target is known.
18661         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
18662         turn off otherwise.
18663
18664 2010-05-25  Jan Hubicka  <jh@suse.cz>
18665
18666         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
18667         (df_compact_blocks): Likewise.
18668         * df.h (struct df): Turn hardware_regs_used,
18669         regular_block_artificial_uses, eh_block_artificial_uses,
18670         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
18671         bitmap_head.
18672         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
18673         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
18674         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
18675         df_scan_blocks, df_insn_delete, df_insn_rescan,
18676         df_insn_rescan_debug_internal, df_insn_rescan_all,
18677         df_process_deferred_rescans, df_process_deferred_rescans,
18678         df_notes_rescan, df_get_call_refs, df_get_call_refs,
18679         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
18680         df_record_entry_block_defs, df_record_exit_block_uses,
18681         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
18682         df_scan_verify): Update.
18683
18684 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
18685
18686         PR c++/44188
18687         * c-common.c (is_typedef_decl): Move this definition ...
18688         * tree.c (is_typedef_decl): ... here.
18689         (typdef_variant_p): Move definition here from cp/tree.c.
18690         * c-common.h (is_typedef_decl): Move this declaration ...
18691         * tree.h (is_typedef_decl): ... here.
18692         (typedef_variant_p): Move declaration here from cp/cp-tree.h
18693         * dwarf2out.c (is_naming_typedef_decl): New function.
18694         (gen_tagged_type_die): Split out of ...
18695         (gen_type_die_with_usage): ... this function. When an anonymous
18696         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18697         is emitted for the typedef.
18698         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18699         anonymous tagged types.
18700
18701 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18702
18703         PR c/20000
18704         * c-decl.c (grokdeclarator): Delete warning.
18705
18706 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18707
18708         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
18709         newly built CALL_EXPR.
18710         * tree-profile.c (tree_profiling): Don't profile functions produced
18711         for built-in stuff.
18712
18713 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
18714
18715         PR bootstrap/44427
18716         PR bootstrap/44428
18717         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
18718         endianness-independent.
18719
18720 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
18721
18722         * c-common.c: Move to c-family/.
18723         * c-common.def: Likewise.
18724         * c-common.h: Likewise.
18725         * c-cppbuiltin.c: Likewise.
18726         * c-dump.c: Likewise.
18727         * c-format.c: Likewise.
18728         * c-format.h : Likewise.
18729         * c-gimplify.c: Likewise.
18730         * c-lex.c: Likewise.
18731         * c-omp.c: Likewise.
18732         * c.opt: Likewise.
18733         * c-opts.c: Likewise.
18734         * c-pch.c: Likewise.
18735         * c-ppoutput.c: Likewise.
18736         * c-pragma.c: Likewise.
18737         * c-pragma.h: Likewise.
18738         * c-pretty-print.c: Likewise.
18739         * c-pretty-print.h: Likewise.
18740         * c-semantics.c: Likewise.
18741         * stub-objc.c: Likewise.
18742
18743         * gengtype.c (get_file_langdir): Special-case files in c-family/.
18744         (get_output_file_with_visibility): Fix name for c-common.h.
18745         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
18746
18747         * c-tree.h: Update include path for moved files.
18748         * c-lang.c: Likewise.
18749         * c-lang.h: Likewise.
18750         * c-parser.c: Likewise.
18751         * c-convert.c: Likewise.
18752         * c-decl.c: Likewise.
18753         * c-objc-common.c: Likewise.
18754         * configure.ac: Make sure c-family/ exists in the build directory.
18755         * configure: Regenerate.
18756         * Makefile.in: Update paths for moved files.  Regroup files per
18757         location and update dependencies.  Move generated_files down after
18758         ALL_GTFILES_H.
18759
18760         * config/spu/spu-c.c: Update paths for moved files.
18761         * config/mep/mep-pragma.c: Likewise.
18762         * config/darwin-c.c: Likewise.
18763         * config/i386/msformat-c.c: Likewise.
18764         * config/i386/i386-c.c: Likewise.
18765         * config/avr/avr-c.c: Likewise.
18766         * config/sol2-c.c: Likewise.
18767         * config/ia64/ia64-c.c: Likewise.
18768         * config/rs6000/rs6000-c.c: Likewise.
18769         * config/arm/arm.c: Likewise.
18770         * config/arm/arm-c.c: Likewise.
18771         * config/h8300/h8300.c: Likewise.
18772         * config/v850/v850-c.c: Likewise.
18773
18774         * config/t-darwin: Fix dependencies for moved files.
18775         * config/t-sol2: Fix dependencies for moved files.
18776         * config/mep/t-mep: Fix dependencies for moved files.
18777         * config/ia64/t-ia64: Fix dependencies for moved files.
18778         * config/rs6000/t-rs6000: Fix dependencies for moved files.
18779         * config/v850/t-v850: Fix dependencies for moved files.
18780         * config/v850/t-v850e: Fix dependencies for moved files.
18781
18782         * config/m32c/m32c-pragma.c
18783
18784         * po/exgettext: Look in c-family/ also.
18785
18786 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
18787
18788         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
18789         (mark_control_dependent_edges_necessary): Call it instead of marking
18790         the last statement manually.
18791         (propagate_necessity): Likewise.
18792
18793 2010-06-05  Jan Hubicka  <jh@suse.cz>
18794
18795         * basic-block.h (compute_dominance_frontiers): Updated.
18796         (compute_idf): Likewise.
18797
18798         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
18799         for dominance frontiers.
18800         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
18801         (insert_updated_phi_nodes_for): Likewise.
18802         (update_ssa): Likewise.
18803         * cfganal.c (compute_dominance_frontiers_1): Likewise.
18804         (compute_dominance_frontiers): Likewise.
18805         (compute_idf): Likewise.
18806         * df-problems.c (df_md_local_compute): Likewise.
18807
18808 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
18809
18810         * target.h (struct gcc_target): Add memory_move_cost field.
18811         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
18812         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
18813         * targhooks.c (default_memory_move_cost): New function.
18814         * targhooks.h (default_memory_move_cost): Declare function.
18815         * reload.h (memory_move_cost): Declare.
18816         (memory_move_secondary_cost): Change type of 'in' argument to bool.
18817         * reginfo.c (memory_move_cost): New function.
18818         (memory_move_secondary_cost): Change type of 'in' argument to bool.
18819         * ira.h (ira_memory_move_cost): Update comment.
18820         * ira.c (ira_memory_move_cost): Update comment.
18821         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
18822         with memory_move_cost.
18823         * postreload.c (reload_cse_simplify_set): (Ditto.).
18824         * reload1.c (choose_reload_regs): (Ditto.).
18825         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
18826         (MEMORY_MOVE_COST):  Revise documentation.
18827
18828         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18829         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18830         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
18831         type of 'in' argument to bool.
18832         (TARGET_MEMORY_MOVE_COST): Define.
18833
18834 2010-06-05  Jan Hubicka  <jh@suse.cz>
18835
18836         * ipa-pure-const.c (propagate): Fix typo in handling of functions
18837         that cannot return.  Be more careful when merging the results with
18838         previously known ones.
18839
18840 2010-06-05  Matthias Klose  <doko@ubuntu.com>
18841
18842         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
18843         function to add the -iplugindir option.
18844         (find_plugindir_spec_function): Add new declaration and function.
18845         (static_spec_func): Use it for "find-plugindir".
18846
18847 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
18848
18849         PR c++/44361
18850         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
18851         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
18852         statement expression.
18853
18854 2010-06-05  Jan Hubicka  <jh@suse.cz>
18855
18856         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
18857         (df_rd_problem_data): Convert sparse_invalidated_by_call,
18858         dense_invalidated_by_call to bitmap head.
18859         (df_rd_alloc, df_rd_bb_local_compute_process_def,
18860         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
18861         df_rd_start_dump, df_lr_verify_transfer_functions,
18862         df_live_verify_transfer_functions, df_chain_create_bb,
18863         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
18864         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
18865         df_simulate_one_insn_forwards, df_md_alloc,
18866         df_md_bb_local_compute_process_def,
18867         df_md_bb_local_compute_process_def, df_md_local_compute,
18868         df_md_transfer_function df_md_free): Update.
18869
18870 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
18871
18872         PR c/44322
18873         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
18874         target type for ADDR_EXPR; require no changes to qualifiers except
18875         for function types.
18876         * c-tree.h (c_build_type_variant): Remove.
18877
18878 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
18879
18880         * genautomata.c (get_excl_set): Do work per element, not per char.
18881         (check_presence_pattern_sets): Similar.
18882         (check_absence_pattern_sets): Similar.
18883
18884 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
18885
18886         * genautomata.c (curr_state_pass_num): Delete.
18887         (min_issue_delay_pass_states): Delete.
18888         (min_issue_delay): Delete.
18889         (initiate_min_issue_delay_pass_states): Delete.
18890         (output_min_issue_delay_table): Compute min_issue_delay_vect
18891         using a breadth-first search variant.
18892         (output_tables): Don't call initiate_min_issue_delay_pass_states.
18893
18894 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
18895
18896         PR boostrap/44421
18897         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
18898         (df_byte_lr_bb_local_compute): Likewise.
18899
18900 2010-06-03  Jason Merrill  <jason@redhat.com>
18901
18902         Implement noexcept operator (5.3.7)
18903         * c-common.c (c_common_reswords): Add noexcept.
18904         * c-common.h (enum rid): Add RID_NOEXCEPT.
18905
18906 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
18907
18908         * config/darwin-driver.c (darwin_default_min_version): Use
18909         GCC-specific formats in diagnostics.
18910         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
18911         diagnostics.
18912         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
18913         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
18914         eval_spec_function, handle_braces, process_brace_body, main,
18915         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
18916         getenv_spec_function, compare_version_strings,
18917         version_compare_spec_function): Use GCC-specific formats in
18918         diagnostics.
18919
18920 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
18921
18922         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
18923         that operand 0 and operand 1 are equal.
18924         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
18925         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
18926         and operand 1 are equal.
18927         <default>: Ditto.  Remove ??? comment.
18928         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
18929         and operand 1 are equal.
18930         <default>: Ditto.  Remove ??? comment.
18931         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
18932         are equal.
18933         (*add<mode>_4) <default>: Ditto.
18934         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
18935
18936 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
18937
18938         * config/i386/i386-protos.h (ix86_print_operand): Declare.
18939         * config/i386/i386.c (ix86_print_operand): Make non-static.
18940         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
18941         * output.h (output_operand): Declare.
18942         * final.c (output_operand): Make non-static.
18943
18944 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
18945
18946         PR rtl-optimization/44013
18947         * sched-deps.c (add_dependence_list_and_free): Don't free lists
18948         when processing debug insns.
18949
18950         PR debug/41371
18951         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
18952         recursing.  Check that recursion is bounded.  Rename inner var
18953         to avoid hiding incoming argument.
18954
18955 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
18956
18957         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
18958         operands[2] == 255.
18959         (*addqi_3): Ditto.
18960         (*addqi_4): Ditto.
18961         (*addqi_5): Ditto.
18962         (*addqi_ext_1_rex64): Ditto.
18963         (*addqi_ext_1): Ditto.
18964
18965         (*addqi_4): Check for incdec_operand in QImode.
18966
18967         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
18968         using SWI mode iterator.
18969         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
18970         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
18971         mode iterator.
18972         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
18973         using SWI mode iterator.
18974
18975 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18976
18977         PR c/25880
18978         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
18979         * c-format.c (gcc_diag_flag_specs): Add hash.
18980         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
18981         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
18982         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
18983         pp_c_cv_qualifiers. Handle qualifiers spelling here.
18984         (pp_c_type_qualifier_list): Call the function above.
18985         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
18986         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
18987         (WARN_FOR_QUALIFIERS): New macro.
18988         (convert_for_assignment): Use it.
18989
18990 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
18991
18992         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
18993
18994 2010-06-04  Jan Hubicka  <jh@suse.cz>
18995
18996         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
18997         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
18998         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
18999         DF_BYTE_LR_OUT): Update for embedded bitmaps.
19000         * fwprop.c (single_def_use_enter_block): Likewise.
19001         * ddg.c (create_ddg_dep_from_intra_loop_link,
19002         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
19003         * loop-iv.c (latch_dominating_def): Likewise.
19004         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
19005         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
19006         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
19007         df_rd_transfer_function, df_rd_top_dump,
19008         df_rd_bottom_dump): Update.
19009         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
19010         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
19011         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
19012         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
19013         df_lr_verify_solution_start, df_lr_verify_solution_end,
19014         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
19015         df_live_free_bb_info, df_live_alloc, df_live_reset,
19016         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
19017         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
19018         df_live_verify_solution_start, df_live_verify_solution_end,
19019         df_live_verify_transfer_functions, df_chain_create_bb,
19020         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
19021         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
19022         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
19023         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
19024         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
19025         df_byte_lr_transfer_function, df_byte_lr_top_dump,
19026         df_byte_lr_bottom_dump, df_create_unused_note,
19027         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
19028         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
19029         df_md_transfer_function, df_md_init, df_md_confluence_0,
19030         df_md_confluence_n,
19031         df_md_top_dump, df_md_bottom_dump): Update.
19032         (struct df_lr_problem_data): Embedd bitmap headers.
19033
19034 2010-06-04  Jan Hubicka  <jh@suse.cz>
19035
19036         * dce.c (dce_process_block): Do not re-scan already marked
19037         instructions.
19038
19039 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
19040
19041         PR rtl-optimization/39871
19042         PR rtl-optimization/40615
19043         PR rtl-optimization/42500
19044         PR rtl-optimization/42502
19045         * ira.c (init_reg_equiv_memory_loc: New function.
19046         (ira): Call it twice.
19047         * reload.h (calculate_elim_costs_all_insns): Declare.
19048         * ira-costs.c: Include "reload.h".
19049         (regno_equiv_gains): New static variable.
19050         (init_costs): Allocate it.
19051         (finish_costs): Free it.
19052         (ira_costs): Call calculate_elim_costs_all_insns.
19053         (find_costs_and_classes): Take estimated elimination costs
19054         into account.
19055         (ira_adjust_equiv_reg_cost): New function.
19056         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
19057         * reload1.c (init_eliminable_invariants, free_reg_equiv,
19058         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
19059         (elim_bb): New static variable.
19060         (reload): Move code out of here into init_eliminable_invariants and
19061         free_reg_equiv.  Call them.
19062         (calculate_elim_costs_all_insns): New function.
19063         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
19064         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
19065         but call note_reg_elim_costly if we turned a valid memory address
19066         into an invalid one.
19067         * Makefile.in (ira-costs.o): Depend on reload.h.
19068
19069 2010-06-04  Julian Brown  <julian@codesourcery.com>
19070
19071         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
19072         for pool ranges.
19073
19074 2010-06-04  Richard Guenther  <rguenther@suse.de>
19075
19076         PR lto/41584
19077         * cgraph.h (struct varpool_node): Add lto_file_data field.
19078         * lto-cgraph.c (input_varpool_node): Initialize it.
19079
19080 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
19081
19082         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
19083         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
19084         predicate in "type" attribute calculation.
19085         (*addsi_1_zext): Ditto.
19086         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
19087         (*addsi_2_zext): Ditto.
19088         (*add<mode>_3): Ditto.
19089         (*addsi_3_zext): Ditto.
19090         (*add<mode>_5): Ditto.
19091
19092 2010-06-03  Jan Hubicka  <jh@suse.cz>
19093
19094         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
19095         of bitmap_bit_p.
19096         * cfganal.c (compute_dominance_frontiers_1): Likewise.
19097
19098 2010-06-03  Jan Hubicka  <jh@suse.cz>
19099
19100         * df-problems.c (df_create_unused_note, df_note_bb_compute):
19101         micro-optimize the checks when to add new note.
19102
19103 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
19104
19105         * final.c (output_asm_insn): Call
19106         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
19107         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
19108         (output_address): Call targetm.asm_out.print_operand_address.
19109         Update comments.
19110         * target.h (struct gcc_target): Add print_operand,
19111         print_operand_address, and print_operand_punct_valid_p fields.
19112         * targhooks.h (default_print_operand): Declare.
19113         (default_print_operand_address): Declare.
19114         (default_print_operand_punct_valid_p): Declare.
19115         * targhooks.c (default_print_operand): Define.
19116         (default_print_operand_address): Define.
19117         (default_print_operand_punct_valid_p): Define.
19118         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
19119         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
19120         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
19121         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
19122         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
19123         * vmsdbgout.c (addr_const_to_string): Update comment.
19124         * config/i386/i386.c (print_operand): Rename to...
19125         (ix86_print_operand): ...this.  Make static.
19126         (print_operand_address): Rename to...
19127         (ix86_print_operand_address): ...this.  Make static.  Call
19128         ix86_print_operand instead of PRINT_OPERAND.
19129         (ix86_print_operand_punct_valid_p): New function.
19130         (TARGET_PRINT_OPERAND): Define.
19131         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19132         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19133         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
19134         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19135         (PRINT_OPERAND): Delete.
19136         (PRINT_OPERAND_ADDRESS): Delete.
19137         * config/i386/i386-protos.h (print_operand): Delete prototype.
19138         (print_operand_address): Delete prototype.
19139
19140 2010-06-03  Richard Guenther  <rguenther@suse.de>
19141
19142         PR tree-optimization/44403
19143         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19144         Preserve pointer qualifiers.
19145         (vect_create_data_ref_ptr): Likewise.
19146
19147 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
19148
19149         PR c++/44294
19150         * defaults.h (MAX_FIXED_MODE_SIZE): New.
19151
19152         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
19153
19154 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
19155
19156         PR debug/44375
19157         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
19158         return false if merging the bbs would lead to goto_locus
19159         location being lost from the IL.
19160
19161 2010-06-03  Jan Hubicka  <jh@suse.cz>
19162             Jakub Jelinek  <jakub@redhat.com>
19163
19164         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
19165         set->regs[i] is NULL or has just one entry.
19166
19167 2010-06-03  Jan Hubicka  <jh@suse.cz>
19168
19169         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
19170         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
19171
19172 2010-06-03  Paul Brook  <paul@codesourcery.com>
19173
19174         * config/arm/arm.c (FL_TUNE): Define.
19175         (arm_default_cpu, arm_cpu_select): Remove.
19176         (all_cores): Populate core field.
19177         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
19178         (arm_find_cpu): New function.
19179         (arm_handle_option): Lookup cpu/architecture names.
19180         (arm_override_options): Cleanup mcpu/march/mtune handling.
19181         (arm_file_start): Ditto.
19182
19183 2010-06-03  Alan Modra  <amodra@gmail.com>
19184
19185         PR target/44169
19186         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
19187         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
19188         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
19189         (rs6000_emit_load_toc_table): Likewise.
19190
19191 2010-06-02  Jan Hubicka  <jh@suse.cz>
19192
19193         * passes.c (init_optimization_passes): Put ipa reference
19194         after ipa pure-const.
19195
19196 2010-06-02  Jan Hubicka  <jh@suse.cz>
19197
19198         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
19199         calls_read_all and calls_write_all.
19200         (get_reference_optimization_summary): Fix formatting.
19201         (is_proper_for_analysis): Check that decl is not readonly.
19202         (propagate_bits): Check CONST/PURE/noreturn flags.
19203         (ipa_init): Move all_module_statics to optimization_summary_obstack.
19204         (analyze_function): Ignore indirect edges.
19205         (copy_global_bitmap): For all module statics, do nothing.
19206         (generate_summary): Do not print calls_read_all/calls_write_all.
19207         (read_write_all_from_decl): Take node as argument; check
19208         cgraph_node_cannot_return.
19209         (propagate): Reorganize read_all/write_all computation;
19210         check indirect edges; check ecf flags; use all_module_statics
19211         in the results; do not free all_module_statics.
19212         (stream_out_bitmap): Handle all_module_statics.
19213         (ipa_reference_write_optimization_summary): Likewise; use
19214         varpool/cgraph encoders to get boundaries.
19215         (ipa_reference_read_optimization_summary): Read in all_module_statics;
19216         use it when possible.
19217
19218 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19219
19220         PR target/44218
19221         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
19222         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
19223
19224         * doc/extend.texi (powerpc builtins): Document vec_recip,
19225         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
19226
19227         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
19228         (rs6000_emit_swrsqrt): Ditto.
19229         (rs6000_emit_swdivsf): Delete.
19230         (rs6000_emit_swdivdf): Ditto.
19231         (rs6000_emit_swrsqrtsf): Ditto.
19232
19233         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
19234         describe the reciprocal estimate support for each type.
19235         (recip_options): Map -mrecip=<opt> into option bits.
19236         (gen_2arg_fn_t): New typedef for binary rtx gen function.
19237         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
19238         reciprocal estimate instructions.
19239         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
19240         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
19241         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
19242         cost information if -mdebug=cost or -mdebug=reg.
19243         (rs6000_override_options): Set -mrecip-precision for power6, and
19244         power7 machines.  If -mvsx or -mdfp, enable various options that
19245         came in previous instruction set ISAs, unless the option was
19246         explicitly disabled by the command line option.  Parse
19247         -mrecip=<opt> options.
19248         (rs6000_builtin_vectorized_function): Add support for vectorizing
19249         the reciprocal estimate builtins and expansions.
19250         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
19251         (bdesc_2arg): Add reciprocal estimate builtins.
19252         (bdesc_1arg): Add reciprocal square root estimate builtins.
19253         (rs6000_expand_builtin): Rewrite to use a switch statement,
19254         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
19255         (rs6000_init_builtins): Create declarations for reciprocal
19256         estimate builtins.
19257         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
19258         sized, prefer traditional floating point registers, if integer
19259         vector types, prefer altivec registers.  Don't actually look at
19260         the memory address any more.
19261         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
19262         builtins.
19263         (rs6000_load_constant_and_splat): New helper function to load up
19264         the constant for reciprocal estimate instructions.
19265         (rs6000_emit_madd): New helper function for generating
19266         multiply/add type instructions, based on the current switches.
19267         (rs6000_emit_msub): Ditto.
19268         (rs6000_emit_mnsub): Ditto.
19269         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
19270         replace a divide with a reciprocal estimate and fixup, adding
19271         support for machines with high precision and vectors.
19272         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
19273         low precision machines.
19274         (rs6000_emit_swdiv): New common function to be called to replace a
19275         division with reciprocal estimate and fixup.
19276         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
19277         for double and vector types.  Add support for high precision machines.
19278
19279         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
19280         the reciprocal estimate instructions can be generated.
19281         (TARGET_FRE): Ditto.
19282         (TARGET_FRSQRTES): Ditto.
19283         (TARGET_FRSQRTE): Ditto.
19284         (RS6000_RECIP_*): New macros for reciprocal estimate support.
19285
19286         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
19287         square root estimate on vectors.
19288         (re<mode>2): New insn for reciprocal division estimate on vectors.
19289
19290         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
19291         New builtin.
19292         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
19293         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
19294         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
19295         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
19296         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
19297         (RS6000_BUILTIN_RSQRT): Ditto.
19298         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
19299         floating point builtin.
19300
19301         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
19302         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
19303         __RECIP_PRECISION__ based on the command line switches.
19304         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
19305
19306         * config/rs6000/rs6000.opt (-mrecip): Document add support for
19307         replacing division instructions with reciprocal estimate and fixup.
19308         (-mrecip=<opt>): New option.
19309         (-mrecip-precision): Ditto.
19310
19311         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
19312         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
19313         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
19314         precision scalar.
19315
19316         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
19317         (UNSPEC_VREFP): Ditto.
19318         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
19319         conterparts with regard to support of -mno-fused-madd and -ffast-math.
19320         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
19321         reciprocal estimate instructions to be generated.
19322         (altivec_vrefp): Ditto.
19323
19324         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
19325         estimate support.
19326         (rreg): New mode attribute for reciprocal estimate support.
19327         (recip<mode>3): New insn for division using reciprocal estimate
19328         and fixup builtins.
19329         (divide define_split): New define_split to convert floating point
19330         division to use reciprocal estimate if the user used the
19331         appropriate options and the split is run when we can add new
19332         pseudo registers for the fixup.
19333         (rsqrt<mode>2): New insn for reciprocal square root support.
19334         (recipsf3): Move into recip<mode>3.
19335         (recipdf3): Ditto.
19336         (fres): Use TARGET_FRES.
19337         (rsqrtsf2): Move into rsqrt<mode>2.
19338         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
19339         (copysignsf3): Add support for VSX.
19340         (fred): Use TARGET_FRE.
19341         (fred_fpr): Ditto.
19342         (rsqrtdf_internal1): New function for frsqrte instruciton.
19343
19344         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
19345         (vec_rsqrt): Ditto.
19346
19347 2010-06-03  Richard Guenther  <rguenther@suse.de>
19348
19349         PR middle-end/44291
19350         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
19351         (set_user_assembler_libfunc): Likewise.
19352
19353 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
19354
19355         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
19356         defaults.h.
19357         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
19358         to defaults.h
19359         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
19360         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
19361         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
19362         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
19363         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
19364         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
19365         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
19366         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
19367         * defaults.h: Updated for above mentioned changes.
19368
19369 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
19370
19371         * c-common.c: Remove header include of tm_p.h.
19372         * Makefile.in (c-common.o): Remove TM_P_H dependency.
19373
19374 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
19375
19376         * tree.h (struct tree_decl_map): New type.
19377         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
19378         (tree_decl_map_hash): New prototype.
19379         (debug_expr_for_decl, value_expr_for_decl): Change into
19380         tree_decl_map hashtab from tree_map.
19381         (init_ttree): Adjust initialization.
19382         (tree_decl_map_hash): New function.
19383         (decl_debug_expr_lookup, decl_debug_expr_insert,
19384         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
19385
19386 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19387
19388         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
19389         linker emulations.
19390         * configure: Regenerate.
19391         * config.in: Regenerate.
19392
19393         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
19394         (X86_64_EMULATION): Define.
19395         (TARGET_LD_EMULATION): Use them.
19396
19397         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
19398         (SPARC64_EMULATION): Define.
19399         (LINK_ARCH_SPEC): Use them.
19400
19401 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
19402
19403         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
19404         smallest_mode_for_size for computing the precision types of new
19405         graphite IVs.  Do not call lang_hooks.types.type_for_size.
19406
19407 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
19408
19409         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
19410         information.
19411         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
19412
19413 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
19414
19415         PR middle-end/44363
19416         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
19417         return false instead.
19418
19419 2010-06-02  Jan Hubicka  <jh@suse.cz>
19420
19421         PR middle-end/44295
19422         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
19423         create new cgraph node to check callee.
19424
19425 2010-06-02  Richard Guenther  <rguenther@suse.de>
19426
19427         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
19428
19429 2010-06-02  Richard Guenther  <rguenther@suse.de>
19430
19431         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
19432         (lto_wrapper_cleanup): ... this.  Do not exit.
19433         (fatal): Adjust.  Exit here.
19434         (fatal_perror): Likewise.
19435         (fatal_signal): New function.
19436         (main): Set up signal handlers to cleanup temporary files.
19437         * Makefile.in (lto-wrapper.o): Adjust dependencies.
19438
19439 2010-06-02  Richard Guenther  <rguenther@suse.de>
19440
19441         PR tree-optimization/44377
19442         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
19443
19444 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19445
19446         * config/s390/2097.md (z10_fhex): Remove insn reservation.
19447         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
19448         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
19449         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
19450         instruction.
19451         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
19452
19453 2010-06-02  Jan Hubicka  <jh@suse.cz>
19454
19455         * bitmap.c (bitmap_descriptor): Add search_iter.
19456         (bitmap_find_bit): Increment it.
19457         (print_statistics): Print it.
19458
19459 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
19460
19461         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
19462         instead of gimple_build_call_vec.  Delete unnecessary local variable.
19463
19464 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
19465
19466         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
19467         change from yesterday.
19468
19469 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
19470
19471         * c-ada-spec.c: Clean up redundant includes.
19472
19473 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
19474
19475         * gimplify.c: Do not include except.h and optabs.h.
19476         (gimplify_body): Do not initialize RTL profiling.
19477         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
19478         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
19479         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
19480         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
19481         langhooks.h.
19482
19483         * tree-pretty-print.h: Include pretty-print.h.
19484         * gimple-pretty-print.h: Include pretty-print.h.
19485
19486         * tree-pretty-print.c: Do not include diagnostic.h.
19487         * tree-vrp.c: Likewise.
19488         * tree-tailcall.c: Likewise
19489         * tree-scalar-evolution.c: Likewise
19490         * tree-ssa-dse.c: Likewise
19491         * tree-chrec.c: Likewise
19492         * tree-ssa-sccvn.c: Likewise
19493         * tree-ssa-copyrename.c: Likewise
19494         * tree-nomudflap.c: Likewise
19495         * tree-call-cdce.c: Likewise
19496         * tree-stdarg.c: Likewise
19497         * tree-ssa-math-opts.c: Likewise
19498         * tree-nrv.c: Likewise
19499         * tree-ssa-sink.c: Likewise
19500         * tree-browser.c: Likewise
19501         * tree-ssa-loop-ivcanon.c: Likewise
19502         * tree-ssa-loop.c: Likewise
19503         * tree-parloops.c: Likewise
19504         * tree-ssa-address.c: Likewise
19505         * tree-ssa-ifcombine.c: Likewise
19506         * tree-if-conv.c: Likewise
19507         * tree-data-ref.c: Likewise
19508         * tree-affine.c: Likewise
19509         * tree-ssa-phiopt.c: Likewise
19510         * tree-ssa-coalesce.c: Likewise
19511         * tree-ssa-pre.c: Likewise
19512         * tree-ssa-live.c: Likewise
19513         * tree-predcom.c: Likewise
19514         * tree-ssa-forwprop.c: Likewise
19515         * tree-ssa-dce.c: Likewise
19516         * tree-ssa-ter.c: Likewise
19517         * tree-ssa-loop-prefetch.c: Likewise
19518         * tree-optimize.c: Likewise
19519         * tree-ssa-phiprop.c: Likewise
19520         * tree-object-size.c: Likewise
19521         * tree-outof-ssa.c: Likewise
19522         * tree-ssa-structalias.c: Likewise
19523         * tree-switch-conversion.c: Likewise
19524         * tree-ssa-reassoc.c: Likewise
19525         * tree-ssa-operands.c: Likewise
19526         * tree-vectorizer.c: Likewise
19527         * tree-vect-data-refs.c: Likewise
19528         * tree-vect-generic.c: Likewise
19529         * tree-vect-stmts.c: Likewise
19530         * tree-vect-patterns.c: Likewise
19531         * tree-vect-slp.c: Likewise
19532         * tree-vect-loop.c: Likewise
19533         * tree-ssa-loop-ivopts.c: Likewise
19534         * tree-ssa-loop-im.c: Likewise
19535         * tree-ssa-loop-niter.c: Likewise
19536         * tree-ssa-loop-unswitch.c: Likewise
19537         * tree-ssa-loop-manip.c: Likewise
19538         * tree-ssa-loop-ch.c: Likewise
19539         * tree-dump.c: Likewise
19540         * tree-complex.c: Likewise
19541
19542         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
19543         * tree-ssa-uninit.c: Likewise
19544         * tree-ssa-threadupdate.c: Likewise
19545         * tree-ssa-uncprop.c: Likewise
19546         * tree-ssa-ccp.c: Likewise
19547         * tree-ssa-dom.c: Likewise
19548         * tree-ssa-propagate.c: Likewise
19549         * tree-ssa-alias.c: Likewise
19550         * tree-dfa.c: Likewise
19551         * tree-cfgcleanup.c: Likewise
19552         * tree-sra.c: Likewise
19553         * tree-ssa-copy.c: Likewise
19554         * tree-ssa.c: Likewise
19555         * tree-profile.c: Likewise
19556         * tree-cfg.c: Likewise
19557         * tree-ssa-threadedge.c: Likewise
19558         * tree-vect-loop-manip.c: Likewise
19559
19560         * tree-inline.c: Do not include diagnostic.h and expr.h.
19561         Include rtl.h.
19562         (copy_decl_for_dup_finish): Do not use NULL_RTX.
19563
19564         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
19565         * tree-loop-distribution.c: Likewise.
19566
19567 2010-06-01  Jan Hubicka  <jh@suse.cz>
19568
19569         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
19570
19571 2010-06-01  Jan Hubicka  <jh@suse.cz>
19572
19573         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
19574         remove return value.
19575         (split_bbs_on_noreturn_calls) .... here.
19576         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
19577         * tree-flow.h (fixup_noreturn_call): New.
19578
19579 2010-06-01  Jan Hubicka  <jh@suse.cz>
19580
19581         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
19582
19583 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
19584
19585         * tree.h (build_nt_call_list): Delete.
19586         * tree.c (build_nt_call_list): Delete.
19587
19588 2010-06-01  Jan Hubicka  <jh@suse.cz>
19589
19590         * fwprop.c: Make emit-rtl.h include last.
19591         * rtlanal.c: Include emit-rtl.h.
19592         * genautomata.c: Output emit-rtl include into insn-automata.c
19593         * df-scan.c: Include emit-rtl.h.
19594         * haifa-sched.c: Indlude emit-rtl.h.
19595         * mode-switching.c: Indlude emit-rtl.h.
19596         * graph.c: Indlude emit-rtl.h.
19597         * sel-sched.c: Include emit-rtl.h.
19598         * sel-sched-ir.c: Include emit-rtl.h.
19599         * ira-build.c: Include emit-rtl.h.
19600         * emit-rtl.c (first_insn, last_insn): Remove defines.
19601         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
19602         Move to emit-rtl.h.
19603         (set_new_first_and_last_insn, get_last_insn_anywhere,
19604         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
19605         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
19606         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
19607         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
19608         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
19609         Use accessor functions.
19610         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
19611          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
19612         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
19613         mem_expr_equal_p): Move here from rtl.h.
19614         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
19615         Move here from emit-rtl.c; make inline.
19616         * cfglayout.h: Include emit-rtl.h.
19617         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
19618          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
19619         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
19620         mem_expr_equal_p, get_insns, set_first-insn,
19621         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
19622         * reg-stack.c: Include emit-rtl.h.
19623         * dce.c: Likewise.
19624
19625 2010-06-01  Jan Hubicka  <jh@suse.cz>
19626
19627         * cgraph.h (tree_function_versioning): Update prototype.
19628         (cgraph_function_versioning): Update prototype.
19629         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
19630         bitmap.
19631         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
19632         (cgraph_materialize_clone, save_inline_function_body): Update use of
19633         tree_function_versioning.
19634         * tree-inline.c (copy_bb): Look for previous copied block to link
19635         after; fix debug output.
19636         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
19637         (copy_body): Likewise.
19638         (expand_call_inline): Update use of copy_body.
19639         (tree_function_versioning): Update use of copy body; accept
19640         blocks_to_copy and new_entry.
19641
19642 2010-06-01  Jan Hubicka  <jh@suse.cz>
19643
19644         * gegenrtl.c: Remove unnecesary prototypes.
19645         (gendecl): Remove.
19646         (gendef): Produce static inline.
19647         (gencode): Remove.
19648         (main): Do not decode parameters; generate header only.
19649         * Makefile.in (genrtl.c): Remove.
19650
19651 2010-06-01  Jan Hubicka  <jh@suse.cz>
19652
19653         * tree-switch-conversion.c (build_one_array): Make it readonly.
19654
19655 2010-06-01  Richard Guenther  <rguenther@suse.de>
19656
19657         * optabs.c (init_optabs): Guard all accesses to reinit.
19658         * ipa-pure-const.c (propagate): Fix another typo.
19659         * opts.c (common_handle_option): Split assignment to bool.
19660         * c-opts.c (c_common_handle_option): Likewise.
19661
19662 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
19663             Matthew Gingell  <gingell@adacore.com>
19664
19665         * doc/invoke.texi: Mention -fdump-ada-spec.
19666         * tree-dump.c (dump_files): Add ada-spec.
19667         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
19668         * tree-pass.h (tree_dump_index): Add TDI_ada.
19669         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
19670         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
19671         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
19672         * c-decl.c: Include c-ada-spec.h.
19673         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
19674         functions.
19675         (c_write_global_declarations): Add handling of -fdump-ada-spec.
19676         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
19677         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
19678         * c-ada-spec.h, c-ada-spec.c: New files.
19679
19680 2010-06-01  Richard Guenther  <rguenther@suse.de>
19681
19682         PR lto/43853
19683         * ipa-pure-const.c (get_function_state): Hand back varying state
19684         if we do not have one.
19685         (has_function_state): New function.
19686         (duplicate_node_data): Adjust.
19687         (remove_node_data): Likewise.
19688         (pure_const_write_summary): Likewise.
19689         (propagate): Likewise.  Fix typo.
19690
19691 2010-06-01  Jan Hubicka  <jh@suse.cz>
19692
19693         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
19694         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
19695         (execute_all_ipa_transforms): Do not play with the states.
19696
19697 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19698
19699         * config/arm/t-linux-androideabi: New.
19700         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
19701
19702 2010-06-01  Jan Hubicka  <jh@suse.cz>
19703
19704         * tree-inline.c (estimate_num_insns): For stdarg functions look
19705         into call statement to count cost of argument passing.
19706
19707 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
19708
19709         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
19710         argument for fprintf.
19711         (ix86_output_addr_diff_elt): Likewise.
19712         (x86_function_profiler): Likewise.
19713         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
19714         (LPREFIX): Likewise.
19715         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
19716
19717 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
19718
19719         PR target/44338
19720         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
19721         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
19722         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
19723         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
19724         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
19725         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
19726         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
19727         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
19728         TARGET_FUSED_MADD.
19729
19730 2010-05-31  Jan Hubicka  <jh@suse.cz>
19731
19732         * tree.h (tree_range_check_failed): Declare noreturn.
19733
19734 2010-05-31  Jan Hubicka  <jh@suse.cz>
19735
19736         * gimple.c (gimple_call_builtin_p): New function.
19737         * gimple.h (gimple_call_builtin_p): Declare.
19738         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
19739         to exit.
19740         (execute_warn_function_return): BUILT_IN_RETURN is return.
19741         (split_critical_edges): Return edges are not critical.
19742         (is_ctrl_altering_stmt): Builtin_in_return is altering.
19743         (gimple_verify_flow_info): Handle built_in_return.
19744         (execute_warn_function_return): Handle built_in_return.
19745         * ipa-pure-const.c (check_call): Ignore builtin_return.
19746
19747 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
19748
19749         PR middle-end/44337
19750         * expr.c (expand_assignment): Don't store anything for out-of-bounds
19751         array accesses with non-MEM.
19752
19753         PR tree-optimization/44182
19754         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
19755         newly needs to end a bb is followed by debug stmts, instead return
19756         true from the function at the end.
19757         (maybe_move_debug_stmts_to_successors): New function.
19758         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
19759
19760 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
19761
19762         PR target/44161
19763         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
19764
19765 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
19766
19767         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
19768         for nested functions in non-optimized compilation.
19769
19770 2010-05-31  Richard Guenther  <rguenther@suse.de>
19771
19772         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
19773
19774 2010-05-30  Jan Hubicka  <jh@suse.cz>
19775
19776         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
19777
19778 2010-05-30  Richard Guenther  <rguenther@suse.de>
19779
19780         PR lto/42975
19781         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
19782         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
19783         no longer needed.
19784
19785 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
19786
19787         * config/darwin.c (output_objc_section_asm_op): Add comment.
19788         (name_needs_quotes): Add '_' to list of valid comment chars.
19789         (machopic_output_function_base_name): Remove unneeded quotes.
19790         (darwin_encode_section_info): Adjust asm whitespace.
19791         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
19792         (ASM_OUTPUT_LOCAL): Ditto.
19793         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
19794         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
19795         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
19796
19797 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
19798
19799         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
19800         RS6000_OUTPUT_BASENAME unconditionally.
19801         (rs6000_output_function_epilogue): Likewise.
19802
19803 2010-05-30  Jan Hubicka  <jh@suse.cz>
19804
19805         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
19806         nodes.
19807
19808 2010-05-30  Richard Guenther  <rguenther@suse.de>
19809
19810         * tree-cfg.c (verify_gimple_assign_single): Implement
19811         verification for COND_EXPR rhs.
19812
19813 2010-05-30  Jan Hubicka  <jh@suse.cz>
19814
19815         * cgraph.h (cgraph_dump_file): Declare.
19816         * cgraphunit.c (cgraph_dump_file): Export.
19817         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
19818
19819 2010-05-30  Jan Hubicka  <jh@suse.cz>
19820
19821         * dwarf2out.c (reference_to_unused,
19822         premark_types_used_by_global_vars_helper): Avoid creation of new
19823         varpool nodes.
19824
19825 2010-05-30  Jan Hubicka  <jh@suse.cz>
19826
19827         * cgraph.h (cgraph_node_cannot_return,
19828         cgraph_edge_cannot_lead_to_return): New functions.
19829         * cgraph.c (cgraph_node_cannot_return,
19830         cgraph_edge_cannot_lead_to_return): Use them.
19831         * ipa-pure-const.c (pure_const_names): New static var.
19832         (check_call): Handle calls not leading to return.
19833         (pure_const_read_summary): Dump info read.
19834         (propagate): Dump info about propagation process; ignore side effects
19835         of functions not leading to exit; fix handling of pure functions.
19836
19837 2010-05-30  Jan Hubicka  <jh@suse.cz>
19838
19839         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
19840         for tail call epilogues.
19841
19842 2010-05-30  Jan Hubicka  <jh@suse.cz>
19843
19844         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
19845         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
19846         dump files.
19847
19848 2010-05-29  Jan Hubicka  <jh@suse.cz>
19849
19850         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
19851         node; remove references in node we no longer keep in cgrpah but need
19852         body of.
19853
19854 2010-05-29  Jan Hubicka  <jh@suse.cz>
19855
19856         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
19857
19858 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19859
19860         PR target/44165
19861         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
19862
19863 2010-05-29  Jan Hubicka  <jh@suse.cz>
19864
19865         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
19866         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
19867         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
19868         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
19869         debug_names_replaced_by, debug_update_ssa): Likewise.
19870         * sbitmap.c (debug_sbitmap): Likewise.
19871         * genrecog.c (debug_decision, debug_decision_list): Likewise.
19872         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
19873         debug_tree_chain): Likewise.
19874         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
19875         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
19876         * optabs.c (debug_optab_libfuncs): Likewise.
19877         (verify_loop_closed_ssa): Likewise.
19878         * value-prof.c (verify_histograms): Likewise.
19879         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
19880         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
19881         * cfghooks.c (verify_flow_info): Likewise.
19882         * fold-const.c (debug_fold_checksum): Likewise.
19883         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
19884         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
19885         Likewise.
19886         * omega.c (debug_omega_problem): Likewise.
19887         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
19888         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
19889         * dominance.c (verify_dominators, debug_dominance_info,
19890         debug_dominance_tree): Likewise.
19891         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
19892         * df_regno_debug, df_ref_debug,
19893         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
19894         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
19895         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
19896         * sel-sched.c (debug_state): Likewise.
19897         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
19898         Likewise.
19899         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
19900         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
19901         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
19902         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
19903         Likewise.
19904         * c-pretty-print.c (debug_c_tree): Likewise.
19905         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
19906         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
19907         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
19908         * ebitmap.c (debug_ebitmap): Likewise.
19909         * function.c (debug_find_var_in_block_tree): Likewise.
19910         * print-rtl.c (debug_rtx): Likewise.
19911         (debug_rtx_count): Likewise.
19912         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
19913         * stor-layout.c (debug_rli): Likewise.
19914         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
19915         * tree-data-ref.c (debug_data_references,
19916         debug_data_dependence_relations, debug_data_reference,
19917         debug_data_dependence_relation, debug_rdg_vertex,
19918         debug_rdg_component, debug_rdg): Likewise.
19919         * tree-affine.c (debug_aff): Likewise.
19920         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
19921         Likewise.
19922         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
19923         * emit-rtl.c (verify_rtl_sharing): Likewise.
19924         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
19925         debug_value_expressions): Likewise.
19926         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
19927         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
19928         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
19929         * cfglayout.c (verify_insn_chain): Likewise.
19930         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
19931         debug_clast_stmt, debug_generated_program): Likewise.
19932         * ggc-page.c (debug_print_page_list): Likewise.
19933         * tree-ssa-ter.c (debug_ter): Likewise.
19934         * graphite-dependences.c (debug_pddr): Likewise.
19935         * sched-deps.c (debug_ds): Likewise.
19936         * tree-ssa.c (verify_ssa): Likewise.
19937         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
19938         debug_scattering_functions, debug_iteration_domains, debug_pdr,
19939         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
19940         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
19941         * tree-inline.c (debug_find_tree): Likewise.
19942         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
19943         debug_ppl_powerset_matrix): Likewise.
19944         * var-tracking.c (debug_dv): Likewise.
19945         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
19946         * cfgloop.c (verify_loop_structure): Likewise.
19947         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
19948         * c-common.c (verify_sequence_points): Likewise.
19949         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
19950         debug_candidates, debug_rgn_dependencies): Likewise.
19951         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
19952         * debug_constraint_graph, debug_solution_for_var,
19953         debug_sa_points_to_info): Likewise.
19954         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
19955         Likewie.
19956         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
19957         debug_loops, debug_loop, debug_loop_num): Likewise.
19958         * passes.c (debug_pass): Likewise.
19959         (dump_properties): Likewise; add cfglayout property.
19960         (debug_properties): Likewise.
19961         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
19962         * varpool.c (debug_varpool): Likewise.
19963         * regcprop.c (debug_value_data): Likewise.
19964         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
19965         debug_immediate_uses_for): Likewise.
19966
19967 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
19968
19969         PR bootstrap/44315
19970         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
19971         Filter out insn-flags.h.
19972
19973 2010-05-29  Jan Hubicka  <jh@suse.cz>
19974
19975         * cgraph.h (struct varpool_node_set_def,
19976         struct cgraph_node_set_def): Remove unused AUX pointer.
19977         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
19978         VEC_empty macro.
19979
19980 2010-05-29  Jan Hubicka  <jh@suse.cz>
19981
19982         PR middle-end/44324
19983         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
19984
19985 2010-05-29  Richard Guenther  <rguenther@suse.de>
19986
19987         * lto-streamer.c (cached_bp): New global variable.
19988         (bitpack_create): Return the cached bitpack, if available.
19989         (bitpack_delete): Clear and cache the bitpack, if appropriate.
19990         (bp_pack_value): Remove redundant asserts.
19991
19992 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
19993
19994         PR middle-end/44306
19995         * tree-if-conv.c (is_true_predicate): New.
19996         (is_predicated): Use is_true_predicate.
19997         (add_to_predicate_list): Same.  Do not use unshare_expr.
19998         (add_to_dst_predicate_list): Same.
19999
20000 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
20001
20002         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
20003         field on edges.
20004         (predicate_bbs): Same.
20005         (clean_predicate_lists): Same.
20006         (find_phi_replacement_condition): Do not AND the predicate from
20007         edge->aux.
20008
20009 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
20010
20011         PR bootstrap/44315
20012         * Makefile.in (build/gencondmd.o): Add a missing `\'.
20013
20014 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20015
20016         PR target/44261
20017         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
20018         (negdf2): Adjust expander pattern and use negdf2_slow.
20019         (negsf2): Likewise.
20020
20021 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
20022
20023         * basic-block.h (struct control_flow_graph): Move last_label_uid field
20024         up.
20025         * df.h (struct df_base_ref): Move regno field up.
20026         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
20027         * expr.h (struct separate_ops): Move location field up.
20028         * optabs.h (struct optab_d): Move libcall_basename field down.
20029         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
20030         * config/i386/i386.h (struct machine_function): Convert call_abi field
20031         into a bitfield.  Move cfa field to the end of the structure.
20032
20033 2010-05-29  Jan Hubicka  <jh@suse.cz>
20034
20035         * varpool.c (varpool_get_node): Fix lookup.
20036
20037 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
20038
20039         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
20040         RTL specific prototypes with #ifdef RTX_CODE.
20041         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
20042         * config/spu/t-spu-elf: Fix dependencies.
20043
20044         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
20045
20046 2010-05-29  Mike Stump  <mikestump@comcast.net>
20047
20048         PR bootstrap/44315
20049         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
20050         TM_H when building to avoid dependency loops.
20051
20052 2010-05-29  Jan Hubicka  <jh@suse.cz>
20053
20054         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
20055         refs and body; not the whole node for masters of materialized clones.
20056
20057 2010-05-29  Mike Stump  <mikestump@comcast.net>
20058
20059         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
20060
20061 2010-05-29  Jan Hubicka  <jh@suse.cz>
20062
20063         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
20064         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
20065         use of clone_function_name.
20066         * cgraph.h (cgraph_create_virtual_clone,
20067         cgraph_function_versioning): update prototypes.
20068         (clone_function_name): Declare.
20069         * ipa-cp.c (ipcp_insert_stage): Update call of
20070         cgraph_create_virtual_clone.
20071         * omp-low.c (create_omp_child_function_name): Use
20072         cgraph_create_virtual_clone.
20073         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
20074         (cgraph_function_versioning): Take SUFFIX argument; produce new name
20075         and make decl local.
20076
20077 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
20078
20079         * vec.h: Include statistics.h
20080         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
20081         with VEC_H.
20082
20083 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
20084
20085         * c-lex.c: Do not include c-tree.h.
20086         * c-pretty-print.c: Likewise.
20087         * c-opts.c: Likewise.
20088         * c-gimplify.c: Likewise.
20089         * c-common.c: Likewise.
20090         * c-dump.c: Likewise.  Include c-common.h.
20091
20092 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
20093
20094         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
20095         before including diagnostic-core.h.
20096         (c_cpp_error): New prototype moved from c-tree.h.
20097         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
20098         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
20099         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
20100         (c_cpp_error): Prototype moved to c-common.h.
20101         * Makefile.in: Update dependency for C_COMMON_H.
20102
20103 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
20104
20105         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
20106         * c-common.c (c_register_addr_space): Remove here.
20107         * c-decl.c (c_register_addr_space): Re-add here.
20108
20109 2010-05-28  Mike Stump  <mikestump@comcast.net>
20110
20111         * config/darwin-c.c: Remove c-tree.h include.
20112
20113 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
20114
20115         * gcc.c: Include diagnostic.h.
20116         (error_count): Remove.  All users changed to use errorcount.
20117         (programname): Remove.  All users changed to use progname.
20118         (fancy_abort, internal_error, fatal_error, error, warning, inform,
20119         fnotice): Remove.
20120         (execute): Don't include "Internal error" and bug reporting
20121         information in argument of internal_error call.
20122         (process_command): Don't increment error_count after calling
20123         perror_with_name.
20124         (input_filename): Rename to gcc_input_filename.  All users
20125         changed.
20126         (main): Call diagnostic_initialize.  Register delete_temp_files
20127         with atexit.  Use seen_error to test for errors.
20128         * gcc.h: Include diagnostic-core.h.
20129         (fatal_error, error, warning): Remove.
20130         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
20131         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
20132         (gcc.o): Update dependencies.
20133
20134 2010-05-28  Jeff Law  <law@redhat.com>
20135
20136         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
20137         functions.
20138         * ira.h (ira_bad_reload_regno): Declare
20139         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
20140
20141         * ira-color.c (update_curr_costs): Free updated hard reg costs.
20142         (ira_reassign_conflict_allocnos): Remove bogus asserts.
20143         (allocno_reload_assign): Likewise.
20144
20145 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
20146
20147         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
20148         build1_stat.
20149
20150 2010-05-28  Richard Guenther  <rguenther@suse.de>
20151
20152         PR lto/44312
20153         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
20154         Stream fixed-point constants mode.
20155         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
20156         and TYPE_PRECISION.
20157         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
20158         Stream fixed-point constants mode.
20159         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
20160         and TYPE_PRECISION.
20161
20162 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
20163
20164         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
20165         only place it was called from.
20166         (number_of_latch_executions): Do not return chrec_dont_know when the
20167         may_be_zero is a runtime condition: instead, return a COND_EXPR
20168         including the may_be_zero condition.
20169         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
20170         of nb_iterations.
20171         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
20172         COND_EXPRs.
20173
20174 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
20175
20176         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
20177         generate COND_EXPRs for degenerate_phi_result.
20178
20179 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
20180
20181         PR middle-end/44293
20182         * tree-if-conv.c (if_convertible_loop_p): Check the
20183         if-convertibility of phi nodes in non predicated BBs.
20184
20185 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
20186
20187         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
20188
20189 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
20190
20191         PR driver/15303
20192         * gcc.c (inform, warning, inform): New functions.
20193         (fatal_ice): Rename to internal_error; change cmsgid parameter to
20194         gmsgid.  All callers changed.
20195         (notice): Rename to fnotice; add parameter fp.  All callers changed.
20196         (fatal_error): Rename to fatal_signal.  All users changed.
20197         (fatal): Rename to fatal_error; change cmsgid parameter to
20198         gmsgid.  All callers changed.
20199         (process_command): Use warning instead of error for warnings.
20200         (end_going_arg): Don't use _() around argument of error.
20201         (do_spec_1): Use inform for message from %n specs.  Use warning
20202         instead of error for warnings.
20203         (main): Use inform for comparison messages.  Use warning for
20204         message about unused linker input.
20205         (error): Increment error_count.  Print "error: ".
20206         * gcc.h (fatal): Change to fatal_error.
20207         (warning): Declare.
20208         * config/darwin-driver.c (darwin_default_min_version): Use warning
20209         instead of fprintf for warnings.
20210         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
20211
20212 2010-05-28  Julian Brown  <julian@codesourcery.com>
20213
20214         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
20215         (*thumb2_addsi3_compare0_scratch): New.
20216         * config/arm/constraints.md (Pv): New.
20217         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
20218         for ARM mode only.
20219         (*addsi3_compare0_scratch): Likewise.
20220
20221 2010-05-28  Jan Hubicka  <jh@suse.cz>
20222
20223         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
20224         check.
20225         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
20226         only on local statics.
20227
20228 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
20229
20230         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
20231
20232 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
20233
20234         PR bootstrap/44314
20235         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
20236         (OPTION_GLIBC): Define.
20237
20238 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
20239
20240         PR debug/41048
20241         * dwarf2out.c (double_int_type_size_in_bits): New function.
20242         (round_up_to_align): Change first argument and return value to
20243         double_int.
20244         (field_byte_offset): Work internally on double_ints.
20245
20246         PR target/43636
20247         * builtins.c (expand_movstr): Use a temporary pseudo instead
20248         of target even when target is not NULL and not const0_rtx, but
20249         fails movstr predicate.
20250         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
20251
20252 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
20253
20254         * final.c (rest_of_clean_state): Use %m in errors instead of
20255         strerror (errno).
20256         * gengtype.c (read_input_list, close_output_files): Use xstrerror
20257         instead of strerror.
20258         * toplev.c (process_options): Use %m in errors instead of strerror
20259         (errno).
20260         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
20261         (errno).
20262
20263 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
20264
20265         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
20266         (ix86_canonical_va_list_type): Make static.  Add declaration.
20267         (ix86_enum_va_list): Make static.  Reindent.
20268         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
20269         (ix86_canonical_va_list_type): Ditto.
20270         (ix86_enum_va_list): Ditto.
20271
20272 2010-05-28  Richard Guenther  <rguenther@suse.de>
20273
20274         * lto-wrapper.c (run_gcc): With -save-temps generate a
20275         user-visible ltrans filename.  Fixup ltrans unit numbering.
20276
20277 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
20278
20279         * c-common.c (c_common_nodes_and_builtins): Replace use
20280         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
20281         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
20282         to ix86_enum_va_list.
20283         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
20284         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
20285         (TARGET_ENUM_VA_LIST_P): Add hook description.
20286         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
20287         * target.h (gcc_target): Add enum_va_list hook.
20288
20289         PR bootstrap/44299
20290         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
20291         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
20292         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
20293
20294 2010-05-28  Alan Modra  <amodra@gmail.com>
20295
20296         PR target/44266
20297         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
20298         emit_library_call machinery to set up __tls_get_addr calls.
20299
20300 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20301
20302         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
20303
20304 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
20305
20306         Revert fix for PR c++/44188
20307         * c-common.c (is_typedef_decl): Revert the moving of  this
20308         definition ...
20309         * tree.c (is_typedef_decl): ... here.
20310         (typdef_variant_p): Revert the moving of this  definition
20311         here from cp/tree.c.
20312         * c-common.h (is_typedef_decl): Revert the moving of this
20313         declaration ...
20314         * tree.h (is_typedef_decl): ... here.
20315         (typedef_variant_p): Revert the moving of this  declaration here
20316         from cp/cp-tree.h
20317         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
20318         (gen_tagged_type_die): Revert the splitting out of ...
20319         (gen_type_die_with_usage): ... this function. Revert the anonymous
20320         tagged type handling.
20321         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
20322         typedefs naming anonymous tagged types.
20323
20324 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
20325
20326         * config/rs6000/rs6000-modes.def (PSImode): Delete.
20327
20328 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
20329
20330         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
20331         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
20332         throughout.
20333         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
20334         "xer" to "ca".
20335         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
20336         XER_REGS to CA_REGS throughout.
20337         * config/rs6000/rs6000.h: Same.
20338         (ADDITIONAL_REGISTER_NAMES): Add "xer".
20339         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
20340         that mode_iterator "P" is the size for arithmetic carries as well.
20341         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
20342
20343 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
20344
20345         PR bootstrap/44255
20346         * combine.c (struct rtx_subst_pair): Define unconditionally.
20347         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
20348         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
20349         Call make_compound_operation on pair->to.
20350         (propagate_for_debug): Don't call make_compound_operation here.
20351         Always use simplify_replace_fn_rtx.
20352
20353 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
20354
20355         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
20356         * config/xtensa/xtensa.c (override_options): Check
20357           TARGET_FORCE_NO_PIC and set flag_pic.
20358         * config/xtensa/xtensa.opt: Document -mforce-no-pic
20359
20360 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
20361
20362         PR bootstrap/44299
20363         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
20364         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
20365
20366 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
20367
20368         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
20369         toplev.h.
20370         * diagnostic.c: Don't include toplev.h.
20371         (progname): Define.  Moved from toplev.c.
20372         (seen_error): New function.
20373         * diagnostic.h: Include diagnostic-core.h.
20374         (diagnostic_t, emit_diagnostic): Don't declare here.
20375         * toplev.c (progname): Move to toplev.c.
20376         (emit_debug_global_declarations, compile_file, finalize,
20377         do_compile, toplev_main): Use seen_error.
20378         * toplev.h: Include diagnostic-core.h.
20379         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
20380         internal_error, warning, warning_at, error, error_n, error_at,
20381         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
20382         verbatim, fnotice, progname): Move to diagnostic-core.h.
20383         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
20384         (expand_builtin_expect): Use seen_error.
20385         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
20386         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
20387         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
20388         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
20389         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
20390         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
20391         errorcount for errors.
20392         * c-opts.c (c_common_finish): Use seen_error.
20393         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
20394         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
20395         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
20396         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
20397         (get_coverage_counts): Use seen_error.
20398         * dwarf2out.c (dwarf2out_finish): Use seen_error.
20399         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
20400         gimplify_body): Use seen_error.
20401         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
20402         * ipa-pure-const.c (gate_pure_const): Use seen_error.
20403         * ipa-reference.c (gate_reference): Use seen_error.
20404         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
20405         * lambda-code.c: Include diagnostic-core.h instead of
20406         diagnostic.h.
20407         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
20408         * lto-compress.c: Include diagnostic-core.h instead of
20409         diagnostic.h.
20410         * lto-section-in.c: Include diagnostic-core.h instead of
20411         diagnostic.h.
20412         * lto-streamer-out.c: Include diagnostic-core.h instead of
20413         diagnostic.h.
20414         * lto-streamer.c: Include diagnostic-core.h instead of
20415         diagnostic.h.
20416         (gate_lto_out): Use seen_error.
20417         * matrix-reorg.c: Include diagnostic-core.h instead of
20418         diagnostic.h.
20419         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
20420         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
20421         (gate_expand_omp, lower_omp_1): Use seen_error.
20422         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
20423         (rest_of_decl_compilation, rest_of_type_compilation,
20424         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
20425         * tree-cfg.c (label_to_block_fn): Use seen_error.
20426         * tree-inline.c (optimize_inline_calls): Use seen_error.
20427         * tree-mudflap.c (mudflap_finish_file): Use
20428         seen_error.
20429         * tree-optimize.c (gate_all_optimizations,
20430         gate_all_early_local_passes, gate_all_early_optimizations): Use
20431         seen_error.
20432         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
20433         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
20434         (varpool_remove_unreferenced_decls,
20435         varpool_assemble_pending_decls): Use seen_error.
20436         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
20437         (TOPLEV_H, DIAGNOSTIC_H): Update.
20438         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
20439         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
20440         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
20441         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
20442         coverage.o, lambda-code.o): Update dependencies.
20443
20444 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
20445
20446         PR c++/44188
20447         * c-common.c (is_typedef_decl): Move this definition ...
20448         * tree.c (is_typedef_decl): ... here.
20449         (typdef_variant_p): Move definition here from cp/tree.c.
20450         * c-common.h (is_typedef_decl): Move this declaration ...
20451         * tree.h (is_typedef_decl): ... here.
20452         (typedef_variant_p): Move declaration here from cp/cp-tree.h
20453         * dwarf2out.c (is_naming_typedef_decl): New function.
20454         (gen_tagged_type_die): Split out of ...
20455         (gen_type_die_with_usage): ... this function. When an anonymous
20456         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20457         is emitted for the typedef.
20458         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20459         anonymous tagged types.
20460
20461 2010-05-27  Jason Merrill  <jason@redhat.com>
20462
20463         * print-tree.c (debug_vec_tree): New fn.
20464         (print_vec_tree): New fn.
20465         * tree.h: Declare them.
20466         * gdbinit.in (pvt): New command.
20467
20468         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
20469
20470         * gdbinit.in (pdd): New command.
20471
20472 2010-05-27  Jan Hubicka  <jh@suse.cz>
20473
20474         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
20475         (update_caller_keys): Return early if there are no callers;
20476         only update fibheap when decresing the key.
20477         (update_callee_keys): Avoid recursion.
20478         (decide_inlining_of_small_functions): When badness does not match;
20479         re-insert into fibheap.
20480
20481 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
20482
20483         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
20484         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
20485         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
20486         (ALL_HOST_OBJS): Now a union of the above two.
20487         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
20488         all files in ALL_HOST_FRONTEND_OBJS.
20489         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
20490
20491         * c-common.c: Pretend to be a backend file by undefining
20492         IN_GCC_FRONTEND (still need rtl.h here).
20493
20494 2010-05-27  Jan Hubicka  <jh@suse.cz>
20495
20496         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
20497         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
20498
20499 2010-05-27  Jan Hubicka  <jh@suse.cz>
20500
20501         * sched-ebb.c: Rename struct deps to struct deps_desc.
20502         * ddg.c: Likewise.
20503         * sel-sched-ir.c: Likewise.
20504         * sched-deps.c: Likewise.
20505         * sched-int.h: Likewise.
20506         * sched-rgn.c: Likewise.
20507
20508 2010-05-27  Jon Beniston  <jon@beniston.com>
20509
20510         PR 43726
20511         * config/lm32/lm32.h: Remove definition of
20512         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
20513
20514 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20515
20516         PR lto/44230
20517         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
20518
20519 2010-05-27  Richard Guenther  <rguenther@suse.de>
20520
20521         PR tree-optimization/44284
20522         * tree-vect-stmts.c (vectorizable_assignment): Handle
20523         sign-changing conversions as simple copy.
20524
20525 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
20526
20527         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
20528         Bionic C library.
20529         (__gthread_active_p): Check for pthread_create if compiling against
20530         Bionic C library.
20531
20532 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
20533
20534         Support compilation for Android platform.  Reimplement -mandroid.
20535
20536         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
20537         (*android*): Set ANDROID_DEFAULT.
20538         (arm*-*-linux*): Include linux-android.h.
20539         (arm*-*-eabi*): Don't include previous -mandroid implementation.
20540         * config/arm/eabi.h: Remove, move Android-specific parts ...
20541         * config/linux-android.h: ... here.  New file.
20542         * config/arm/eabi.opt: Rename to ...
20543         * config/linux-android.opt: ... this.
20544         (mandroid): Allow -mno-android option.  Initialize based on
20545         ANDROID_DEFAULT.
20546         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
20547         Move logic to corresponding LINUX_TARGET_* macros.
20548         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
20549         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
20550         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
20551         Android definitions.
20552         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
20553         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
20554         Document.
20555
20556 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
20557
20558         Add support for Bionic C library
20559
20560         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
20561         macro.
20562         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
20563         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
20564
20565         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
20566         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
20567         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
20568         to support multiple C libraries.  Handle Bionic.
20569         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
20570         (BIONIC_DYNAMIC_LINKER64): Define.
20571         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
20572         Update.
20573         (TARGET_HAS_SINCOS): Enable for Bionic.
20574
20575         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
20576         the last option specified on command line take effect.
20577         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
20578         (mbionic): New.
20579         (mglibc, muclibc): Update.
20580
20581         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
20582         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
20583         DEFAULT_LIBC.
20584
20585         * doc/invoke.texi (-mglibc, -muclibc): Update.
20586         (-mbionic): Document.
20587
20588 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20589
20590         * c-common.h (c_register_addr_space): Add prototype.
20591         (ADDR_SPACE_KEYWORD): Remove.
20592         * c-common.c (c_register_addr_space): New function.
20593         (c_addr_space_name): Reimplement.
20594         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
20595
20596         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
20597         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
20598
20599         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
20600         Remove TARGET_ADDR_SPACE_KEYWORDS.
20601
20602 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
20603
20604         * input.c: New file.
20605         * input.h (main_input_filename): Move declaration to toplev.h.
20606         * toplev.c (input_location, line_table): Move to input.c
20607         * toplev.h (main_input_filename): Move declaration from input.h.
20608         * tree.c (expand_location): Move to input.c.
20609         * Makefile.in (OBJS-common): Add input.o.
20610         (input.o): Add dependencies.
20611
20612 2010-05-27  Richard Guenther  <rguenther@suse.de>
20613
20614         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
20615         for non-existant files.
20616         (fork_execute): Mark args_name file as deleted.
20617
20618 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
20619
20620         PR bootstrp/44287
20621         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
20622         (narrow_signed_type): Likewise.
20623
20624 2010-05-26  Jan Hubicka  <jh@suse.cz>
20625
20626         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
20627         edge only when checking is enabled; check using former_clone_of;
20628         check inline clones too.
20629         (cgraph_materialize_clone): Record former_clone_of pointer.
20630         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
20631         combining redirections; dump args_to_skip bitmap
20632         (cgraph_materialize_all_clones): Do no redirection here.
20633         * ipa-inline.c (inline_transform): Do redirection here.
20634         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
20635         cheking only).
20636
20637 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20638
20639         * config/avr/avr-c.c: Do not include regs.h.
20640         Include cpplib.h for cpp_define and tree.h for c-common.h.
20641         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
20642         * config/avr/t-avr: Fix dependencies for avr-c.o.
20643
20644 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20645
20646         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
20647         string instead of SYMBOL_REF rtx.
20648         * rtl.h (set_stack_check_libfunc): Move prototype from here...
20649         * libfuncs.h: ...to here.  Adjust for explow.c change.
20650
20651 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
20652
20653         * pretty-print.c: Don't include ggc.h.
20654         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
20655         (identifier_to_locale): Use them for allocation.
20656         * pretty-print.h (identifier_to_locale_alloc,
20657         identifier_to_locale_free): Declare.
20658         * toplev.c (alloc_for_identifier_to_locale): New.
20659         (general_init): Set identifier_to_locale_alloc and
20660         identifier_to_locale_free.
20661         * Makefile.in (pretty-print.o): Update dependencies.
20662
20663 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
20664
20665         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
20666         pointer types if they have different alignment or mode.
20667
20668 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
20669
20670         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20671         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20672         * config/sparc/sparc-protos.h (function_value): Remove declaration.
20673         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
20674         sparc_function_value_regno_p): New functions.
20675         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20676         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20677         (function_value): Rename to...
20678         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
20679         argument to 'outgoing'.
20680         (function_arg_record_value, function_arg_union_value,
20681         function_arg_vector_value): Update comment.
20682
20683 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
20684
20685         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
20686         (fde_needed_for_eh_p): New predicate.
20687         (output_call_frame_info): Use it throughout to decide whether FDEs
20688         are needed for EH purpose.
20689         (dwarf2out_begin_prologue): Reorder assignments.
20690
20691 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20692
20693         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
20694         special case loop->header.
20695         (is_predicated): New.
20696         (if_convertible_loop_p): Call it.
20697
20698 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20699
20700         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
20701         iterator in parameter.  Do not generate code during the analysis.
20702         (tree_if_convert_cond_stmt): Removed.
20703         (tree_if_convert_stmt): Removed.
20704         (predicate_bbs): New.
20705         (if_convertible_loop_p): Call predicate_bbs.
20706         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
20707         now contains all the analysis part.
20708
20709 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20710
20711         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
20712         statements in the analysis part.
20713         (tree_if_convert_stmt): Update comment.
20714         (remove_conditions_and_labels): New.
20715         (combine_blocks): Call remove_conditions_and_labels.
20716         (tree_if_conversion): Update comment.
20717
20718 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20719
20720         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
20721         than 2 predecessors or more than 2 successors.
20722
20723 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20724
20725         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
20726         of loops in which the data dependence analysis fails.
20727
20728 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20729
20730         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
20731         CDI_POST_DOMINATORS.
20732         (tree_if_conversion): Same.
20733
20734 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20735
20736         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
20737
20738 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20739
20740         * tree-if-conv.c: Update copyright years.  Fix comments.
20741         Fix indentation.
20742
20743 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
20744
20745         * builtin-types.def (BT_INT128): New primitive type.
20746         (BT_UINT128): Likewise.
20747         * c-common.c (c_common_r): Add __int128 keyword.
20748         (c_common_type_for_size): Handle __int128.
20749         (c_common_type_for_mode): Likewise.
20750         (c_common_signed_or_unsigned_type): Likewise.
20751         (c_common_nodes_and_builtins): Add builtin type
20752         if target supports 128-bit integer scalar.
20753         * c-common.h (enum rid): Add RID_INT128.
20754         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
20755         if target supports 128-bit integer scalar.
20756         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
20757         (finish_declspecs): Likewise.
20758         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
20759         (c_token_starts_declspecs): Likewise.
20760         (c_parser_declspecs): Likewise.
20761         (c_parser_attributes): Likewise.
20762         (c_parser_objc_selector): Likewise.
20763         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
20764         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
20765         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
20766         * tree.c (make_or_reuse_type): Likewise.
20767         (make_unsigned_type): Likewise.
20768         (build_common_tree_nodes_2): Likewise.
20769         * tree.h (enum integer_type_kind): Add itk_int128 and
20770         itk_unsigned_int128.
20771         (int128_integer_type_node): New define.
20772         (int128_unsigned_type_node): New define.
20773         * doc/extend.texi: Add documentation about __int128 type.
20774
20775 2010-05-26  Richard Guenther  <rguenther@suse.de>
20776
20777         * tree-ssa-sccvn.c (copy_nary): Adjust.
20778         (copy_phis): Rename to ...
20779         (copy_phi): ... this.  Adjust.
20780         (copy_references): Rename to ...
20781         (copy_reference): ... this.  Adjust.
20782         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
20783         result into the valid table.
20784
20785 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20786
20787         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
20788         insn-config.h, insn-codes.h, recog.h, and optabs.h.
20789
20790 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20791
20792         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
20793
20794 2010-05-26  Richard Guenther  <rguenther@suse.de>
20795
20796         * opts.c (common_handle_option): Handle OPT_Ofast.
20797
20798 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
20799
20800         * diagnostic.c: Don't include opts.h.
20801         (permissive_error_option): Define.
20802         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
20803         for classify_diagnostic.  Don't use memset for
20804         classify_diagnostic.  Initialize new and recently added fields.
20805         (diagnostic_classify_diagnostic): Use context->n_opts instead of
20806         N_OPTS.
20807         (diagnostic_report_diagnostic): Pass context parameter to
20808         diagnostic_report_warnings_p.  Use option_enabled and option_name
20809         hooks from context.
20810         (emit_diagnostic): Use permissive_error_option.
20811         (permerror): Likewise.
20812         * diagnostic.h: Don't include options.h.
20813         (struct diagnostic_context): Add n_opts, opt_permissive,
20814         inhibit_warnings, warn_system_headers, option_enabled and
20815         option_name fields.  Change classify_diagnostic to a pointer.
20816         * opts-diagnostic.h: New file.
20817         * opts.c: Include opts-diagnostic.h.
20818         (common_handle_option): Set global_dc fields for -Wfatal-errors,
20819         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
20820         (option_name): New function.
20821         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
20822         (c_common_handle_option): Set global_dc->permissive for
20823         -fpermissive.
20824         * c-common.c (c_cpp_error): Save and restore
20825         global_dc->warn_system_headers, not variable warn_system_headers.
20826         * toplev.c: Include opts-diagnostic.h.
20827         (general_init): Update call to diagnostic_initialize.  Set
20828         global_dc->show_column, global_dc->option_enabled and
20829         global_dc->option_name.
20830         (process_options): Don't set global_dc fields here.
20831         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
20832         (diagnostic.o, opts.o, toplev.o): Update dependencies.
20833
20834 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
20835
20836         * config/picochip/picochip.md (movsi): Split a movsi from a
20837         const after reload.
20838
20839 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20840
20841         * ggc-zone.c: Update copyright year.
20842         (poison_region): Mark memory for Valgrind as undefined before
20843         memset () call and inaccessible afterwards.
20844         (ggc_pch_total_size): Change type of i to int.
20845
20846 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20847
20848         * ggc-common.c (ggc_free_overhead): Allow empty slot.
20849
20850 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20851
20852         * ggc-common.c: Update copyright year.
20853         (ggc_rlimit_bound): Remove prototype.  Compile only if
20854         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
20855         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
20856         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
20857         (ggc_min_heapsize_heuristic): Likewise.
20858
20859 2010-05-26  Richard Guenther  <rguenther@suse.de>
20860
20861         PR rtl-optimization/44164
20862         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
20863         no-common access-path disambiguation.
20864         (indirect_ref_may_alias_decl_p): Adjust.
20865         (indirect_refs_may_alias_p): Likewise.
20866         (refs_may_alias_p_1): Likewise.
20867
20868 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20869
20870         * c-typeck.c: Do not include expr.h.
20871
20872 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20873
20874         * rtl.h (decl_default_tls_model): Move prototype from here...
20875         * output.h: ...to here.
20876         * c-decl.c: Do not include rtl.h.
20877         * c-pragma.c: Likewise.
20878         * c-parser.c: Likewise.
20879         * c-gimplify.c: Likewise.  And also not hard-reg-set.
20880         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
20881         FIXME note for it.  Add a FIXME note for expr.h.
20882         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
20883         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
20884         defined.
20885
20886 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
20887
20888         PR target/44199
20889         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
20890         or total_size is larger than red zone size for non-V4 ABI, emit a
20891         stack_tie resp. frame_tie insn before stack pointer restore.
20892         * config/rs6000/rs6000.md (frame_tie): New insn.
20893
20894 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
20895
20896         * function.h (struct function): Add can_throw_non_call_exceptions bit.
20897         * lto-streamer-in.c (input_function): Stream it in.
20898         * lto-streamer-out.c (output_function): Stream it out.
20899         * function.c (allocate_struct_function): Set it.
20900         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
20901         for flag_non_call_exceptions.
20902         * cfgbuild.c (control_flow_insn_p): Likewise.
20903         (make_edges): Likewise.
20904         * cfgexpand.c (expand_stack_alignment): Likewise.
20905         * combine.c (distribute_notes): Likewise.
20906         * cse.c (cse_extended_basic_block): Likewise.
20907         * except.c (insn_could_throw_p): Likewise.
20908         * gcse.c (simple_mem): Likewise.
20909         * ipa-pure-const.c (check_call): Likewise.
20910         (check_stmt ): Likewise.
20911         * lower-subreg.c (lower-subreg.c): Likewise.
20912         * optabs.c (emit_libcall_block): Likewise.
20913         (prepare_cmp_insn): Likewise.
20914         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
20915         * postreload.c (rest_of_handle_postreload): Likewise.
20916         * reload1.c (reload_as_needed): Likewise.
20917         (emit_input_reload_insns): Likewise.
20918         (emit_output_reload_insns): Likewise.
20919         (fixup_abnormal_edges): Likewise.
20920         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
20921         * store-motion.c (find_moveable_store): Likewise.
20922         * tree-eh.c (stmt_could_throw_p): Likewise.
20923         (tree_could_throw_p): Likewise.
20924         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20925         * config/arm/arm.c (arm_expand_prologue): Likewise.
20926         (thumb1_expand_prologue): Likewise.
20927         * config/rx/rx.md (cbranchsf4): Likewise.
20928         (cmpsf): Likewise.
20929         * config/s390/s390.c (s390_emit_prologue): Likewise.
20930         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
20931         (inline_forbidden_into_p): New predicate.
20932         (expand_call_inline): Use it to forbid inlining.
20933         (tree_can_inline_p): Likewise.
20934
20935 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
20936
20937         * config/i386/i386-c.c: Do not include rtl.h.
20938         * config/i386/t-i386: Update dependencies.
20939
20940 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
20941
20942         * attribs.c: Do not include rtl.h.
20943         * Makefile.in: Update dependencies.
20944
20945 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
20946
20947         * double-int.h (double_int_and): New.
20948         * combine.c (try_combine): Clean up, use double_int_* and
20949         immed_double_int_const functions.
20950
20951 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20952
20953         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
20954         stderr to /dev/null instead of grep -q.
20955         * configure: Regenerate.
20956
20957 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
20958
20959         * Makefile.in (EXCEPT_H): Fix typo.
20960
20961 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
20962
20963         * ira-build.c (update_conflict_hard_reg_costs): New.
20964         (ira_build): Call update_conflict_hard_reg_costs.
20965
20966 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
20967
20968         PR debug/41371
20969         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
20970         ENABLE_CHECKING.
20971         (intersect_loc_chains): Walk the s2var's loc_chain together
20972         with s1node chain as long as the locations are equal, don't
20973         call find_loc_in_1pdv in that case.
20974
20975         PR debug/42801
20976         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
20977         (copy_bind_expr): ... instead of here.
20978         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
20979         if the block hasn't been remapped.
20980         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
20981         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
20982
20983 2010-05-25  Richard Guenther  <rguenther@suse.de>
20984
20985         PR middle-end/44069
20986         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
20987         out-of-bounds array accesses.
20988
20989 2010-05-25  Richard Guenther  <rguenther@suse.de>
20990
20991         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
20992         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
20993         (run_gcc): Re-organize to make cleanup easier.
20994
20995 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20996
20997         * config/s390/s390.c (optimization_options): Fix and move the
20998         flag_prefetch_loop_arrays override ...
20999         (override_options): ... here.
21000
21001 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
21002
21003         * diagnostic.c: Don't include plugin.h.
21004         (diagnostic_report_diagnostic): Don't handle plugins specially
21005         here.  Pass context to internal_error callback.
21006         * diagnostic.h (struct diagnostic_context): Add context parameter
21007         to internal_error callback.
21008         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
21009         * plugin.h (struct diagnostic_context): Declare.
21010         (warn_if_plugins, plugins_internal_error_function): Declare.
21011         * toplev.c (general_init): Set global_dc->internal_error.
21012         * Makefile.in (diagnostic.o): Update dependencies.
21013
21014 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
21015
21016         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
21017         * config/rs6000/t-darwin64: New.
21018         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
21019         build crt2.
21020
21021 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
21022
21023         PR 44203
21024         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
21025         match the original (and intended) behaviour before r159557.  This
21026         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
21027         in two ways.
21028
21029 2010-05-25  Richard Guenther  <rguenther@suse.de>
21030
21031         * doc/invoke.texi: Document -Ofast.
21032         * target.h (struct gcc_target): Add handle_ofast.
21033         * target-def.h (TARGET_HANDLE_OFAST): Add.
21034         (TARGET_INITIALIZER): Adjust.
21035         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
21036         * common.opt (Ofast): Add.
21037
21038 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
21039
21040         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
21041         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
21042
21043 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
21044
21045         PR target/43610
21046         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
21047         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
21048         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
21049         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
21050
21051 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
21052
21053         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
21054         DW_OP_minus with negated offset instead of DW_OP_plus.
21055         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
21056
21057 2010-05-25  Wei Guozhi  <carrot@google.com>
21058
21059         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
21060         tst instruction and a new alternative.
21061         * config/arm/constraints.md (Pu): New constraint.
21062
21063 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
21064
21065         * function.c (assign_stack_local_1): Initialize variable
21066         to avoid warning when bootstrapping at -O3.
21067
21068 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
21069
21070         * configure.ac (all_lang_makefiles): Remove everything related to it.
21071         * configure: Regenerate.
21072         * Makefile.in: Fix reference to ada Make-lang.in.
21073         Remove support for LANG_MAKEFILES.
21074
21075 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
21076             Sandra Loosemore  <sandra@codesourcery.com>
21077
21078         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
21079         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
21080         description.  Add arm_neon_fp16_ok.
21081         (Add Options): Add arm_neon and arm_neon_fp16.
21082
21083 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
21084
21085         * diagnostic.c: Don't include flags.h.
21086         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
21087         context parameters.  Check flags in the context passed as a parameter.
21088         (diagnostic_build_prefix): Add context parameter.  Check
21089         show_column flag in context.
21090         (diagnostic_action_after_output): Check fatal_errors flag in context.
21091         (diagnostic_report_current_module): Check show_column flag in context.
21092         (default_diagnostic_starter): Update call to
21093         diagnostic_build_prefix.
21094         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
21095         (emit_diagnostic): Pass context to permissive_error_kind.
21096         (permerror): Pass context to permissive_error_kind.
21097         * diagnostic.h (struct diagnostic_context): Add show_column,
21098         pedantic_errors, permissive and fatal_errors fields.
21099         (diagnostic_build_prefix): Update prototype.
21100         * langhooks.c
21101         * toplev.c (process_options): Set flags in global_dc from
21102         flag_show_column, flag_pedantic_errors, flag_permissive,
21103         flag_fatal_errors.
21104         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
21105         to diagnostic_build_prefix.
21106         * Makefile.in (diagnostic.o): Update dependencies.
21107
21108 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
21109
21110         * config/i386/ia32intrin.h (__crc32q): Define only if
21111         __SSE4_2__ is defined.
21112
21113 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
21114
21115         PR target/44132
21116         PR middle-end/43602
21117         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
21118         DECL_VISIBILITY_SPECIFIED.
21119         (emutls_decl): Set DECL_PRESERVE_P and copy
21120         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
21121         (emutls_finalize_control_var): New callback.
21122         (emutls_finish): Finalize emutls control variables.
21123         * toplev.c (compile_file): Move the call to emutls_finish ()
21124         before varpool_assemble_pending_decls ().
21125
21126 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
21127
21128         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
21129         added to the preprocessor condition.
21130
21131 2010-05-24  Paul Brook  <paul@codesourcery.com>
21132
21133         * gengtype-lex.l: Add HARD_REG_SET.
21134         * expr.c (expand_expr_real_1): Record writes to hard registers.
21135         * function.c (rtl_data): Add asm_clobbers.
21136         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
21137         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
21138         Use crtl->asm_clobbers.
21139
21140 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21141
21142         * doc/makefile.texi (Makefile): Mention stages 'profile'
21143         and 'feedback' for profiledbootstrap.
21144
21145 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
21146
21147         PR target/44245
21148         * config/i386/i386.c (def_builtin): Properly check
21149         OPTION_MASK_ISA_64BIT.
21150
21151 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
21152
21153         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
21154         typedefs with different but compatible types.  Allow duplicate
21155         typedefs with the same type except for pedantic non-C1X, but give
21156         warning for variably modified types.
21157         * c-typeck.c (tagged_types_tu_compatible_p,
21158         function_types_compatible_p, type_lists_compatible_p,
21159         comptypes_internal): Add parameter different_types_p; set
21160         *different_types_p for different but compatible types.  All
21161         callers changed.
21162         (comptypes_check_different_types): New.
21163         * c-tree.h (comptypes_check_different_types): Declare.
21164
21165 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
21166
21167         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
21168         * jump.c: Include basic-block.h.
21169         * profile.c: Likewise.
21170         * tree-profile.c: Likewise.
21171         * coverage.c: Likewise.
21172         * basic-block.h (optimize_function_for_size_p): Move to function.h.
21173         (optimize_function_for_speed_p): Likewise.
21174         * function.h (optimize_function_for_size_p,
21175         optimize_function_for_speed_p): Moved here from basic-block.h.
21176         * Makefile.in: Update dependencies.
21177
21178 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21179
21180         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
21181         before calling make; allow override through $MAKE.
21182         * doc/invoke.texi (Optimize Options): Document override.
21183
21184 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
21185
21186         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
21187         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21188         (rs6000_mode_dependent_address_ptr): Make static.
21189         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21190         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
21191         Remove.
21192
21193 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
21194
21195         PR target/43869
21196         * config/i386/i386.c: Make sure that the correct regparm is passed.
21197
21198 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
21199
21200         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
21201         * sbitmap.c: ...to here to internalize sbitmap element access.
21202         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
21203         Explain why basic-block.h is included.
21204         * function.h: Include tm.h for CUMULATIVE_ARGS.
21205         * Makefile.in: Update dependencies.
21206
21207 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
21208
21209         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
21210         New core types.
21211         * sbitmap.h (struct sbitmap_def): Do not typedef here.
21212         * sbitmap.c: Include sbitmap.h.
21213         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
21214         hard-reg-set.h.  Split everything related to regsets out from here...
21215         * regset.h: ...to here.  New file.
21216         * df.h: Include regset.h and sbitmap.h.
21217         * tree-flow.h: Likewise.
21218         * cfgloop.h: Likewise.
21219         * except.h: Do not include sbitmap.h.  Include hashtab.h.
21220         * cgraph.h: Include vec.h and function.h.
21221         * reload.h (struct insn_chain): Change types of live_throughout
21222         and dead_or_set from regset_head to bitmap_head.
21223         (compute_use_by_pseudos): Be defined also if regset.h is not included.
21224         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
21225         spilled_regs from regset_head to bitmap_head to avoid dependency
21226         in regset.h.
21227         * sel-sched-ir.h: Include regset.h.
21228         * reload.c: Include df.h before reload.h.
21229         * caller-save.c: Likewise.
21230         * reload1.c: Likewise.
21231         * ira.c: Likewise.
21232         (mark_elimination): Update type of r to bitmap, consistent with
21233         DF_LR_IN.
21234         * dominance.c: Include bitmap.h.
21235         * modulo-sched.c: Include df.h.
21236         * cfganal.c: Include bitmap.h and sbitmap.h.
21237         * cfgbuild.c: Include sbitmap.h.
21238         * lcm.c: Include sbitmap.h.
21239         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
21240         * domwalk.c: Include sbitmap.h, exclude ggc.h.
21241         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
21242         * cselib.c: Include bitmap.h.
21243         * tree-optimize.c: Include regset.h.
21244         * stmt.c: Include bitmap.h.
21245         * Makefile.in: Update dependencies.
21246
21247 2010-05-22  Jan Hubicka  <jh@suse.cz>
21248
21249         * cgraph.h (struct varpool_node): Add same_comdat_group.
21250         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
21251         pointer.
21252         (output_varpool): Update call of lto_output_varpool_node.
21253         (input_varpool): Read same_comdat_group pointer.
21254         (input_varpool_1): Fixup same_comdat_group pointer.
21255         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
21256         group is needed, all are.
21257         * varpool.c (varpool_remove_node): Remove node from same comdat group
21258         linklist too.
21259         (varpool_analyze_pending_decls): Walk same comdat groups.
21260
21261 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
21262
21263         * rtl.h (union rtunion_def): Remove rt_bit member.
21264         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
21265         * print-rtl (print_rtx): Do not print the member.
21266         * gengtype.c (adjust_field_rtx_def): Do not handle it.
21267         * gengenrtl.c (type_from_format): Likewise.
21268         (accessor_from_format): Likewise.
21269
21270 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
21271
21272         * dbgcnt.c: Include toplev.h instead of errors.h.
21273         * ira-emit.c: Don't include errors.h.
21274         * ira.c: Include toplev.h instead of errors.h.
21275         * lto-compress.c: Include toplev.h instead of errors.h.
21276         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
21277         ira.o, dbgcnt.o): Update dependencies.
21278
21279 2010-05-22  Richard Guenther  <rguenther@suse.de>
21280
21281         * gimple.c (gimple_types_compatible_p): Check type qualifications
21282         before merging pointer to complete and pointer to incomplete type.
21283         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
21284         we use our own resolution algorithm.  The gold linker plugin
21285         doesn't do the job we want it to do here.
21286
21287 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
21288
21289         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21290         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21291         (sparc_mode_dependent_address_p): New function.
21292
21293 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
21294
21295         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
21296
21297         * timevar.c: Do not include any core headers.
21298         (timevar_print): De-i18n-ize.
21299         (print_time): Likewise.
21300         * timevar.h (timevar_push, timevar_pop): Make inline functions.
21301
21302 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
21303
21304         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
21305         langhooks-def.h.
21306         (diagnostic_initialize): Initialize x_data not last_function.
21307         (diagnostic_report_current_function): Move to tree-diagnostic.c.
21308         (default_diagnostic_starter): Call
21309         diagnostic_report_current_module not
21310         diagnostic_report_current_function.
21311         (diagnostic_report_diagnostic): Initialize x_data not
21312         abstract_origin.
21313         (verbatim): Likewise.
21314         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
21315         x_data.
21316         (struct diagnostic_context): Change last_function to x_data.
21317         (diagnostic_auxiliary_data): Replace with
21318         diagnostic_context_auxiliary_data and
21319         diagnostic_info_auxiliary_data.
21320         (diagnostic_last_function_changed, diagnostic_set_last_function,
21321         diagnostic_report_current_function): Move to tree-diagnostic.h.
21322         (print_declaration, dump_generic_node, print_generic_stmt,
21323         print_generic_stmt_indented, print_generic_expr,
21324         print_generic_decl, debug_c_tree, dump_omp_clauses,
21325         print_call_name, debug_generic_expr, debug_generic_stmt,
21326         debug_tree_chain, default_tree_printer): Move to
21327         tree-pretty-print.h.
21328         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
21329         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
21330         gimple-pretty-print.h.
21331         * pretty-print.c: Don't include tree.h
21332         (pp_base_format): Don't handle %K here.
21333         (pp_base_tree_identifier): Move to tree-pretty-print.c.
21334         * pretty-print.h (text_info): Change abstract_origin to x_data.
21335         (pp_tree_identifier, pp_unsupported_tree,
21336         pp_base_tree_identifier): Move to tree-pretty-print.h.
21337         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
21338         tree-pretty-print.h: New files.
21339         * tree-pretty-print.c: Include tree-pretty-print.h.
21340         (percent_K_format): New.  Moved from pretty-print.c.
21341         (pp_base_tree_identifier): Move from pretty-print.c.
21342         * c-objc-common.c: Include tree-pretty-print.h.
21343         (c_tree_printer): Handle %K here.
21344         * langhooks.c: Include tree-diagnostic.h.
21345         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
21346         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
21347         (default_tree_printer): Handle %K using percent_K_format.
21348         (general_init): Use default_tree_diagnostic_starter.
21349         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
21350         (free_lang_data): Use default_tree_diagnostic_starter.
21351         * c-pretty-print.c: Include tree-pretty-print.h.
21352         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
21353         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
21354         * dwarf2out.c: Include tree-pretty-print.h.
21355         * except.c: Include tree-pretty-print.h.
21356         * gimple-pretty-print.c: Include tree-pretty-print.h and
21357         gimple-pretty-print.h.
21358         * gimplify.c: Include tree-pretty-print.h.
21359         * graphite-poly.c: Include tree-pretty-print.h and
21360         gimple-pretty-print.h.
21361         * ipa-cp.c: Include tree-pretty-print.h.
21362         * ipa-inline.c: Include gimple-pretty-print.h.
21363         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
21364         * ipa-pure-const.c: Include gimple-pretty-print.h.
21365         * ipa-struct-reorg.c: Include tree-pretty-print.h and
21366         gimple-pretty-print.h.
21367         * ipa-type-escape.c: Include tree-pretty-print.h.
21368         * print-rtl.c: Include tree-pretty-print.h.
21369         * print-tree.c: Include gimple-pretty-print.h.
21370         * sese.c: Include tree-pretty-print.h.
21371         * tree-affine.c: Include tree-pretty-print.h.
21372         * tree-browser.c: Include tree-pretty-print.h.
21373         * tree-call-cdce.c: Include gimple-pretty-print.h.
21374         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
21375         * tree-chrec.c: Include tree-pretty-print.h.
21376         * tree-data-ref.c: Include tree-pretty-print.h and
21377         gimple-pretty-print.h.
21378         * tree-dfa.c: Include tree-pretty-print.h.
21379         * tree-if-conv.c: Include tree-pretty-print.h and
21380         gimple-pretty-print.h.
21381         * tree-inline.c: Include tree-pretty-print.h.
21382         * tree-into-ssa.c: Include tree-pretty-print.h and
21383         gimple-pretty-print.h.
21384         * tree-nrv.c: Include tree-pretty-print.h.
21385         * tree-object-size.c: Include tree-pretty-print.h and
21386         gimple-pretty-print.h.
21387         * tree-outof-ssa.c: Include tree-pretty-print.h and
21388         gimple-pretty-print.h.
21389         * tree-parloops.c: Include tree-pretty-print.h and
21390         gimple-pretty-print.h.
21391         * tree-predcom.c: Include tree-pretty-print.h and
21392         gimple-pretty-print.h.
21393         * tree-scalar-evolution.c: Include tree-pretty-print.h and
21394         gimple-pretty-print.h.
21395         * tree-sra.c: Include tree-pretty-print.h.
21396         * tree-ssa-address.c: Include tree-pretty-print.h.
21397         * tree-ssa-alias.c: Include tree-pretty-print.h.
21398         * tree-ssa-ccp.c: Include tree-pretty-print.h and
21399         gimple-pretty-print.h.
21400         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
21401         * tree-ssa-copy.c: Include tree-pretty-print.h and
21402         gimple-pretty-print.h.
21403         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
21404         * tree-ssa-dce.c: Include tree-pretty-print.h and
21405         gimple-pretty-print.h.
21406         * tree-ssa-dom.c: Include tree-pretty-print.h and
21407         gimple-pretty-print.h.
21408         * tree-ssa-dse.c: Include gimple-pretty-print.h.
21409         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
21410         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
21411         * tree-ssa-live.c: Include tree-pretty-print.h and
21412         gimple-pretty-print.h.
21413         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
21414         gimple-pretty-print.h.
21415         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
21416         gimple-pretty-print.h.
21417         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
21418         gimple-pretty-print.h.
21419         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
21420         gimple-pretty-print.h.
21421         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
21422         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
21423         * tree-ssa-operands.c: Include tree-pretty-print.h and
21424         gimple-pretty-print.h.
21425         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
21426         gimple-pretty-print.h.
21427         * tree-ssa-pre.c: Include tree-pretty-print.h and
21428         gimple-pretty-print.h.
21429         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
21430         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
21431         gimple-pretty-print.h.
21432         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
21433         gimple-pretty-print.h.
21434         * tree-ssa-sink.c: Include gimple-pretty-print.h.
21435         * tree-ssa-ter.c: Include tree-pretty-print.h and
21436         gimple-pretty-print.h.
21437         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
21438         * tree-ssa.c: Include tree-pretty-print.h and
21439         gimple-pretty-print.h.
21440         * tree-stdarg.c: Include gimple-pretty-print.h.
21441         * tree-switch-conversion.c: Include gimple-pretty-print.h.
21442         * tree-tailcall.c: Include tree-pretty-print.h and
21443         gimple-pretty-print.h.
21444         * tree-vect-data-refs.c: Include tree-pretty-print.h and
21445         gimple-pretty-print.h.
21446         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
21447         gimple-pretty-print.h.
21448         * tree-vect-loop.c: Include tree-pretty-print.h and
21449         gimple-pretty-print.h.
21450         * tree-vect-patterns.c: Include gimple-pretty-print.h.
21451         * tree-vect-slp.c: Include tree-pretty-print.h and
21452         gimple-pretty-print.h.
21453         * tree-vect-stmts.c: Include tree-pretty-print.h and
21454         gimple-pretty-print.h.
21455         * tree-vectorizer.c: Include tree-pretty-print.h.
21456         * tree-vrp.c: Include tree-pretty-print.h and
21457         gimple-pretty-print.h.
21458         * value-prof.c: Include tree-pretty-print.h and
21459         gimple-pretty-print.h.
21460         * var-tracking.c: Include tree-pretty-print.h.
21461         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
21462         (tree-diagnostic.o): New dependencies.
21463         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
21464         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
21465         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
21466         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
21467         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
21468         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
21469         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
21470         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
21471         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
21472         tree-ssa-address.o, tree-ssa-loop-niter.o,
21473         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
21474         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
21475         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
21476         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
21477         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
21478         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
21479         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
21480         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
21481         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
21482         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
21483         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
21484         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
21485         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
21486         tree-switch-conversion.o, var-tracking.o, value-prof.o,
21487         cfgexpand.o, pretty-print.o): Update dependencies.
21488
21489 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
21490
21491         * tree-ssa-structalias.c: Remove tm_p.h from include.
21492
21493 2010-05-21  Jeff Law  <law@redhat.com>
21494
21495         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
21496
21497 2010-05-21  Jason Merrill  <jason@redhat.com>
21498
21499         * tree-eh.c (cleanup_is_dead_in): New.
21500         (lower_try_finally): Don't generate a dead cleanup region.
21501         (lower_cleanup): Likewise.
21502
21503 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
21504
21505         PR debug/44223
21506         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
21507         unchain each use from the cyclic next_regno_use chain first.
21508
21509 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
21510
21511         * real: Do not include gmp.h, mpfr.h, and mpc.h.
21512         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
21513         (real_value_negate, real_value_abs): New prototypes.
21514         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
21515         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
21516         new include file for interface between MPFR and REAL_VALUE_TYPE.
21517         * real.c: Include realmpfr.h.
21518         (real_arithmetic2): Remove legacy function.
21519         (real_value_negate): New.
21520         (real_value_abs): New.
21521         (mfpr_from_real, real_from_mpfr): Move from here...
21522         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
21523         * builtins.c: Include realmpfr.h.
21524         * fold-const.c: Include realmpfr.h.
21525         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
21526         (fold_negate_const): Likewise.
21527         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
21528         * toplev.c: Include realmpfr.h.
21529         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
21530         and real_value_negate.
21531         * fixed-value.c (check_real_for_fixed_mode): Likewise.
21532         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
21533         (vfp3_const_double_index): Likewise.
21534         (arm_print_operand): Likewise.
21535         * Makefile.in: Update dependencies.
21536
21537 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21538
21539         * config/s390/s390.c (override_options): Increase the default
21540         of max-completely-peel-times.
21541
21542 2010-05-21  Julian Brown  <julian@codesourcery.com>
21543             Mark Mitchell  <mark@codesourcery.com>
21544
21545         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
21546         sibling calls for Thumb-1.
21547         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
21548         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
21549         Thumb-2.
21550         (*call_insn, *call_value_insn): Don't use for Thumb-2.
21551         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
21552         for Thumb-2.
21553         (return): New expander.
21554         (*arm_return): New name for ARM return insn.
21555         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
21556
21557 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
21558
21559         * config.gcc (sparc64-*-rtems*): New target.
21560
21561 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
21562
21563         * tree.c (build_function_decl_skip_args): Fix grammar.
21564         (build_function_type_list_1): Fix typos, adjust formatting.
21565
21566 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
21567
21568         * tree.h: Include real.h and fixed-value.h as basic datatypes.
21569         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
21570         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
21571         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
21572         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
21573         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
21574         tree-pretty-print.c, tree-loop-distribution.c,
21575         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
21576         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
21577         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
21578         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
21579         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
21580         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
21581         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
21582         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
21583         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
21584         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
21585         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
21586         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
21587         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
21588         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
21589         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
21590         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
21591         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
21592         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
21593         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
21594         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
21595         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
21596         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
21597         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
21598         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
21599         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
21600         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
21601         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
21602         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
21603         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
21604         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
21605         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
21606         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
21607         config/score/score7.c, config/score/score.c, config/arm/arm.c,
21608         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
21609         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
21610         config/bfin/bfin.c: Clean up redundant includes.
21611         * Makefile.in: Update accordingly.
21612
21613 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
21614
21615         PR middle-end/44204
21616         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
21617         statement has no arguments.
21618
21619 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
21620
21621         PR/44139
21622         * varasm.c (emutls_decl): Merge attributes to new decl.
21623
21624 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
21625
21626         PR middle-end/44101
21627         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
21628         around the uniquized constructor if its type requires a conversion.
21629
21630 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
21631
21632         PR debug/44205
21633         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
21634         at -O0 goto_locus of any of the incoming edges differs from
21635         goto_locus of outgoing edge, or gimple_location of any of the
21636         labels differs.
21637
21638 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
21639
21640         * ira.c (ira_non_ordered_class_hard_regs): Define.
21641         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
21642         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
21643         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
21644         cost of unaligned hard regs when allocating multi-reg pseudos.
21645
21646 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
21647
21648         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
21649         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
21650         for TARGET_NO_FLOAT.
21651         * config/mips/mips.c (mips_file_start): Expand conditional expression
21652         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
21653         (mips_override_options): Move -mno-float override -msoft-float and
21654         -mhard-float.
21655         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
21656         Condition(TARGET_SUPPORTS_NO_FLOAT).
21657         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
21658         __mips_no_float here.
21659         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
21660         (TARGET_SUPPORTS_NO_FLOAT): Define.
21661         * config/mips/sdemtk.opt: Delete.
21662
21663 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
21664
21665         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
21666
21667 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
21668
21669         PR target/43733
21670         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
21671         * configure: Regenerate.
21672         * config.in: Regenerate.
21673         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
21674         instead of sahf only for 64bit targets.
21675
21676 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
21677
21678         PR debug/44178
21679         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
21680         setup_ref_regs for DEBUG_INSNs.
21681
21682 2010-05-20  Jan Hubicka  <jh@suse.cz>
21683
21684         PR middle-end/44197
21685         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
21686
21687 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
21688
21689         PR bootstrap/43870
21690         * df-scan.c (df_ref_compare): Stabilize sort.
21691
21692 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
21693
21694         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
21695         argument.  Don't use DW_OP_piece if offset is non-zero,
21696         put offset into second DW_OP_bit_piece argument.
21697         (dw_sra_loc_expr): Adjust callers.  For memory expressions
21698         compute offset.
21699
21700 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
21701
21702         PR target/44202
21703         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
21704         settings for 16-bit-constant "addo" alternative.
21705
21706 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
21707
21708         * config/mips/mips-dsp.md (add<DSPV:mode>3,
21709         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
21710
21711         PR target/43764
21712         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
21713         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
21714         Use it.
21715
21716 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
21717
21718         * diagnostic.c (FLOAT, FFS): Don't undefine.
21719         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
21720         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
21721         include ordering.
21722
21723 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21724
21725         * combine.c (propagate_for_debug): Call make_compound_operation
21726         on the source value.
21727         (try_combine): When implementing a split chosen by find_split_point,
21728         either copy i2src or set it to null.  Assert that i2src is not null
21729         before substituting into CALL_INSN_FUNCTION_USAGE.
21730
21731 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
21732
21733         * double-int.h (double_int_ior): New function.
21734         * tree.h (build_int_cst_wide_type): Remove.
21735         * tree.c (build_int_cst_wide_type): Remove.
21736         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
21737         of build_int_cst_wide_type.
21738         * stor-layout.c (set_sizetype): (Ditto.).
21739         * dojump.c (do_jump): Use build_int_cstu instead of
21740         build_int_cst_wide_type.
21741
21742 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21743
21744         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
21745         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
21746         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
21747         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
21748         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
21749         propagate the 'data' argument to copy_tree_r.
21750         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
21751         Propagate 'data' argument to walk_tree.
21752         (copy_if_shared): New function.
21753         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
21754         (unmark_visited): New function.
21755         (unshare_body): Call copy_if_shared instead of doing it manually.
21756         (unvisit_body): Call unmark_visited instead of doing it manually.
21757
21758 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
21759
21760         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
21761         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
21762         * hooks.c: Likewise.
21763         * target-def.h (TARGET_FOLD_BUILTIN): Define to
21764         hook_tree_tree_int_treep_bool_null.
21765         * target.h (struct gcc_target): Update signature of fold_builtin
21766         field.
21767         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
21768         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
21769         instead of the call expression.
21770         (fold_builtin_call_array): Pass n and argarray directly.
21771         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
21772         consing a list.
21773         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
21774         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
21775         `i' and use it in place of `arity'.
21776         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
21777         Dereference `args' directly.
21778         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
21779
21780 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21781
21782         * doc/sourcebuild.texi (Effective-Target Keywords): Document
21783         3dnow, sse3, sse2.
21784         (Directives): Document optional dg-require-effective-target
21785         selector.
21786
21787 2010-05-19  Richard Guenther  <rguenther@suse.de>
21788
21789         PR lto/44196
21790         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
21791
21792 2010-05-19  Richard Guenther  <rguenther@suse.de>
21793
21794         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
21795         * common.opt (fwhopr=): New.
21796         * opts.c (common_handle_option): Handle OPT_fwhopr.
21797         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
21798         * collect2.c (main): Match -fwhopr*.
21799         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
21800         Execute ltrans stage in parallel when jobs is bigger than 1.
21801
21802 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21803
21804         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
21805         pentiumpro on Solaris 8/x86 with Sun as.
21806         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
21807         hidden alias bug.
21808         (gcc_cv_as_ix86_quad): Check for .quad directive.
21809         * configure: Regenerate.
21810         * config.in: Regenerate.
21811         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
21812
21813 2010-05-19  Martin Jambor  <mjambor@suse.cz>
21814
21815         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
21816         also for indirect edges.  Actual printing moved...
21817         (ipa_print_node_jump_functions_for_edge): ...here.
21818         (ipa_compute_jump_functions): Renamed to
21819         ipa_compute_jump_functions_for_edge and made static.
21820         (ipa_compute_jump_functions): New function.
21821         (make_edge_direct_to_target): Check if the number of arguments on
21822         the newly direct edge is the same as the number of parametrs of
21823         the callee.
21824         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
21825         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
21826         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
21827         analysis functions unconditionally, call the new
21828         ipa_analyze_params_uses on the node instead of every edge.
21829
21830 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
21831
21832         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
21833         to tree.
21834         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
21835         also checks for a constant int vs.  non-constant but
21836         loop-invariant steps.
21837         (find_or_create_group): Change the sort algorithm to only consider
21838         steps that are constant ints.
21839         (idx_analyze_ref): Adopt code to handle a tree instead of a
21840         HOST_WIDE_INT for step.
21841         (gather_memory_references_ref): Handle tree instead of int and be
21842         prepared to see a NULL_TREE.
21843         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
21844         prefetches if the step cannot be calculated at compile time.
21845         (issue_prefetch_ref): Issue prefetches for non-constant but
21846         loop-invariant steps.
21847
21848 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
21849
21850         Revert:
21851         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
21852
21853         * tree.h (build_call_list): Remove.
21854         * tree.c (build_call_list): Remove.
21855
21856 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
21857
21858         * tree.h (build_call_list): Remove.
21859         * tree.c (build_call_list): Remove.
21860
21861 2010-05-18  Jan Hubicka  <jh@suse.cz>
21862
21863         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
21864
21865 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
21866
21867         PR rtl-optimization/43332
21868         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
21869
21870 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
21871
21872         * tree.h (build_int_cstu): Implement as static inline.
21873         * tree.c (build_int_cstu): Remove function.
21874         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
21875         sign extended.
21876
21877 2010-05-18  Richard Guenther  <rguenther@suse.de>
21878
21879         PR lto/44143
21880         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
21881         (debug): Initialize from -save-temps.
21882         (collect_execute): Print command-line when verbose.
21883         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
21884         for ltrans invocation.  Produce -dumpbase flag again.
21885         (process_args): Remove.
21886         (main): Simplify.
21887         * collect2.c (maybe_run_lto_and_relink): Only pass object
21888         files to lto-wrapper.
21889         * gcc.c (LINK_COMMAND_SPEC): Likewise.
21890
21891 2010-05-18  Jan Hubicka  <jh@suse.cz>
21892
21893         * opts.c (decode_options): Do not disable whopr at ipa_cp.
21894         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
21895
21896 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
21897
21898         PR lto/44184
21899         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
21900         in a GIMPLE_ASM.
21901         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
21902         in a GIMPLE_ASM.
21903
21904 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
21905
21906         PR debug/41371
21907         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
21908         rtx_equal_p inline.
21909
21910 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
21911
21912         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
21913         lto-macho as lto_binary_reader.
21914
21915         * darwin.c (darwin_asm_named_section): Do not add assembler comment
21916         after .section directive; just print it before the directive instead.
21917
21918 2010-05-17  Jan Hubicka  <jh@suse.cz>
21919
21920         * cgraph.c (cgraph_create_virtual_clone): Only check
21921         versionable_function_p when not in wpa and checking is enabled.
21922         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
21923         there are no more functions to materialize.
21924
21925 2010-05-17  Jan Hubicka  <jh@suse.cz>
21926
21927         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
21928         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
21929         New functions.
21930         (output_cgraph): Call output_cgraph_opt_summary.
21931         (input_cgrpah): Call input_cgraph_opt_summary.
21932         (output_cgraph_opt_summary_p, output_node_opt_summary,
21933         input_node_opt_summary, input_cgraph_opt_section): New functions.
21934         * lto-section-in.c (lto_section_name): Add cgraphopt.
21935         * tree-inline.c (tree_function_versioning): Handle parm_num.
21936         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
21937         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
21938
21939 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
21940
21941         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
21942         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
21943         the insn to prefetch ratio heuristic to loops with known trip count.
21944
21945 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
21946
21947         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
21948         (schedule_prefetches): Do not generate a prefetch if the unroll factor
21949         is far from what is required by the prefetch.
21950
21951 2010-05-17  Jan Hubicka  <jh@suse.cz>
21952
21953         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
21954         (ipcp_estimate_growth): Likewise.
21955         (ipcp_const_param_count): Likewise.
21956         (ipcp_insert_stage): Likewise.
21957         * ipa-prop.c (visit_load_for_mod_analysis): New function.
21958         (visit_store_addr_for_mod_analysis): Set used flag.
21959         (ipa_detect_param_modifications): Set used flag for SSE params;
21960         update use of walk_stmt_load_store_addr_ops.
21961         (ipa_print_node_params): Print used flag.
21962         (ipa_write_node_info): Stream used flag.
21963         (ipa_read_node_info): Likewise.
21964         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
21965         (ipa_is_param_used): New function.
21966         (lto_ipa_fixup_call_notes): Remove unused declaration.
21967
21968 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21969
21970         PR target/44074
21971         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
21972         * configure: Regenerate.
21973         * config.in: Regenerate.
21974         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
21975         !HAVE_AS_IX86_REP_LOCK_PREFIX.
21976         Don't emit whitespace.
21977         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
21978         (*rep_movsi): Likewise.
21979         (*rep_movsi_rex64): Likewise.
21980         (*rep_movqi): Likewise.
21981         (*rep_movqi_rex64): Likewise.
21982         (*rep_stosdi_rex64): Likewise.
21983         (*rep_stossi): Likewise.
21984         (*rep_stossi_rex64): Likewise.
21985         (*rep_stosqi): Likewise.
21986         (*rep_stosqi_rex64): Likewise.
21987         (*cmpstrnqi_nz_1): Use {%;} after repz.
21988         (*cmpstrnqi_nz_rex_1): Likewise.
21989         (*cmpstrnqi_1): Likewise.
21990         (*cmpstrnqi_rex_1): Likewise.
21991         (*strlenqi_1): Use {%;} after repnz.
21992         (*strlenqi_rex_1): Likewise.
21993         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
21994         (*sync_compare_and_swap<mode>): Likewise.
21995         (sync_double_compare_and_swap<mode>): Likewise.
21996         (*sync_double_compare_and_swapdi_pic): Likewise.
21997         (sync_old_add<mode>): Likewise.
21998         (sync_add<mode>): Likewise.
21999         (sync_sub<mode>): Likewise.
22000         (sync_<code><mode>): Likewise.
22001
22002 2010-05-17  Martin Jambor  <mjambor@suse.cz>
22003
22004         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
22005         otr_token and polymorphic.
22006         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
22007         (cgraph_clone_edge): Copy the above fields.
22008         * tree.c (get_binfo_at_offset): New function.
22009         * tree.h (get_binfo_at_offset): Declare.
22010         * ipa-prop.h (enum jump_func_type): Added known_type jump function
22011         type, reordered items, updated comments.
22012         (union jump_func_value): Added base_type field, reordered fields.
22013         (enum ipa_lattice_type): Moved down in the file.
22014         (struct ipa_param_descriptor): New field polymorphic.
22015         (ipa_is_param_polymorphic): New function.
22016         * ipa-prop.c: Include gimple.h and gimple-fold.h.
22017         (ipa_print_node_jump_functions): Print known type jump functions.
22018         (compute_complex_pass_through): Renamed to...
22019         (compute_complex_assign_jump_func): this.
22020         (compute_complex_ancestor_jump_func): New function.
22021         (compute_known_type_jump_func): Likewise.
22022         (compute_scalar_jump_functions): Create known type and complex ancestor
22023         jump functions.
22024         (ipa_note_param_call): New parameter polymorphic, set the corresponding
22025         flag in the call note accordingly.
22026         (ipa_analyze_call_uses): Renamed to...
22027         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
22028         variable var only in the block where it is used.
22029         (ipa_analyze_virtual_call_uses): New function.
22030         (ipa_analyze_call_uses): Likewise.
22031         (combine_known_type_and_ancestor_jfs): Likewise.
22032         (update_jump_functions_after_inlining): Implemented handling of a
22033         number of new jump function types combination.
22034         (print_edge_addition_message): Removed.
22035         (make_edge_direct_to_target): New function.
22036         (try_make_edge_direct_simple_call): Likewise.
22037         (try_make_edge_direct_virtual_call): Likewise.
22038         (update_call_notes_after_inlining): Renamed to...
22039         (update_indirect_edges_after_inlining): this.  Moved edge creation for
22040         indirect calls to try_make_edge_direct_simple_call, also calls
22041         try_make_edge_direct_virtual_call for virtual calls.
22042         (ipa_print_node_params): Changed the header message.
22043         (ipa_write_jump_function): Stream also known type jump functions.
22044         (ipa_read_jump_function): Likewise.
22045         (ipa_write_indirect_edge_info): Stream new fields in
22046         cgraph_indirect_call_info.
22047         (ipa_read_indirect_edge_info): Likewise.
22048         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
22049         GIMPLE_FOLD_H.
22050
22051 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22052
22053         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
22054
22055 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
22056
22057         * tree.h (CALL_EXPR_ARGS): Delete.
22058         (call_expr_arglist): Delete.
22059         * tree.c (call_expr_arglist): Delete.
22060         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
22061         targetm.fold_builtin.
22062         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
22063         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
22064         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
22065         arglist parameter.  Use CALL_EXPR_ARG.
22066         (picochip_expand_builtin_3op): Likewise.
22067         (picochip_expand_builtin_2opvoid): Likewise.
22068         (picochip_expand_array_get): Likewise.
22069         (picochip_expand_array_put): Likewise.
22070         (picochip_expand_array_testport): Likewise.
22071         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
22072         rather than arglist.
22073         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
22074         CALL_EXPR_ARGS.
22075         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
22076         than TREE_VALUE and TREE_CHAIN.
22077         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
22078         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
22079         the arglist.
22080
22081 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
22082
22083         PR bootstrap/42347
22084         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
22085         to have no fallthru edge.
22086
22087         PR middle-end/44102
22088         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
22089         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
22090         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
22091         add BARRIER after previous bb if needed.
22092
22093 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
22094
22095         * tree.c (build_function_type_list_1): Remove bogus assert condition.
22096
22097 2010-05-17  Alan Modra  <amodra@gmail.com>
22098
22099         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
22100         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
22101         with copy_reg rtx param.
22102         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
22103         Correct cases where code for ABI_V4 did not initialise the reg
22104         used to access frame.  Also leave frame_reg_rtx as sp for large
22105         frames that save no regs.
22106
22107 2010-05-17  Martin Jambor  <mjambor@suse.cz>
22108
22109         PR middle-end/44133
22110         * tree-sra.c (create_access_replacement): New parameter rename, mark
22111         the replaement for renaming only when it is true.
22112         (get_access_replacement): Pass true in the rename parameter of
22113         create_access_replacement.
22114         (get_unrenamed_access_replacement): New function.
22115         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
22116         replacement declaration from it.
22117
22118 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
22119
22120         * function.c (try_fit_stack_local, add_frame_space): New static
22121         functions.
22122         (assign_stack_local_1): Use them.  Look for opportunities to use
22123         space previously wasted on alignment.
22124         * function.h (struct frame_space): New.
22125         (struct rtl_data): Add FRAME_SPACE_LIST member.
22126         * reload1.c (something_was_spilled): New static variable.
22127         (alter_reg): Set it.
22128         (reload): Test it in addition to testing if the frame size changed.
22129
22130 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
22131
22132         * config/s390/s390.c: Define sane prefetch settings and activate
22133         flag_prefetch_loop_arrays on -O3.
22134         * config/s390/s390.h: Declare that read can use write prefetch.
22135
22136 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
22137
22138         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
22139         build.
22140
22141 2010-05-16  Jan Hubicka  <jh@suse.cz>
22142
22143         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
22144         function body; do not check stdarg field of struct function.
22145
22146 2010-05-16  Jan Hubicka  <jh@suse.cz>
22147
22148         * cgraph.c (dump_cgraph_node): Dump versionable flag.
22149         * cgraph.h (cgraph_local_info): Add versionable flag.
22150         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
22151         (ipcp_versionable_function_p): Use it.
22152         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22153         versionable flag.
22154
22155 2010-05-16  Jan Hubicka  <jh@suse.cz>
22156
22157         * cgraph.c (cgraph_clone_node): Take decl argument and insert
22158         clone into hash when it is different from orig.
22159         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
22160         * cgraph.h (cgraph_clone_node): Update prototype.
22161         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
22162         (lto_cgraph_encoder_delete): Delete body map.
22163         (lto_cgraph_encoder_size): Move to header.
22164         (lto_cgraph_encoder_encode_body_p,
22165         lto_set_cgraph_encoder_encode_body): New.
22166         (lto_output_node): Do not take written_decls argument; output clone_of
22167         pointer.
22168         (add_node_to): Add include_body_argument; call
22169         lto_set_cgraph_encoder_encode_body on master of the clone.
22170         (add_references): Update use of add_node_to.
22171         (compute_ltrans_boundary): Likewise.
22172         (output_cgraph): Do not create written_decls bitmap.
22173         (input_node): Take nodes argument; stream in clone_of correctly.
22174         (input_cgraph_1): Update use of input_node.
22175         * lto-streamer-out.c (lto_output): Use encoder info to decide
22176         what bodies to output.
22177         * ipa-inline.c (cgraph_clone_inlined_nodes,
22178         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
22179         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
22180         (lto_cgraph_encoder_size): Define here.
22181         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
22182         Declare.
22183
22184 2010-05-16  Richard Guenther  <rguenther@suse.de>
22185
22186         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
22187         -fipa-type-escape.
22188         * ipa-type-escape.c (gate_type_escape_vars): Run when
22189         -fipa-struct-reorg runs.
22190         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
22191         * common.opt (fipa-type-escape): Remove.
22192
22193 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
22194
22195         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
22196         (decode_options): Likewise.
22197         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
22198
22199 2010-05-16  Jan Hubicka  <jh@suse.cz>
22200
22201         * ipa.c (function_and_variable_visibility): Also bring local all
22202         aliases.
22203
22204 2010-05-16  Richard Guenther  <rguenther@suse.de>
22205
22206         * alias.c (nonoverlapping_memrefs_p): Remove use of
22207         IPA type-escape information.
22208
22209 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
22210
22211         * c-common.c (c_common_reswords): Add _Static_assert for C.
22212         * c-parser.c (c_token_starts_declaration,
22213         c_parser_next_token_starts_declaration,
22214         c_parser_static_assert_declaration_no_semi,
22215         c_parser_static_assert_declaration): New.
22216         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
22217         Handle static assertions if static_assert_ok.
22218         (c_parser_external_declaration, c_parser_declaration_or_fndef,
22219         c_parser_compound_statement_nostart, c_parser_label,
22220         c_parser_for_statement, c_parser_objc_methodprotolist,
22221         c_parser_omp_for_loop): All callers of
22222         c_parser_declaration_or_fndef changed.
22223         (c_parser_struct_declaration): Handle static assertions.
22224         (c_parser_compound_statement_nostart): Use
22225         c_parser_next_token_starts_declaration and
22226         c_token_starts_declaration to detect start of declarations.
22227         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
22228         Likewise.
22229
22230 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
22231
22232         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22233         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22234         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22235         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22236         (mmix_function_outgoing_value): Rename to...
22237         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
22238         (mmix_function_value_regno_p): Make static.
22239         (mmix_libcall_value): New function.
22240         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
22241         mmix_function_value_regno_p): Remove declaration.
22242
22243 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
22244
22245         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
22246         BUILT_IN_ALLOCA if stack checking is enabled.
22247
22248 2010-05-16  Richard Guenther  <rguenther@suse.de>
22249
22250         * var-tracking.c (vars_copy_1): Inline ...
22251         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
22252         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
22253         (variable_merge_over_cur): Adjust.  Merge asserts.
22254         (variable_merge_over_src): Likewise.
22255         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
22256         (variable_post_merge_new_vals): Merge asserts.
22257         (variable_post_merge_perm_vals): Likewise.
22258         (find_mem_expr_in_1pdv): Likewise.
22259         (dataflow_set_different_value): Remove.
22260         (onepart_variable_different_p): Merge asserts.
22261         (variable_different_p): Likewise.
22262         (dataflow_set_different_1): Inline ...
22263         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
22264         (emit_notes_for_differences_1): Merge asserts.
22265
22266 2010-05-16  Richard Guenther  <rguenther@suse.de>
22267
22268         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
22269         * optabs.c (libfunc_decl_hash): Likewise.
22270         * varasm.c (emutls_decl): Likewise.
22271
22272 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
22273
22274         * c-decl.c: Don't include gimple.h.
22275         (merge_decls): Do not copy gimple_body.
22276
22277 2010-05-15  Jason Merrill  <jason@redhat.com>
22278
22279         * c.opt: Add -fnothrow-opt.
22280
22281 2010-05-15  Jan Hubicka  <jh@suse.cz>
22282
22283         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
22284         analyzed.
22285         * passes.c (ipa_write_summaries): Write all analyzed nodes.
22286
22287 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
22288
22289         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
22290         * Makefile.in: Add it.
22291         Fix all other Makefile dependencies for changes below.
22292         * tree.h: Include it instead of defining VEC primitives here.
22293         * gimple.h: Likewise.
22294         * rtl.h: Likewise.
22295         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
22296         * except.h: Include vecir.h, break dependence on tree.h.
22297
22298         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
22299         Move from here...
22300         * tree-iterator.c: ...to here.
22301         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
22302
22303         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
22304         tm_p.h.
22305         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
22306         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
22307         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
22308         tree-mudflap.h, and target.h.
22309         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
22310         predict.h, tree-inline.h, gimple.h, and langhooks.h.
22311         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
22312         Add FIXME for why gimple.h is still included (should be unnecessary
22313         since GCC 4.5 gimplification unit-at-a-time).
22314         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
22315         * c-pragma.c: Add FIXME for why function.h needs to be included just
22316         for cfun, at front-end level.
22317         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
22318         Do not include ggc.h, but include vecprim.h for VEC(char).
22319         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
22320         Explain why target.h is included.
22321         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
22322         Explain why gimple.h is included.
22323         * c-ppoutput.c: Do not include tm.h.
22324         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
22325         * c-parses.c: Explain why rtl.h is included, and that this (and only
22326         this) is also why tm.h must be included.
22327         Do not include except.h.
22328         * c-lang.c: Do not include ggc.h.
22329
22330 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
22331
22332         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
22333
22334 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
22335
22336         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
22337         unions by default if those structs and unions have no tags.  Do
22338         not condition anonymous struct and unions handling on flag_iso.
22339         Allow anonymous structs and unions for C1X.
22340         (finish_struct): Do not diagnose lack of named fields when
22341         anonymous structs and unions present for C1X.  Accept flexible
22342         array members in structure with anonymous structs or unions but no
22343         directly named fields.
22344         * doc/extend.texi (Unnamed Fields): Update.
22345
22346 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
22347
22348         * gimple.h (compare_field_offset): Rename into...
22349         (gimple_compare_field_offset): ...this.
22350         * gimple.c (compare_field_offset): Rename into...
22351         (gimple_compare_field_offset): ...this.  Compare the full access if
22352         the offset is self-referential.
22353         (gimple_types_compatible_p): Adjust for above renaming.
22354         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
22355         DECL_NONADDRESSABLE_P flag of fields before merging them.
22356
22357 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
22358
22359         * tree.h (ctor_to_list): Delete.
22360         * tree.c (ctor_to_list): Delete.
22361
22362 2010-05-15  Jan Hubicka  <jh@suse.cz>
22363
22364         * ipa-reference.c: Include toplev.h
22365         (is_proper_for_analysis): Only add to all_module_statics
22366         if it is allocated.
22367         (write_node_summary_p, stream_out_bitmap,
22368         ipa_reference_write_optimization_summary,
22369         ipa_reference_read_optimization_summary): New.
22370         (struct ipa_opt_pass_d pass_ipa_reference): Add
22371         optimization summary streaming.
22372         * lto-cgraph.c (referenced_from_this_partition_p,
22373         reachable_from_this_partition_p): New functions.
22374         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
22375         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
22376         * opts.c (decode_options): Enable ipa_reference.
22377         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
22378         * lto-streamer.h (referenced_from_this_partition_p,
22379         reachable_from_this_partition_p): Declare.
22380
22381 2010-05-15  Richard Guenther  <rguenther@suse.de>
22382
22383         PR tree-optimization/44038
22384         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
22385         taking the address of a V_C_E of a constant.
22386
22387 2010-05-14  Jan Hubicka  <jh@suse.cz>
22388
22389         * tree.h (memory_identifier_string): Remove.
22390         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
22391         (ipa_reference_global_vars_info_d): Remove statics_not_read and
22392         statics_not_written.
22393         (ipa_reference_optimization_summary_d): New structure.
22394         (ipa_reference_optimization_summary_t): New type and vector.
22395         (ipa_reference_vars_info_d): Embedd structures instead of using
22396         pointers.
22397         (reference_vars_to_consider): Remove out of GGC space.
22398         (module_statics_escape): Remove.
22399         (global_info_obstack): Rename to ...
22400         (optimization_summary_obstack): ... this one.
22401         (initialization_status_t): Remove.
22402         (memory_identifier_string): Remove.
22403         (get_reference_vars_info): Fix indenting.
22404         (set_reference_vars_info): Likewise.
22405         (get_reference_optimization_summary): New.
22406         (set_reference_optimization_summary): New.
22407         (get_global_reference_vars_info): Remove.
22408         (ipa_reference_get_read_global): Remove.
22409         (ipa_reference_get_written_global): Remove.
22410         (ipa_reference_get_not_read_global): Update.
22411         (ipa_reference_get_not_written_global): Update.
22412         (is_proper_for_analysis): Outlaw addressable.
22413         (propagate_bits): Update for new datastructures.
22414         (analyze_variable): Remove.
22415         (init_function_info): Update for new datastructures.
22416         (clean_function_local_data): Remove.
22417         (clean_function): Remove.
22418         (copy_global_bitmap): Use optimizations_summary_obstack.
22419         (duplicate_node_data): Duplicate optimization summary only.
22420         (remove_node_data): Remove optimization summary only.
22421         (generate_summary): Do not analyze variables; do not compute
22422         module_statics_escape; do not prune solutions by it.
22423         (read_write_all_from_decl): Fix typos in comments.
22424         (propagate): Doscover readonly and nonaddressable first;
22425         update for new datastructures; share global bitmaps.
22426         * ipa-reference.h (ipa_reference_get_read_global,
22427         ipa_reference_get_written_global): Remove.
22428         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
22429         * Makefile.in: Remove ipa-refereference from GT files.
22430
22431 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
22432
22433         PR debug/44112
22434         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
22435         for all SYMBOL_REF_DECLs.
22436
22437 2010-05-14  Jan Hubicka  <jh@suse.cz>
22438
22439         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
22440         (varpool_all_refs_explicit_p): New inline function.
22441         * ipa-reference.c: Update comment.
22442         (module_statics_written): Remove.
22443         (get_static_decl): Remove.
22444         (ipa_init): Do not initialize module_statics_written.
22445         (analyze_function): Likewise.
22446         (generate_summary): Likewise; do not compute module_statics_readonly
22447         and do not update variable flags.
22448         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
22449         * ipa.c: Inlucde flags.h
22450         (cgraph_local_node_p): New.
22451         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
22452         promote functions to local.
22453         (ipa_discover_readonly_nonaddressable_vars): New function.
22454         (function_and_variable_visibility): Use cgraph_local_node_p.
22455         * varpool.c (varpool_finalize_decl): Set force_output for
22456         DECL_PRESERVE_P vars.
22457
22458 2010-05-14  Jan Hubicka  <jh@suse.cz>
22459
22460         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
22461
22462 2010-05-14  Richard Guenther  <rguenther@suse.de>
22463
22464         PR tree-optimization/44119
22465         * tree-ssa-pre.c (eliminate): Properly mark replacement of
22466         a PHI node necessary.
22467
22468 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22469
22470         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
22471
22472 2010-05-14  Jason Merrill  <jason@redhat.com>
22473
22474         PR c++/44127
22475         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
22476         (gimple_call_set_nothrow): New.
22477         * gimple.c (gimple_build_call_from_tree): Call it.
22478         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
22479
22480         PR c++/44127
22481         * gimplify.c (gimplify_seq_add_stmt): No longer static.
22482         * gimple.h: Declare it.
22483         * gimple.c (gimple_build_eh_filter): No ops.
22484
22485 2010-05-14  Jan Hubicka  <jh@suse.cz>
22486
22487         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
22488         nodes already in queue.
22489         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
22490         re-enqueueing node.
22491
22492 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
22493
22494         PR debug/44136
22495         * cfgexpand.c (expand_debug_expr): If non-memory op0
22496         has BLKmode, return NULL.
22497
22498 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
22499
22500         * config.gcc: Add support for --with-cpu option for bdver1.
22501         * config/i386/i386.h (TARGET_BDVER1): New macro.
22502         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
22503         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
22504         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
22505         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
22506         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
22507         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
22508         (processor_type): Add PROCESSOR_BDVER1.
22509         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
22510         processor_type in config/i386/i386.h.
22511         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
22512         movaps <reg, reg> instead of movapd <reg, reg> when replacing
22513         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
22514         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
22515         to emit packed xor instead of packed double/packed integer
22516         xor for SSE and AVX when moving a zero value.
22517         * config/i386/sse.md: Add check for
22518         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
22519         movapd/movdqa for SSE and AVX.
22520         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
22521         single logical operations i.e and, or and xor instead of packed double
22522         logical operations for SSE and AVX.
22523         * config/i386/i386-c.c (ix86_target_macros_internal):
22524         Add PROCESSOR_BDVER1.
22525         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
22526         (has_fma4, has_xop): New.
22527         * config/i386/i386.c (bdver1_cost): New variable.
22528         (m_BDVER1): New macro.
22529         (m_AMD_MULTIPLE): Add m_BDVER1.
22530         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
22531         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
22532         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
22533         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
22534         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
22535         x86_tune_sse_partial_reg_dependency,
22536         x86_tune_sse_unaligned_load_optimal,
22537         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
22538         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
22539         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
22540         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
22541         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
22542         Enable/disable for bdver1.
22543         (processor_target_table): Add bdver1_cost.
22544         (cpu_names): Add bdver1.
22545         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
22546          processor_alias_table.
22547         (ix86_expand_vector_move_misalign): Change.
22548         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
22549         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
22550         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
22551         of movupd/movdqu for SSE and AVX.
22552         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
22553         (ix86_tune_adjust_cost): Add code for bdver1.
22554         (standard_sse_constant_opcode): Add check for
22555         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
22556         of packed double xor for SSE and AVX.
22557
22558 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
22559
22560         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
22561         result to unsigned.
22562
22563 2010-05-14  Tristan Gingold  <gingold@adacore.com>
22564
22565         * toplev.c (default_debug_hooks): Remove this variable.
22566         (process_options): Remove assignments to default_debug_hooks.
22567
22568 2010-05-14  Martin Jambor  <mjambor@suse.cz>
22569
22570         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
22571         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
22572         * langhooks.h (struct lang_hooks_for_decls): Removed field
22573         fold_obj_type_ref.
22574         * tree.c (free_lang_data): Remove assignment to
22575         lang_hooks.fold_obj_type_ref.
22576         * tree.def (OBJ_TYPE_REF): Update comment.
22577
22578 2010-05-14  Richard Guenther  <rguenther@suse.de>
22579
22580         PR tree-optimization/44124
22581         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
22582
22583 2010-05-14  Alan Modra  <amodra@gmail.com>
22584
22585         PR target/44075
22586         * config/rs6000/rs6000.c (struct machine_function): Reorder
22587         fields for better packing.  Add lr_save_state.
22588         (rs6000_ra_ever_killed): Return lr_save_state if set.
22589         (rs6000_emit_eh_reg_restore): Set lr_save_state.
22590
22591 2010-05-13  Jan Hubicka  <jh@suse.cz>
22592
22593         * varpool.c (decide_is_variable_needed): Drop code checking
22594         TREE_SYMBOL_REFERENCED.
22595
22596 2010-05-13  Jan Hubicka  <jh@suse.cz>
22597
22598         * final.c (output_addr_const): Do not call mark_decl_referenced.
22599         * cgraphunit.c (process_function_and_variable_attributes): Use
22600         mark_needed_node dirrectly.
22601         (assemble_thunk): Do not call mark_decl_referenced.
22602
22603 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
22604
22605         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
22606
22607 2010-05-13  Jeff Law  <law@redhat.com>
22608
22609         * ira-conflicts.c (print_allocno_conflicts): New function broken out
22610         from...
22611         (print_conflicts): Call print_allocno_conflicts.
22612
22613 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
22614
22615         PR debug/44104
22616         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
22617         if it is NULL.
22618
22619 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
22620
22621         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
22622         t-mingw-w64 or t-mingw-w32 for multilib configuration.
22623         * config/i386/t-mingw-w32: New.
22624         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
22625
22626 2010-05-13  Martin Jambor  <mjambor@suse.cz>
22627
22628         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
22629         gimple-fold.c).
22630         * gimple-fold.c (get_base_binfo_for_type): New function.
22631         (gimple_get_relevant_ref_binfo): Likewise.
22632         (gimple_fold_obj_type_ref_known_binfo): Likewise.
22633         (gimple_fold_obj_type_ref): Likewise.
22634         (fold_gimple_call): Simplify condition for folding virtual calls
22635         and call gimple_fold_obj_type_ref.
22636         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
22637         (gimple_fold_obj_type_ref_known_binfo): Likewise.
22638
22639 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
22640
22641         * config/rs6000/rs6000-protos.h
22642         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
22643         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
22644         (rs6000_debug_mode_dependent_address)
22645         (rs6000_mode_dependent_address_ptr): Likewise.
22646
22647 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
22648
22649         PR debug/43983
22650         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
22651         by SRA.
22652         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
22653         * tree-sra.c (create_access_replacement): Call unshare_expr before
22654         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
22655         * dwarf2out.c: Include tree-flow.h.
22656         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
22657         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
22658         Handle DW_OP_bit_piece.
22659         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
22660         construct_piece_list, adjust_piece_list): New functions.
22661         (add_var_loc_to_decl): Handle SRA optimized variables.
22662         Adjust for var_loc_note to loc field renaming.
22663         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
22664         in VAR_LOCATION note.
22665         (new_loc_descr_op_bit_piece): New function.
22666         (dw_sra_loc_expr): New function.
22667         (dw_loc_list): Use it.  Don't handle the last range after the
22668         loop, handle it inside of the loop.  Adjust for var_loc_note
22669         to loc field renaming.
22670         (add_location_or_const_value_attribute): Only special case
22671         single entry loc lists if loc is NOTE_P.  Adjust for
22672         var_loc_note to loc field renaming.
22673         (dwarf2out_var_location): Don't set newloc->var_loc_note
22674         and newloc->next here.
22675
22676 2010-05-12  Jan Hubicka  <jh@suse.cz>
22677
22678         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
22679         flag.
22680         * cgraph.h (cgraph_only_called_directly_p,
22681         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
22682         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
22683         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
22684         (assemble
22685         * ipa.c (cgraph_remove_unreachable_nodes): Use
22686         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
22687         flags.
22688         * tree-inline.c (copy_bb): Check address_taken flag.
22689         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
22690         externally_visible flag.
22691
22692 2010-05-12  Jason Merrill  <jason@redhat.com>
22693
22694         PR bootstrap/44048
22695         PR target/44099
22696         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
22697         * sdbout.c (plain_type_1): Likewise.
22698         * dwarf2out.c (is_base_type): Likewise.
22699         (gen_type_die_with_usage): Likewise.  Generate
22700         DW_TAG_unspecified_type for any LANG_TYPE.
22701
22702 2010-05-12  Jan Hubicka  <jh@suse.cz>
22703
22704         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
22705         indrect edges too.
22706         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
22707         (cgraph_clone_edge): Update.
22708         (cgraph_node_remove_callees): Remove indirect calls too.
22709         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
22710         (cgraph_create_indirect_edge): Update prototype.
22711         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
22712         is_proper_for_analysis.
22713         (add_new_function, visited_nodes, function_insertion_hook_holder,
22714         get_local_reference_vars_info, mark_address_taken, mark_address,
22715         mark_load, mark_store, check_asm_memory_clobber, check_call,
22716         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
22717         (ipa_init): Do not initialize visited_nodes;
22718         function_insertion_hook_holder.
22719         (analyze_variable): Rewrite.
22720         (analyze_function): Rewrite.
22721         (copy_local_bitmap): Remove.
22722         (duplicate_node_dat): Do not duplicate local info.
22723         (generate_summary): Simplify to only walk cgraph.
22724         (write_node_summary_p, ipa_reference_write_summary,
22725         ipa_reference_read_summary): Remove.
22726         (propagate): Do not remove function insertion;
22727         generate summary.
22728         (pass_ipa_reference): NULLify summary handling fields.
22729         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
22730         (input_edge): Input ecf_flags.
22731         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
22732         (update_indirect_edges_after_inlining): Ignore edges with unknown
22733         param.
22734
22735 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
22736
22737         * implicit-zee.c: New file.
22738         * tree-pass.h (pass_implicit_zee): Declare.
22739         * passes.c (init_optimization_passes): Add zee pass.
22740         * common.opt (fzee): New flag.
22741         * timevar.def (TV_ZEE): Define.
22742         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
22743         and beyond.
22744         * Makefile.in (implicit-zee.o): Add new build file.
22745
22746 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
22747             Nathan Froyd  <froydnj@codesourcery.com>
22748
22749         * c-common.c (sync_resolve_params): Remove write-only variable.
22750
22751 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
22752
22753         * target.h (struct gcc_target): Add mode_dependent_address_p field.
22754         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22755         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
22756         * targhooks.c (default_mode_dependent_address_p): New function.
22757         * targhooks.h (default_mode_dependent_address_p): Declare function.
22758         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22759         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
22760         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
22761         target hook. Change return type to bool.
22762         * recog.h (mode_dependent_address_p): Change return type to bool.
22763
22764 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
22765             Nathan Froyd  <froydnj@codesourcery.com>
22766
22767         * tree-mudflap.c (build_function_type_0, build_function_type_1,
22768         build_function_type_2, build_function_type_3): Remove.
22769         (mudflap_init): Use build_function_type_list.
22770
22771 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
22772             Nathan Froyd  <froydnj@codesourcery.com>
22773
22774         * coverage.c (build_fn_info_value): Call build_constructor instead of
22775         build_constructor_from_list.
22776         (build_ctr_info_value): Likewise.
22777         (build_gcov_info): Likewise.
22778
22779 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
22780
22781         * tree.c (build_constructor): Compute TREE_CONSTANT for the
22782         resultant constructor.
22783         (build_constructor_single): Don't set TREE_CONSTANT.
22784         (build_constructor_from_list): Don't compute TREE_CONSTANT.
22785
22786 2010-05-12  Jan Hubicka  <jh@suse.cz>
22787
22788         * cgraph.h (struct varpool_node): Add aux.
22789         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
22790         * varpool.c (varpool_remove_node): Do not remove initializer.
22791         (varpool_reset_queue): Export.
22792         (varpool_finalize_decl): Volatile vars are forced to be output.
22793         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
22794         replaced decl.
22795         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
22796         process_references, varpool_can_remove_if_no_refs): New functions.
22797         (cgraph_remove_unreachable_nodes): Handle variables too.
22798
22799 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
22800
22801         PR target/44088
22802         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
22803
22804 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
22805
22806         PR middle-end/44085
22807         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
22808         change value of ORT_TASK.
22809         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
22810         (omp_notice_threadprivate_variable): New function.
22811         (omp_notice_variable): Call it for threadprivate variables.
22812         If enclosing ctx is a task, print enclosing task rather than
22813         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
22814         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
22815         if task has untied clause.
22816
22817         PR debug/42278
22818         * dwarf2out.c (base_type_die): Don't add name attribute here.
22819         (modified_type_die): Instead of sizetype use
22820         its underlying original type.  If a DW_TAG_base_type doesn't
22821         have name added, add __unknown__.
22822         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
22823         always call force_type_die instead.
22824
22825 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
22826
22827         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
22828         for __stack_chk_guard.
22829
22830 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
22831
22832         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
22833         don't call start_source_file debug hook here...
22834         (finish_options): ... but here, after outputting predefined and
22835         command line defines and undefs.
22836
22837         PR middle-end/44071
22838         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
22839         no fallthru edge.
22840         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
22841         optimizing away empty bb with no successors, move over its
22842         footer chain to fallthru predecessor.
22843         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
22844         (rtl_split_edge): For asm goto call patch_jump_insn even if
22845         splitting fallthru edge.
22846
22847         PR c++/44059
22848         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
22849         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
22850         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
22851         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
22852         on DW.ref.* decls.
22853
22854         PR c++/44062
22855         * c-parser.c (c_parser_expression): Mark LHS of a comma
22856         expression as read if it is a decl, handled component or
22857         COMPOUND_EXPR with that on the RHS.
22858         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
22859         if it is a decl or handled component.
22860
22861 2010-05-11  Jan Hubicka  <jh@suse.cz>
22862
22863         * lto-symtab.c (lto_symtab_free): New function.
22864         * lto-streamer.h (lto_symtab_free): Declare.
22865
22866 2010-05-11  Jan Hubicka  <jh@suse.cz>
22867
22868         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
22869         that if function is needed it is reachable.
22870         (lto_output_node): See if it the function is reachable or referenced.
22871         (output_cgraph): Update call of lto_output_node.
22872         * lto-streamer.h (reachable_from_other_partition_p): Declare.
22873
22874 2010-05-11  Jan Hubicka  <jh@suse.cz>
22875
22876         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
22877         Mark as used.
22878
22879 2010-05-11  Jan Hubicka  <jh@suse.cz>
22880
22881         PR tree-optimize/44063
22882         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
22883         queue.
22884         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
22885         limits.
22886         (estimate_function_body_sizes): Compute sizes even when disregarding.
22887
22888 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
22889
22890         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
22891
22892 2010-05-11  Jan Hubicka  <jh@suse.cz>
22893
22894         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
22895         into every boundary.
22896
22897 2010-05-11  Jan Hubicka  <jh@suse.cz>
22898
22899         * matrix-reorg.c (matrix_reorg): Rebuild edges.
22900
22901 2010-05-11  Jan Hubicka  <jh@suse.cz>
22902
22903         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
22904         lto_streamer_cache_delete): Put nodes into heap.
22905         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
22906         heap.
22907
22908 2010-05-11  Jan Hubicka  <jh@suse.cz>
22909
22910         * cgraphbuild.c (cgraph_rebuild_references): New.
22911         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
22912         out extern inlines.
22913         * cgraph.h (cgraph_rebuild_references): Declare.
22914         * tree-inline.c (tree_function_versioning): Use it.
22915         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
22916
22917 2010-05-11  Jan Hubicka  <jh@suse.cz>
22918
22919         * cgraph.c: Include ipa-utils.h
22920         (cgraph_create_virtual_clone): Update references.
22921         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
22922
22923 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
22924
22925         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
22926         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
22927         cache size.
22928
22929 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
22930
22931         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
22932
22933 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
22934
22935         * gcc.c (execute): For -### don't quote arguments that
22936         contain just alphanumerics and _/-. characters.
22937         * doc/invoke.texi: Document that change for -###.
22938
22939         PR debug/44023
22940         * df-problems.c (struct dead_debug): Add to_rescan field.
22941         (dead_debug_init): Clear to_rescan field.
22942         (dead_debug_finish): Rescan all debug insns in to_rescan
22943         bitmap and free the bitmap.
22944         (dead_debug_insert_before): Instead of rescanning debug insns
22945         immediately queue their rescanning until dead_debug_finish.
22946         (df_note_bb_compute): After dead_debug_add do continue instead
22947         of break.
22948
22949 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
22950
22951         PR debug/44028
22952         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
22953         clear also INSN_REG_USE_LIST.
22954
22955 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22956
22957         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
22958
22959 2010-05-10  Jan Hubicka  <jh@suse.cz>
22960
22961         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
22962         commited change.
22963
22964 2010-05-10  Jan Hubicka  <jh@suse.cz>
22965
22966         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
22967         Allocate encoders.
22968         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
22969         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
22970         (lto_streamer_cache_create): Init alloc pool.
22971         (lto_streamer_cache_delete): Free alloc pool.
22972         * lto-streamer.h: Include alloc pool.
22973         (lto_streamer_cache_d): Use alloc pool.
22974         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
22975
22976 2010-05-10  Jan Hubicka  <jh@suse.cz>
22977
22978         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
22979         * cgraphbuild.c: Include except.h
22980         (record_type_list, record_eh_tables): New function.
22981         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
22982
22983 2010-05-10  Jan Hubicka  <jh@suse.cz>
22984
22985         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
22986         __frame_dummy_init_array_entry, force_to_data): Attribute as used
22987         rather than unused.
22988
22989 2010-05-10  Michael Matz  <matz@suse.de>
22990
22991         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
22992         (can_reassociate_p): Use FLOAT_TYPE_P.
22993         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
22994         (vect_force_simple_reduction): ... this.
22995         * tree-parloops.c (gather_scalar_reductions): Use
22996         vect_force_simple_reduction.
22997         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
22998         vect_is_simple_reduction, add modify argument, if true rewrite
22999         "a-b" into "a+(-b)".
23000         (vect_is_simple_reduction, vect_force_simple_reduction): New
23001         functions.
23002         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
23003
23004 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23005             Vladimir Makarov  <vmakarov@redhat.com>
23006
23007         PR rtl-optimization/44012
23008         * ira-build.c (remove_unnecessary_allocnos): Nullify
23009         regno_allocno_map of the removed allocno.
23010
23011 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23012
23013         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
23014         to /dev/null.
23015         * configure: Regenerate.
23016
23017 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23018
23019         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
23020         unused.
23021         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
23022         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
23023         support in Sun ld.
23024         * configure: Regenerate.
23025
23026 2010-05-10  Richard Guenther  <rguenther@suse.de>
23027
23028         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
23029         marked if the entry identifier is marked.
23030
23031 2010-05-10  Richard Guenther  <rguenther@suse.de>
23032
23033         * c-common.c (struct c_common_attributes): Add fnspec attribute.
23034         (handle_fnspec_attribute): New function.
23035         * gimple.h (gimple_call_return_flags): Declare.
23036         (gimple_call_arg_flags): Likewise.
23037         * gimple.c (gimple_call_arg_flags): New function.
23038         (gimple_call_return_flags): Likewise.
23039         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
23040         New argument flags.
23041         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
23042         return value flags.
23043         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
23044         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
23045         main work to ...
23046         (make_heapvar_for): ... this new function.
23047         (handle_rhs_call): Handle fnspec attribute argument specifiers.
23048         (handle_lhs_call): Likewise.
23049         (find_func_aliases): Adjust.
23050
23051 2010-05-10  Richard Guenther  <rguenther@suse.de>
23052
23053         PR tree-optimization/44050
23054         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
23055
23056 2010-05-10  Wei Guozhi  <carrot@google.com>
23057
23058         PR target/42879
23059         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
23060
23061 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
23062
23063         PR c/10676
23064         * c-typeck.c (lookup_field): Take a type directly.  Update
23065         recursive calls.
23066         (build_component_ref): Update call to lookup_field.
23067         (set_init_label): Use lookup_field to find initialized field.
23068         Handle returned list of fields like a sequence of designators.
23069
23070 2010-05-09  Richard Guenther  <rguenther@suse.de>
23071
23072         PR middle-end/44024
23073         * fold-const.c (tree_single_nonzero_warnv_p): Properly
23074         handle &FUNCTION_DECL.
23075
23076 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
23077
23078         PR c/4784
23079         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
23080         structures and unions recursively.
23081         (detect_field_duplicates): Move duplicate detection with a hash to
23082         detect_field_duplicates_hash.  Always use a hash if anonymous
23083         structures or unions are present.
23084         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
23085         give errors.
23086
23087 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
23088
23089         PR target/44046
23090         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
23091         detect Atom, Core 2 and Core i7.
23092
23093 2010-05-09  Richard Guenther  <rguenther@suse.de>
23094
23095         * gcc.c (store_arg): Handle temporary file deletion for
23096         joined arguments.
23097
23098 2010-05-09  Richard Guenther  <rguenther@suse.de>
23099
23100         PR middle-end/44043
23101         * ipa-inline.c (estimate_function_body_sizes): Return after
23102         disregarding inline limits.
23103
23104 2010-05-09  Richard Guenther  <rguenther@suse.de>
23105
23106         * gcc.c (store_arg): Revert last change.
23107
23108 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
23109
23110         PR middle-end/28685
23111         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
23112         (optimize_ops_list): Call it.
23113
23114 2010-05-08  Richard Guenther  <rguenther@suse.de>
23115
23116         PR tree-optimization/44030
23117         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
23118         NECESSARY flag if we propagate from a inserted expression.
23119
23120 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23121
23122         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
23123         domain types as equal if they are both PLACEHOLDER_EXPRs.
23124
23125 2010-05-08  Richard Guenther  <rguenther@suse.de>
23126
23127         * lto-wrapper.c (run_gcc): Remove linker output from
23128         command line for LTRANS invocation.
23129
23130 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
23131
23132         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
23133         lto-macho as lto_binary_reader.
23134         * target.h (struct gcc_target): New hooks lto_start and lto_end.
23135         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
23136         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
23137         in lto_start and lto_end calls.
23138         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
23139         magic numbers.
23140         (scan_prog_file): Update is_elf_or_coff call.
23141         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
23142
23143         * collect2.c (main): Fix enum comparison.
23144
23145         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
23146         Add prototypes.
23147         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
23148         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
23149         and TARGET_ASM_LTO_END.
23150         * darwin.c: Include obstack.h and lto-streamer.h.
23151         (lto_section_names_offset, lto_section_names_obstack,
23152         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
23153         global variables.
23154         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
23155         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
23156         to a temporary file.
23157         (darwin_asm_lto_end): New function.  Restore asm_out_file.
23158         (darwin_asm_named_section): For LTO sections, replace the name with
23159         the offset of the section name in a string table, and build this
23160         table.
23161         (darwin_file_start): Initialize global vars for LTO support.
23162         (darwin_file_end): If output to asm_out_file was redirected, append it
23163         to the proper asm_out_file here.  Add the section names section.
23164
23165 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
23166
23167         * c-pragma.c (pending_weak_d, pending_weak): New.
23168         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
23169         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
23170         handle_pragma_weak): Update the uses of pending_weaks.
23171
23172 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23173
23174         PR documentation/44016
23175         * doc/standards.texi (Standards): Link to unversioned
23176         cxx0x_status.html page.
23177
23178 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
23179
23180         PR target/43708
23181         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
23182         in addition to TREE_USED, to avoid "set but unused" warnings.
23183
23184 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
23185
23186         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
23187         (is_loop_prefetching_profitable): Do not insert prefetches
23188         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
23189         times the prefetch ahead distance.
23190
23191 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
23192
23193         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
23194         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
23195         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
23196         the unroll_factor.
23197
23198 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
23199
23200         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
23201         a diagnostic info when the insn-to-mem ratio is too small.
23202
23203 2010-05-07  Richard Guenther  <rguenther@suse.de>
23204
23205         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
23206         the linker plugin.
23207         (store_arg): Queue temp_filename for deletion instead of
23208         the whole argument.
23209
23210 2010-05-07  Richard Guenther  <rguenther@suse.de>
23211
23212         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
23213         (run_gcc): Handle LTRANS phase invocation.
23214         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
23215
23216 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
23217
23218         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
23219         this is also meaningful on PARM_DECLs and RESULT_DECLs.
23220
23221 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23222
23223         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
23224
23225 2010-05-07  Richard Guenther  <rguenther@suse.de>
23226
23227         PR tree-optimization/44020
23228         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
23229         code when PRE is not yet initialized.
23230
23231 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23232
23233         * config/mips/dbxmdebug.h: Remove.
23234         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
23235
23236 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
23237
23238         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
23239         with null pointer and also warn about ordered comparison of zero with
23240         pointer if -Wextra.
23241
23242 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
23243
23244         * graphite-blocking.c
23245         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
23246         * graphite-clast-to-gimple.c
23247         (clast_to_gcc_expression): Same.
23248         (precision_for_value): Same.
23249         (precision_for_interval): Same.
23250         (gcc_type_for_interval): Same.
23251         (graphite_create_new_guard): Same.
23252         (compute_bounds_for_level): Same.
23253         (graphite_create_new_loop_guard): Same.
23254         * graphite-interchange.c
23255         (build_linearized_memory_access): Same.
23256         (pdr_stride_in_loop): Same.
23257         (memory_strides_in_loop_1): Same.
23258         (memory_strides_in_loop): Same.
23259         (extend_scattering): Same.
23260         (psct_scattering_dim_for_loop_depth): Same.
23261         (pbb_number_of_iterations): Same.
23262         * graphite-poly.h
23263         (debug_iteration_domains): Same.
23264         * graphite-ppl.c
23265         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
23266         (ppl_set_inhomogeneous_gmp): Same.
23267         (ppl_strip_loop): Same.
23268         (ppl_lexico_compare_linear_expressions): Same.
23269         (ppl_read_polyhedron_matrix): Same.
23270         (ppl_max_for_le_pointset): Same.
23271         * graphite-ppl.h
23272         (ppl_read_polyhedron_matrix): Same.
23273         (tree_int_to_gmp): Same.
23274         (gmp_cst_to_tree): Same.
23275         (ppl_set_inhomogeneous): Same.
23276         (ppl_set_inhomogeneous_tree): Same.
23277         (ppl_set_coef): Same.
23278         (ppl_set_coef_tree): Same.
23279         * graphite-sese-to-poly.c
23280         (build_pbb_scattering_polyhedrons): Same.
23281         (build_scop_scattering): Same.
23282         (scan_tree_for_params_right_scev): Same.
23283         (scan_tree_for_params): Same.
23284         (find_params_in_bb): Same.
23285         (find_scop_parameters): Same.
23286         (add_upper_bounds_from_estimated_nit): Same.
23287         (build_loop_iteration_domains): Same.
23288         (add_condition_to_domain): Same.
23289         (pdr_add_memory_accesses): Same.
23290
23291 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
23292
23293         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
23294         CLooG's value_* macros to their respective mpz_* counterparts.
23295         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
23296         (graphite_create_new_loop_guard): Same.
23297         * graphite-interchange.c (build_linearized_memory_access): Same.
23298         (pdr_stride_in_loop): Same.
23299         (memory_strides_in_loop_1): Same.
23300         (1st_interchange_profitable_p): Same.
23301         * graphite-poly.c (extend_scattering): Same.
23302         (psct_scattering_dim_for_loop_depth): Same.
23303         (pbb_number_of_iterations): Same.
23304         (pbb_number_of_iterations_at_time): Same.
23305         * graphite-poly.h (new_1st_loop): Same.
23306         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
23307         (oppose_constraint): Same.
23308         (insert_constraint_into_matrix): Same.
23309         (ppl_set_inhomogeneous_gmp): Same.
23310         (ppl_set_coef_gmp): Same.
23311         (ppl_strip_loop): Same.
23312         (ppl_lexico_compare_linear_expressions): Same.
23313         (ppl_max_for_le_pointset): Same.
23314         (ppl_min_for_le_pointset): Same.
23315         (ppl_build_realtion): Same.
23316         * graphite-ppl.h (gmp_cst_to_tree): Same.
23317         (ppl_set_inhomogeneous): Same.
23318         (ppl_set_inhomogeneous_tree): Same.
23319         (ppl_set_coef): Same.
23320         (ppl_set_coef_tree): Same.
23321         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
23322         (build_scop_scattering): Same.
23323         (add_value_to_dim): Same.
23324         (scan_tree_for_params_right_scev): Same.
23325         (scan_tree_for_params_int): Same.
23326         (scan_tree_for_params): Same.
23327         (find_params_in_bb): Same.
23328         (find_scop_parameters): Same.
23329         (add_upper_bounds_from_estimated_nit): Same.
23330         (build_loop_iteration_domains): Same.
23331         (create_linear_expr_from_tree): Same.
23332         (add_condition_to_domain): Same.
23333         (pdr_add_memory_accesses): Same.
23334
23335 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
23336             Jason Merrill  <jason@redhat.com>
23337
23338         * c-common.c (c_common_reswords): Add nullptr.
23339         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
23340         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
23341         (gen_type_die_with_usage): Likewise.
23342         * dbxout.c (dbxout_type): Likewise.
23343         * sdbout.c (plain_type_1): Likewise.
23344
23345 2010-05-06  Jason Merrill  <jason@redhat.com>
23346
23347         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
23348         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
23349         ret appropriately.
23350         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
23351
23352         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
23353         stripping WITH_SIZE_EXPR.
23354         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
23355         change.
23356
23357 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23358
23359         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
23360         list of obsolete configurations.
23361         Disabled check for obsolete configurations.
23362         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
23363         Removed support for previous versions.
23364         * config/mips/iris.h: Removed.
23365         * config/mips/iris5.h: Removed.
23366         * config/mips/iris6.h: Merged old iris.h contents.
23367         (TARGET_IRIX): Removed.
23368         (DRIVER_SELF_SPECS): Removed mabi=32.
23369         (IDENT_ASM_OP): Removed undef.
23370         (STARTFILE_SPEC): Removed mabi=32.
23371         (ENDFILE_SPEC): Likewise.
23372         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
23373         (MACHINE_TYPE): Update for IRIX 6.5.
23374         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
23375         TARGET_IRIX by TARGET_IRIX6.
23376         (mips_file_start): Likewise.
23377         (mips_output_external): Remove IRIX 5/6 O32 support.
23378         (mips_output_function_prologue): Likewise.
23379         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
23380         TARGET_IRIX6.
23381         (TARGET_CPU_CPP_BUILTINS): Likewise.
23382         (TARGET_IRIX): Removed.
23383         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
23384         (MULTILIB_DIRNAMES): Removed 32.
23385         (MULTILIB_OSDIRNAMES): Removed ../lib.
23386         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
23387         (Specific, mips-sgi-irix5): Document removal.
23388         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
23389         Remove references to older IRIX 6 releases and the O32 ABI.
23390
23391 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
23392
23393         PR bootstrap/43994
23394         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
23395         instead of DF_REF_REAL_REG.
23396
23397 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
23398
23399         PR target/43888
23400         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
23401         handling to still return true for x64 targets.
23402
23403 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
23404
23405         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
23406
23407 2010-05-06  Jan Hubicka  <jh@suse.cz>
23408
23409         PR tree-optimization/43791
23410         * ipa-inline.c (update_caller_keys): Remove bogus
23411         disregard_inline_limits check.
23412
23413 2010-05-06  Michael Matz  <matz@suse.de>
23414
23415         PR tree-optimization/43984
23416         * tree-ssa-pre.c (inserted_phi_names): Remove.
23417         (inserted_exprs): Change to bitmap.
23418         (create_expression_by_pieces): Set bits, don't append to vector.
23419         (insert_into_preds_of_block): Don't handle inserted_phi_names.
23420         (eliminate): Don't look at inserted_phi_names, remove deleted
23421         insns from inserted_exprs.
23422         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
23423         (init_pre, fini_pre): Allocate and free bitmaps.
23424         (execute_pre): Insert insns on edges before elimination.
23425
23426 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
23427
23428         * tree.c (initializer_zerop): Handle STRING_CST.
23429
23430 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23431
23432         PR 40989
23433         * doc/invoke.texi (Wimplicit): Document as C only.
23434         * opts.c (common_handle_option): Add argument kind.
23435         (handle_option): Rename as read_cmdline_option. Factor out code to...
23436         (handle_option): ... here. New.
23437         (handle_options): Rename as read_cmdline_options.
23438         (decode_options): Update call.
23439         (set_option): Use option index instead of option pointer. Classify
23440         diagnostics correctly.
23441         (enable_warning_as_error): Call handle_option.
23442         * opts.h (set_option): Update declaration.
23443         (handle_option): Declare.
23444         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
23445         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
23446         * c-opts.c (set_Wimplicit): Delete.
23447         (c_family_lang_mask): New static constant.
23448         (c_common_handle_option): Add argument kind. Use handle_option
23449         instead of set_Wimplicit.
23450         (c_common_post_options): warn_implicit and warn_implicit_int
23451         are disabled by default.
23452         * c-common.c (warn_implicit): Do not define here.
23453         * c-common.h (warn_implicit): Do not declare here.
23454         (c_common_handle_option): Update declaration.
23455         * lto-opts.c (lto_reissue_options): Update call to set_option.
23456
23457 2010-05-06  Richard Guenther  <rguenther@suse.de>
23458
23459         PR tree-optimization/43571
23460         * domwalk.c (walk_dominator_tree): Walk the dominator
23461         sons in more optimal order.
23462
23463 2010-05-06  Richard Guenther  <rguenther@suse.de>
23464
23465         PR tree-optimization/43934
23466         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
23467         (stmt_cost): Likewise.
23468         (extract_true_false_args_from_phi): New helper.
23469         (determine_max_movement): For PHI nodes verify we can hoist them
23470         and compute their cost.
23471         (determine_invariantness_stmt): Handle PHI nodes.
23472         (move_computations_stmt): Likewise.  Hoist PHI nodes in
23473         if-converted form using COND_EXPRs.
23474         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
23475         (tree_ssa_lim): Likewise.
23476         * tree-flow.h (tree_ssa_lim): Adjust prototype.
23477         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
23478
23479 2010-05-06  Richard Guenther  <rguenther@suse.de>
23480
23481         PR tree-optimization/43987
23482         * tree-ssa-structalias.c (could_have_pointers): For possibly
23483         address-taken variables force pointers to be recorded.
23484         (create_variable_info_for_1): Likewise.
23485         (push_fields_onto_fieldstack): Pass in wheter all fields
23486         must have pointers.
23487         (find_func_aliases): Query types instead of vars whether
23488         they contain pointers where appropriate.
23489
23490 2010-05-06  Jan Hubicka  <jh@suse.cz>
23491
23492         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
23493         (record_reference, mark_address, mark_load, mark_store): Record
23494         references.
23495         (record_references_in_initializer): Update call of record_references.
23496         (rebuild_cgraph_edges): Remove all references before rebuiding.
23497         * cgraph.c (cgraph_create_node): Clear ref list.
23498         (cgraph_remove_node): Remove references.
23499         (dump_cgraph_node): Dump references.
23500         (cgraph_clone_node): Clone references.
23501         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
23502         (struct cgraph_node, varpool_node): Add ref_lst.
23503         * ipa-ref.c: New file.
23504         * ipa-ref.h: New file.
23505         * ipa-ref-inline.h: New file.
23506         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
23507         (referenced_from_other_partition_p): New function.
23508         (lto_output_varpool_node): Take set arugment; call
23509         referenced_from_other_partition.
23510         (lto_output_ref): New.
23511         (add_references): New.
23512         (output_refs): New.
23513         (output_cgraph): Compute boundary based on references; output refs.
23514         (output_varpool): Accept cgraph_node_set argument.
23515         (input_ref): New.
23516         (input_refs): New.
23517         (input_cgraph): Call input_refs.
23518         * lto-section-in.c (lto_section_name): Add refs.
23519         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
23520         (ipa-ref.o): New file.
23521         * varpool.c (varpool_node): Clear ipa ref list.
23522         (varpool_remove_node): Remove references.
23523         (dump_varpool_node): Dump references.
23524         (varpool_assemble_decl): Only compile finalized ones.
23525         (varpool_extra_name_alias): Initialize ref list.
23526         * lto-streamer.c (lto-get_section_name): Add .refs section.
23527         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
23528         (referenced_from_other_partition_p): Declared.
23529
23530 2010-05-06  Ira Rosen  <irar@il.ibm.com>
23531
23532         PR tree-optimization/43901
23533         * tree-vect-stmts.c (vectorizable_call): Assert that vector
23534         type is not NULL if it's transformation phase, and return
23535         FALSE if it's analysis.
23536         (vectorizable_conversion, vectorizable_operation,
23537         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
23538
23539 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
23540
23541         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
23542         Delete.
23543         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
23544         New define.
23545         * config/mips/mips-protos.h
23546         (mips_small_register_classes_for_mode_p): Delete prototype.
23547
23548 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
23549
23550         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
23551         * config/arm/arm.c (multiple_operation_profitable_p,
23552         compute_offset_order): New static functions.
23553         (load_multiple_sequence, store_multiple_sequence): Use them.
23554         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
23555         memory offsets, not register numbers.
23556         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
23557
23558 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
23559
23560         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
23561         (get_pending_sizes, put_pending_size, put_pending_sizes):
23562         Update the uses of pending_sizes.
23563         * c-decl.c (store_parm_decls): Likewise.
23564         * c-tree.h (struct c_arg_info): Likewise.
23565         * tree.h: Update the prototype for get_pending_sizes and
23566         put_pending_sizes.
23567
23568 2010-05-05  Jason Merrill  <jason@redhat.com>
23569
23570         PR debug/43370
23571         * c-common.c (handle_aligned_attribute): Respect
23572         ATTR_FLAG_TYPE_IN_PLACE.
23573
23574         PR testsuite/43758
23575         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
23576         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
23577         (TARGET_INITIALIZER): Use it.
23578         * c-common.c (attribute_takes_identifier_p): Call it.
23579         * c-common.h: Update prototype.
23580         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
23581         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
23582
23583 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
23584
23585         PR debug/43950
23586         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
23587         DW_ID_down_case for Fortran compilation units.
23588
23589 2010-05-05  Jan Hubicka  <jh@suse.cz>
23590
23591         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
23592         handle aliases.
23593
23594 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
23595
23596         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
23597         a variable-sized RESULT_DECL.
23598
23599 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
23600
23601         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
23602
23603 2010-05-05  Jason Merrill  <jason@redhat.com>
23604
23605         PR c++/43787
23606         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
23607         returns GS_OK.
23608         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
23609
23610 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
23611             Jakub Jelinek  <jakub@redhat.com>
23612
23613         PR debug/43478
23614         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
23615         (dead_debug_init, dead_debug_finish): New functions.
23616         (dead_debug_add, dead_debug_insert_before): Likewise.
23617         (df_note_bb_compute): Initialize a dead_debug object, add dead
23618         debug uses to it, insert debug bind insns before death insns,
23619         reset debug insns that refer to pending uses at the end.
23620         * rtl.h (make_debug_expr_from_rtl): New prototype.
23621         * varasm.c (make_debug_expr_from_rtl): New function.
23622
23623 2010-05-05  Jan Hubicka  <jh@suse.cz>
23624
23625         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
23626         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
23627         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
23628         lto_varpool_encoder_deref, lto_varpool_encoder_size,
23629         lto_varpool_encoder_encode_initializer_p,
23630         lto_set_varpool_encoder_encode_initializer): New functions.
23631         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
23632         call output_varpool.
23633         (input_varpool_node): Do not always set analyzed.
23634         (input_cgraph_1): Return vector of cgraph nodes.
23635         (input_varpool_1): Return vector of varpools.
23636         (input_cgraph): Free the vectors.
23637         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23638         output only initializers needed.
23639         (lto_output): Only call output_cgraph.
23640         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
23641         * lto-section-out.c (lto_new_out_decl_state): Initialize
23642         state->varpool_node_encoder.
23643         * lto-streamer.h (lto_varpool_encoder_d): New.
23644         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
23645         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
23646         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
23647         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
23648         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
23649         Declare.
23650         (output_varpool, input_varpool): Remove declarations.
23651
23652 2010-05-05  Jan Hubicka  <jh@suse.cz>
23653
23654         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
23655         with body can prevail.
23656
23657 2010-05-05  Jan Hubicka  <jh@suse.cz>
23658
23659         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
23660         size.
23661
23662 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23663
23664         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
23665
23666         * gengtype.h (erro_at_line): Constify pos argument.
23667
23668         * gengtype.c: Include hashtab.h.
23669         (enum gc_used): Document GC_MAYBE_POINTED_TO.
23670         (error_at_line): Constify pos argument.
23671         (do_typedef): Initialize p->opt field.
23672         (get_file_gtfilename): Fix comment typo.
23673         (struct walk_type_data): Constify line field.
23674         (get_output_file_for_structure): New function.
23675         (write_local_func_for_structure): Constify orig_s argument.
23676         Use get_output_file_for_structure.
23677         (write_func_for_structure): Use get_output_file_for_structure.
23678         (INDENT): New define.
23679         (dump_pair, dump_type, dump_type_list, dump_typekind)
23680         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
23681         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
23682         functions.
23683         (seen_types): New variable.
23684         (main): New variable do_dump.  Process "-d" command line option.
23685         Call dump_everything if dump requested.
23686
23687 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
23688
23689         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
23690         in a temporary instead of invoking the macro multiple times.
23691         (track_expr_p): Likewise.
23692
23693 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
23694
23695         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
23696         per new semantics.
23697         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
23698         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
23699         conditions for printing notes.
23700         * common.opt (-Wcoverage-mismatch): Allow negative, default to
23701         true, update documentation.
23702         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
23703
23704 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
23705
23706         PR c/43981
23707         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
23708         on dimen.
23709
23710 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
23711
23712         PR target/43799
23713         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
23714         (*sse_prologue_save_insn1): Likewise.
23715         (SSE prologue save splitter): Likewise.
23716
23717 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
23718
23719         * tree.c (free_lang_data_in_one_sizepos): New inline function.
23720         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
23721         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
23722         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
23723         all decls.  Call it on DECL_FIELD_OFFSET of fields.
23724         (find_decls_types_r): Follow DECL_VALUE_EXPR.
23725         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
23726
23727 2010-05-04  Martin Jambor  <mjambor@suse.cz>
23728
23729         * tree-sra.c (build_access_from_expr_1): The first parameter type
23730         changed to simple tree.
23731         (build_access_from_expr): Likewise, gsi parameter was eliminated.
23732         (scan_assign_result): Renamed to assignment_mod_result, enum elements
23733         renamed as well.
23734         (build_accesses_from_assign): Removed all parameters except for a
23735         simple gimple statement.  Now returns a simple bool.
23736         (scan_function): All non-analysis parts moved to separate functions
23737         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
23738         parameters and updated both callers.
23739         (sra_modify_expr): Removed parameter data.
23740         (sra_modify_function_body): New function.
23741         (perform_intra_sra): Call sra_modify_function_body to modify the
23742         function body.
23743         (replace_removed_params_ssa_names): Parameter data changed into
23744         adjustments vector.
23745         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
23746         changed the parameter dont_convert to convert with the opposite
23747         meaning.
23748         (sra_ipa_modify_assign): Parameter data changed into adjustments
23749         vector, return value changed to bool.
23750         (ipa_sra_modify_function_body): New function.
23751         (sra_ipa_reset_debug_stmts): Updated a comment.
23752         (modify_function): Use ipa_sra_modify_function_body to modify function
23753         body.
23754
23755 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
23756
23757         PR middle-end/43671
23758         * alias.c (true_dependence): Handle the same VALUE in x and mem.
23759         (canon_true_dependence): Likewise.
23760         (write_dependence_p): Likewise.
23761
23762 2010-05-04  Jan Hubicka  <jh@suse.cz>
23763
23764         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
23765         * cgraphbuild.c: Include ipa-utils.h
23766         (record_reference_ctx): New struct.
23767         (record_reference): Simplify to work on initializers; not statements.
23768         (mark_address, mark_load, mark_store): New.
23769         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23770         walk PHI nodes too.
23771         (record_references_in_initializer): Update use of record_reference.
23772         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23773         walk PHI nodes too.
23774
23775 2010-05-04  Jan Hubicka  <jh@suse.cz>
23776
23777         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
23778         node will be removed anyway.
23779         (lto_varpool_replace_node): Allow also unanalyzed nodes;
23780         relink aliases of node into prevailing node.
23781         * varpool.c (varpool_remove_node): Remove aliases properly;
23782         when removing node, remove all its aliases too; remove DECL_INITIAL
23783         of removed node; ggc_free the varpool node.
23784
23785 2010-05-04  Richard Guenther  <rguenther@suse.de>
23786
23787         PR tree-optimization/43879
23788         * tree-ssa-structalias.c (alias_get_name): Use
23789         DECL_ASSEMBLER_NAME if available.
23790         (create_function_info_for): Return the varinfo node.
23791         (ipa_pta_execute): Associate same-body aliases and extra names
23792         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
23793
23794 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
23795
23796         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
23797
23798 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
23799
23800         PR bootstrap/43964
23801         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
23802         only if HONOR_REG_ALLOC_ORDER is not defined.
23803
23804 2010-05-04  Richard Guenther  <rguenther@suse.de>
23805
23806         PR tree-optimization/43949
23807         * tree-vrp.c (extract_range_from_binary_expr): Only handle
23808         TRUNC_MOD_EXPR.
23809
23810 2010-04-26  Jason Merrill  <jason@redhat.com>
23811
23812         * c.opt (-fstrict-enums): New.
23813         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
23814
23815 2010-05-03  David Ung  <davidu@mips.com>
23816             James E. Wilson  <wilson@codesourcery.com>
23817
23818         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
23819         emit the trap instruction before the divide for TUNE_74K.
23820
23821 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
23822
23823         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
23824         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
23825         based on the above, for new target hook.
23826
23827         * hooks.c (hook_bool_mode_true): New generic hook.
23828         * hooks.h (hook_bool_mode_true): Add prototype.
23829
23830         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
23831         target hook.
23832         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
23833         target hook, set to hook_bool_mode_false.
23834         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
23835         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
23836         with targetm.small_register_classes_for_mode_p.
23837         (find_reusable_reload): Likewise.
23838         (combine_reloads): Likewise.
23839         * reload1.c (reload_as_needed): Likewise.
23840         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
23841         * ifcvt.c (noce_process_if_block, check_cond_move_block,
23842         dead_or_predicable): Likewise.
23843         * regmove.c (optimize_reg_copy_1): Likewise.
23844         * calls.c (prepare_call_address): Likewise.
23845         (precompute_register_parameters): Likewise.
23846
23847         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
23848         hook definition.
23849         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
23850         implementation of the hook that considers all register classes
23851         small except for SH64.
23852         (sh_override_options): Use the new hook.
23853         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
23854         Add prototype.
23855
23856         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
23857         hook definition.
23858         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
23859         implementation of the hook that considers all register classes
23860         small for THUMB1.
23861         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
23862         Add prototype.
23863
23864         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
23865         hook definition.
23866         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
23867         implementation of the hook that considers all register classes
23868         small for MIPS16.
23869         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
23870         Add prototype.
23871
23872         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
23873         hook definition.
23874         * config/m32c/m32c.h: Likewise.
23875         * config/pdp11/pdp11.h: Likewise.
23876         * config/avr/avr.h: Likewise.
23877         * config/xtensa/xtensa.h: Likewise.
23878         * config/m68hc11/m68hc11.h: Likewise.
23879         * config/mn10300/mn10300.h: Likewise.
23880         * config/mcore/mcore.h: Likewise.
23881         * config/h8300/h8300.h: Likewise.
23882         * config/bfin/bfin.h: Likewise.
23883
23884         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
23885         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
23886
23887 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
23888
23889         * double-int.h (tree_to_double_int): Remove macro.
23890         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
23891         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23892         (tree_to_double_int): New function.
23893         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
23894         Move ...
23895         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23896
23897 2010-05-03  Richard Guenther  <rguenther@suse.de>
23898
23899         PR tree-optimization/43971
23900         * tree-ssa-structalias.c (get_constraint_for_1): Fix
23901         constraints in the !flag_delete_null_pointer_checks case.
23902
23903 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
23904
23905         PR debug/43972
23906         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
23907         result mode matches original rtl mode.
23908
23909 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
23910
23911         PR target/43888
23912         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
23913
23914 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
23915
23916         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
23917         when processing flag options.
23918
23919 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
23920
23921         * gcov-iov.c (main): Change format string placeholder
23922         from %#08x to 0x%08x.
23923         * genchecksum.c (dosum): Change format string placeholder
23924         from %#02x to 0x%02x.
23925
23926 2010-05-02  Richard Guenther  <rguenther@suse.de>
23927
23928         PR tree-optimization/43879
23929         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
23930
23931 2010-05-02  Bruno Haible  <bruno@clisp.org>
23932
23933         * doc/extend.texi (Function Attributes): Fix a typo.
23934
23935 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
23936
23937         Revert:
23938         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
23939         placeholder from 0x%x to %#x.
23940         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23941         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
23942         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
23943         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
23944         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
23945         * config/i386/i386.c (ix86_target_string): Ditto.
23946         * config/i386/i386.c (output_pic_addr_const): Ditto.
23947         (print_operand): Ditto.
23948
23949 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
23950
23951         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
23952         placeholder from 0x%x to %#x.
23953         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
23954         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
23955         (ASM_OUTPUT_DEBUG_DATA): Ditto.
23956         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
23957         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
23958         * optc-gen.awk: Ditto.
23959         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
23960         (HOST_WIDE_INT_PRINT_HEX): Ditto.
23961         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
23962         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23963
23964 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
23965
23966         * target.h (struct calls): Add function_value_regno_p field.
23967         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
23968         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
23969         * targhooks.c (default_function_value_regno_p): New function.
23970         * targhooks.h (default_function_value_regno_p): Declare function.
23971         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
23972         * builtins.c. (apply_result_size): (Ditto.).
23973         * combine.c. (likely_spilled_retval_p): (Ditto.).
23974         * mode-switching.c. Include 'target.h'.
23975         (create_pre_exit): Use function_value_regno_p hook.
23976         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
23977         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
23978         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
23979
23980         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
23981         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
23982         (ix86_function_value_regno_p): Declare as static, change argument
23983         type to const unsigned int.
23984         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
23985
23986 2010-05-01  Richard Guenther  <rguenther@suse.de>
23987
23988         PR tree-optimization/43949
23989         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
23990         types.
23991         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
23992
23993 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
23994
23995         * rtl.h (CONST_DOUBLE_P): Define.
23996         (rtx_to_double_int): Declare.
23997         * emit-rtl.c (rtx_to_double_int): New function.
23998         * dwarf2out.c (insert_double): New function.
23999         (loc_descriptor, add_const_value_attribute): Clean up, use
24000         rtx_to_double_int and insert_double functions.
24001
24002 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
24003
24004         * doc/extend.texi (Inline): Add missing return keyword to examples.
24005         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
24006         "command-line".
24007
24008 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
24009
24010         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
24011         the variable part of the offset as well.  Use highest_pow2_factor for
24012         all alignment checks.
24013
24014 2010-04-30  Richard Guenther  <rguenther@suse.de>
24015
24016         PR tree-optimization/43879
24017         * tree-ssa-structalias.c (type_could_have_pointers): Functions
24018         can have pointers.
24019
24020 2010-04-30  Jan Hubicka  <jh@suse.cz>
24021
24022         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
24023         varpool.
24024         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
24025
24026 2010-04-30  Jan Hubicka  <jh@suse.cz>
24027
24028         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
24029         New.
24030         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
24031         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
24032         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
24033         cgraph_node_set_needs_ltrans_p): Remove.
24034
24035 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
24036
24037         * sdbout.c: Include vec.h, do not include varray.h.
24038         (deferred_global_decls, sdbout_global_decl,
24039         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
24040         * toplev.c: Do not include varray.h.
24041         (dump_memory_report): Do not dump VARRAY statistics.
24042         * gengtype.c (open_base_file): Ignore varray.h.
24043         * Makefile.in: Update for abovementioned changes.
24044         Remove all traces of varray.c and varray.h.
24045         * varray.c: Remove file.
24046         * varray.h: Remove file.
24047
24048 2010-04-30  Jan Hubicka  <jh@suse.cz>
24049
24050         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
24051         references.
24052
24053 2010-04-30  Jan Hubicka  <jh@suse.cz>
24054
24055         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
24056         needed.
24057
24058 2010-04-30  Richard Guenther  <rguenther@suse.de>
24059
24060         * tree-ssa-structalias.c (get_constraint_for_1): Generate
24061         constraints for CONSTRUCTOR.
24062
24063 2010-04-30  Richard Guenther  <rguenther@suse.de>
24064
24065         PR lto/43946
24066         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
24067         first after all lowering passes.
24068
24069 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
24070
24071         * toplev.c: Include varray.h for statistics dumping.
24072         * tree.h: Do not declare varray_head_tag.
24073         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
24074         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
24075         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
24076         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
24077         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
24078         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
24079         c-common.c, c-common.h, reg-stack.c, basic-block.h,
24080         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
24081         include varray.h.
24082         * Makefile.in: Update for abovementioned changes.
24083
24084 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
24085
24086         PR debug/43942
24087         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
24088
24089 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
24090
24091         * config/picochip/picochip.c (picochip_legitimize_address): Define.
24092         Use this function to do machine-specific conversion.
24093         (picochip_legitimize_reload_address): Likewise.
24094         (picochip_legitimate_address_p): Check valid base register only if
24095         strict.
24096         (picochip_check_conditional_copy): Check for modw only if opnd is
24097         register.
24098         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
24099         to call the function in c.
24100         * config/picochip/picochip-protos.h
24101         (picochip_legitimize_reload_address): Define.
24102         * config/picochip/picochip.md (supported_compare1): Define.
24103
24104 2010-04-30  Jan Hubicka  <jh@suse.cz>
24105
24106         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
24107         (cgraph_global_info): Remove inlined.
24108         (LTO_cgraph_tag_names): Remove.
24109         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
24110         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
24111         simplify cgraph tags and document.
24112         (lto_output_node): Use only LTO_cgraph_unavail_node and
24113         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
24114         for_functions_valid, global info, process and output flags.
24115         (input_overwrite_node): Initialize estimated stack size and
24116         estimated growth.  Do not read flags we no longer store.
24117         (input_node): Likewise do not read info no longer stored.
24118         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
24119         flag.
24120
24121 2010-04-30  Richard Guenther  <rguenther@suse.de>
24122
24123         PR tree-optimization/43879
24124         * tree-ssa-structalias.c (get_constraint_for_1): Properly
24125         handle non-zero initializers.
24126
24127 2010-04-30  Richard Guenther  <rguenther@suse.de>
24128
24129         * builtins.c (fold_builtin_1): Delete free (0).
24130
24131 2010-04-29  Jan Hubicka  <jh@suse.cz>
24132
24133         * gengtype.c (open_base_files): Add lto-streamer.h
24134         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
24135         (pass_ipa_cp): GGC collect.
24136         * toplev. (compile_file): Do not output symbols.
24137         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
24138         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
24139         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
24140         * lto-section-in.c: Include ggc.h
24141         (lto_new_in_decl_state): Alloc in GGC.
24142         (lto_delete_in_decl_state): Likewise.
24143         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
24144         Collect.
24145
24146 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
24147
24148         PR target/42895
24149         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
24150         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
24151         (HONOR_REG_ALLOC_ORDER): Describe new macro.
24152         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
24153         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
24154         account only if HONOR_REG_ALLOC_ORDER is not defined.
24155         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
24156         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
24157
24158 2010-04-29  Jon Grant  <04@jguk.org>
24159
24160         * collect2.c (vflag): Change type from int to bool.
24161         (debug): Likewise.
24162         (helpflag): New global bool.
24163         (main): Set vflag and debug with boolean, not integer truth values.
24164         Accept new "--help" option and output usage text if found.
24165         * collect2.h (vflag): Update prototype.
24166         (debug): Likewise.
24167
24168 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
24169
24170         PR bootstrap/43936
24171         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
24172
24173 2010-04-29  Richard Guenther  <rguenther@suse.de>
24174
24175         PR bootstrap/43935
24176         * plugin.h (invoke_plugin_callbacks): Annotate arguments
24177         with ATTRIBUTE_UNUSED.
24178
24179 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
24180
24181         PR target/43921
24182         * config/i386/i386.c (get_some_local_dynamic_name): Replace
24183         INSN_P with NONDEBUG_INSN_P.
24184         (distance_non_agu_define): Likewise.
24185         (distance_agu_use): Likewise.
24186
24187 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
24188
24189         From Dominique d'Humieres  <dominiq@lps.ens.fr>
24190         PR bootstrap/43858
24191         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
24192         test_set.
24193
24194 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
24195
24196         * plugin.h (invoke_plugin_callbacks): New inline function.
24197         * plugin.c (flag_plugin_added): New global flag.
24198         (add_new_plugin): Initialize above flag.
24199         (invoke_plugin_callbacks): Rename to ...
24200         (invoke_plugin_callbacks_full): ... this.
24201
24202 2010-04-28  Jan Hubicka  <jh@suse.cz>
24203
24204         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
24205         (lto_varpool_replace_node): New.
24206         (lto_symtab_resolve_symbols): Resolve varpool nodes.
24207         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
24208         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
24209         * cgraph.h (varpool_node_ptr): New type.
24210         (varpool_node_ptr): New vector.
24211         (varpool_node_set_def): New structure.
24212         (varpool_node_set): New type.
24213         (varpool_node_set): New vector.
24214         (varpool_node_set_element_def): New structure.
24215         (varpool_node_set_element, const_varpool_node_set_element): New types.
24216         (varpool_node_set_iterator): New type.
24217         (varpool_node): Add prev pointers, add used_from_other_partition,
24218         in_other_partition.
24219         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
24220         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
24221         varpool_get_node, varpool_remove_node): Declare.
24222         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
24223         varpool_node_set_size): New inlines.
24224         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
24225         * tree-pass.h (varpool_node_set_def): Forward declare.
24226         (ipa_opt_pass_d): Summary writting takes vnode sets too.
24227         (ipa_write_optimization_summaries): Update prototype.
24228         * ipa-cp.c (ipcp_write_summary): Update.
24229         * ipa-reference.c (ipa_reference_write_summary): Update.
24230         * lto-cgraph.c (lto_output_varpool_node): New static function.
24231         (output_varpool): New function.
24232         (input_varpool_node): New static function.
24233         (input_varpool_1): New function.
24234         (input_cgraph): Input varpool.
24235         * ipa-pure-const.c (pure_const_write_summary): Update.
24236         * lto-streamer-out.c (lto_output): Update, output varpool too.
24237         (write_global_stream): Kill WPA hack.
24238         (produce_asm_for_decls): Update.
24239         (output_alias_pair_p): Handle variables.
24240         (output_unreferenced_globals): Output only needed partition of varpool.
24241         * ipa-inline.c (inline_write_summary): Update.
24242         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
24243         cgraph.
24244         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
24245         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
24246         varpool_node_set_new, varpool_node_set_add,
24247         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
24248         debug_varpool_node_set): New functions.
24249         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
24250         (execute_one_pass): Process new decls too.
24251         (ipa_write_summaries_2): Pass around vsets.
24252         (ipa_write_summaries_1): Likewise.
24253         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
24254         to add.
24255         (ipa_write_optimization_summaries_1): Pass around vsets.
24256         (ipa_write_optimization_summaries): Likewise.
24257         * varpool.c (varpool_get_node): New.
24258         (varpool_node): Update doubly linked lists.
24259         (varpool_remove_node): New.
24260         (dump_varpool_node): More dumping.
24261         (varpool_enqueue_needed_node): Update doubly linked lists.
24262         (decide_is_variable_needed): Kill ltrans hack.
24263         (varpool_finalize_decl): Kill lto hack.
24264         (varpool_assemble_decl): Skip decls in other partitions.
24265         (varpool_assemble_pending_decls): Update doubly linkes lists.
24266         (varpool_empty_needed_queue): Likewise.
24267         (varpool_extra_name_alias): Likewise.
24268         * lto-streamer.c (lto_get_section_name): Add vars section.
24269         * lto-streamer.h (lto_section_type): Update.
24270         (output_varpool, input_varpool): Declare.
24271
24272 2010-04-28  Mike Stump  <mikestump@comcast.net>
24273
24274         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
24275
24276 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24277
24278         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
24279         record or union type with RECORD_OR_UNION_TYPE_P predicate.
24280         (lto_input_ts_type_tree_pointers): Likewise.
24281         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
24282         (lto_output_ts_type_tree_pointers): Likewise.
24283
24284 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24285
24286         Uniquization of constants at the Tree level
24287         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
24288         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
24289         bit to the end.
24290         (tree_output_constant_def): Declare.
24291         * gimplify.c (gimplify_init_constructor): When using block copy, first
24292         uniquize the constant constructor on the RHS.
24293         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
24294         DECL_IN_CONSTANT_POOL flag.
24295         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
24296         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
24297         constant pool.
24298         (assemble_variable): Deal with symbols belonging to the tree constant
24299         pool.
24300         (get_constant_section): Add ALIGN parameter and simplify.
24301         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
24302         (assemble_constant_contents): Use the expression of the VAR_DECL.
24303         (output_constant_def_contents): Use the alignment of the VAR_DECL.
24304         (tree_output_constant_def): New global function.
24305         (mark_constant): Use the expression of the VAR_DECL.
24306         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
24307         its expression.
24308         (output_object_block): Likewise and assemble the expression.
24309
24310 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24311
24312         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
24313         hash_tree, eq_tree): New tree hash table.
24314         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
24315         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
24316         lto_orig_address_remove): Reimplement.
24317
24318 2010-04-28  Xinliang David Li  <davidxl@google.com>
24319
24320         PR c/42643
24321         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
24322         (compute_uninit_opnds_pos): New function.
24323         (is_non_loop_exit_postdominating): New function.
24324         (compute_control_dep_chain): New function.
24325         (find_pdom): New function.
24326         (convert_control_dep_chain_into_preds): New function.
24327         (find_predicates): New function.
24328         (find_control_equiv_block): New function.
24329         (collect_phi_def_edges): New function.
24330         (find_def_preds): New function.
24331         (find_dom): New function.
24332         (dump_predicates): New function.
24333         (get_cmp_code): New function.
24334         (is_value_included_in): New function.
24335         (find_matching_predicate_in_rest_chains): New function.
24336         (use_pred_not_overlap_with_undef_path_pred): New function.
24337         (is_use_properly_guarded): New function.
24338         (normalize_cond_1): New function.
24339         (is_and_or_or): New function.
24340         (normalize_cond): New function.
24341         (is_gcond_subset_of): New function.
24342         (is_subset_of_any): New function.
24343         (is_or_set_subset_of): New function.
24344         (is_and_set_subset_of): New function.
24345         (is_norm_cond_subset_of): New function.
24346         (is_pred_expr_subset_of): New function.
24347         (is_pred_chain_subset_of): New function.
24348         (is_included_in): New function.
24349         (is_superset_of): New function.
24350         (find_uninit_use): New function.
24351         (warn_uninitialized_phi): New function.
24352         (compute_possibly_undefined_names): New function.
24353         (ssa_undefined_value_p): New function.
24354         (execute_late_warn_uninitialized): New function.
24355         * tree-ssa.c (ssa_undefined_value_p): Removed.
24356         (warn_uninit): Changed to extern.
24357         (warn_uninitialized_phi): Removed.
24358         (warn_uninitialized_vars): Changed to extern.
24359         (execute_late_warn_uninitialized): Removed
24360         * tree-flow.h: Add new prototypes.
24361         * timevar.def: Add new time variable.
24362         * Makefile.in: Add new build file.
24363
24364 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
24365
24366         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
24367         type if available.
24368
24369 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24370
24371         PR target/22224
24372         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
24373
24374 2010-04-28  Martin Jambor  <mjambor@suse.cz>
24375
24376         * cgraph.h (struct cgraph_node): New field indirect_calls.
24377         (struct cgraph_indirect_call_info): New type.
24378         (struct cgraph_edge): Removed field indirect_call. New fields
24379         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
24380         (cgraph_create_indirect_edge): Declare.
24381         (cgraph_make_edge_direct): Likewise.
24382         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
24383         * ipa-prop.h (struct ipa_param_call_note): Removed.
24384         (struct ipa_node_params): Removed field param_calls.
24385         (ipa_create_all_structures_for_iinln): Declare.
24386         * cgraph.c: Described indirect edges and uids in initial comment.
24387         (cgraph_add_edge_to_call_site_hash): New function.
24388         (cgraph_edge): Search also among the indirect edges, use
24389         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
24390         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
24391         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
24392         site hash.
24393         (initialize_inline_failed): Assign a reason to indirect edges.
24394         (cgraph_create_edge_1): New function.
24395         (cgraph_create_edge): Moved some functionality to
24396         cgraph_create_edge_1.
24397         (cgraph_create_indirect_edge): New function.
24398         (cgraph_edge_remove_callee): Add an assert checking for
24399         non-indirectness.
24400         (cgraph_edge_remove_caller): Special-case indirect edges.
24401         (cgraph_remove_edge): Likewise.
24402         (cgraph_set_edge_callee): New function.
24403         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
24404         (cgraph_make_edge_direct): New function.
24405         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
24406         the declaration of the call statement matches.
24407         (cgraph_node_remove_callees): Special-case indirect edges.
24408         (cgraph_clone_edge): Likewise.
24409         (cgraph_clone_node): Clone also the indirect edges.
24410         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
24411         indirect_call, dump count of indirect_calls edges.
24412         * ipa-prop.c (iinlining_processed_edges): New variable.
24413         (ipa_note_param_call): Create indirect edges instead of
24414         creating notes.  New parameter node.
24415         (ipa_analyze_call_uses): New parameter node, pass it on to
24416         ipa_note_param_call.
24417         (ipa_analyze_stmt_uses): Likewise.
24418         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
24419         (print_edge_addition_message): Work on edges rather than on notes.
24420         (update_call_notes_after_inlining): Likewise, renamed to
24421         update_indirect_edges_after_inlining.
24422         (ipa_create_all_structures_for_iinln): New function.
24423         (ipa_free_node_params_substructures): Do not free notes.
24424         (ipa_edge_duplication_hook): Propagate bits within
24425         iinlining_processed_edges bitmap.
24426         (ipa_node_duplication_hook): Do not duplicate notes.
24427         (free_all_ipa_structures_after_ipa_cp): Renamed to
24428         ipa_free_all_structures_after_ipa_cp.
24429         (free_all_ipa_structures_after_iinln): Renamed to
24430         ipa_free_all_structures_after_iinln.
24431         (ipa_write_param_call_note): Removed.
24432         (ipa_read_param_call_note): Removed.
24433         (ipa_write_indirect_edge_info): New function.
24434         (ipa_read_indirect_edge_info): Likewise.
24435         (ipa_write_node_info): Do not stream notes, do stream information
24436         in indirect edges.
24437         (ipa_read_node_info): Likewise.
24438         (lto_ipa_fixup_call_notes): Removed.
24439         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
24440         * ipa-inline.c (pass_ipa_inline): Likewise.
24441         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
24442         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
24443         * tree-inline.c (copy_bb): Removed an unnecessary double check for
24444         is_gimple_call.
24445         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
24446         edges.
24447         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
24448         (output_cgraph): Stream also indirect edges.
24449         (lto_output_edge): Added capability to stream indirect edges.
24450         (input_edge): Likewise.
24451         (input_cgraph_1): Likewise.
24452         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
24453         of indirect edges.
24454
24455 2010-04-28  Richard Guenther  <rguenther@suse.de>
24456
24457         PR tree-optimization/43879
24458         PR tree-optimization/43909
24459         * tree-ssa-structalias.c (struct variable_info): Add
24460         only_restrict_pointers flag.
24461         (new_var_info): Initialize it.  Increment stats.total_vars here.
24462         (create_function_info_for): Do not increment stats.total_vars here.
24463         (get_function_part_constraint): Fix build with C++.
24464         (insert_into_field_list): Remove.
24465         (push_fields_onto_fieldstack): Properly merge fields.
24466         (create_variable_info_for): Split and simplify.
24467         (create_variable_info_for_1): New piece.
24468         (intra_create_variable_infos): Properly make restrict constraints
24469         from parameters.
24470
24471 2010-04-28  Richard Guenther  <rguenther@suse.de>
24472
24473         PR c++/43880
24474         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
24475
24476 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24477             Jan Hubicka  <hubicka@ucw.cz>
24478
24479         * doc/invoke.texi (-Wsuggest-attribute=const,
24480         -Wsuggest-attribute=pure): Document.
24481         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
24482         (function_always_visible_to_compiler_p,
24483         suggest_attribute, warn_function_pure, warn_function_const):
24484         New functions.
24485         (check_call): Improve debug info.
24486         (analyze_function): Do not check availability.
24487         (add_new_function): Check availability.
24488         (propagate): Output warnings.
24489         (skip_function_for_local_pure_const): New function.
24490         (local_pure_const): Use it; output warnings.
24491         * common.opt (Wsuggest-attribute=const,
24492         Wsuggest-attribute=pure): New.
24493
24494 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
24495
24496         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
24497         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
24498         or DW_CFA_def_cfa_offset{,_sf}.
24499
24500 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24501
24502         * tree.h: Fix truncated long macros.
24503
24504 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
24505
24506         * collect2.c (TARGET_64BIT): Redefine to target's default.
24507         * tlink.c: Likewise.
24508         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
24509         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
24510         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
24511         for underscoring __USER_LABEL_PREFIX__.
24512         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
24513         (SUB_LINK_ENTRY32): New.
24514         (SUB_LINK_ENTRY64): New.
24515         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
24516         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
24517         (SUB_LINK_ENTRY64): New.
24518         (SUB_LINK_ENTRY): New.
24519         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
24520         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
24521         x64 target is choosen.
24522         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
24523         * configure: Regenerated.
24524         * configure.ac (leading-mingw64-underscores): Option added.
24525
24526 2010-04-27  Jan Hubicka  <jh@suse.cz>
24527
24528         * doc/invoke.texi (-fipa-profile): Document.
24529         * opts.c (decode_options): Enable ipa-profile at -O1.
24530         * timevar.def (TV_IPA_PROFILE): Define.
24531         * common.opt (fipa-profile): Add.
24532         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
24533         flag for clones.
24534         (cgraph_propagate_frequency): Handle only local ones.
24535         * tree-pass.h (pass_ipa_profile): Declare.
24536         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
24537         (pass_ipa_profile): Use TV_IPA_PROFILE.
24538         * ipa.c (ipa_profile): New function.
24539         (gate_ipa_profile): Likewise.
24540         (pass_ipa_profile): New global variable.
24541         * passes.c (pass_ipa_profile): New.
24542
24543 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
24544
24545         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
24546
24547 2010-04-27  Martin Jambor  <mjambor@suse.cz>
24548
24549         PR middle-end/43812
24550         * ipa.c (dissolve_same_comdat_group_list): New function.
24551         (function_and_variable_visibility): Call
24552         dissolve_same_comdat_group_list when comdat group contains external or
24553         newly local nodes.
24554         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
24555         lists are circular and that they contain only DECL_ONE_ONLY nodes.
24556
24557 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24558
24559         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
24560         (const_hash_1) <VECTOR_CST>: New case.
24561         (compare_constant) <VECTOR_CST>: Likewise.
24562         <ADDR_EXPR>: Deal with LABEL_REFs.
24563         (copy_constant) <VECTOR_CST>: New case.
24564
24565 2010-04-27  Jan Hubicka  <jh@suse.cz>
24566
24567         * cgraph.c (cgraph_propagate_frequency): New function.
24568         * cgraph.h (cgraph_propagate_frequency): Declare.
24569         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
24570         cgraph_propagate_frequency.
24571
24572 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
24573
24574         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
24575
24576 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
24577
24578         PR target/40657
24579         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
24580         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
24581         here to determine which regs to push and how much stack to reserve.
24582
24583 2010-04-27  Jie Zhang  <jie@codesourcery.com>
24584
24585         * doc/gimple.texi (gimple_statement_with_ops): Remove
24586         addresses_taken field.
24587         (gimple_statement_with_memory_ops): Likewise.
24588
24589 2010-04-27  Jan Hubicka  <jh@suse.cz>
24590
24591         * tree-inline.c (eni_inlining_weights): Remove.
24592         (estimate_num_insns): Special case more builtins.
24593
24594 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
24595
24596         PR c/32207
24597         * c-typeck.c (build_binary_op): Move forward check for comparison
24598         pointer with null pointer constant and adjust the diagnostic message.
24599
24600 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
24601
24602         PR lto/42776
24603         * configure.ac (gcc_cv_as_section_has_align): Set if installed
24604         binutils supports extended .section directive needed by LTO, or
24605         warn if older binutils found.
24606         (LTO_BINARY_READER): New AC_SUBST'd variable.
24607         (LTO_USE_LIBELF): Likewise.
24608         * config.gcc (lto_binary_reader): New target-specific configure
24609         variable.
24610         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
24611         (LTO_USE_LIBELF): Likewise.
24612         * configure: Regenerate.
24613
24614         * collect2.c (is_elf): Rename from this ...
24615         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
24616          object files in addition to ELF-formatted ones.
24617         (scan_prog_file): Caller updated.  Also allow for LTO info marker
24618         symbol to be prefixed or not by an extra underscore.
24619
24620         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
24621         * config/i386/winnt.c: Also #include lto-streamer.h
24622         (i386_pe_asm_named_section): Specify 1-byte section alignment for
24623         LTO named sections.
24624         (i386_pe_asm_output_aligned_decl_common): Add comment.
24625         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
24626
24627 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
24628
24629         PR target/43889
24630         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
24631         Add missing earlyclobber for second alternative.
24632
24633 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
24634
24635         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
24636         bits for artificial defs at the top of the block.
24637         * fwprop.c (single_def_use_enter_block): Don't call it.
24638
24639 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
24640
24641         PR 43715
24642         * configure.ac: Use "$gcc_cv_nm -g" on darwin
24643         instead of "$gcc_cv_objdump -T".
24644         Use "-undefined dynamic_lookup" on darwin.
24645         * configure: Regenerate.
24646
24647 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
24648
24649         PR c/43893
24650         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
24651
24652 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
24653
24654         * c-parser.c (struct c_token): Move location field up.
24655         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
24656         (struct c_declspecs): Convert typespec_word, storage_class, and
24657         default_int_p into bitfields.
24658         (struct c_declarator): Move loc field up.
24659
24660 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
24661
24662         * cfgloop.h (struct loop): Move can_be_parallel field up.
24663         * ipa-prop.h (struct ip_node_params): Move bitfields up.
24664         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
24665         down.
24666         (struct iv_cand): Convert pos field into a bitfield.
24667         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
24668         field up.
24669         (struct _stmt_vec_info): Shuffle fields for better packing.
24670
24671 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
24672
24673         * varasm.c (IN_NAMED_SECTION): Remove guard.
24674         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
24675         (IN_NAMED_SECTION_P): ...this.
24676         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
24677         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
24678
24679 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
24680
24681         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
24682         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
24683         of shadowing it.  Fix comments.
24684
24685 2010-04-26  Jan Hubicka  <jh@suse.cz>
24686
24687         * cgraph.c (cgraph_create_node): Set node frequency to normal.
24688         (cgraph_clone_node): Copy function frequency.
24689         * cgraph.h (node_frequency): New enum
24690         (struct cgraph_node): Add.
24691         * final.c (rest_of_clean_state): Update.
24692         * lto-cgraph.c (lto_output_node): Output node frequency.
24693         (input_overwrite_node): Input node frequency.
24694         * tre-ssa-loop-ivopts (computation_cost): Update.
24695         * lto-streamer-out.c (output_function): Do not output function
24696         frequency.
24697         * predict.c (maybe_hot_frequency_p): Update and handle functions
24698         executed once.
24699         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
24700         attribute lookup.
24701         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
24702         (compute_function_frequency): Set noreturn functions to be executed
24703         once.
24704         (choose_function_section): Update.
24705         * lto-streamer-in.c (input_function): Do not input function frequency.
24706         * function.c (allocate_struct_function): Do not initialize function
24707         frequency.
24708         * function.h (function_frequency): Remove.
24709         (struct function): Remove function frequency.
24710         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
24711         (try_update): Update.
24712         * tree-inline.c (initialize_cfun): Do not update function frequency.
24713         * passes.c (pass_init_dump_file): Update.
24714         * i386.c (ix86_compute_frame_layout): Update.
24715         (ix86_pad_returns): Update.
24716
24717 2010-04-26  Jie Zhang  <jie@codesourcery.com>
24718
24719         PR tree-optimization/43833
24720         * tree-vrp.c (range_int_cst_p): New.
24721         (range_int_cst_singleton_p): New.
24722         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
24723         when both operands are constants.  Use range_int_cst_p in
24724         BIT_IOR_EXPR case.
24725
24726 2010-04-26  Jan Hubicka  <jh@suse.cz>
24727
24728         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
24729
24730 2010-04-26  Richard Guenther  <rguenther@suse.de>
24731
24732         PR lto/43080
24733         * gimple.c (gimple_decl_printable_name): Deal gracefully
24734         with a NULL DECL_NAME.
24735
24736 2010-04-26  Richard Guenther  <rguenther@suse.de>
24737
24738         PR lto/42425
24739         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
24740         if emitting debug information and it is either a function
24741         or a namespace decl.
24742
24743 2010-04-26  Ira Rosen  <irar@il.ibm.com>
24744
24745         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
24746         determine if the statement is vectorizable, and a macro to access it.
24747         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24748         Skip statements that can't be vectorized. If the analysis fails,
24749         mark the statement as unvectorizable if vectorizing basic block.
24750         (vect_compute_data_refs_alignment): Likewise.
24751         (vect_verify_datarefs_alignment): Skip statements marked as
24752         unvectorizable. Add print.
24753         (vect_analyze_group_access): Skip statements that can't be
24754         vectorized. If the analysis fails, mark the statement as
24755         unvectorizable if vectorizing basic block.
24756         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
24757         * tree-vect-stmts.c (vectorizable_store): Fix the number of
24758         generated stmts for SLP.
24759         (new_stmt_vec_info): Initialize the new field.
24760         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
24761         statements marked as unvectorizable.
24762
24763 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
24764
24765         * c-common.c (flag_isoc1x): New.
24766         (flag_isoc99): Update comment.
24767         * c-common.h (flag_isoc1x): New.
24768         (flag_isoc99): Update comment.
24769         * c-cppbuiltin.c (builtin_define_float_constants): Also define
24770         __<type>_DECIMAL_DIG__.
24771         * c-opts.c (set_std_c1x): New.
24772         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
24773         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
24774         * c.opt (-std=c1x, -std=gnu1x): New options.
24775         * doc/cpp.texi: Mention -std=c1x.
24776         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
24777         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
24778         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
24779         * doc/standards.texi: Mention C1X.
24780         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
24781         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
24782         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
24783         Define for C1X.
24784
24785 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
24786
24787         * config/i386/gmon-sol2.c (_mcleanup): Change format string
24788         placeholder from 0x%x to %#x.
24789         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
24790         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
24791         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
24792         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
24793         * config/i386/i386.c (ix86_target_string): Ditto.
24794         (output_pic_addr_const): Ditto.
24795         (print_operand): Ditto.
24796
24797 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
24798
24799         * combine.c (find_split_point): Add third argument.  Use it
24800         to find nested multiply-accumulate instructions.  Adjust calls.
24801         (try_combine): Adjust call to find_split_point.
24802
24803 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
24804
24805         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
24806
24807 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
24808
24809         PR tree-optimization/41442
24810         * fold-const.c (merge_truthop_with_opposite_arm): New function.
24811         (fold_binary_loc): Call it.
24812
24813 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24814
24815         * toplev.c (general_init): Set default for fdiagnostics-show-option.
24816         * opts.c (common_handle_option): Allow disabling it.
24817         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
24818
24819 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
24820
24821         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
24822         between modes if both types are integral.
24823
24824 2010-04-23  Richard Guenther  <rguenther@suse.de>
24825
24826         PR tree-optimization/43572
24827         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
24828
24829 2010-04-23  Richard Guenther  <rguenther@suse.de>
24830
24831         PR lto/43455
24832         * tree-inline.c (tree_can_inline_p): Also check compatibility
24833         of return types.
24834
24835 2010-04-23  Martin Jambor  <mjambor@suse.cz>
24836
24837         PR tree-optimization/43846
24838         * tree-sra.c (struct access): New flag grp_assignment_read.
24839         (build_accesses_from_assign): Set grp_assignment_read.
24840         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
24841         (enum mark_read_status): New type.
24842         (analyze_access_subtree): Propagate grp_assignment_read, create
24843         accesses also if both direct_read and root->grp_assignment_read.
24844
24845 2010-04-23  Martin Jambor  <mjambor@suse.cz>
24846
24847         PR middle-end/43835
24848         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
24849         function does not have type attributes.
24850
24851 2010-04-23  Richard Guenther  <rguenther@suse.de>
24852
24853         PR lto/42653
24854         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
24855         of FUNCTION_DECLs.
24856
24857 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24858
24859         * sese.h (create_if_region_on_edge): Remove.
24860
24861         * sese.c (create_if_region_on_edge): Make static.
24862
24863         * tree-inline.c: Do not include ggc.h.
24864
24865         * expr.c: Do not include ggc.h.
24866
24867         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
24868         dependencies.
24869
24870 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
24871
24872         PR target/43744
24873         * config/sh/sh.c (find_barrier): Don't emit a constant pool
24874         in the middle of insns for casesi_worker_2.
24875
24876 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
24877
24878         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
24879
24880 2010-04-22  Ira Rosen  <irar@il.ibm.com>
24881
24882         PR tree-optimization/43842
24883         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
24884         loop unrolling in update of exit phis. Fix comment.
24885         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
24886         least two reduction statements in the loop before starting SLP
24887         analysis.
24888
24889 2010-04-22  Nick Clifton  <nickc@redhat.com>
24890
24891         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
24892
24893 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
24894
24895         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
24896         to simplify a + ~a.
24897
24898 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24899
24900         * tree-parloops.c (loop_parallel_p): New argument
24901         parloop_obstack.  Pass it down.
24902         (parallelize_loops): New variable parloop_obstack.  Initialize it,
24903         pass it down, free it.
24904
24905         * tree-loop-linear.c (linear_transform_loops): Pass down
24906         lambda_obstack.
24907
24908         * tree-data-ref.h (lambda_compute_access_matrices): New argument
24909         of type struct obstack *.
24910
24911         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
24912         scratch_obstack.  Initialize it, pass down, free it.
24913
24914         * lambda.h (lambda_loop_new): Remove.
24915         (lambda_matrix_new, lambda_matrix_inverse)
24916         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
24917         argument of type struct obstack *.
24918
24919         * lambda-trans.c (lambda_trans_matrix_new): New argument
24920         lambda_obstack.  Pass it down, use obstack allocation for ret.
24921         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
24922         it down.
24923
24924         * lambda-mat.c (lambda_matrix_get_column)
24925         (lambda_matrix_project_to_null): Remove.
24926         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
24927         allocation for mat.
24928         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
24929         lambda_obstack.
24930
24931         * lambda-code.c (lambda_loop_new): New function.
24932         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
24933         (lambda_compute_auxillary_space, lambda_compute_target_space)
24934         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
24935         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
24936         (build_access_matrix): New argument lambda_obstack.  Use obstack
24937         allocation for am.
24938         (lambda_compute_step_signs, lambda_compute_access_matrices): New
24939         argument lambda_obstack.  Pass it down.
24940
24941 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
24942
24943         * optabs.h (expand_widening_mult): Declare.
24944
24945 2010-04-22  Richard Guenther  <rguenther@suse.de>
24946
24947         PR tree-optimization/43845
24948         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
24949         lookup the CALL_EXPR function and arguments.
24950
24951 2010-04-22  Nick Clifton  <nickc@redhat.com>
24952
24953         * config/stormy16/stormy16.c
24954         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
24955         * config/stormy16/stormy16.h: Tidy up formatting.
24956         (DONT_USE_BUILTIN_SETJMP): Remove definition.
24957         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
24958         (ineqbranchsi): Delete pattern.
24959         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
24960         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
24961         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
24962         stormy16-lib2-ucmpsi2.c.
24963
24964 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
24965
24966         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
24967         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
24968         extra set merge_set_noclobber, and use it to relax the final test
24969         slightly.
24970         * df.h (df_simulate_find_noclobber_defs): Declare.
24971         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
24972         conditional defs.
24973         (df_simulate_find_noclobber_defs): New function.
24974
24975 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
24976
24977         * config/i386/i386.md: Use {} around multi-line preparation statements.
24978
24979 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24980
24981         * c-tree.h (push_init_level, pop_init_level, set_init_index)
24982         (process_init_element): New argument of type struct obstack *.
24983
24984         * c-typeck.c (push_init_level, pop_init_level, set_designator)
24985         (set_init_index, set_init_label, set_nonincremental_init)
24986         (set_nonincremental_init_from_string, find_init_member)
24987         (output_init_element, output_pending_init_elements)
24988         (process_init_element): New argument braced_init_obstack.  Pass it
24989         down.
24990         (push_range_stack, add_pending_init): New argument
24991         braced_init_obstack.  Use obstack allocation.
24992
24993         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
24994         braced_init_obstack.  Pass it down.
24995         (c_parser_braced_init): New variables ret, braced_init_obstack.
24996         Initialize obstack, pass it down and finally free it.
24997
24998 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
24999
25000         PR middle-end/29274
25001         * tree-pass.h (pass_optimize_widening_mul): Declare.
25002         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
25003         gate_optimize_widening_mul): New static functions.
25004         (pass_optimize_widening_mul): New.
25005         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
25006         <case MULT_EXPR>: Remove support for widening multiplies.
25007         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
25008         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
25009         simplify_gen_unary rather than directly building extensions.
25010         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
25011         WIDEN_MULT_EXPR.
25012         * expmed.c (expand_widening_mult): New function.
25013         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
25014
25015 2010-04-21  Jan Hubicka  <jh@suse.cz>
25016
25017         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
25018         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
25019         * lto-wpa-fixup.c: Remove.
25020         * Makefile.in (lto-wpa-fixup.o): Remove.
25021         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
25022         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
25023         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
25024
25025 2010-04-21  Jan Hubicka  <jh@suse.cz>
25026
25027         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
25028         add write_optimization_summary, read_optimization_summary.
25029         (ipa_write_summaries_of_cgraph_node_set): Remove.
25030         (ipa_write_optimization_summaries): Declare.
25031         (ipa_read_optimization_summaries): Declare.
25032         * ipa-cp.c (pass_ipa_cp): Update.
25033         * ipa-reference.c (pass_ipa_reference): Update.
25034         * ipa-pure-const.c (pass_ipa_pure_const): Update.
25035         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
25036         Update.
25037         * ipa-inline.c (pass_ipa_inline): Update.
25038         * ipa.c (pass_ipa_whole_program): Update.
25039         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
25040         * passes.c (ipa_write_summaries_1): Do not test wpa.
25041         (ipa_write_optimization_summaries_1): New.
25042         (ipa_write_optimization_summaries): New.
25043         (ipa_read_summaries): Do not test ltrans.
25044         (ipa_read_optimization_summaries_1): New.
25045         (ipa_read_optimization_summaries): New.
25046
25047 2010-04-21  Jan Hubicka  <jh@suse.cz>
25048
25049         * lto-cgraph.c (lto_output_node): Do not output comdat groups
25050         for boundary nodes.
25051         (output_cgraph): Do not arrange comdat groups for boundary nodes.
25052
25053 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
25054
25055         PR debug/40040
25056         * dwarf2out.c (add_name_and_src_coords_attributes): Add
25057         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
25058
25059 2010-04-21  Jan Hubicka  <jh@suse.cz>
25060
25061         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
25062
25063 2010-04-21  Jan Hubicka  <jh@suse.cz>
25064
25065         * varpool.c (decide_is_variable_needed): Variable is always needed
25066         during ltrans.
25067
25068 2010-04-21  Jan Hubicka  <jh@suse.cz>
25069
25070         * opts.c (decode_options): Enable pure-const pass for whopr.
25071
25072 2010-04-21  Jan Hubicka  <jh@suse.cz>
25073
25074         * cgraph.c (dump_cgraph_node): Dump also assembler name.
25075         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
25076         at WPA dumping.
25077         (cgraph_decide_inlining): Do not expect callee to be removed in all
25078         cases.
25079
25080 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
25081
25082         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
25083
25084 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
25085
25086         * config/i386/i386.md (x86_shrd): Add athlon_decode and
25087         amdfam10_decode attributes.
25088
25089 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
25090
25091         PR middle-end/43570
25092         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
25093         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
25094         (lower_copyprivate_clauses): Use private var in outer
25095         context instead of original var.  Make sure the types
25096         are correct for VLAs.
25097
25098 2010-04-21  Richard Guenther  <rguenther@suse.de>
25099
25100         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
25101         to non-pointer objects.
25102
25103 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
25104
25105         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
25106         last chain entry if it starts with the still current label.
25107         (add_location_or_const_value_attribute): Check that
25108         loc_list->first->next is NULL instead of comparing ->first with ->last.
25109         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
25110         to add_var_loc_to_decl.
25111
25112         * dwarf2out.c (output_call_frame_info): For dw_cie_version
25113         >= 4 add also address size and segment size fields into CIE header.
25114
25115         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
25116         long as address size is the same as sizeof (void *) and
25117         segment size is 0.
25118         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
25119         address size or segment size is unexpected, return DW_EH_PE_omit.
25120         (classify_object_over_fdes): If get_cie_encoding returned
25121         DW_EH_PE_omit, return -1.
25122         (init_object): If classify_object_over_fdes returned -1,
25123         pretend there were no FDEs at all.
25124
25125 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
25126
25127         * config/i386/i386.md (bswap<mode>2): Macroize expander from
25128         bswap{si,di}2 using SWI48 mode iterator.
25129         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
25130         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
25131         set modrm attribute of bswap insn to 0 and remove length attribute.
25132         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
25133         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
25134         set mode attribute to <MODE> and remove length attribute.
25135
25136 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
25137
25138         PR rtl-optimization/43520
25139         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
25140         zero available registers.
25141
25142 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25143
25144         * builtins.c (fold_builtin_cproj): Fold more cases.
25145
25146 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25147
25148         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
25149         (fold_builtin_1): Fold builtin cproj.
25150         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
25151         Use ATTR_CONST_NOTHROW_LIST.
25152
25153 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
25154
25155         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
25156         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
25157         ffsi2_no_cmove for !TARGET_CMOVE.
25158         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
25159         (ffssi2): Remove expander.
25160         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
25161         mode iterator.
25162         (ctz<mode>2): Ditto from ctz{si,di}2.
25163         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
25164         mode iterator.
25165         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
25166         mode iterator.
25167
25168 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
25169
25170         * dwarf2out.c (AT_linkage_name): Define.
25171         (clone_as_declaration): Handle DW_AT_linkage_name.
25172         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
25173         of DW_AT_MIPS_linkage_name.
25174         (move_linkage_attr): Likewise.
25175         (dwarf2out_finish): Likewise.
25176
25177 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
25178
25179         PR middle-end/41952
25180         * fold-const.c (fold_comparison): New folding rule.
25181
25182 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
25183
25184         * double-int.h (double_int_setbit): Declare.
25185         * double-int.c (double_int_setbit): New function.
25186         * rtl.h (immed_double_int_const): Declare.
25187         * emit-rtl.c (immed_double_int_const): New function.
25188         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
25189         and immed_double_int_const functions.
25190         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
25191         expand_copysign_bit): (Ditto.).
25192         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
25193         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
25194         * dojump.c (prefer_and_bit_test): (Ditto.).
25195         * expr.c (convert_modes, reduce_to_bit_field_precision,
25196         const_vector_from_tree): (Ditto.).
25197         * expmed.c (mask_rtx, lshift_value): (Ditto.).
25198
25199 2010-04-20  Jan Hubicka  <jh@suse.cz>
25200
25201         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
25202         (dump_cgraph_node): Dump new flags.
25203         * cgraph.h (struct cgraph_node): Add flags
25204         reachable_from_other_partition and in_other_partition.
25205         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
25206         other partition can not be removed.
25207         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
25208         the other partition must be output; silence sanity checking on
25209         leaking functions bodies from other paritition.
25210         * lto-cgraph.c (reachable_from_other_partition_p): New function.
25211         (lto_output_node): Output new flags; do not sanity check that inline
25212         clones are output; drop lto_forced_extern_inline_p code; do not mock
25213         visibility flags at partition boundaries.
25214         (add_node_to): New function.
25215         (output_cgraph): Use it to sort functions so masters appear before
25216         clones.
25217         (input_overwrite_node): Input new flags.
25218         * passes.c (ipa_write_summaries): Do not call
25219         lto_new_extern_inline_states.
25220         * lto-section-out.c (forced_extern_inline,
25221         lto_new_extern_inline_states lto_delete_extern_inline_states,
25222         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
25223         * lto-streamer.h (lto_new_extern_inline_states,
25224         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
25225         lto_forced_extern_inline_p): Kill.
25226
25227 2010-04-20  Richard Guenther  <rguenther@suse.de>
25228
25229         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
25230         from vars that can have pointers.
25231         (process_constraint): Dump useless constraints.
25232
25233 2010-04-20  Richard Guenther  <rguenther@suse.de>
25234
25235         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
25236         (dump_sa_points_to_info): Remove asserts.
25237         (init_base_vars): nothing_id isn't an escape point nor does it
25238         have pointers.
25239
25240 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
25241
25242         * tree.h (TYPE_REF_IS_RVALUE): Define.
25243         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
25244         should_move_die_to_comdat, prune_unused_types_walk): Handle
25245         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
25246         (modified_type_die, gen_reference_type_die): Emit
25247         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
25248         if TYPE_REF_IS_RVALUE and -gdwarf-4.
25249
25250 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25251
25252         PR target/43635
25253         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
25254         calls for -fpic -m31 if they have been sibcall optimized.
25255
25256 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
25257
25258         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
25259         ar.lc fixed and call-used.
25260
25261         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
25262
25263 2010-04-19  Jan Hubicka  <jh@suse.cz>
25264
25265         * opts.c (decode_options): Disable whpr incompatible passes.
25266         * lto/lto.c (lto_1_to_1_map): Skip clones.
25267         (read_cgraph_and_symbols): Do not mark everything as needed.
25268         (do_whole_program_analysis): Do map only after optimizing;
25269         set proper cgraph_state; use passmanager.
25270
25271 2010-04-19  DJ Delorie  <dj@redhat.com>
25272
25273         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
25274         POINTER_PLUS_EXPR and fix them.
25275
25276 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
25277
25278         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
25279         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
25280         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
25281         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
25282         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
25283         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
25284         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
25285         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
25286         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
25287         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
25288         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
25289
25290 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
25291
25292         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
25293         (check_cond_move_block): Likewise.
25294         (cond_move_process_if_block): Likewise.
25295         (noce_find_if_block): Improve formatting.
25296         (find_if_header): Pass 0 to memset and tweak conditions.
25297         (cond_exec_find_if_block): Fix long lines and tweak conditions.
25298
25299 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
25300
25301         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
25302         for -gdwarf-4.
25303
25304         PR middle-end/43337
25305         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
25306         with non-local decl doesn't need chain.
25307
25308 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
25309
25310         * ira-color.c (allocno_reload_assign): Avoid accumulating
25311         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
25312
25313 2010-04-19  Martin Jambor  <mjambor@suse.cz>
25314
25315         * gimple.h (create_tmp_reg): Declare.
25316         * gimplify.c (create_tmp_reg): New function.
25317         (gimplify_return_expr): Use create_tmp_reg.
25318         (gimplify_omp_atomic): Likewise.
25319         (gimple_regimplify_operands): Likewise.
25320         * tree-dfa.c (make_rename_temp): Likewise.
25321         * tree-predcom.c (predcom_tmp_var): Likewise.
25322         (reassociate_to_the_same_stmt): Likewise.
25323         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
25324         (get_replaced_param_substitute): Likewise.
25325         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
25326         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
25327         * tree-ssa-pre.c (get_representative_for): Likewise.
25328         (create_expression_by_pieces): Likewise.
25329         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
25330         (create_tailcall_accumulator): Likewise.
25331
25332 2010-04-19  Martin Jambor  <mjambor@suse.cz>
25333
25334         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
25335         new_stmt.
25336         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
25337
25338 2010-04-19  Richard Guenther  <rguenther@suse.de>
25339
25340         PR tree-optimization/43796
25341         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
25342         from SCEV in the lattice.
25343         (vrp_visit_phi_node): Dump change.
25344
25345 2010-04-19  Richard Guenther  <rguenther@suse.de>
25346
25347         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
25348         * configure: Re-generated.
25349
25350 2010-04-19  Richard Guenther  <rguenther@suse.de>
25351
25352         PR tree-optimization/43783
25353         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
25354         constant ARRAY_REF operands two and three if possible.
25355
25356 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
25357
25358         PR target/43766
25359         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
25360
25361 2010-04-19  Jie Zhang  <jie@codesourcery.com>
25362
25363         PR target/43662
25364         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
25365
25366 2010-04-19  Ira Rosen  <irar@il.ibm.com>
25367
25368         PR tree-optimization/37027
25369         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
25370         and macro to access it.
25371         (vectorizable_reduction): Add argument.
25372         (vect_get_slp_defs): Likewise.
25373         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
25374         statements for possible use in SLP.
25375         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
25376         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
25377         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
25378         add new argument.
25379         (vectorizable_reduction): Likewise.
25380         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
25381         vect_get_slp_defs.
25382         (vectorizable_type_demotion, vectorizable_type_promotion,
25383         vectorizable_store): Likewise.
25384         (vect_analyze_stmt): Update call to vectorizable_reduction.
25385         (vect_transform_stmt): Likewise.
25386         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
25387         (vect_build_slp_tree): Fix indentation. Check that there are no loads
25388         from different interleaving chains in same node.
25389         (vect_slp_rearrange_stmts): New function.
25390         (vect_supported_load_permutation_p): Allow load permutations for
25391         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
25392         inside SLP nodes if necessary.
25393         (vect_analyze_slp_instance): Handle reductions.
25394         (vect_analyze_slp): Try to build SLP instances originating from groups
25395         of reductions.
25396         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
25397         (vect_get_constant_vectors): Create initial vectors for reductions
25398         according to reduction code. Add new argument.
25399         (vect_get_slp_defs): Add new argument, pass it to
25400         vect_get_constant_vectors.
25401         (vect_schedule_slp_instance): Remove SLP tree root statements.
25402
25403 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
25404
25405         * tree.h (ENUM_IS_SCOPED): Define.
25406         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
25407         for ENUM_IS_SCOPED enums.
25408
25409 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
25410
25411         * fold-const.c (fold_comparison): Use ssizetype.
25412         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
25413         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
25414         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
25415         * tree-object-size.c (compute_object_sizes): Use size_type_node.
25416
25417         * tree.h (initialize_sizetypes): Remove parameter.
25418         (build_common_tree_nodes): Remove second parameter.
25419         * stor-layout.c (initialize_sizetypes): Remove parameter.
25420         Always create an unsigned type.
25421         (set_sizetype): Assert that the passed type is unsigned and simplify.
25422         * tree.c (build_common_tree_nodes): Remove second parameter.
25423         Adjust call to initialize_sizetypes.
25424         * c-decl.c (c_init_decl_processing): Remove second argument in call to
25425         build_common_tree_nodes.
25426
25427 2010-04-18  Matthias Klose  <doko@ubuntu.com>
25428
25429         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
25430
25431 2010-04-18  Ira Rosen  <irar@il.ibm.com>
25432
25433         PR tree-optimization/43771
25434         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
25435         load permutation doesn't have gaps.
25436
25437 2010-04-18  Jan Hubicka  <jh@suse.cz>
25438
25439         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
25440         (sse_prologue_save_insn expander): Use new pattern.
25441         (sse_prologue_save_insn1): New pattern and splitter.
25442         (sse_prologue_save_insn): Update to deal also with 64bit aligned
25443         blocks.
25444         * i386.c (setup_incoming_varargs_64): Do not compute jump
25445         destination here.
25446         (ix86_gimplify_va_arg): Update alignment needed.
25447         (ix86_local_alignment): Do not align all local arrays to 128bit.
25448
25449 2010-04-17  Jan Hubicka  <jh@suse.cz>
25450
25451         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
25452
25453 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
25454
25455         * arm.md (negdi2): Remove redundant code to force values into a
25456         register.
25457
25458 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
25459
25460         * arm/bpabi.S: Add EABI alignment attributes to objects.
25461         * arm/bpabi-v6m.S: Likewise.
25462         * arm/crti.asm: Likewise.
25463         * arm/crtn.asm: Likewise.
25464         * arm/lib1funcs.asm: Likewise.
25465         * arm/libunwind.S: Likewise.
25466
25467 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
25468
25469         * arm-protos.h (tune_params): New structure.
25470         * arm.c (current_tune): New variable.
25471         (arm_constant_limit): Delete.
25472         (struct processors): Add pointer to the tune parameters.
25473         (arm_slowmul_tune): New tuning option.
25474         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
25475         (all_cores): Adjust to pick up the tuning model.
25476         (arm_constant_limit): New function.
25477         (arm_override_options): Select the appropriate tuning model.  Delete
25478         initialization of arm_const_limit.
25479         (arm_split_constant): Use the new constant-limit model.
25480         (arm_rtx_costs): Pick up the current tuning model.
25481         * arm.md (is_strongarm, is_xscale): Delete.
25482         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
25483         for Xscale variant architectures.
25484         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
25485
25486 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25487
25488         * config/arm/arm.c (arm_gen_constant): Remove unused variable
25489         can_shift.
25490         (arm_rtx_costs_1): Remove unused variable extra_cost.
25491         (arm_unwind_emit_set): Use variable offset.
25492         (thumb1_output_casesi): Remove unused variable flags.
25493
25494 2010-04-16  Jeff Law  <law@redhat.com>
25495
25496         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
25497         needing assignment rather than doing a two-phase assignment.  Remove
25498         unused variable 'm'.
25499
25500 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
25501
25502         PR bootstrap/43767
25503         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
25504
25505 2010-04-16  Doug Kwan  <dougkwan@google.com>
25506
25507         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
25508         (next_operand_entry_id): New static variable.
25509         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
25510         (add_to_ops_vec): Assigned unique ID to operand entry.
25511         (struct oecount_s): New field ID.
25512         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
25513         (undistribute_ops_list): Assign unique IDs to oecounts.
25514         (init_reassoc): reset next_operand_entry_id.
25515
25516 2010-04-16  Doug Kwan  <dougkwan@google.com>
25517
25518         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
25519         missing left parenthesis.
25520
25521 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
25522
25523         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
25524         *btdi_rex64 using SWI48 mode iterator.
25525         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
25526         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
25527         *jcc_btdi_mask_rex64.
25528
25529 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
25530
25531         * double-int.h (tree_to_double_int): Convert to macro.
25532         * double-int.c (tree_to_double_int): Remove.
25533
25534 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
25535
25536         PR debug/43762
25537         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
25538         with want_address 2 and in case a single element list might be
25539         possible, call it again with want_address 0.
25540
25541 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25542
25543         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
25544         case 'W' print operands for HI mode.
25545         * config/h8300/h8300.h (Y0, Y2) : New constraints.
25546         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
25547         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
25548         * config/h8300/predicate.md (bit_register_indirect_operand): New.
25549
25550         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
25551
25552         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
25553         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
25554         #xx:3 and #xx:4 mode.
25555
25556         * config/h8300/h8300.md (inverted load with HImode dest): Add
25557         support for H8300SX.
25558
25559         * config/h8300/predicate.md (bit_operand): Allow immediate values that
25560         satisfy 'U' constraint.
25561
25562 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25563
25564         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
25565         * configure: Regenerate.
25566         * config.in: Regenerate.
25567         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
25568         works.
25569
25570 2010-04-16  Richard Guenther  <rguenther@suse.de>
25571
25572         * tree.h (struct tree_decl_minimal): Move pt_uid ...
25573         (struct tree_decl_common): ... here.
25574         (DECL_PT_UID): Adjust.
25575         (SET_DECL_PT_UID): Likewise.
25576         (DECL_PT_UID_SET_P): Likewise.
25577
25578 2010-04-16  Richard Guenther  <rguenther@suse.de>
25579
25580         PR tree-optimization/43572
25581         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
25582         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
25583         * tree-flow.h (is_call_clobbered): Remove.
25584         * tree-flow-inline.h (is_call_clobbered): Likewise.
25585         * tree-dfa.c (dump_variable): Do not dump call clobber state.
25586         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
25587         (execute_return_slot_opt): Adjust.
25588         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
25589         check for call clobbered vars here.
25590         (find_tail_calls): Move tailcall verification to the
25591         proper place.
25592
25593 2010-04-16  Diego Novillo  <dnovillo@google.com>
25594
25595         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
25596
25597 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
25598
25599         PR target/40603
25600         * config/arm/arm.md (cbranchqi4): New pattern.
25601         * config/arm/predicates.md (const0_operand,
25602         cbranchqi4_comparison_operator): New predicates.
25603
25604 2010-04-16  Richard Guenther  <rguenther@suse.de>
25605
25606         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
25607         (dump_gimple_stmt): Likewise.
25608
25609 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
25610
25611         * recog.h (struct recog_data): New field is_operator.
25612         (struct insn_operand_data): New field is_operator.
25613         * recog.c (extract_insn): Set recog_data.is_operator.
25614         * genoutput.c (output_operand_data): Emit code to set the
25615         is_operator field.
25616         * reload.c (find_reloads): Use it rather than testing for an
25617         empty constraint string.
25618
25619         PR target/41514
25620         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
25621         If the previous insn is a cbranchsi4_insn with the same arguments,
25622         omit the compare instruction.
25623
25624         * config/arm/arm.md (addsi3_cbranch): If destination is a high
25625         register, inputs must be low registers and we need a low register
25626         scratch.  Handle alternative 2 like alternative 3.
25627
25628 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
25629
25630         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
25631         don't call get_addr on both.  If one expression is a VALUE and
25632         the other a REG, check VALUE's locs if the REG isn't among them.
25633
25634 2010-04-16  Christian Bruel  <christian.bruel@st.com>
25635
25636         * config/sh/sh.h (sh_frame_pointer_required): New function.
25637         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
25638         (flag_omit_frame_pointer) Set.
25639         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
25640         (rounded_frame_size): Adjust size with outgoing_args_size.
25641         (sh_set_return_address): Must return from stack pointer.
25642         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
25643         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
25644         (ACCUMULATE_OUTGOING_ARGS): Define.
25645         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
25646         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
25647
25648 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
25649
25650         PR target/43471
25651         * config/sh/sh.c (sh_legitimize_reload_address): Use
25652         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
25653         Remove a unneeded check for offset_base.
25654
25655 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
25656
25657         * configure: Regenerated.
25658
25659 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25660
25661         * config/s390/s390.c (s390_call_save_register_used): Switch back
25662         to HARD_REGNO_NREGS.
25663
25664 2010-04-15  Richard Guenther  <rguenther@suse.de>
25665
25666         * alias.c (alias_set_subset_of): Handle alias-set zero
25667         child properly.
25668
25669 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
25670             Julian Brown  <julian@codesourcery.com>
25671
25672         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
25673         alternatives according to use of high and low regs.
25674         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
25675         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
25676         optimizing for size on Thumb-2.
25677
25678 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
25679
25680         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
25681
25682 2010-04-15  Richard Guenther  <rguenther@suse.de>
25683
25684         * tree-ssa-structalias.c (struct variable_info): Add
25685         is_fn_info flag.
25686         (new_var_info): Initialize it.
25687         (dump_constraints): Support printing last added constraints.
25688         (debug_constraints): Adjust.
25689         (dump_constraint_graph): Likewise.
25690         (make_heapvar_for): Check for NULL cfun.
25691         (get_function_part_constraint): New function.
25692         (get_fi_for_callee): Likewise.
25693         (find_func_aliases): Properly implement IPA PTA constraints.
25694         (process_ipa_clobber): New function.
25695         (find_func_clobbers): Likewise.
25696         (insert_into_field_list_sorted): Remove.
25697         (create_function_info_for): Properly allocate vars for IPA mode.
25698         Do not use insert_into_field_list_sorted.
25699         (create_variable_info_for): Properly generate constraints for
25700         global vars in IPA mode.
25701         (dump_solution_for_var): Always dump the solution.
25702         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
25703         (find_what_var_points_to): Adjust.
25704         (pt_solution_set): Change.
25705         (pt_solution_ior_into): New function.
25706         (pt_solution_empty_p): Export.
25707         (pt_solution_includes_global): Adjust.
25708         (pt_solution_includes_1): Likewise.
25709         (pt_solutions_intersect_1): Likewise.
25710         (dump_sa_points_to_info): Check some invariants.
25711         (solve_constraints): Move constraint dumping ...
25712         (compute_points_to_sets): ... here.
25713         (ipa_pta_execute): ... and here.
25714         (compute_may_aliases): Do not re-compute points-to info
25715         locally if IPA info is available.
25716         (ipa_escaped_pt): New global var.
25717         (ipa_pta_execute): Properly implement IPA PTA.
25718         * tree-into-ssa.c (dump_decl_set): Support dumping
25719         decls not in referenced-vars.
25720         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
25721         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
25722         (dump_points_to_solution): Likewise.
25723         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
25724         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
25725         (remap_gimple_stmt): Reset call clobber/use information if necessary.
25726         (copy_decl_to_var): Copy DECL_PT_UID.
25727         (copy_result_decl_to_var): Likewise.
25728         * tree.c (make_node_stat): Initialize DECL_PT_UID.
25729         (copy_node_stat): Copy it.
25730         * tree.h (DECL_PT_UID): New macro.
25731         (SET_DECL_PT_UID): Likewise.
25732         (DECL_PT_UID_SET_P): Likewise.
25733         (struct tree_decl_minimal): Add pt_uid member.
25734         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
25735         (pt_solution_empty_p): Declare.
25736         (pt_solution_set): Adjust.
25737         (ipa_escaped_pt): Declare.
25738         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
25739         * gimple-pretty-print.c (pp_points_to_solution): New function.
25740         (dump_gimple_call): Dump call clobber/use information.
25741         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
25742         * tree-pass.h (TDF_ALIAS): New dump option.
25743         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
25744         * doc/invoke.texi (-fipa-pta): Update documentation.
25745
25746 2010-04-15  Richard Guenther  <rguenther@suse.de>
25747
25748         * Makefile.in (OBJS-common): Add gimple-fold.o.
25749         (gimple-fold.o): New rule.
25750         * tree.h (maybe_fold_offset_to_reference,
25751         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
25752         prototypes ...
25753         * gimple.h: ... here.
25754         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
25755         may_propagate_address_into_dereference): Move prototypes ...
25756         * gimple.h: ... here.
25757         * tree-ssa-ccp.c (get_symbol_constant_value,
25758         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
25759         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
25760         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
25761         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
25762         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
25763         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
25764         gimplify_and_update_call_from_tree): Move ...
25765         * gimple-fold.c: ... here.  New file.
25766         (ccp_fold_builtin): Rename to ...
25767         (gimple_fold_builtin): ... this.
25768         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
25769
25770 2010-04-15  Richard Guenther  <rguenther@suse.de>
25771
25772         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
25773         fit_double_type, force_fit_type_double, add_double_with_sign,
25774         neg_double, mul_double_with_sign, lshift_double, rshift_double,
25775         lrotate_double, rrotate_double, div_and_round_double): Move ...
25776         * double-int.c: ... here.
25777         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
25778         add_double, neg_double, mul_double_with_sign, mul_double,
25779         lshift_double, rshift_double, lrotate_double, rrotate_double,
25780         div_and_round_double): Move prototypes ...
25781         * double-int.h: ... here.
25782
25783 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
25784
25785         PR target/43742
25786         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
25787         matching constraints to ensure inputs match the output.
25788
25789 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
25790
25791         PR target/43742
25792         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
25793         in an input-only operand.
25794
25795 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
25796
25797         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
25798         (double_int_not, double_int_lshift, double_int_rshift): Declare.
25799         (double_int_negative_p): Convert to static inline function.
25800         * double-int.c (double_int_lshift, double_int_lshift): New functions.
25801         (double_int_negative_p): Remove.
25802         * tree.h (lshift_double, rshift_double):
25803         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
25804         * fold-const.c (fold_convert_const_int_from_real,
25805         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
25806         (lshift_double): Change type of arith argument to bool.
25807         (rshift_double): Change type of arith argument to bool. Correct
25808         comment.
25809         * expmed.c (mask_rtx, lshift_value): (Ditto.).
25810
25811 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
25812
25813         PR target/21803
25814         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
25815         at the start and end of the then/else blocks, and omit them from the
25816         conversion.
25817         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
25818         argument; all callers changed.  Pass zero to old_insns_match_p instead.
25819         (flow_find_head_matching_sequence): New function.
25820         (old_insns_match_p): Check REG_EH_REGION notes for calls.
25821         * basic-block.h (flow_find_cross_jump,
25822         flow_find_head_matching_sequence): Declare functions.
25823
25824 2010-04-14  Jason Merrill  <jason@redhat.com>
25825
25826         PR c++/36625
25827         * c-common.c (attribute_takes_identifier_p): New fn.
25828         * c-common.h: Declare it.
25829
25830 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25831
25832         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
25833         splitter condition.
25834         (*udivmod<mode>4): Ditto.
25835
25836 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25837
25838         * config/i386/i386.md (maxmin_int): Rename code attribute from
25839         maxminiprefix and update all users.
25840         (maxmin_float): Ditto from maxminfprefix.
25841         (logic): Ditto from logicprefix.
25842         (absneg_mnemonic): Ditto from absnegprefix.
25843         * config/i386/mmx.md: Update all users of maxminiprefix,
25844         maxminfprefix and logicprefix for rename.
25845         * config/i386/sse.md: Ditto.
25846         * config/i386/sync.md (sync_<code><mode>): Update for
25847         logicprefix rename.
25848
25849 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25850
25851         PR 42966
25852         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
25853         warnings converted to errors.
25854
25855 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25856
25857         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
25858         used insn_type variable.
25859         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
25860         to avoid set-but-not-used warning.
25861
25862 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25863
25864         * df-core.c (df_ref_debug): Change format string placeholder
25865         from 0x%x to %#x.
25866         * dwarf2asm.c (dw2_asm_output_data_raw,
25867         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
25868         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
25869         * dwarf2out.c (output_cfi, output_cfi_directive,
25870         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
25871         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
25872         Ditto.
25873         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
25874         * print-rtl.c (print_rtx): Ditto.
25875
25876 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25877
25878         PR middle-end/42694
25879         * builtins.c (expand_builtin_pow_root): New function to expand pow
25880         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
25881         series of sqrt and cbrt calls under -ffast-math.
25882         (expand_builtin_pow): Call it.
25883
25884 2010-04-14  Michael Matz  <matz@suse.de>
25885
25886         PR tree-optimization/42963
25887         * tree-cfg.c (touched_switch_bbs): New static variable.
25888         (group_case_labels_stmt): New function broken out from ...
25889         (group_case_labels): ... here, use the above.
25890         (start_recording_case_labels): Allocate touched_switch_bbs.
25891         (end_recording_case_labels): Deallocate it, call
25892         group_case_labels_stmt.
25893         (gimple_redirect_edge_and_branch): Remember index of affected BB.
25894
25895 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25896
25897         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
25898         from insn template.
25899
25900 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25901
25902         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
25903
25904 2010-04-13  Jan Hubicka  <jh@suse.cz>
25905
25906         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
25907         of optimized out static functions.
25908         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
25909         cost computation.  Also sanity check for overflows.
25910         (update_caller_keys): Update cgraph_edge_badness call; properly
25911         update fibheap and sanity check that it is up to date.
25912         (add_new_edges_to_heap): Update cgraph_edge_badness.
25913         (cgraph_decide_inlining_of_small_function): Likewise;
25914         add sanity checking that badness in heap is up to date;
25915         improve dumping of reason; Update badness of calls to the
25916         offline copy of function currently inlined; dump badness
25917         of functions not inlined because of unit growth limits.
25918
25919 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
25920
25921         PR middle-end/32628
25922         * c-common.c (pointer_int_sum): Disregard overflow that occured only
25923         because of sign-extension change when converting to sizetype here...
25924         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
25925
25926         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
25927         the folding to constants.  Remove redundant final conversion.
25928         (fold_binary) <associate>: Do not associate if the re-association of
25929         constants alone overflows.
25930         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
25931         to the end of the list.
25932         (multiple_of_p) <COND_EXPR>: New case.
25933
25934 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25935
25936         * opt-functions.awk (opt_sanitized_name): New.
25937         (opt_enum): New.
25938         * optc-gen.awk: Use it
25939         * opth-gen.awk: Use it.
25940
25941 2010-04-13  Martin Jambor  <mjambor@suse.cz>
25942
25943         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
25944         (sra_modify_assign): Delete stmts loading dead data even if racc has no
25945         children.  Call replace_uses_with_default_def_ssa_name to handle
25946         SSA_NAES on lhs.
25947
25948 2010-04-13  Michael Matz  <matz@suse.de>
25949
25950         PR middle-end/43730
25951         * builtins.c (expand_builtin_interclass_mathfn): Also create
25952         a register if the predicate doesn't match.
25953
25954 2010-04-13  Diego Novillo  <dnovillo@google.com>
25955
25956         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
25957         * c-pch.c: Include timevar.h.
25958         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
25959         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
25960         * ggc-common.c: Include timevar.h.
25961         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
25962         * timevar.def (TV_PCH_SAVE): Define.
25963         (TV_PCH_CPP_SAVE): Define.
25964         (TV_PCH_PTR_REALLOC): Define.
25965         (TV_PCH_PTR_SORT): Define.
25966         (TV_PCH_RESTORE): Define.
25967         (TV_PCH_CPP_RESTORE): Define.
25968
25969 2010-04-13  Michael Matz  <matz@suse.de>
25970
25971         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
25972         into MINUS_EXPRs.
25973         (can_reassociate_p): New function.
25974         (break_up_subtract_bb, reassociate_bb): Use it.
25975
25976 2010-04-13  Richard Guenther  <rguenther@suse.de>
25977
25978         PR bootstrap/43737
25979         * builtins.c (c_readstr): Fix assert.
25980
25981 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
25982
25983         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
25984         when generating cltd insn.
25985
25986         (*ashl<mode>3_1): Remove special handling for register operand 2.
25987         (*ashlsi3_1_zext): Ditto.
25988         (*ashlhi3_1): Ditto.
25989         (*ashlhi3_1_lea): Ditto.
25990         (*ashlqi3_1): Ditto.
25991         (*ashlqi3_1_lea): Ditto.
25992         (*<shiftrt_insn><mode>3_1): Ditto.
25993         (*<shiftrt_insn>si3_1_zext): Ditto.
25994         (*<shiftrt_insn>qi3_1_slp): Ditto.
25995         (*<rotate_insn><mode>3_1): Ditto.
25996         (*<rotate_insn>si3_1_zext): Ditto.
25997         (*<rotate_insn>qi3_1_slp): Ditto.
25998
25999 2010-04-13  Richard Guenther  <rguenther@suse.de>
26000
26001         * tree-ssa-structalias.c (callused_id): Remove.
26002         (call_stmt_vars): New.
26003         (get_call_vi): Likewise.
26004         (lookup_call_use_vi): Likewise.
26005         (lookup_call_clobber_vi): Likewise.
26006         (get_call_use_vi): Likewise.
26007         (get_call_clobber_vi): Likewise.
26008         (make_transitive_closure_constraints): Likewise.
26009         (handle_const_call): Adjust to do per-call call-used handling.
26010         (handle_pure_call): Likewise.
26011         (find_what_var_points_to): Remove general callused handling.
26012         (init_base_vars): Likewise.
26013         (init_alias_vars): Initialize call_stmt_vars.
26014         (compute_points_to_sets): Process call-used and call-clobbered
26015         vars for call statements.
26016         (delete_points_to_sets): Free call_stmt_vars.
26017
26018 2010-04-13  Richard Guenther  <rguenther@suse.de>
26019
26020         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26021         Only add RW dependence for dependence distance zero.
26022         Adjust maximal vectorization factor according to dependences.
26023         Move alignment handling ...
26024         (vect_find_same_alignment_drs): ... here.  New function.
26025         (vect_analyze_data_ref_dependences): Adjust.
26026         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
26027         (vect_analyze_data_refs): Adjust minimal vectorization factor
26028         according to data references.
26029         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
26030         dependences before determining the vectorization factor.
26031         Analyze alignment after determining the vectorization factor.
26032         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
26033         dependences before alignment.
26034         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
26035         Adjust prototype.
26036         (vect_analyze_data_refs): Likewise.
26037         (MAX_VECTORIZATION_FACTOR): New define.
26038
26039 2010-04-13  Duncan Sands  <baldrick@free.fr>
26040
26041         * except.h (lang_eh_type_covers): Remove.
26042         * except.c (lang_eh_type_covers): Likewise.
26043
26044 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26045             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26046
26047         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
26048         * config/s390/s390.c: Replace UNTIS_PER_WORD with
26049         UNITS_PER_LONG where it is ABI relevant.
26050         (s390_return_addr_rtx): Likewise.
26051         (s390_back_chain_rtx): Likewise.
26052         (s390_frame_area): Likewise.
26053         (s390_frame_info): Likewise.
26054         (s390_initial_elimination_offset): Likewise.
26055         (save_gprs): Likewise.
26056         (s390_emit_prologue): Likewise.
26057         (s390_emit_epilogue): Likewise.
26058         (s390_function_arg_advance): Likewise.
26059         (s390_function_arg): Likewise.
26060         (s390_va_start): Likewise.
26061         (s390_gimplify_va_arg): Likewise.
26062         (s390_function_profiler): Likewise.
26063         (s390_optimize_prologue): Likewise.
26064         (s390_rtx_costs): Likewise.
26065         (s390_secondary_reload): Likewise.
26066         (s390_promote_function_mode): Likewise.
26067         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
26068         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
26069         registers available.
26070         (s390_unwind_word_mode): New function.
26071         (s390_function_value): Split 64 bit values into register pair if
26072         used as return value.
26073         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
26074         function call parameters.  Handle parallels.
26075         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
26076         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
26077         (DWARF_CIE_DATA_ALIGNMENT): New macro.
26078         (s390_expand_setmem): Remove unused variable src_addr.
26079         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
26080         deal with 64 bit registers.
26081         * config/s390/s390.h: Define __zarch__ predefined macro.
26082         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
26083         (UNITS_PER_LONG): New macro.
26084         * libjava/include/s390-signal.h: Define extended ucontext
26085         structure containing the upper halfs of the 64 bit registers.
26086
26087 2010-04-13  Simon Baldwin  <simonb@google.com>
26088
26089         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
26090
26091 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
26092
26093         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
26094         rvalue on the RHS if the LHS is of a non-renamable type.
26095         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
26096
26097 2010-04-13  Matthias Klose  <doko@ubuntu.com>
26098
26099         * gcc.c (cc1_options): Handle -iplugindir before processing
26100         the cc1 spec. Only add -iplugindir once.
26101         (cpp_unique_options): Add -iplugindir option if -fplugin* options
26102         found.
26103         * common.opt (iplugindir): Remove `Separate' property, initialize.
26104         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
26105         option.
26106         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
26107         (distclean): Remove plugin dir.
26108         * doc/invoke.texi: Document -iplugindir.
26109
26110 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
26111
26112         * doc/plugins.texi (Loading Plugins): Document short
26113         -fplugin=foo option.
26114         (Plugin API): Mention default_plugin_dir_name function.
26115
26116         * gcc.c (find_file_spec_function): Add new declaration.
26117         (static_spec_func): Use it for "find-file".
26118         (find_file_spec_function): Add new function.
26119         (cc1_options): Add -iplugindir option if -fplugin* options found.
26120
26121         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
26122
26123         * plugin.c (add_new_plugin): Updated comment, and handle short
26124         plugin name.
26125         (default_plugin_dir_name): Added new function.
26126
26127         * common.opt (iplugindir): New option to set the plugin directory.
26128
26129 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
26130
26131         * config/i386/i386.md (any_rotate): New code iterator.
26132         (rotate_insn): New code attribute.
26133         (rotate): Ditto.
26134         (SWIM124): New mode iterator.
26135         (<rotate_insn>ti3): New expander.
26136         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
26137         any_rotate code iterator.
26138         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
26139         using any_rotate code iterator and SWIM124 mode iterator.
26140         (ix86_rotlti3): New insn_and_split pattern.
26141         (ix86_rotrti3): Ditto.
26142         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
26143         ix86_rotl{di,ti}3 patterns.
26144         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
26145         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
26146         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
26147         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
26148         code iterator and SWI mode iterator.
26149         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
26150         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
26151         code iterator.
26152         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
26153         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
26154         (bswap rotatert splitter): Add splitter.
26155         (bswap splitter): Macroize splitter using any_rotate code iterator.
26156         Add insn predicate to split only for TARGET_USE_XCHGB or when
26157         optimizing function for size.
26158
26159 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
26160
26161         * config/pa/pa.c (emit_move_sequence): Remove use of
26162         deleted variable flag_argument_noalias.
26163
26164 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26165
26166         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
26167         configurations.
26168         Add to unsupported targets list.
26169         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
26170         sparc*-sun-solaris2.[567]* from target lists.
26171         * configure: Regenerate.
26172         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
26173         removal.
26174         Remove Solaris 7 patch references.
26175         (Specific, sparc-sun-solaris2.7): Removed.
26176         (sparc-sun-solaris2*): Update Solaris 7 example.
26177         (sparc64-*-solaris2*): Likewise.
26178
26179 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26180
26181         * config.build (alpha*-dec-osf4*): Remove.
26182         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
26183         of obsolete configurations.
26184         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
26185         support.
26186         * config/alpha/t-osf4: Renamed to ...
26187         * config/alpha/t-osf5: ... this.
26188         * config/alpha/osf.h: Renamed to ...
26189         * config/alpha/osf5.h: ... this.
26190         Merged old osf5.h contents.
26191         Update comments.
26192         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
26193         (EXTRA_SPECS): Removed.
26194         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
26195         reflect removal of Tru64 UNIX V4.0/V5.0 support.
26196         Document that.
26197
26198 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26199
26200         * doc/contrib.texi (Contributors, Rainer Orth): Update.
26201
26202 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
26203
26204         PR/43702
26205         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
26206         __thiscall convention.
26207
26208 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
26209
26210         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
26211         orig_base.
26212         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
26213
26214 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
26215
26216         * function.c (assign_parms_initialize_all): Add unused attribute
26217         to fntype.
26218
26219 2010-04-12  Richard Guenther  <rguenther@suse.de>
26220
26221         * gsstruct.def (GSS_CALL): New.
26222         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
26223         * gimple.h: Include tree-ssa-alias.h.
26224         (struct gimple_statement_call): New.
26225         (union gimple_statement_struct_d): Add gimple_call member.
26226         (gimple_call_reset_alias_info): Declare.
26227         (gimple_call_use_set): New function.
26228         (gimple_call_clobber_set): Likewise.
26229         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
26230         * gimple.c (gimple_call_reset_alias_info): New function.
26231         (gimple_build_call_1): Call it.
26232         * lto-streamer-in.c (input_gimple_stmt): Likewise.
26233         * tree-inline.c (remap_gimple_stmt): Likewise.
26234         (expand_call_inline): Remove callused handling.
26235         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
26236         * tree-dfa.c (dump_variable): Likewise.
26237         * tree-parloops.c (parallelize_loops): Likewise.
26238         * tree-ssa.c (init_tree_ssa): Likewise.
26239         (delete_tree_ssa): Likewise.
26240         * tree-flow-inline.h (is_call_used): Remove.
26241         * tree-flow.h (struct gimple_df): Remove callused member.
26242         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
26243         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
26244         (ref_maybe_used_by_call_p_1): Simplify.
26245         (call_may_clobber_ref_p_1): Likewise.
26246         * tree-ssa-structalias.c (compute_points_to_sets): Set
26247         the call stmt used and clobbered sets.
26248         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
26249         (find_tail_calls): Verify the tail call.
26250
26251 2010-04-12  Richard Guenther  <rguenther@suse.de>
26252
26253         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
26254         single-iteration always-inline inlining.
26255         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
26256         (cgraph_decide_inlining): Do not handle always-inline specially.
26257         (try_inline): Remove always-inline cycle detection special case.
26258         Do not recurse on always-inlines.
26259         (cgraph_early_inlining): Do not iterate if not optimizing.
26260         (cgraph_gate_early_inlining): remove.
26261         (pass_early_inline): Run unconditionally.
26262         (gate_cgraph_decide_inlining): New function.
26263         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
26264         not inlining or optimizing.
26265         (cgraph_decide_inlining_of_small_functions): Also consider
26266         always-inline functions.
26267         (cgraph_default_inline_p): Return true for nodes which should
26268         disregard inline limits.
26269         (estimate_function_body_sizes): Assume zero size and time for
26270         nodes which are marked as disregarding inline limits.
26271         (cgraph_decide_recursive_inlining): Do not perform recursive
26272         inlining on always-inline nodes.
26273
26274 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
26275
26276         PR bootstrap/43699
26277         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
26278         for exprs satisfying handled_component_p.
26279
26280 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
26281
26282         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
26283         non-constant aggregate elements.
26284
26285         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
26286         is a real initialization.
26287
26288 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
26289
26290         PR c/36774
26291         * c-decl.c (start_function): Move forward check for nested function.
26292
26293 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
26294
26295         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
26296         * config/sh/sh.c: Include reload.h.
26297         (sh_legitimize_reload_address): New.
26298         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
26299         sh_legitimize_reload_address.
26300
26301 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26302
26303         * config/sh/sh.md (*movqi_pop): New insn pattern.
26304         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
26305
26306 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
26307
26308         * config/i386/i386.md (any_shiftrt): New code iterator.
26309         (shiftrt_insn): New code attribute.
26310         (shiftrt): Ditto.
26311         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
26312         using any_shiftrt code iterator.
26313         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
26314         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
26315         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
26316         pattern from corresponding peephole2 patterns.
26317         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
26318         using any_shiftrt code iterator.
26319         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
26320         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
26321         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
26322         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
26323         *{ashr,lshr}<mode>3_cmp_zext.
26324         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
26325
26326 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
26327
26328         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
26329         scratch register.
26330         (*lshr<mode>3_cconly): Ditto.
26331
26332 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
26333
26334         * config/i386/i386.md (lshr<mode>3): Macroize expander from
26335         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
26336         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
26337         pattern from *lshr{di,ti}3_1 and corresponding splitters using
26338         DWI mode iterator.
26339         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
26340         from corresponding peephole2 patterns.
26341         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
26342         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
26343         and *lshrdi3_1_rex64 using SWI mode iterator.
26344         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
26345         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
26346         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
26347         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
26348         and *lshrdi3_cmp_rex64 using SWI mode iterator.
26349         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
26350         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
26351         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
26352         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
26353         SWI mode iterator.
26354
26355 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
26356
26357         * config/i386/i386.md (ashr<mode>3): Macroize expander from
26358         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
26359         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
26360         pattern from *ashr{di,ti}3_1 and corresponding splitters using
26361         DWI mode iterator.
26362         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
26363         from corresponding peephole2 patterns.
26364         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
26365         (ashrsi3_cvt): Rename from ashrsi3_31.
26366         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
26367         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
26368         and x86_64_shift_adj_3 using SWI48 mode iterator.
26369         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
26370         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
26371         and *ashrdi3_1_rex64 using SWI mode iterator.
26372         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
26373         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
26374         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
26375         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
26376         and *ashrdi3_cmp_rex64 using SWI mode iterator.
26377         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
26378         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
26379         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
26380         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
26381         SWI mode iterator.
26382         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
26383         * config/i386/i386.c (ix86_split_ashr): Update for renamed
26384         x86_shift<mode>_adj_3 expanders.
26385
26386 2010-04-10  Wei Guozhi  <carrot@google.com>
26387
26388         PR target/42601
26389         * config/arm/arm.c (arm_pic_static_addr): New function.
26390         (legitimize_pic_address): Call arm_pic_static_addr when it detects
26391         a static symbol.
26392         (arm_output_addr_const_extra): Output expression for new pattern.
26393         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
26394
26395 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
26396
26397         * ira-costs.c (record_reg_classes): Ignore alternatives that are
26398         not enabled.
26399
26400         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
26401         * web.c: Include "insn-config.h" and "recog.h".
26402         (union_match_dups): New function.
26403         (web_main): Call it.
26404         (union_defs): Don't try to recognize match_dups.
26405
26406         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
26407         if doing so would replace the entire pattern.
26408
26409 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
26410
26411         PR target/43707
26412         PR target/43709
26413         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
26414         and splitter pattern.  Change splitter operand 1 predicate to
26415         nonmemory_operand.
26416
26417 2010-04-09  Martin Jambor  <mjambor@suse.cz>
26418
26419         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
26420         lattices are addresses of CONST_DECLs with the same initial value.
26421         (ipcp_print_all_lattices): Print values of CONST_DECLs.
26422         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
26423
26424 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
26425             Bernd Schmidt  <bernds@codesourcery.com>
26426
26427         * loop-invariant.c (replace_uses): New static function.
26428         (move_invariant_reg): Use it to ensure we can replace the uses.
26429
26430 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
26431
26432         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
26433         function template.
26434         (picochip_override_options): Enable section anchors only above -O1.
26435         (picochip_reorg): Fixed a couple of build warnings.
26436
26437 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26438
26439         * configure.ac (plugin -rdynamic test): Log result.
26440         * configure: Regenerate.
26441         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
26442         (RDYNAMIC_SPEC): Define.
26443         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
26444
26445 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26446
26447         * configure.ac: Determine Sun ld version numbers.
26448         (comdat_group): Restrict GNU ld version checks to gld.
26449         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
26450         (enable_comdat): Support --enable-comdat.
26451         * configure: Regenerate.
26452         * doc/install.texi (Configuration): Document --enable-comdat.
26453
26454 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26455
26456         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
26457         * config/sol2-gld.h: ... here.
26458         * config.gcc (sparc*-*-solaris2*): Reflect this.
26459         (i[34567]86-*-solaris2*): Use it.
26460
26461 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
26462
26463         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
26464         setup_clocks_p.
26465         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
26466
26467 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26468
26469         PR 42965
26470         * diagnostic.c (diagnostic_initialize): Initialize
26471         some_warnings_are_errors.
26472         (diagnostic_finish): New.
26473         (diagnostic_action_after_output): Call it before exiting.
26474         (diagnostic_report_diagnostic): Do not print message here. Set
26475         some_warnings_are_errors.
26476         * diagnostic.h (diagnostic_context): Delete
26477         issue_warnings_are_errors_message. Add some_warnings_are_errors.
26478         (diagnostic_finish): Declare.
26479         * toplev.c (toplev_main): Call it before exit.
26480
26481 2010-04-09  Jason Merrill  <jason@redhat.com>
26482
26483         PR c++/42623
26484         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
26485         for incomplete type.
26486
26487         PR c++/41788
26488         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
26489         based on a warning flag.
26490
26491 2010-04-09  Richard Guenther  <rguenther@suse.de>
26492
26493         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
26494
26495 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
26496
26497         PR bootstrap/43684
26498         * varasm.c (default_assemble_visibility): Wrap vars that are
26499         set, but unused, by targets without GAS.
26500         * config/rs6000/rs6000.c (paired_emit_vector_compare):
26501         Remove set, but unused, vars.
26502         (rs6000_legitimize_tls_address): Likewise.
26503         (altivec_expand_dst_builtin): Likewise.
26504         * config/darwin.c (machopic_classify_symbol): Likewise.
26505         (machopic_indirection_name): Likewise.
26506
26507 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
26508
26509         * config/i386/i386.md (DWI): New mode iterator.
26510         (S): New mode attribute.
26511         (shift_operand): Ditto.
26512         (shift_immediate_operand): Ditto.
26513         (ashl_input_operand): Ditto.
26514         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
26515         using SDWIM mode iterator.
26516         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
26517         pattern from *ashl{di,ti}3_1 and corresponding splitters using
26518         DWI mode iterator.
26519         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
26520         from corresponding peephole2 patterns.
26521         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
26522         and x86_64_shift_adj_1 using SWI48 mode iterator.
26523         (x86_shift<mode>_adj_2): Ditto.
26524         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
26525         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
26526         using SWI48 mode iterator.
26527         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
26528         *ashldi3_cmp_rex64 using SWI mode iterator.
26529         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
26530         *ashldi3_cconly_rex64 using SWI mode iterator.
26531         * config/i386/i386.c (ix86_split_ashl): Update for renamed
26532         x86_shift<mode>_adj_{1,2}.
26533         (ix86_split_ashr): Ditto.
26534         (ix86_split_lshr): Ditto.
26535
26536 2010-04-09  Richard Guenther  <rguenther@suse.de>
26537
26538         * target.h (builtin_conversion): Pass in input and output types.
26539         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
26540         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
26541         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
26542         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
26543
26544         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
26545         Handle AVX modes.
26546         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
26547
26548 2010-04-09  Richard Guenther  <rguenther@suse.de>
26549
26550         PR target/43152
26551         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
26552
26553 2010-04-09  Richard Guenther  <rguenther@suse.de>
26554
26555         * tree-vectorizer.h (struct _stmt_vec_info): Document
26556         that vectype is the type of the LHS.
26557         (supportable_widening_operation, supportable_narrowing_operation):
26558         Get both input and output vector types as arguments.
26559         (vect_is_simple_use_1): Declare.
26560         (get_same_sized_vectype): Likewise.
26561         * tree-vect-loop.c (vect_determine_vectorization_factor):
26562         Set STMT_VINFO_VECTYPE to the vector type of the def.
26563         (vectorizable_reduction): Adjust.
26564         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
26565         Adjust.  Specify the output vector type.
26566         (vect_pattern_recog_1): Adjust.
26567         * tree-vect-stmts.c (get_same_sized_vectype): New function.
26568         (vectorizable_call): Adjust.
26569         (vectorizable_conversion): Likewise.
26570         (vectorizable_operation): Likewise.
26571         (vectorizable_type_demotion): Likewise.
26572         (vectorizable_type_promotion): Likewise.
26573         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
26574         the def.
26575         (vect_is_simple_use_1): New function.
26576         (supportable_widening_operation): Get both input and output
26577         vector types.
26578         (supportable_narrowing_operation): Likewise.
26579         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
26580
26581 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
26582
26583         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
26584         __thiscall and _thiscall as predefined macros.
26585         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
26586         thiscall attribute handling.
26587         (ix86_comp_type_attributes): Likewise.
26588         (ix86_function_regparm): Likewise.
26589         (ix86_return_pops_args): Likewise.
26590         (init_cumulative_args): Likewise.
26591         (find_drap_reg): Likewise.
26592         (ix86_static_chain): Likewise.
26593         (x86_this_parameter): Likewise.
26594         (x86_output_mi_thunk): Likewise.
26595         (ix86_attribute_table): Add description for thiscall attribute.
26596         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
26597         * doc/extend.texi: Add documentation for thiscall.
26598
26599 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26600
26601         PR c++/28584
26602         * c.opt (Wint-to-pointer-cast): Available in C++.
26603         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
26604
26605 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
26606
26607         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
26608         * calls.c (expand_call): Pass the function type to aggregate_value_p.
26609         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
26610         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
26611         function type instead.  Reorder and simplify checks.
26612
26613         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
26614
26615 2010-04-08  Jing Yu  <jingyu@google.com>
26616             Zdenek Dvorak  <ook@ucw.cz>
26617
26618         PR tree-optimization/42720
26619         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
26620         loop unswitch conditions here from ...
26621         (tree_unswitch_single_loop): ... here.
26622
26623 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
26624
26625         * tree-if-conv.c: Fix comments and simplify logic.
26626
26627 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
26628
26629         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
26630         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
26631         (main_tree_if_conversion): Update call to tree_if_conversion.
26632
26633 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26634
26635         PR 42485
26636         * doc/invoke.texi (-b,-V): Delete.
26637         * doc/tm.texi: Do not mention -b.
26638         * gcc.c (display_help): Delete -b and -V.
26639         (process_command): Delete -b and -V.
26640         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
26641
26642 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
26643             Wolfgang Gellerich  <gellerich@de.ibm.com>
26644
26645         Implement target hook for loop unrolling
26646         * target.h (loop_unroll_adjust): Add a new target hook function.
26647         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
26648         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
26649         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
26650         (s390_loop_unroll_adjust): Implement the new target hook for s390.
26651         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
26652         target hook.
26653         (decide_unroll_stupid): Likewise.
26654
26655 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26656
26657         PR target/43643
26658         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
26659
26660 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26661
26662         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
26663         (Specific, *-*-solaris2*): Likewise.
26664         Don't prefer Sun as over GNU as.
26665
26666 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
26667
26668         * config/s390/s390.c (override_options): Adjust the z10 defaults
26669         for max-unroll-times, max-completely-peeled-insns
26670         and max-completely-peel-times.
26671
26672 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26673
26674         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
26675         instructions for z10.
26676         (s390_expand_setmem): Likewise.
26677         (s390_expand_cmpmem): Likewise.
26678
26679 2010-04-08  Richard Guenther  <rguenther@suse.de>
26680
26681         PR tree-optimization/43679
26682         * tree-ssa-pre.c (eliminate): Only propagate copies.
26683
26684 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
26685
26686         PR bootstrap/43681
26687         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
26688         set but not used variable warning.
26689
26690 2010-04-08  Wei Guozhi  <carrot@google.com>
26691
26692         PR target/41653
26693         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
26694         (arm_size_rtx_costs): Call the new function when optimized for size.
26695
26696 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
26697
26698         PR debug/43670
26699         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
26700         op0 is not a MEM, just return NULL instead of assertion
26701         failure.
26702         (discover_nonconstant_array_refs): Don't walk debug stmts.
26703
26704 2010-04-08  Doug Kwan  <dougkwan@google.com>
26705
26706         * configure.ac: Recognize gold and do not use its version number
26707         to test ld features.
26708         * configure: Regenerate.
26709
26710 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
26711
26712         PR middle-end/40815
26713         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
26714         (negate_value): Move code to push elements to broken_up_substracts ...
26715         (eliminate_plus_minus_pair): ... here.  Push operands that have no
26716         negative pair to plus_negates.
26717         (repropagate_negates, init_reassoc, fini_reassoc): Update.
26718
26719 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26720
26721         * doc/install.texi (Configuration): Move description of
26722         --enable-lto, --with-libelf*, --enable-gold from Java section to
26723         general section.
26724
26725         * doc/generic.texi (Working with declarations)
26726         (Function Properties, C and C++ Trees): Fix typos.
26727         * doc/sourcebuild.texi (Top Level): Likewise.
26728
26729 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
26730
26731         PR c/18624
26732         * tree.h (DECL_READ_P): Define.
26733         (struct tree_decl_common): Add decl_read_flag.
26734         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
26735         a set but not used warning.
26736         (merge_decls): Merge DECL_READ_P flag.
26737         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
26738         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
26739         * c-common.c (handle_used_attribute, handle_unused_attribute):
26740         Likewise.
26741         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
26742         New prototypes.
26743         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
26744         New functions.
26745         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
26746         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
26747         c_parser_binary_expression, c_parser_cast_expression,
26748         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
26749         Call default_function_array_read_conversion instead of
26750         default_function_array_conversion where needed.
26751         (c_parser_unary_expression, c_parser_conditional_expression,
26752         c_parser_postfix_expression_after_primary, c_parser_initelt):
26753         Likewise.  Call mark_exp_read where needed.
26754         (c_parser_statement_after_labels, c_parser_asm_operands,
26755         c_parser_typeof_specifier, c_parser_sizeof_expression,
26756         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
26757         where needed.
26758         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
26759         New.
26760         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
26761         (warn_unused_but_set_parameter): Default to warn_unused
26762         && extra_warnings.
26763         * doc/invoke.texi: Document -Wunused-but-set-variable and
26764         -Wunused-but-set-parameter.
26765
26766         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
26767         used count variable.
26768         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
26769         when operandN variables aren't used in the body of the expander
26770         or splitter.
26771         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
26772         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
26773         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
26774         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
26775         FOR_EACH_IMM_USE_ON_STMT): Likewise.
26776         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
26777         * tree.c (PROCESS_ARG): Likewise.
26778
26779 2010-04-07  Simon Baldwin  <simonb@google.com>
26780
26781         * diagnostic.h (diagnostic_override_option_index): New macro to
26782         set a diagnostic's option_index.
26783         * c-tree.h (c_cpp_error): Add warning reason argument.
26784         * opts.c (_warning_as_error_callback): New.
26785         (register_warning_as_error_callback): Store callback for
26786         warnings enabled via enable_warning_as_error.
26787         (enable_warning_as_error): Call callback, minor code tidy.
26788         * opts.h (register_warning_as_error_callback): Declare.
26789         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
26790         response to -Werror=.
26791         (c_common_init_options): Register warning_as_error_callback in opts.c.
26792         * common.opt: Add -Wno-cpp option.
26793         * c-common.c (struct reason_option_codes_t): Map cpp warning
26794         reason codes to gcc option indexes.
26795         * (c_option_controlling_cpp_error): New function, lookup the gcc
26796         option index for a cpp warning reason code.
26797         * (c_cpp_error): Add warning reason argument, call
26798         c_option_controlling_cpp_error for diagnostic_override_option_index.
26799         * doc/invoke.texi: Document -Wno-cpp.
26800
26801 2010-04-07  Richard Guenther  <rguenther@suse.de>
26802
26803         * ipa-reference.c (mark_load): Use get_base_address.
26804         (mark_store): Likewise.
26805
26806         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
26807         inserting GIMPLE_NOPs into the IL.
26808         * tree-ssa-structalias.c (get_constraint_for_component_ref):
26809         Explicitly strip handled components and indirect references.
26810
26811         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
26812         folding address expressions.
26813         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
26814         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
26815         operand_equal_p to compare decls.
26816         (ptr_deref_may_alias_decl_p): Likewise.
26817         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
26818         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
26819         Handle reversed comparison ops.
26820         * tree-sra.c (asm_visit_addr): Use get_base_address.
26821         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
26822         * ipa-reference.c (mark_address): Use get_base_address.
26823
26824 2010-04-07  Richard Guenther  <rguenther@suse.de>
26825
26826         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
26827         Propagate constants everywhere.
26828
26829 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
26830
26831         PR debug/43516
26832         * tree.c (MAX_INT_CACHED_PREC): Define.
26833         (nonstandard_integer_type_cache): New array.
26834         (build_nonstandard_integer_type): Cache results for precision
26835         <= MAX_INT_CACHED_PREC.
26836
26837 2010-04-07  Richard Guenther  <rguenther@suse.de>
26838
26839         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
26840         -fargument-noalias-global, -fargument-noalias-anything): Remove.
26841         * common.opt: Likewise.
26842         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
26843         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
26844         (nonoverlapping_memrefs_p): Likewise.
26845         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
26846         * opts.c (common_handle_option): Handle OPT_fargument_alias,
26847         OPT_fargument_noalias, OPT_fargument_noalias_anything and
26848         OPT_fargument_noalias_global for backward compatibility.
26849
26850 2010-04-07  Richard Guenther  <rguenther@suse.de>
26851
26852         PR tree-optimization/43270
26853         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
26854         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
26855         * tree-ssa-pre.c (phi_translate_1): Adjust.
26856         (fully_constant_expression): Split out vn_reference handling to ...
26857         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
26858         Fold reads from constant strings.
26859         (vn_reference_lookup): Handle fully constant references.
26860         (vn_reference_lookup_pieces): Likewise.
26861         * Makefile.in (expmed.o-warn): Add -Wno-error.
26862
26863 2010-04-07  Martin Jambor  <mjambor@suse.cz>
26864
26865         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
26866
26867 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
26868
26869         PR driver/41594
26870         * gcc.c: Add -static-libstdc++ to list of recognized options.
26871
26872 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26873
26874         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
26875
26876 2010-04-07  Richard Guenther  <rguenther@suse.de>
26877
26878         PR middle-end/42617
26879         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
26880         bases build simple mem attributes to retain points-to information.
26881
26882 2010-04-07  Richard Guenther  <rguenther@suse.de>
26883
26884         PR middle-end/42617
26885         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
26886         preserve points-to related information.
26887
26888 2010-04-07  Richard Guenther  <rguenther@suse.de>
26889
26890         PR middle-end/42617
26891         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
26892         discard plain indirect references.
26893         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
26894         * tree.c (tree_nop_conversion): Likewise.
26895
26896 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
26897
26898         PR debug/43628
26899         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
26900
26901 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
26902
26903         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
26904         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
26905
26906 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
26907
26908         * tree-if-conv.c: Fix indentation and comments.
26909
26910 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
26911
26912         * tree-if-conv.c: Sort static functions in topological order.
26913
26914 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
26915
26916         * tree-if-conv.c: Fix indentation and comments.
26917
26918 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26919
26920         PR middle-end/43519
26921         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
26922         lang_hooks.types.type_for_size instead of
26923         build_nonstandard_integer_type.
26924         When converting an unsigned type to signed, double its precision.
26925         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
26926         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
26927         (graphite_create_new_loop_guard): When ub + 1 wraps around,
26928         use lb <= ub.
26929
26930 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26931
26932         PR middle-end/43519
26933         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
26934         POINTER_PLUS_EXPR for pointer types.
26935
26936 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26937
26938         PR middle-end/43519
26939         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
26940         * graphite-clast-to-gimple.c: Include langhooks.h.
26941         (max_signed_precision_type): New.
26942         (max_precision_type): Takes two types as arguments.
26943         (precision_for_value): New.
26944         (precision_for_interval): New.
26945         (gcc_type_for_interval): New.
26946         (gcc_type_for_value): New.
26947         (gcc_type_for_clast_term): New.
26948         (gcc_type_for_clast_red): New.
26949         (gcc_type_for_clast_bin): New.
26950         (gcc_type_for_clast_expr): Split up into several functions.
26951         (gcc_type_for_clast_eq): Rewritten.
26952         (compute_bounds_for_level): New.
26953         (compute_type_for_level_1): New.
26954         (compute_type_for_level): New.
26955         (gcc_type_for_cloog_iv): Removed.
26956         (gcc_type_for_iv_of_clast_loop): Rewritten.
26957         (graphite_create_new_loop): Compute the lower and upper bound types
26958         with gcc_type_for_clast_expr.
26959         (graphite_create_new_loop_guard): Same.
26960         (find_cloog_iv_in_expr): Removed.
26961         (compute_cloog_iv_types_1): Removed.
26962         (compute_cloog_iv_types): Removed.
26963         (gloog): Do not call compute_cloog_iv_types.
26964         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
26965         GBB_CLOOG_IV_TYPES.
26966         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
26967         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
26968         (GBB_CLOOG_IV_TYPES): Removed.
26969
26970 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26971
26972         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
26973         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
26974         (detect_commutative_reduction): Same.
26975
26976 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26977
26978         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
26979         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
26980         argument.
26981         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
26982         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
26983         (rewrite_commutative_reductions_out_of_ssa): Same.
26984         * passes.c (execute_function_todo): Call verify_ssa for every pass
26985         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
26986         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
26987         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
26988         with an extra argument.
26989         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
26990         verify_ssa only when the extra argument is true.
26991         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
26992         with an extra argument.
26993         (tree_transform_and_unroll_loop): Same.
26994
26995 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26996
26997         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
26998         for all the passes of the LNO having LOOP_CLOSED_SSA.
26999         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
27000         * tree-loop-distribution.c (pass_loop_distribution): Same.
27001         * tree-pass.h (TODO_verify_loops): Removed.
27002         * tree-ssa-loop.c (pass_tree_loop_init): Same.
27003         (pass_lim): Same.
27004         (pass_tree_unswitch): Same.
27005         (pass_predcom): Same.
27006         (pass_vectorize): Same.
27007         (pass_linear_transform): Same.
27008         (pass_graphite_transforms): Same.
27009         (pass_iv_canon): Same.
27010         (pass_complete_unroll): Same.
27011         (pass_complete_unrolli): Same.
27012         (pass_parallelize_loops): Same.
27013         (pass_loop_prefetch): Same.
27014         (pass_iv_optimize): Same.
27015
27016 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
27017
27018         PR middle-end/32824
27019         * passes.c (init_optimization_passes): Move pass_lim before
27020         pass_copy_prop and pass_dce_loop.
27021
27022 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
27023
27024         PR target/43667
27025         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
27026         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
27027         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
27028         MULTI_* defines for 4 argument vpermil2p* builtins.
27029
27030 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
27031
27032         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
27033         * config/i386/i386.c (x86_maybe_negate_const_int): New.
27034         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
27035         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
27036         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
27037         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
27038         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
27039         Use x86_maybe_negate_const_int to output insn mnemonic.
27040         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
27041         check from instruction predicate.  Update comments.
27042         * config/i386/sync.md (sync_add<mode>): Use
27043         x86_maybe_negate_const_int to output insn mnemonic.
27044
27045 2010-04-06  Jan Hubicka  <jh@suse.cz>
27046
27047         PR tree-optimization/42906
27048         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
27049         IGNORE_SELF argument.  Set visited_control_parents for fully
27050         processed BBs.
27051         (find_obviously_necessary_stmts): Update call of
27052         mark_control_dependent_edges_necessary.
27053         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
27054
27055 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
27056
27057         * config/i386/i386.md: Remove comment about 'e' and 'E'
27058         operand modifier.
27059
27060 2010-04-06  Richard Guenther  <rguenther@suse.de>
27061
27062         PR tree-optimization/43627
27063         * tree-vrp.c (extract_range_from_unary_expr): Widenings
27064         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
27065         not varying.
27066
27067 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
27068
27069         * BASE-VER: Change to 4.6.0.
27070
27071         PR target/43638
27072         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
27073         handling.
27074
27075 2010-04-06  Richard Guenther  <rguenther@suse.de>
27076
27077         PR middle-end/43661
27078         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
27079
27080 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27081
27082         * doc/invoke.texi (Optimize Options): Document that LTO
27083         won't remove object access purely due to incompatible
27084         declarations.
27085
27086 2010-04-04  Matthias Klose  <doko@ubuntu.com>
27087
27088         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
27089         Initialize variable.
27090
27091 2010-04-03  Richard Guenther  <rguenther@suse.de>
27092
27093         PR middle-end/42509
27094         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
27095         require a non-NULL MEM_OFFSET.
27096
27097 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
27098
27099         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
27100         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
27101         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
27102         config/alpha/predicates.md, config/arm/arm.md,
27103         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
27104         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
27105         config/darwin9.h, config/darwin.c, config/darwin.h,
27106         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
27107         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
27108         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
27109         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
27110         config/mips/mips.md, config/mn10300/mn10300.c,
27111         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
27112         config/rs6000/aix.h, config/rs6000/dfp.md,
27113         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
27114         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
27115         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
27116         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
27117         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
27118         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
27119         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
27120         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
27121         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
27122         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
27123         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
27124         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
27125         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
27126         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
27127         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
27128         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
27129         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
27130         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
27131         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
27132         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
27133         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
27134         opt-functions.awk, opth-gen.awk, params.def, passes.c,
27135         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
27136         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
27137         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
27138         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
27139         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
27140         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
27141         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
27142         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
27143         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
27144         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
27145         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
27146         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
27147         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
27148         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
27149
27150 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27151
27152         PR other/43620
27153         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
27154         * aclocal.m4: Regenerate.
27155
27156 2010-04-02  Richard Guenther  <rguenther@suse.de>
27157
27158         PR tree-optimization/43629
27159         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
27160         if we have seen a constant value.
27161
27162 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
27163
27164         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
27165
27166 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
27167
27168         PR target/43469
27169         * arm.c (legitimize_tls_address): Adjust call to
27170         gen_tls_load_dot_plus_four.
27171         (arm_note_pic_base): New function.
27172         (arm_cannot_copy_insn_p): Use it.
27173         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
27174         constraint.
27175
27176 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27177
27178         PR bootstrap/43531
27179
27180         Revert:
27181         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27182
27183         * Makefile.in ($(out_object_file)): Depend on
27184         gt-$(basename $(notdir $(out_file))).h.
27185
27186 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
27187
27188         * config.gcc (lm32-*-rtems*): Add t-lm32.
27189
27190 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
27191
27192         * config.gcc: Add lm32-*-rtems*.
27193         * config/lm32/rtems.h: New file.
27194
27195 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
27196
27197         PR target/42609
27198         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
27199
27200 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
27201
27202         * dwarf2out.c (output_compilation_unit_header): For
27203         -gdwarf-4 use version 4 instead of version 3.
27204         (output_line_info): For version 4 and above emit additional
27205         maximum ops per insn header field.
27206         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
27207
27208         * dwarf2out.c (is_c_family, is_java): Remove.
27209         (lower_bound_default): New function.
27210         (add_bound_info, gen_descr_array_type_die): Use it.
27211
27212 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
27213
27214         PR debug/43325
27215         * dwarf2out.c (gen_variable_die): Allow debug info for variable
27216         re-declaration when it happens in a function.
27217
27218 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
27219
27220         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
27221         (cgraph_remove_function_insertion_hook): Same.
27222         (cgraph_call_function_insertion_hooks): Same.
27223
27224 2010-04-01  Richard Guenther  <rguenther@suse.de>
27225
27226         PR middle-end/43614
27227         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
27228         and TREE_THIS_VOLATILE.
27229         (copy_ref_info): Likewise.
27230         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
27231         * tree.c (build6_stat): Ignore side-effects of all but arg5
27232         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
27233         TARGET_MEM_REF.
27234
27235 2010-04-01  Richard Guenther  <rguenther@suse.de>
27236
27237         PR tree-optimization/43607
27238         * ipa-type-escape.c (check_call): Do not access non-existing
27239         arguments.
27240
27241 2010-04-01  Richard Guenther  <rguenther@suse.de>
27242
27243         PR middle-end/43602
27244         Revert
27245         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
27246                     Jack Howarth  <howarth@bromo.med.uc.edu>
27247
27248         * tree-profile.c (tree_init_ic_make_global_vars): Make static
27249         variables TLS.
27250
27251 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27252
27253         * doc/install.texi (Prerequisites): Document libelf usability on
27254         IRIX 5/6 and Solaris 2.
27255         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
27256         Update GNU as, GNU ld requirements.
27257         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
27258         Document Sun Studio compiler download.
27259         Update and simplify as, ld recommendations.
27260         (Specific, *-*-solaris2.7): Note obsoletion, removal.
27261
27262 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27263
27264         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
27265         with_tune_32 to pentium4.
27266
27267 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
27268
27269         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
27270
27271 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27272
27273         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
27274         obsoletion, removal.
27275         Update IDO URL.
27276         Document GNU as requirement.
27277         Update configure requirements.
27278         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
27279         Recomment IRIX 6.5.18+.
27280         Document IDF/IDL requirement.
27281         Document GNU as requirement.
27282         Document GNU ld bootstrap failure.
27283         Remove freeware.sgi.com reference.
27284
27285 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27286
27287         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
27288         UNIX V4.0, V5.0 obsoletion, removal.
27289         Remove --with-gc=simple reference.
27290         Update VM requirements during bootstrap.
27291         Remove -oldas bootstrap description.
27292         Update binutils reference.
27293         Remove comparison failure note.
27294
27295 2010-03-31  Richard Guenther  <rguenther@suse.de>
27296             Zdenek Dvorak  <ook@ucw.cz>
27297             Sebastian Pop  <sebastian.pop@amd.com>
27298
27299         PR middle-end/43464
27300         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
27301         with multiple arguments.
27302         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
27303
27304 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
27305
27306         * graphite-dependences.c (print_pddr): Call print_pdr with an
27307         extra argument.
27308         * graphite-poly.c (debug_pdr): Add an extra argument for the
27309         verbosity level.
27310         (print_pdr): Same.
27311         (print_pbb_domain): Same.
27312         (print_pbb): Same.
27313         (print_scop_context): Same.
27314         (print_scop): Same.
27315         (print_cloog): Same.
27316         (debug_pbb_domain): Same.
27317         (debug_pbb): Same.
27318         (print_pdrs): Same.
27319         (debug_pdrs): Same.
27320         (debug_scop_context): Same.
27321         (debug_scop): Same.
27322         (debug_cloog): Same.
27323         (print_scop_params): Same.
27324         (debug_scop_params): Same.
27325         (print_iteration_domain): Same.
27326         (print_iteration_domains): Same.
27327         (debug_iteration_domain): Same.
27328         (debug_iteration_domains): Same.
27329         (print_scattering_function): Same.
27330         (print_scattering_functions): Same.
27331         (debug_scattering_function): Same.
27332         (debug_scattering_functions): Same.
27333         * graphite-poly.h (debug_pdr): Update declaration.
27334         (print_pdr): Same.
27335         (print_pbb_domain): Same.
27336         (print_pbb): Same.
27337         (print_scop_context): Same.
27338         (print_scop): Same.
27339         (print_cloog): Same.
27340         (debug_pbb_domain): Same.
27341         (debug_pbb): Same.
27342         (print_pdrs): Same.
27343         (debug_pdrs): Same.
27344         (debug_scop_context): Same.
27345         (debug_scop): Same.
27346         (debug_cloog): Same.
27347         (print_scop_params): Same.
27348         (debug_scop_params): Same.
27349         (print_iteration_domain): Same.
27350         (print_iteration_domains): Same.
27351         (debug_iteration_domain): Same.
27352         (debug_iteration_domains): Same.
27353         (print_scattering_function): Same.
27354         (print_scattering_functions): Same.
27355         (debug_scattering_function): Same.
27356         (debug_scattering_functions): Same.
27357
27358 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
27359
27360         * graphite-poly.c (print_scattering_function_1): New.
27361         (print_scattering_function): Call it.
27362         (print_scop_params): Remove spaces at the end of lines.
27363         (print_cloog): New.
27364         (debug_cloog): New.
27365         * graphite-poly.h (print_cloog): Declared.
27366         (debug_cloog): Declared.
27367
27368 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
27369
27370         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
27371         in loop->header.
27372         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
27373         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
27374         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
27375         to switch between adding the IV bump in loop->latch or in loop->header.
27376
27377 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
27378
27379         * graphite-poly.c (print_scattering_function): Pretty print following
27380         the scoplib format.
27381         (print_pdr): Same.
27382         (print_pbb_domain): Same.
27383         (dump_gbb_cases): Same.
27384         (dump_gbb_conditions): Same.
27385         (print_pdrs): Same.
27386         (print_pbb): Same.
27387         (print_scop_params): Same.
27388         (print_scop_context): Same.
27389         (print_scop): Same.
27390         (print_pbb_body): New.
27391         (lst_indent_to): New.
27392         (print_lst): Start new lines with a #.
27393         * graphite-poly.h (pbb_bb): New.
27394         (pbb_index): Use pbb_bb.
27395         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
27396         disjuncts.
27397         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
27398
27399 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
27400
27401         * dwarf2out.c (size_of_die): For -gdwarf-4 use
27402         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
27403         and 0 instead of 1 for dw_val_class_flag.
27404         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
27405         dw_val_class_range_list, dw_val_class_loc_list,
27406         dw_val_class_lineptr and dw_val_class_macptr, use
27407         DW_FORM_flag_present for dw_val_class_flag and
27408         DW_FORM_exprloc for dw_val_class_loc.
27409         (output_die): For -gdwarf-4 print dw_val_class_loc
27410         size as uleb128 instead of 1 or 2 bytes and don't print
27411         anything for dw_val_class_flag.
27412
27413         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
27414         instead of cselib_lookup following by tweaking locs->setting_insn.
27415
27416         PR bootstrap/43596
27417         * cselib.c (cselib_process_insn): Clear cselib_current_insn
27418         even before returning from label, setjmp call or volatile asm
27419         handling.
27420
27421 2010-03-31  Richard Guenther  <rguenther@suse.de>
27422
27423         PR middle-end/43600
27424         * cgraphunit.c (cgraph_output_in_order): Do not allocate
27425         temporary data on stack.
27426
27427 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27428
27429         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
27430         (PUSHSECTION_ASM_OP): Remove.
27431         (POPSECTION_ASM_OP): Remove.
27432         (PUSHSECTION_FORMAT): Remove.
27433         * config/sol2.h (PUSHSECTION_FORMAT): Define.
27434         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
27435         * config/sol2.c (solaris_output_init_fini): Use it.
27436
27437 2010-03-31  Jie Zhang  <jie@codesourcery.com>
27438
27439         PR 43574
27440         * opt-functions.awk (var_type_struct): Use signed char type
27441         for simple variables.
27442
27443 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27444
27445         * config/sol2.c: Include output.h.
27446         (solaris_assemble_visibility): New function.
27447         * config/t-sol2 (sol2.o): Add output.h dependency.
27448         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
27449         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
27450         Redefine.
27451
27452 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
27453
27454         PR target/43580
27455         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
27456         V2SImode or XFmode on PRE_DEC.
27457
27458         PR debug/43557
27459         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
27460         BLKmode.
27461
27462 2010-03-31  Jie Zhang  <jie@codesourcery.com>
27463
27464         PR 43562
27465         * reload.h (caller_save_initialized_p): Declare.
27466         * toplev.c (backend_init_target): Don't call
27467         init_caller_save but set caller_save_initialized_p to false.
27468         * caller-save.c (caller_save_initialized_p): Define.
27469         (init_caller_save): Check caller_save_initialized_p.
27470         * ira.c (ira): Call init_caller_save if flag_caller_saves.
27471
27472 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27473
27474         PR target/39048
27475         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
27476         and soft-fp/t-softfp to tmake_file.
27477         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
27478         (LIBGCC2_TF_CEXT): Define.
27479         (TF_SIZE): Define.
27480
27481 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
27482
27483         PR debug/42977
27484         * cselib.c (n_useless_values): Document handling of debug locs.
27485         (n_useless_debug_values, n_debug_values): New variables.
27486         (new_elt_loc_list): Don't add to debug values, keep count.
27487         (promote_debug_loc): New.
27488         (cselib_reset_table): Zero new variables.
27489         (entry_and_rtx_equal_p): Promote debug locs.
27490         (discard_useless_locs): Increment n_useless_debug_values for
27491         debug values.
27492         (remove_useless_values): Adjust n_useless_values and n_debug_values
27493         with n_useless_debug_values.
27494         (add_mem_for_addr): Promote debug locs.
27495         (cselib_lookup_mem): Likewise.
27496         (cselib_lookup_addr): Renamed to...
27497         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
27498         (cselib_log_lookup): ... this.  Turn into...
27499         (cselib_lookup_addr): ... new wrapper.
27500         (cselib_lookup_from_insn): New.
27501         (cselib_invalidate_regno): Increment n_useless_debug_values for
27502         debug values.
27503         (cselib_invalidate_mem): Likewise.
27504         (cselib_process_insn): Take n_deleted and n_debug_values into
27505         account to guard remove_useless_value call.
27506         (cselib_finish): Zero n_useless_debug_values.
27507         * cselib.h (cselib_lookup_from_insn): Declare.
27508         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
27509         (sched_analyze_2): Likewise.
27510
27511 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
27512
27513         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
27514         functions.
27515         (adjust_mems): Replace narrowing SUBREG of expression containing
27516         just PLUS, MINUS, MULT and ASHIFT of registers and constants
27517         with operations in the narrower mode.
27518
27519         PR debug/43593
27520         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
27521         regs_invalidated_by_call instead all call_used_reg_set registers.
27522
27523 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
27524
27525         PR middle-end/43430
27526         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
27527         pointer comparisons with types_compatible_p.
27528         * tree-vect-stmts.c (vectorizable_call): Same.
27529         (vectorizable_condition): Same.
27530
27531 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27532
27533         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
27534         stack check if the mask would be zero.
27535
27536 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
27537             Jack Howarth  <howarth@bromo.med.uc.edu>
27538
27539         * tree-profile.c (tree_init_ic_make_global_vars): Make static
27540         variables TLS.
27541
27542 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
27543
27544         PR other/25232
27545         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
27546         and __unordtf2.
27547         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
27548         Include ___unordxf2 and ___unordtf2.
27549         * config/i386/libgcc-glibc.ver: Do not define inheritance from
27550         GCC_4.4.0 here.
27551
27552 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
27553
27554         * config/lm32/t-lm32: New file.
27555         * config.gcc: Use the above file when targetting lm32.
27556
27557 2010-03-28  Duncan Sands  <baldrick@free.fr>
27558
27559         * Makefile.in (PLUGIN_HEADERS): Add except.h.
27560
27561 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
27562
27563         PR middle-end/43431
27564         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
27565         Improve vectorization cost model diagnostic.
27566
27567 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
27568
27569         PR middle-end/43436
27570         * tree-vect-data-refs.c (vect_analyze_data_refs): When
27571         compute_data_dependences_for_loop returns false, early exit
27572         and output an extra diagnostic for the failed data reference
27573         analysis.
27574
27575 2010-03-29  Richard Guenther  <rguenther@suse.de>
27576
27577         PR tree-optimization/43560
27578         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
27579         (can_sm_ref_p): Treat stores to readonly locations as trapping.
27580
27581 2010-03-29  Jie Zhang  <jie@codesourcery.com>
27582
27583         PR 43564
27584         * toplev.c (process_options): Set optimization_default_node
27585         and optimization_current_node.
27586         * opts.c (decode_options): Don't set optimization_default_node
27587         and optimization_current_node.
27588
27589 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
27590
27591         * config/rtems.h: Abandon -qrtems_debug.
27592
27593 2010-03-28  Jan Hubicka  <jh@suse.cz>
27594
27595         PR tree-optimization/43505
27596         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
27597         map should not be copied.
27598
27599 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27600
27601         PR middle-end/41674
27602         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
27603         cdtors, set DECL_PRESERVE_P.
27604         * ipa.c (cgraph_externally_visible_p): Return true if declaration
27605         should be preseved.
27606
27607 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
27608
27609         PR tree-optimization/43528
27610         * stor-layout.c (place_field): Check that constant fits into
27611         unsigned HWI when skipping calculation of MS bitfield layout.
27612
27613 2010-03-27  Jan Hubicka  <jh@suse.cz>
27614
27615         PR middle-end/43391
27616         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
27617         notice_global_symbol work.
27618
27619 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
27620
27621         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
27622         instead of dwarf2out_decl.
27623         (struct var_loc_node): Remove section_label field.
27624         (dwarf2out_function_decl): New function.
27625         (dwarf2out_var_location): Don't set section_label field.
27626         (dwarf2out_begin_function): Don't empty decl_loc_table here.
27627
27628 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
27629
27630         PR tree-optimization/43544
27631         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27632         First argument for builtin vectorized function hook is now a
27633         tree to be able to distinguish between machine specific and
27634         standard builtins.
27635         * targhooks.c (default_builtin_vectorized_function): Ditto.
27636         * targhooks.h (default_builtin_vectorized_function): Ditto.
27637         * target.h (struct gcc_target): Ditto.
27638         * tree-vect-stmts.c (vectorizable_function): Ditto.
27639         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
27640         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
27641         Ditto.
27642
27643 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
27644
27645         PR c/43381
27646         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
27647         nested binding iff it is a FUNCTION_DECL.
27648         (store_parm_decls_newstyle): Pass nested=true to bind for
27649         FUNCTION_DECLs amongst parameters.
27650
27651 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
27652
27653         * var-tracking.c (vt_expand_loc_callback): Don't run
27654         cselib_expand_value_rtx_cb in dummy mode if
27655         cselib_dummy_expand_value_rtx_cb returned false.
27656
27657         * var-tracking.c (emit_note_insn_var_location): For one part
27658         notes with offset 0, don't add EXPR_LIST around the location.
27659         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
27660         add_location_or_const_value_attribute): Adjust for that change.
27661
27662         PR debug/43540
27663         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
27664         into first operand and location into second.
27665         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
27666         dw_cfi_oprnd_loc for DW_CFA_expression.
27667         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
27668         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
27669         assume first argument is regnum and second argument is location.
27670
27671 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
27672
27673         PR target/42113
27674         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
27675         of scratch register to DImode.  Split to DImode comparison operator.
27676         Use SImode subreg of scratch register in the multiplication.
27677         (*cmp_sadd_sidi): Ditto.
27678         (*cmp_ssub_si): Ditto.
27679         (*cmp_ssub_sidi): Ditto.
27680
27681 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
27682
27683         PR target/43524
27684         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
27685         Remove invalid assert and wrong comment.
27686
27687 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
27688
27689         PR debug/43516
27690         * flags.h (final_insns_dump_p): New extern.
27691         * final.c (final_insns_dump_p): New variable.
27692         (rest_of_clean_state): Set it before -fdump-final-insns=
27693         dumping, clear afterwards.
27694         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
27695         MEM_ALIAS_SET on MEMs.
27696
27697 2010-03-26  David S. Miller  <davem@davemloft.net>
27698
27699         * configure.ac: Fix sparc GOTDATA_OP bug check.
27700         * configure: Rebuild.
27701
27702 2010-03-26  Alan Modra  <amodra@gmail.com>
27703
27704         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
27705
27706 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27707
27708         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
27709         TLS_SECTION_ASM_FLAG.
27710
27711 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
27712
27713         PR bootstrap/43511
27714         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
27715         Clear first_function_block_is_cold.
27716
27717         PR c/43385
27718         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
27719         argument if the argument is truth_value_p.
27720
27721 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27722
27723         * config/rs6000/constraints.md: Update copyright year for my changes.
27724
27725         PR target/43484
27726         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
27727         used in reg+reg addressing, swap registers.
27728
27729 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
27730
27731         PR debug/43293
27732         * target.h (struct gcc_target): Add code_end hook.
27733         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
27734         if not yet defined.
27735         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
27736         * toplev.c (compile_file): Call targetm.asm_out.code_end
27737         hook before unwind info/debug info output.
27738         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
27739         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
27740         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27741         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
27742         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27743         * config/i386/i386.c (ix86_file_end): Renamed to...
27744         (ix86_code_end): ... this.  Make static.  Don't call
27745         file_end_indicate_exec_stack.  Emit unwind info using
27746         final_start_function/final_end_function.
27747         (darwin_x86_file_end): Remove.
27748         (TARGET_ASM_CODE_END): Define.
27749         * config/i386/i386.h (TARGET_ASM_FILE_END,
27750         NEED_INDICATE_EXEC_STACK): Don't define.
27751         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
27752         (TARGET_ASM_FILE_END): Define to darwin_file_end.
27753         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
27754         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
27755
27756         PR target/43498
27757         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
27758         at the beginning and final_end_function at the end.
27759         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27760
27761 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27762
27763         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
27764         and Sun as TLS syntax.
27765         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
27766         * configure: Regenerate.
27767         * config.in: Regenerate.
27768         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
27769         (default_elf_asm_named_section): Use it.
27770         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
27771         (i386_output_dwarf_dtprel): Likewise.
27772         (output_addr_const_extra): Likewise.
27773         (output_pic_addr_const): Lowercase @GOTTPOFF.
27774         (output_addr_const_extra): Likewise.
27775         (output_pic_addr_const): Lowercase @GOTNTPOFF.
27776         (output_addr_const_extra): Likewise.
27777         (output_pic_addr_const): Lowercase @INDNTPOFF.
27778         (output_addr_const_extra): Likewise.
27779         (output_pic_addr_const): Lowercase @NTPOFF.
27780         (output_addr_const_extra): Likewise.
27781         (output_pic_addr_const): Lowercase @TPOFF.
27782         (output_addr_const_extra): Likewise.
27783         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
27784         (*tls_global_dynamic_64): Likewise.
27785         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
27786         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
27787
27788         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
27789         (ASM_OUTPUT_TLS_COMMON): Use it.
27790         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
27791
27792         PR target/38118
27793         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
27794         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27795         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
27796         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
27797         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27798         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
27799
27800 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27801
27802         * config/i386/i386.c (override_options): Don't accept
27803         -mtls-dialect=sun any longer.
27804         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
27805         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
27806         (*tls_local_dynamic_base_32_sun): Likewise.
27807         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27808
27809 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
27810
27811         PR debug/43508
27812         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27813         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
27814
27815         PR debug/43479
27816         * ira.c (adjust_cleared_regs): New function.
27817         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
27818
27819         PR debug/19192
27820         PR debug/43479
27821         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
27822         from gimple_block.
27823         * expr.c (expand_expr_real): Restore previous
27824         curr_insn_source_location and curr_insn_block after
27825         expand_expr_real_1 call.
27826         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
27827         instead of expand_expr_real_1.
27828
27829 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
27830
27831         PR rtl-optimization/43413
27832         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
27833         hard regs too.
27834
27835 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
27836
27837         PR target/43348
27838         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
27839         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
27840
27841 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27842
27843         * config/i386/i386.c (ix86_target_string): Add -mfma.
27844         Fix a typo in comment.
27845
27846 2010-03-22  Mike Stump  <mikestump@comcast.net>
27847
27848         PR target/23071
27849         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
27850         Don't overly align based upon packed packed fields.
27851
27852 2010-03-22  Jason Merrill  <jason@redhat.com>
27853
27854         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
27855         Use () rather than [], and move before the element type.
27856
27857 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27858
27859         * doc/configfiles.texi (Configuration Files): Removed
27860         fixinc/Makefile*, intl/Makefile.*.
27861         * doc/makefile.texi: Fixed markup. Abstract from version
27862         control system used.
27863         (Makefile): Removed obsolete java/parse.y example.
27864         * doc/sourcebuild.texi: Likewise.
27865         (Top Level): Added config, gnattools, libdecnumber, libgcc,
27866         libgomp, libssp.  Removed fastjar.
27867         (Miscellaneous Docs): Clarify location.
27868         Added COPYING3, COPYING3.LIB.
27869         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
27870
27871 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27872
27873         PR target/38085
27874         * config/i386/i386.c (x86_function_profiler)
27875         [!NO_PROFILE_COUNTERS]: Fix typo.
27876         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
27877         instead of callq.
27878
27879 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
27880             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27881
27882         * doc/sourcebuild.texi (Test Directives): Split into six
27883         subsections, with most of the current text in new subsections
27884         Directives, Selectors, and Final Actions.
27885         (Directives): Split list of test directives into multiple
27886         subsubsections.
27887         (Selectors): Describe use and syntax of selectors.
27888         (Effective-Target Keywords): Describe all existing keywords.
27889         (Add Options): Describe features for dg-add-options.
27890         (Require Support): Describe variants of dg-require-support.
27891         (Final Actions): Describe commands to use in dg-final.
27892
27893 2010-03-22  Michael Matz  <matz@suse.de>
27894
27895         PR middle-end/43475
27896         * recog.c (validate_replace_rtx_group): Replace also in
27897         REG_EQUAL and REG_EQUIV notes.
27898
27899 2010-03-22  Richard Guenther  <rguenther@suse.de>
27900
27901         PR tree-optimization/43390
27902         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
27903         sure vector extracts are type correct.
27904
27905 2010-03-22  Richard Guenther  <rguenther@suse.de>
27906
27907         PR middle-end/40106
27908         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
27909         x * sqrt (x) even when optimizing for size if the target
27910         has native support for sqrt.
27911
27912 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
27913
27914         * varasm.c (make_decl_rtl_for_debug): Also clear
27915         flag_mudflap for the duration of make_decl_rtl call.
27916
27917         PR debug/43443
27918         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
27919         locs from preserved VALUEs.
27920
27921 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27922
27923         PR middle-end/42718
27924         * pa.md (movmemsi): Set align to one if zero.
27925         (movmemdi): Likewise.
27926
27927 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
27928
27929         PR target/42321
27930         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
27931         with their corresponding prologue pushes.
27932
27933 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
27934
27935         PR target/43156
27936         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
27937         at the begining or end.
27938         (spu_expand_epilogue): Likewise.
27939
27940 2010-03-20  Richard Guenther  <rguenther@suse.de>
27941
27942         PR rtl-optimization/43438
27943         * combine.c (make_extraction): Properly zero-/sign-extend an
27944         extraction of the low part of a CONST_INT.  Also handle
27945         CONST_DOUBLE.
27946
27947 2010-03-19  Mike Stump  <mikestump@comcast.net>
27948
27949         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
27950         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
27951         (override_options): Use SUBTARGET32_DEFAULT_CPU.
27952
27953 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
27954
27955         PR c/43211
27956         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
27957         an error.
27958
27959 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
27960
27961         PR rtl-optimization/42258
27962         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
27963         use that may match DEF.
27964
27965         PR target/40697
27966         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
27967         the cost of loading the constant rather than assuming
27968         COSTS_N_INSNS (1).
27969         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
27970         outer code is AND, do the same tests as the andsi3 expander and
27971         return COSTS_N_INSNS (1) if and is cheap.
27972
27973         * optabs.c (avoid_expensive_constant): Fix formatting.
27974
27975 2010-03-19  Michael Matz  <matz@suse.de>
27976
27977         PR c++/43116
27978         * attribs.c (decl_attributes): When rebuilding a function pointer
27979         type use the same qualifiers as the original pointer type.
27980
27981 2010-03-19  Martin Jambor  <mjambor@suse.cz>
27982
27983         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
27984         and is_gimple_ip_invariant_address.
27985
27986 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27987
27988         Revert
27989         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27990
27991         * config/arm/arm.c (arm_override_options): Turn off
27992         flag_dwarf2_cfi_asm for AAPCS variants.
27993
27994 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27995
27996         PR target/43399
27997         * config/arm/arm.c (emit_multi_reg_push): Update comments.
27998         Use PRE_MODIFY instead of PRE_DEC.
27999         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
28000         (vfp_emit_fstmd): Likewise.
28001
28002 2010-03-19  Michael Matz  <matz@suse.de>
28003
28004         PR target/43305
28005         * builtins.c (expand_builtin_interclass_mathfn,
28006         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
28007         if that fails.
28008
28009 2010-03-19  Richard Guenther  <rguenther@suse.de>
28010
28011         PR tree-optimization/43415
28012         * tree-ssa-pre.c (phi_translate): Split out worker to ...
28013         (phi_translate_1): ... this.
28014         (phi_translate): Move all caching here.  Cache all NARY
28015         and REFERENCE translations.
28016
28017 2010-03-19  David S. Miller  <davem@davemloft.net>
28018
28019         With help from Eric Botcazou.
28020         * config/sparc/sparc.c: Include dwarf2out.h.
28021         (emit_pic_helper): Delete.
28022         (pic_helper_symbol_name): Delete.
28023         (pic_helper_emitted_p): Delete.
28024         (pic_helper_needed): New.
28025         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
28026         (get_pc_thunk_name): New.
28027         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
28028         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
28029         Set pic_helper_needed to true.  Don't call emit_pic_helper.
28030         (sparc_expand_prologue): Update load_pic_register call.
28031         (sparc_output_mi_thunk): Likewise.
28032         (sparc_file_end): Emit a hidden comdat symbol for the PIC
28033         thunk if possible.  Output CFI information as needed.
28034
28035 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
28036             Jack Howarth  <howarth@bromo.med.uc.edu>
28037
28038         PR target/36399
28039         * config/i386/i386.h: Fix ABI on darwin x86-32.
28040
28041 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
28042
28043         * tree.h: Declare make_decl_rtl_for_debug.
28044         * varasm.c (make_decl_rtl_for_debug): New.
28045         * dwarf2out.c (rtl_for_decl_location): Call it.
28046         * cfgexpand.c (expand_debug_expr): Call it.
28047
28048 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
28049
28050         PR bootstrap/43399
28051         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
28052         mem_mode.
28053
28054         PR bootstrap/43403
28055         * var-tracking.c (vt_init_cfa_base): Do nothing if
28056         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
28057
28058 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
28059
28060         PR debug/42873
28061         * var-tracking.c (canonicalize_vars_star): New.
28062         (dataflow_post_merge_adjust): Use it.
28063
28064 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
28065
28066         PR debug/43058
28067         * var-tracking.c (non_suitable_const): New function.
28068         (add_uses): For DEBUG_INSNs with constants, don't record any
28069         value, instead just the constant value itself.
28070         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
28071         is not VAR_LOC_UNKNOWN_P, set var to the constant.
28072         (emit_notes_in_bb): Likewise.
28073         (emit_note_insn_var_location): For onepart variables if
28074         cur_loc is a VOIDmode constant, use DECL_MODE.
28075
28076 2010-03-18  Martin Jambor  <mjambor@suse.cz>
28077
28078         PR middle-end/42450
28079         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
28080         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
28081         all non-clones.  Moved call redirection...
28082         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
28083         (cgraph_materialize_all_clones): Dispose of all
28084         combined_args_to_skip bitmaps.
28085         (verify_cgraph_node): Do not check for edges pointing to wrong
28086         nodes in inline clones.
28087         * tree-inline.c (copy_bb): Call
28088         cgraph_redirect_edge_call_stmt_to_callee.
28089         * ipa.c (cgraph_remove_unreachable_nodes): Call
28090         cgraph_node_remove_callees even when there are used clones.
28091
28092 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
28093
28094         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
28095
28096 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
28097
28098         PR target/43383
28099         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
28100         for 32bit.
28101
28102 2010-03-18  Michael Matz  <matz@suse.de>
28103
28104         PR middle-end/43419
28105         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
28106         into sqrt(x) if we need to preserve signed zeros.
28107
28108 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
28109             Eric Botcazou  <ebotcazou@adacore.com>
28110
28111         PR rtl-optimization/43360
28112         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
28113         note if we don't know its invariant status.
28114
28115 2010-03-18  Michael Matz  <matz@suse.de>
28116
28117         PR tree-optimization/43402
28118         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
28119         PHI chains of ssa names registered for update.
28120
28121 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
28122
28123         PR target/42427
28124         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
28125         non-offsettable and pre_modify update addressing.
28126         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
28127         and "2" alternatives "#".
28128         (*movdd_softfloat32): Make all alternatives "#";
28129         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
28130         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
28131         (*movdf_softfloat32): Make all alternatives "#";
28132         (movdi): Use the new DIFD mode iterator to create a common splitter
28133         for movdi, movdf and movdd patterns.
28134
28135 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
28136
28137         * common.opt (dumpdir): Remove redundant tab.
28138
28139 2010-03-17  Martin Jambor  <mjambor@suse.cz>
28140
28141         PR tree-optimization/43347
28142         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
28143         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
28144
28145 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
28146
28147         PR rtl-optimization/42216
28148         * regrename.c (create_new_chain): New function, broken out from...
28149         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
28150         appending a use to an empty chain.
28151         (build_def_use): Remove previous changes that convert OP_INOUT to
28152         OP_OUT operands; instead detect the case where an OP_INOUT operand
28153         uses a previously untracked register and create an empty chain for it.
28154
28155 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28156
28157         * doc/extend.texi (Function Attributes): Rewrite unfinished
28158         sentence in ms_abi documentation.
28159
28160 2010-03-17  Alan Modra  <amodra@gmail.com>
28161
28162         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
28163         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
28164         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
28165         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
28166
28167 2010-03-16  Richard Henderson  <rth@redhat.com>
28168
28169         PR middle-end/43365
28170         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
28171         (lower_try_finally): Save and restore eh_seq around the expansion
28172         of the try-finally.
28173
28174 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
28175
28176         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
28177         statements before splitting block.
28178
28179 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28180
28181         * doc/sourcebuild.texi (Testsuites): Fix markup.
28182         Use pathnames relative to gcc/testsuite.
28183         (Test Directives): Move description of how timeout is determined.
28184         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
28185         (C Tests): Correct gcc.misc-tests directory.
28186         Framework tests now live in gcc.test-framework.
28187
28188 2010-03-16  Richard Guenther  <rguenther@suse.de>
28189
28190         PR middle-end/43379
28191         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
28192         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
28193
28194 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
28195             Alexandre Oliva  <aoliva@redhat.com>
28196
28197         PR tree-optimization/42917
28198         * lambda-code.c (remove_iv): Skip debug statements.
28199         (lambda_loopnest_to_gcc_loopnest): Likewise.
28200         (not_interesting_stmt): Debug statements are not interesting.
28201
28202 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
28203
28204         PR debug/43051
28205         PR debug/43092
28206         * cselib.c (cselib_preserve_constants,
28207         cfa_base_preserved_val): New static variables.
28208         (preserve_only_constants): New function.
28209         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
28210         clear its REG_VALUES.  If cselib_preserve_constants, don't
28211         empty the whole hash table, but preserve there VALUEs with constants,
28212         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
28213         (cselib_preserve_cfa_base_value): New function.
28214         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
28215         (cselib_init): Change argument to int bitfield.  Set
28216         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
28217         is in it.
28218         (cselib_finish): Clear cselib_preserve_constants and
28219         cfa_base_preserved_val.
28220         * cselib.h (enum cselib_record_what): New enum.
28221         (cselib_init): Change argument to int.
28222         (cselib_preserve_cfa_base_value): New prototype.
28223         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
28224         * dse.c (dse_step1): Likewise.
28225         * cfgcleanup.c (thread_jump): Likewise.
28226         * sched-deps.c (sched_analyze): Likewise.
28227         * gcse.c (local_cprop_pass): Likewise.
28228         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
28229         If FN is non-NULL, call the callback always and whenever it returns
28230         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
28231         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
28232         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
28233         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
28234         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
28235         * var-tracking.c: Include recog.h.
28236         (bb_stack_adjust_offset): Remove.
28237         (vt_stack_adjustments): Don't call it, instead just gather the
28238         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
28239         (adjust_stack_reference): Remove.
28240         (compute_cfa_pointer): New function.
28241         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
28242         (struct adjust_mem_data): New type.
28243         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
28244         functions.
28245         (get_address_mode): New function.
28246         (replace_expr_with_values): Use it.
28247         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
28248         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
28249         (adjust_sets): Remove.
28250         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
28251         Use get_address_mode.
28252         (get_adjusted_src): Remove.
28253         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
28254         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
28255         (add_with_sets): Don't call adjust_sets.
28256         (fp_setter, vt_init_cfa_base): New functions.
28257         (vt_initialize): Change return type to bool.  Move most of pool etc.
28258         initialization to the beginning of the function from end.  Pass
28259         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
28260         If !frame_pointer_needed, call vt_stack_adjustment before mos
28261         vector is filled, call vt_init_cfa_base if argp/framep has been
28262         eliminated to sp.  If frame_pointer_needed and argp/framep has
28263         been eliminated to hard frame pointer, set
28264         hard_frame_pointer_adjustment and call vt_init_cfa_base after
28265         encountering fp setter in the prologue.  For MO_ADJUST, call
28266         log_op_type before pusing the op into mos vector, not afterwards.
28267         Call adjust_insn before cselib_process_insn/add_with_sets,
28268         call cancel_changes (0) afterwards.
28269         (variable_tracking_main_1): Adjust for vt_initialize calling
28270         vt_stack_adjustments and returning whether it succeeded or not.
28271
28272 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
28273
28274         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
28275         debug statements.
28276
28277 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
28278
28279         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
28280         has been set.
28281         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
28282         drap_reg has not been set.
28283
28284 2010-03-15  Michael Matz  <matz@suse.de>
28285
28286         PR middle-end/43300
28287         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
28288         use it to expand block copies.
28289         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
28290         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
28291         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
28292
28293 2010-03-15  Richard Guenther  <rguenther@suse.de>
28294
28295         PR tree-optimization/43367
28296         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
28297         elimination check.
28298
28299 2010-03-15  Richard Guenther  <rguenther@suse.de>
28300
28301         PR tree-optimization/43317
28302         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
28303
28304 2010-03-15  Martin Jambor  <mjambor@suse.cz>
28305
28306         PR tree-optimization/43141
28307         * tree-sra.c (create_abstract_origin): New function.
28308         (modify_function): Call create_abstract_origin.
28309
28310 2010-03-15  Chris Demetriou  <cgd@google.com>
28311
28312         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
28313         wasn't copied.
28314
28315 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28316
28317         PR middle-end/43354
28318         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
28319         call insert_out_of_ssa_copy for default definitions.
28320
28321 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28322
28323         * graphite-clast-to-gimple.c (my_long_long): Defined.
28324         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
28325         * graphite-sese-to-poly.c (my_long_long): Defined.
28326         (scop_ivs_can_be_represented): Use it.
28327
28328 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28329
28330         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
28331         graphite-max-bbs-per-function, and loop-block-tile-size.
28332         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
28333         with "maximum".
28334         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
28335
28336 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28337
28338         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
28339         forward declaration.
28340         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
28341         (add_upper_bounds_from_estimated_nit): New.
28342         (build_loop_iteration_domains): Use it.
28343
28344 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28345
28346         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
28347
28348 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28349
28350         PR middle-end/43306
28351         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
28352         should be an INTEGER_CST.  Also handle CASE_CONVERT.
28353
28354 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28355
28356         * graphite.c (graphite_initialize): To bound the number of bbs per
28357         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
28358         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
28359         * doc/invoke.texi: Document it.
28360
28361 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28362
28363         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
28364         * graphite-sese-to-poly.h (build_poly_scop): Same.
28365
28366 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
28367
28368         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
28369         the number of parameters in the scop.  Use as an upper bound
28370         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
28371         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
28372         * doc/invoke.texi: Document it.
28373
28374 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
28375
28376         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
28377         * doc/c-tree.texi: Remove.
28378         * doc/generic.texi: Merge c-tree.texi here.
28379         * doc/gccint.texi (Trees): Remove menu entry.
28380         (c-tree.texi): Remove @include.
28381         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
28382         * doc/languages.texi (Reading RTL): Ditto.
28383
28384 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
28385
28386         PR target/42869
28387         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
28388
28389 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
28390
28391         PR middle-end/42431
28392         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
28393         code added to work around reload clobbering CONST insns.
28394
28395 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
28396
28397         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
28398         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
28399         (cselib_preserve_only_values): Remove retain argument, don't
28400         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
28401         * cselib.h (cselib_preserve_only_values): Remove retain argument.
28402         * var-tracking.c (micro_operation): Move insn field before union.
28403         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
28404         (struct variable_tracking_info_def): Remove n_mos field, change
28405         mos into a vector of micro_operations.
28406         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
28407         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
28408         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
28409         changing into a vector.
28410         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
28411         come before all other uops generated by add_stores.
28412         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
28413         argument removal.
28414         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
28415         a vector.  Run just one pass over the bbs instead of separate counting
28416         and computation phase.
28417         (vt_finalize): Free VTI (bb)->mos vector instead of array.
28418
28419         PR debug/43329
28420         * tree-inline.c (remap_decls): Put old_var rather than origin_var
28421         into *nonlocalized_list vector.
28422         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
28423         even if origin is non-NULL.
28424         (gen_variable_die): Likewise.
28425         (process_scope_var): Don't change origin.
28426         (gen_decl_die): Likewise.
28427         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
28428         before adding new edges instead of after it, fix moving over
28429         debug stmts.
28430
28431 2010-03-11  David S. Miller  <davem@davemloft.net>
28432
28433         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
28434         of four.
28435         * configure: Rebuild.
28436
28437 2010-03-11  Martin Jambor  <mjambor@suse.cz>
28438
28439         PR tree-optimization/43257
28440         * tree.c (assign_assembler_name_if_neeeded): New function.
28441         (free_lang_data_in_cgraph): Assembler name assignment moved to the
28442         above new function.
28443         * tree.h (assign_assembler_name_if_neeeded): Declare.
28444         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
28445         the function if needed.
28446
28447 2010-03-11  Chris Demetriou  <cgd@google.com>
28448
28449         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
28450         include/stdint-gcc.h, and include/stdint.h world-readable.
28451
28452 2010-03-11  Richard Guenther  <rguenther@suse.de>
28453
28454         PR tree-optimization/43255
28455         * tree-vrp.c (process_assert_insertions_for): Do not insert
28456         asserts for trivial conditions.
28457
28458 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28459
28460         PR tree-optimization/43280
28461         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
28462         generation.  Move calculation of size out of the if branch.
28463         (find_bswap): Modify compare number generation.
28464
28465 2010-03-11  Richard Guenther  <rguenther@suse.de>
28466
28467         PR lto/43200
28468         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
28469         (input_gimple_stmt): Fixup handled component types during
28470         operand read.  Also fix up decls in ADDR_EXPRs.
28471
28472 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
28473
28474         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
28475         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
28476
28477 2010-03-10  Jan Hubicka  <jh@suse.cz>
28478
28479         PR c/43288
28480         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
28481         * varasm.c (get_variable_section): Don't do that here...
28482         (make_decl_rtl): ... and here.
28483         (do_assemble_alias): Produce decl RTL.
28484         (assemble_alias): Likewise.
28485
28486 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
28487
28488         PR debug/43290
28489         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
28490         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
28491         of fde->vdrap_reg.
28492         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
28493         (based_loc_descr): Only express drap or vdrap regno based expressions
28494         using DW_OP_fbreg when not optimizing.
28495         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
28496         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
28497         REG_CFA_SET_VDRAP note.
28498
28499 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
28500
28501         PR tree-optimization/43236
28502         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
28503         error in calculation of base address in reverse iteration case.
28504         (generate_builtin): Take number of latch executions if the statement
28505         is in the latch.
28506
28507 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
28508
28509         PR middle-end/42859
28510         * tree-eh.c: Include pointer-set.h.
28511         (lower_eh_dispatch): Filter out duplicate case labels and
28512         remove the unneeded edge when the label is unused.  Return
28513         true when some edges are removed.
28514         (execute_lower_eh_dispatch): When any lowering resulted in
28515         removing an edge, also delete unreachable blocks.
28516
28517 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
28518
28519         PR bootstrap/43287
28520         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28521         UNSPEC_MACHOPIC_OFFSET.
28522
28523 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
28524
28525         PR target/43294
28526         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
28527         (m68k_delegitimize_address): New function.
28528
28529 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
28530
28531         PR debug/43299
28532         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
28533
28534         PR debug/43299
28535         * var-tracking.c (adjust_sets): New function.
28536         (count_with_sets, add_with_sets): Use it.
28537         (get_adjusted_src): New inline function.
28538         (add_stores): Use it.
28539
28540         PR debug/43304
28541         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
28542         call cselib_dummy_expand_value_rtx_cb instead of
28543         cselib_expand_value_rtx_cb.
28544
28545         PR debug/43293
28546         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
28547         * config/i386/i386.c: Include debug.h and dwarf2out.h.
28548         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
28549         and .cfi_endproc around the pic thunks.
28550         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
28551         all queued unwind info register saves are saved before the call.
28552         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
28553         considered as sp-=4 for unwind info and the pop as sp+=4 which
28554         also clobbers dest, but doesn't actually restore it.
28555
28556         PR debug/43290
28557         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
28558         RTX_FRAME_RELATED_P.
28559
28560 2010-03-09  Jie Zhang  <jie@codesourcery.com>
28561
28562         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
28563         whitespaces in output template.
28564
28565 2010-03-09  Jie Zhang  <jie@codesourcery.com>
28566
28567         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
28568         out array boundary.
28569
28570 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
28571
28572         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
28573         builtins.exp in a separate job.
28574
28575 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28576
28577         * graphite-sese-to-poly.c (add_param_constraints): Use
28578         lower_bound_in_type and upper_bound_in_type.
28579
28580 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28581
28582         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
28583         instead of unsigned_type_node.
28584
28585 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28586             Reza Yazdani  <reza.yazdani@amd.com>
28587
28588         PR middle-end/43065
28589         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
28590         on pointer type parameters.
28591
28592 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
28593
28594         PR middle-end/42644
28595         PR middle-end/42130
28596         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
28597         handle conversions from pointer to integers.
28598         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
28599         induction variable, to be able to work with code generated by CLooG.
28600         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
28601         (build_poly_scop): Bail out if we cannot codegen a loop.
28602
28603 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
28604
28605         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
28606         code generation with gloog_error.
28607
28608 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28609
28610         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
28611         Call fold_convert on all the returned values.
28612         (expand_scalar_variables_expr): Pass to
28613         expand_scalar_variables_ssa_name the type of the resulting expression.
28614
28615 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28616
28617         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
28618         ppl_min_for_le_pointset.
28619         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
28620         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
28621
28622 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28623
28624         * graphite-dependences.c (map_into_dep_poly): Removed.
28625         (dependence_polyhedron_1): Use combine_context_id_scat.
28626
28627 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28628
28629         * graphite-poly.h (struct poly_scattering): Add layout documentation.
28630         (struct poly_bb): Same.
28631         (combine_context_id_scat): New.
28632
28633 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28634
28635         PR middle-end/42326
28636         * sese.c (name_defined_in_loop_p): Return false for default
28637         definitions.
28638
28639 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28640
28641         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
28642         and clean up the logic.
28643
28644 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28645
28646         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
28647         early return.
28648
28649 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
28650
28651         * var-tracking.c (remove_cselib_value_chains): Define only for
28652         ENABLE_CHECKING.
28653         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
28654         delete_slot_part, emit_notes_for_differences_1): Don't call
28655         remove_cselib_value_chains here.
28656         (set_slot_part, emit_notes_for_differences_2): Don't call
28657         add_cselib_value_chains here.
28658         (preserved_values): New vector.
28659         (preserve_value): New function.
28660         (add_uses, add_stores, vt_add_function_parameters): Use it
28661         instead of cselib_preserve_value.
28662         (changed_values_stack): New vector.
28663         (check_changed_vars_0): New function.
28664         (check_changed_vars_1, check_changed_vars_2): Use it.
28665         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
28666         changed_values_stack VALUEs.
28667         (vt_emit_notes): For all preserved_values call
28668         add_cselib_value_chains.  If ENABLE_CHECKING call
28669         remove_cselib_value_chains before verifying value_chains is empty.
28670         Initialize and free changed_values_stack.
28671         (vt_initialize): Initialize preserved_values.
28672         (vt_finalize): Free preserved_values.
28673
28674 2010-03-08  Richard Guenther  <rguenther@suse.de>
28675
28676         PR tree-optimization/43269
28677         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
28678         region detection.
28679
28680 2010-03-08  Martin Jambor  <mjambor@suse.cz>
28681
28682         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
28683         (ipa_is_param_called): Removed.
28684         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
28685         (ipa_print_node_params): Do not print the called flag.
28686         (ipa_write_node_info): Do not stream the called flag.
28687         (ipa_read_node_info): Likewise.
28688
28689 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
28690
28691         PR debug/43176
28692         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
28693         * cselib.c (struct expand_value_data): Add dummy field.
28694         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
28695         dummy to false.
28696         (cselib_dummy_expand_value_rtx_cb): New function.
28697         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
28698         any rtl.
28699         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
28700         * var-tracking.c: Include pointer-set.h.
28701         (variable): Change n_var_parts to char from int.  Add
28702         cur_loc_changed and in_changed_variables fields.
28703         (variable_canonicalize): Remove.
28704         (shared_var_p): New inline function.
28705         (unshare_variable): Maintain cur_loc_changed and
28706         in_changed_variables fields.  If var was in changed_variables,
28707         replace it there with new_var.  Just copy cur_loc instead of
28708         resetting it to something else.
28709         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
28710         (dataflow_set_union): Don't call variable_canonicalize.
28711         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
28712         of their DEBUG_EXPR_TREE_DECLs.
28713         (canonicalize_loc_order_check): Verify that cur_loc is NULL
28714         and in_changed_variables and cur_loc_changed is false.
28715         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
28716         and cur_loc_changed.  Don't update cur_loc here.
28717         (variable_merge_over_src): Don't call variable_canonicalize.
28718         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
28719         removing loc that is equal to cur_loc, clear cur_loc,
28720         set cur_loc_changed and ensure variable_was_changed is called.
28721         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
28722         compare pointers in cur_loc check, if it is equal to loc,
28723         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
28724         (variable_different_p): Remove compare_current_location argument,
28725         don't compare cur_loc.
28726         (dataflow_set_different_1): Adjust variable_different_p caller.
28727         (variable_was_changed): If dv had some var in changed_variables
28728         already, reset in_changed_variables flag for it and propagate
28729         cur_loc_changed over to the new variable.  On empty var
28730         always set cur_loc_changed.  Set in_changed_variables on whatever
28731         var is added to changed_variables.
28732         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
28733         Use shared_var_p.  When removing loc that is equal to cur_loc,
28734         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
28735         end, don't set it to something else, just call variable_was_changed.
28736         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
28737         loc being removed, clear cur_loc and set cur_loc_changed.
28738         Set cur_loc_changed if all locations have been removed.
28739         (struct expand_loc_callback_data): New type.
28740         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
28741         allocated.  Always create SUBREGs if simplify_subreg failed.
28742         Prefer to use cur_loc, when that fails and still in
28743         changed_variables (and seen first time) recompute it.  Set
28744         cur_loc_changed of variables which had to change cur_loc and
28745         compute elcd->cur_loc_changed if any of the subexpressions used
28746         had to change cur_loc.
28747         (vt_expand_loc): Adjust to pass arguments in
28748         expand_loc_callback_data structure.
28749         (vt_expand_loc_dummy): New function.
28750         (emitted_notes): New variable.
28751         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
28752         that weren't used for any other decl in current
28753         emit_notes_for_changes call call vt_expand_loc_dummy to update
28754         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
28755         first loc_chain location if NULL before.  Always use just
28756         cur_loc instead of first loc_chain location.  When cur_loc_changed
28757         is false, when not --enable-checking=rtl just don't emit any note.
28758         When rtl checking, compute the note and assert it is the same
28759         as previous note.  Clear cur_loc_changed and in_changed_variables
28760         at the end before removing from changed_variables.
28761         (check_changed_vars_3): New function.
28762         (emit_notes_for_changes): Traverse changed_vars to call
28763         check_changed_vars_3 on each changed var.
28764         (emit_notes_for_differences_1): Clear cur_loc_changed and
28765         in_changed_variables.  Recompute cur_loc of new_var.
28766         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
28767         (vt_emit_notes): Initialize and destroy emitted_notes.
28768
28769 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
28770
28771         PR rtl-optimization/42220
28772         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
28773         Use verify_reg_tracked to determine if we should use OP_OUT rather
28774         than OP_INOUT.
28775         (build_def_use): If we see an in-out operand for a register that we
28776         know nothing about, treat is an output if possible, fail the block if
28777         not.
28778
28779 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
28780
28781         PR debug/42897
28782         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
28783         permanently.
28784
28785 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
28786
28787         PR debug/42897
28788         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
28789         uses of relevant DEFs that are dead outside the loop too.
28790
28791 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
28792
28793         * var-tracking.c (dataflow_set_merge): Swap src and src2.
28794         Reverted:
28795         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28796         PR debug/41371
28797         * var-tracking.c (values_to_unmark): New variable.
28798         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28799         values_to_unmark vector.  Moved body to...
28800         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28801         instead queue it into values_to_unmark vector.
28802         (vt_find_locations): Free values_to_unmark vector.
28803
28804 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
28805
28806         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
28807         (site.exp): Export them when plugins are enabled.
28808
28809 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
28810
28811         PR middle-end/42326
28812         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
28813         that contain scevs.
28814         (chrec_fold_multiply): Same.
28815
28816 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
28817
28818         PR c/43248
28819         * c-decl.c (build_compound_literal): Return early if init is
28820         an error_mark_node.
28821
28822 2010-03-04  Martin Jambor  <mjambor@suse.cz>
28823
28824         PR tree-optimization/43164
28825         PR tree-optimization/43191
28826         * tree-sra.c (type_consists_of_records_p): Reject records with
28827         zero-size bit-fields at the end.
28828
28829 2010-03-04  Mike Stump  <mikestump@comcast.net>
28830
28831         * Makefile.in (TAGS): Remove *.y.
28832
28833 2010-03-04  Richard Guenther  <rguenther@suse.de>
28834
28835         PR tree-optimization/40761
28836         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
28837         in reverse order.
28838         (my_rev_post_order_compute): New function.
28839         (init_pre): Call it.
28840
28841 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
28842
28843         PR middle-end/43209
28844         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
28845         decrease the cost of an IV candidate when the cost is infinite.
28846
28847 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28848
28849         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
28850         Use '3DNow!' for the extension of that name, ensure normal space
28851         after the string.
28852         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
28853
28854 2010-03-03  Jeff Law  <law@redhat.com>
28855
28856         * PR middle-end/32693
28857         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
28858         than gen_rtx_SUBREG.
28859         (extract_bit_field_1): Likewise.
28860
28861 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
28862
28863         * doc/sourcebuild.texi (Test directives): Document that arguments
28864         include-opts and exclude-opts are now optional for dg-skip-if,
28865         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
28866
28867 2010-03-03  Jason Merrill  <jason@redhat.com>
28868
28869         PR c++/12909
28870         * cgraph.h (varpool_node): Add extra_name field.
28871         * varpool.c (varpool_extra_name_alias): New.
28872         (varpool_assemble_decl): Emit extra name aliases.
28873         (varpool_mark_needed_node): Look past an extra name alias.
28874         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
28875         * lto-streamer-in.c (lto_input_tree): Read it.
28876         * lto-streamer-out.c (output_unreferenced_globals): Write it.
28877
28878 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
28879
28880         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
28881         (sparc*-*-solaris2*): ...this.
28882
28883 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
28884
28885         PR debug/43229
28886         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
28887         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
28888         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
28889         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
28890
28891         PR debug/43237
28892         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
28893         fallthrough to default handling, just with want_address 0 instead of 2.
28894         For single element lists, add_AT_loc directly, otherwise create an
28895         artificial variable DIE and stick location list to it.
28896
28897         PR debug/43177
28898         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
28899         (VAL_EXPR_HAS_REVERSE): Define.
28900         (reverse_op): New function.
28901         (add_stores): For reversible operations add an extra MO_VAL_USE.
28902
28903 2010-03-02  Jason Merrill  <jason@redhat.com>
28904
28905         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
28906
28907 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
28908
28909         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
28910         (sparc64-*-linux*): Likewise.
28911         (sparc64-*-solaris2*): Include assembler files before linker ones.
28912         (sparc-*-solaris2*): Simplify and reorder to match previous case.
28913         * config/sparc/gas.h: Delete.
28914         * config/sparc/sol2-64.h: Add copyright notice.
28915         * config/sparc/sol2-gas-bi.h: Likewise.
28916         * config/sparc/sol2-gld.h: Likewise.
28917         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
28918         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
28919         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
28920         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
28921         (sparc_elf_asm_named_section): Rename into...
28922         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
28923
28924 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
28925
28926         * config/alpha/alpha.c (override_options): Fix -mtune error message.
28927
28928 2010-03-02  Jeff Law  <law@redhat.com>
28929
28930         PR middle-end/42431
28931         * reload1.c (rtx_p, substitute_stack): Declare.
28932         (substitute): Record addresses of changed rtxs.
28933         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
28934         Restore the original rtx when complete.
28935         (reload): Free subsitute_stack when complete.
28936
28937 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
28938
28939         * doc/gccint.texi (menu): Add Testsuites as a chapter.
28940         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
28941         new chapter.
28942         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
28943         LTO Testing, gcov Testing, profopt Testing, compat Testing,
28944         Torture Tests): Change from subsection to section.
28945
28946 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
28947             Steven Bosscher  <steven@gcc.gnu.org>
28948
28949         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
28950         instead of bb.
28951
28952 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
28953
28954         PR middle-end/42640
28955         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
28956         the assignment from the new induction variable to the assignment
28957         of the value from the original loop PHI function.
28958
28959 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
28960             Daniel Jacobowitz  <dan@codesourcery.com>
28961
28962         * doc/sourcebuild.texi (Test directives): Clarify options to
28963         dg-skip-if.
28964
28965 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28966
28967         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
28968         Disable cfi directives unless GCC and gas agree on using read-only
28969         .eh_frame sections for 64-bit.
28970         * configure: Regenerate.
28971
28972 2010-03-01  Richard Guenther  <rguenther@suse.de>
28973
28974         PR tree-optimization/43220
28975         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
28976         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
28977
28978 2010-03-01  Richard Guenther  <rguenther@suse.de>
28979             Martin Jambor  <mjambor@suse.cz>
28980
28981         PR middle-end/41250
28982         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
28983         gimplified parameters.
28984
28985 2010-03-01  Christian Bruel  <christian.bruel@st.com>
28986
28987         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
28988
28989 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
28990
28991         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
28992
28993 2010-03-01  Richard Guenther  <rguenther@suse.de>
28994
28995         PR middle-end/43213
28996         * expr.c (expand_assignment): Use the alias-oracle to tell
28997         if the rhs aliases the result decl.
28998
28999 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29000
29001         PR pch/14940
29002         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
29003         to sol_gt_pch_get_address.
29004         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
29005         64-bit, SPARC and x86.
29006         (sol_gt_pch_get_address): New function.
29007
29008 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
29009
29010         * toplev.h (inform_n, error_n): Declare.
29011         * diagnostic.c (inform_n, error_n): New function.
29012
29013 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
29014
29015         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
29016         has no rtl yet when processing local_decls, queue it and recheck
29017         if deferred stack allocation hasn't assigned it rtl.
29018
29019 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
29020
29021         * config/sh/sh.c (unspec_bbr_uid): New.
29022         (gen_block_redirect): Use it instead of INSN_UID.
29023         (gen_far_branch): Likewise.
29024
29025 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
29026
29027         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
29028         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
29029
29030 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29031
29032         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
29033         (Warning Options): -Wno-conversion-null is valid for
29034         Objective-C++ as well.
29035         * doc/tm.texi (Named Address Spaces): Likewise.
29036         * doc/plugins.texi (Plugins): Replace TABs with spaces.
29037         * doc/tree-ssa.texi (Tree SSA): Likewise.
29038
29039 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
29040
29041         PR bootstrap/43202
29042         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
29043         by default.  Don't set the default arch for
29044         i[34567]86-*-darwin*|x86_64-*-darwin*.
29045
29046 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
29047
29048         PR bootstrap/43202
29049         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
29050         default.  Set the default 32bit/64bit archs with $with_arch
29051         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
29052
29053 2010-02-27  Richard Guenther  <rguenther@suse.de>
29054
29055         PR tree-optimization/43186
29056         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
29057         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
29058         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
29059         unroller iterations.
29060
29061 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
29062
29063         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
29064         required and i[34567]86-*-* targets don't support 64bit ISA.
29065
29066 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
29067
29068         PR ada/43096
29069         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
29070         the same alias set.
29071
29072 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
29073
29074         * config.gcc: Set the default arch at least to Prescott for
29075         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
29076         if SSE math is enabled.
29077
29078 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29079
29080         * diagnostic.c (diagnostic_initialize): Update.
29081         (diagnostic_report_diagnostic): Test inhibit_notes_p for
29082         informative notes.
29083         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
29084         (diagnostic_inhibit_notes): New.
29085         * toplev.c (process_options): inhibit notes with -fcompare-debug.
29086
29087 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29088
29089         PR c/20631
29090         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
29091         * doc/standards.texi: Likewise.
29092         * doc/extend.texi: Likewise.
29093         * doc/trouble.texi: Likewise.
29094         * doc/cppopts.texi: Likewise.
29095         * doc/install.texi: Likewise.
29096         * c.opt (std=c90,std=gnu90): New options.
29097         * c-opts.c (c_common_handle_option): Handle them.
29098
29099 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29100
29101         PR c/24577
29102         * c-decl.c (undeclared_variable): Use an informative note.
29103
29104 2010-02-26  Richard Guenther  <rguenther@suse.de>
29105
29106         PR tree-optimization/43186
29107         * gimple.h (gimple_fold): Remove.
29108         * gimple.c (gimple_fold): Remove.  Inline into single user ...
29109         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
29110         Try harder for conditions.
29111
29112 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
29113
29114         PR debug/43190
29115         * function.c (used_types_insert): Don't skip through named pointer
29116         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
29117         and it is different from the main variant's type.
29118
29119 2010-02-26  Nick Clifton  <nickc@redhat.com>
29120
29121         * config/rx/rx.md (sminsi3): Remove bogus alternative.
29122
29123 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
29124
29125         * config.gcc: Support --with-fpmath=sse for x86.
29126
29127         * config/i386/ssemath.h: New.
29128
29129         * doc/install.texi (--with-fpmath=sse): Documented.
29130
29131 2010-02-26  Richard Guenther  <rguenther@suse.de>
29132
29133         PR tree-optimization/43188
29134         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
29135         vector types of over-aligned element type.
29136
29137 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
29138
29139         PR target/43175
29140         * config/i386/i386.c (expand_vec_perm_blend): Use correct
29141         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
29142
29143 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
29144
29145         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
29146
29147 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
29148
29149         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
29150         * var-tracking.c: Include diagnostic.h.
29151         (debug_dv): New function.
29152         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
29153
29154         PR debug/43160
29155         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
29156         (add_value_chain, add_value_chains, remove_value_chain,
29157         remove_value_chains): Handle DEBUG_EXPRs.
29158         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
29159
29160         PR debug/43161
29161         * regcprop.c (struct queued_debug_insn_change): New type.
29162         (struct value_data_entry): Add debug_insn_changes field.
29163         (struct value_data): Add n_debug_insn_changes field.
29164         (debug_insn_changes_pool): New variable.
29165         (free_debug_insn_changes, apply_debug_insn_changes,
29166         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
29167         (kill_value_one_regno): Call free_debug_insn_changes if needed.
29168         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
29169         fields.
29170         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
29171         changes for them.
29172         (copyprop_hardreg_forward_1): Don't call apply_change_group for
29173         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
29174         changes, call cprop_find_used_regs via note_stores.
29175         (copyprop_hardreg_forward): When copying vd from predecessor
29176         which has any queued DEBUG_INSN changes, make sure the pointers are
29177         cleared.  At the end call df_analyze and then if there are any
29178         DEBUG_INSN changes queued at the end of some basic block for still
29179         live registers, apply them.
29180         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
29181
29182 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
29183
29184         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
29185         (arm*-*-*): Ditto.
29186
29187 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
29188
29189         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
29190         targets.  Set the default with_cpu/with_arch from arch/cpu.
29191         Allow x86-64 and native for with_cpu/with_arch.
29192
29193 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
29194
29195         * ebitmap.c: Change calls to verify_popcount with calls to
29196         sbitmap_verify_popcount.
29197         (ebitmap_clear_bit): Fixed map->cacheindex test and
29198         map>cache update when bit clearing results in an empty
29199         element.
29200
29201 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
29202
29203         PR target/43154
29204         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
29205         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
29206         and support both V2DF and V2DI modes.
29207         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
29208         support both V2DF and V2DI modes.
29209         (general): Delete trailing whitespace from a few patterns.
29210
29211         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29212         V2DF/V2DI interleave high/low builtins.
29213
29214         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
29215         new VSX builtins.
29216
29217         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
29218         interleave high/low functions.
29219
29220 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
29221
29222         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
29223         #pragma extern_prefix.
29224
29225 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
29226
29227         PR debug/43166
29228         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
29229         BLKmode, assert op0 is a MEM and just adjust its mode.
29230
29231         PR debug/43165
29232         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
29233         if bitpos isn't multiple of mode's bitsize.
29234
29235 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29236
29237         * c.opt (-ftemplate-depth=): New.
29238         (-ftemplate-depth-): Deprecate.
29239         * optc-gen.awk: Handle -ftemplate-depth=.
29240         * opth-gen.awk: Likewise.
29241         * c-opts.c (c_common_handle_option): Likewise.
29242         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
29243
29244 2010-02-24  Jason Merrill  <jason@redhat.com>
29245
29246         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
29247
29248 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29249
29250         * cfg.c (alloc_aux_for_block): Remove inline.
29251         (alloc_aux_for_edge): Likewise.
29252
29253 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29254
29255         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
29256
29257 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29258
29259         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
29260         * config/i386/sol2-gas.h: New file.
29261         * config.gcc (i[34567]86-*-solaris2*): Use it.
29262
29263 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29264
29265         PR c/43128
29266         * c-typeck.c (ep_convert_and_check): New.
29267         (build_conditional_expr): Use it.
29268         (build_binary_op): Likewise.
29269
29270 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
29271
29272         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
29273
29274         PR debug/43150
29275         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
29276         bounds even for -O+.
29277         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
29278         expr needs to have DECL_NAME set.
29279
29280 2010-02-24  Nick Clifton  <nickc@redhat.com>
29281
29282         * config/mep/mep.c: Include gimple.h.
29283         (mep_function_uses_sp): Delete unused function.
29284         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
29285         parameters.  Use unsigned integers to count args.  Return a
29286         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
29287
29288 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
29289
29290         PR target/43107
29291         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
29292         greater or equal to nelt instead of 2 * nelt.
29293         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
29294         with nelt - 1.
29295
29296 2010-02-23  Jason Merrill  <jason@redhat.com>
29297
29298         PR debug/42800
29299         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
29300         in cfun->local_decls even if they have register types.
29301
29302         PR c++/42837
29303         * stor-layout.c (place_field): Don't warn about unnecessary
29304         DECL_PACKED if the type is packed.
29305
29306 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
29307
29308         PR target/43139
29309         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
29310         GOTOFF relocs, even when the base reg isn't pic pointer.
29311
29312 2010-02-23  Michael Matz  <matz@suse.de>
29313
29314         PR debug/43077
29315         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
29316         (expand_gimple_basic_block): Generate and use debug temps if there
29317         are debug uses left after the last real use of TERed ssa names.
29318         Unlink debug immediate uses when they are expanded.
29319
29320 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29321
29322         PR 43123
29323         * config/i386/i386.c (override_options): Reorganise to provide
29324         better error messages.
29325
29326 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
29327
29328         PR middle-end/43083
29329         * graphite-scop-detection.c (create_single_exit_edge): Move
29330         the call to find_single_exit_edge to....
29331         (create_sese_edges): ...here.  Don't handle multiple edges
29332         exiting the function.
29333         (build_graphite_scops): Don't handle multiple edges
29334         exiting the function.
29335
29336 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
29337
29338         PR middle-end/43097
29339         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
29340         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
29341
29342 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
29343
29344         PR middle-end/43026
29345         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
29346
29347 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29348
29349         PR c++/43126
29350         * c-typeck.c (convert_arguments): Print declaration location.
29351         * c-common.c (validate_nargs): Rename as
29352         builtin_function_validate_nargs.
29353         (check_builtin_function_arguments): Update.
29354
29355 2010-02-22  Richard Guenther  <rguenther@suse.de>
29356
29357         PR lto/43045
29358         * tree-inline.c (declare_return_variable): Use the type of
29359         the call stmt lhs if available.
29360
29361 2010-02-22  Duncan Sands  <baldrick@free.fr>
29362
29363         * passes.c (register_pass): Always consider all pass lists when
29364         ref_pass_instance_number is zero.
29365
29366 2010-02-22  Richard Guenther  <rguenther@suse.de>
29367
29368         PR tree-optimization/42749
29369         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
29370         parameter.  Do arithmetic in the original type.
29371         (update_accumulator_with_ops): Likewise.
29372         (adjust_accumulator_values): Adjust.
29373
29374 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29375
29376         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
29377         (QI to BLKmode splitter): New splitter.
29378
29379 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
29380
29381         * config/i386/i386.c (initial_ix86_tune_features): Turn on
29382         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
29383
29384 2010-02-22  Richard Guenther  <rguenther@suse.de>
29385
29386         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
29387
29388 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
29389
29390         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
29391         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
29392         ($(T)crti.o, $(T)crtn.o): Remove rules.
29393
29394 2010-02-21  Tobias Burnus  <burnus@net-b.de>
29395
29396         PR fortran/35259
29397         * doc/invoke.texi (-fassociative-math): Document that this
29398         option is automatically enabled for Fortran.
29399
29400 2010-02-20  David S. Miller  <davem@davemloft.net>
29401
29402         * configure.ac: Test if linker and assembler properly support
29403         GOTDATA_OP relocations.
29404         * configure: Rebuild.
29405         * config.in: Likewise.
29406         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
29407         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
29408         (movsi_high_pic): Likewise.
29409         (movdi_lo_sum_pic): Likewise.
29410         (movdi_high_pic): Likewise.
29411         (movsi_pic_gotdata_op): New pattern.
29412         (movdi_pic_gotdata_op): Likewise.
29413         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
29414         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
29415
29416 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
29417
29418         PR target/43067
29419         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
29420         attribute to ssemul.
29421         (xop_mulv2div2di3_high): Ditto.
29422
29423 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29424
29425         PR c++/35669
29426         * c.opt (Wconversion-null): New option.
29427         * doc/invoke.texi (Wconversion-null): Document.
29428
29429 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29430
29431         * common.opt (Wlarger-than-): Add Undocumented.
29432
29433 2010-02-19  Mike Stump  <mikestump@comcast.net>
29434
29435         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
29436
29437 2010-02-19  Jason Merrill  <jason@redhat.com>
29438
29439         PR target/40332
29440         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
29441         * configure: Likewise.
29442
29443 2010-02-20  Alan Modra  <amodra@gmail.com>
29444
29445         PR middle-end/42344
29446         * cgraph.h (cgraph_make_decl_local): Declare.
29447         * cgraph.c (cgraph_make_decl_local): New function.
29448         (cgraph_make_node_local): Use it.
29449         * cgraphunit.c (cgraph_function_versioning): Likewise.
29450         * ipa.c (function_and_variable_visibility): Likewise.
29451
29452 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
29453
29454         PR bootstrap/43121
29455         * except.c (sjlj_emit_function_enter): Don't call
29456         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
29457         directly.
29458         * rtl.h (add_reg_br_prob_note): Remove prototype.
29459
29460 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29461
29462         PR 41779
29463         * c-common.c (conversion_warning): Remove widening conversions
29464         before checking the conversion of integers to reals.
29465
29466 2010-02-19  Mike Stump  <mikestump@comcast.net>
29467
29468         PR middle-end/43125
29469         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
29470
29471         PR objc/43061
29472         * cgraphunit.c (process_function_and_variable_attributes): Check
29473         DECL_PRESERVE_P instead of looking up attribute "used".
29474         * ipa-pure-const.c (check_decl): Likewise.
29475         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
29476         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
29477         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
29478         instead of attribute "used".
29479         * config/sol2-c.c (solaris_pragma_init): Likewise.
29480         (solaris_pragma_fini): Likewise.
29481
29482 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
29483
29484         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
29485         Use XCNEW instead of xcalloc.
29486         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
29487         XNEW instead of xmalloc.
29488         (get_fields): Use XNEWVEC instead of xmalloc.
29489
29490         PR debug/43084
29491         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
29492         populate vars array.
29493         (create_new_general_access): For debug stmts just reset value.
29494         (get_stmt_accesses): For accesses within debug stmts just record them
29495         using add_access_to_acc_sites instead of preventing the peeling or
29496         counting them as accesses.
29497
29498         PR middle-end/42233
29499         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
29500
29501 2010-02-19  Richard Guenther  <rguenther@suse.de>
29502
29503         PR tree-optimization/42916
29504         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
29505         instructions.
29506
29507 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
29508
29509         * configure.ac: Replace all uses of changequote in macro arguments
29510         with proper quoting.
29511
29512 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
29513
29514         PR middle-end/42233
29515         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
29516
29517 2010-02-19  Richard Guenther  <rguenther@suse.de>
29518
29519         PR tree-optimization/42944
29520         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
29521         test for aliasing with errno.
29522
29523 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
29524
29525         PR middle-end/42233
29526         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
29527         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
29528         * dojump.c: Include output.h.
29529         (inv): New inline function.
29530         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
29531         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
29532         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
29533         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
29534         argument, pass it down to other calls.
29535         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
29536         add REG_BR_PROB note to the conditional jump.
29537         * cfgexpand.c (add_reg_br_prob_note): Removed.
29538         (expand_gimple_cond): Don't call it, add the probability
29539         as last argument to jumpif_1/jumpifnot_1.
29540         * Makefile.in (dojump.o): Depend on output.h.
29541         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
29542         callers.
29543         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
29544         * stmt.c (do_jump_if_equal): Likewise.
29545         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
29546         * loop-unswitch.c (compare_and_jump_seq): Likewise.
29547         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
29548         Likewise.
29549         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
29550         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
29551         jumpifnot_1 callers.
29552         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
29553         callers.
29554         (store_expr): Adjust jumpifnot caller.
29555         (store_constructor): Adjust jumpif caller.
29556
29557         PR middle-end/42233
29558         * gimplify.c (gimple_boolify): For __builtin_expect call
29559         gimple_boolify also on its first argument.
29560
29561 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
29562
29563         * configure.ac (gnu-unique-object): Wrap regexps using [] in
29564         changequote block.
29565         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
29566         * configure: Regenerated.
29567
29568 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29569
29570         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
29571         lang_hooks.types_compatible_p instead of comptypes.
29572
29573 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29574
29575         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
29576         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
29577         if __prefer_thumb__ is defined.
29578
29579 2010-02-18  Martin Jambor  <mjambor@suse.cz>
29580
29581         PR tree-optimization/43066
29582         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
29583         array with zero-sized element type.
29584
29585 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
29586
29587         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
29588         rtx, allocate struct var_loc_node here and return it to the
29589         caller, and only if it is actually needed.
29590         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
29591         move it earlier and return immediately if it returns NULL.
29592
29593 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
29594
29595         * config/sparc/gas.h: New file.  Restore
29596         TARGET_ASM_NAMED_SECTION to its ELF default.
29597         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
29598         check !HAVE_GNU_AS.
29599         * config/sparc/sparc.c (sparc_elf_asm_named_section):
29600         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
29601         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
29602         after sparc/sysv4.h.
29603
29604 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
29605
29606         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
29607
29608 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
29609
29610         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
29611         patterns from predicated pattern.
29612
29613 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
29614
29615         PR target/43103
29616         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
29617         for insn mnemonic suffix.
29618
29619 2010-02-17  Richard Guenther  <rguenther@suse.de>
29620
29621         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
29622         to loop PHI nodes.
29623
29624 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
29625
29626         PR debug/42918
29627         * caller-save.c (save_call_clobbered_regs): If BB ends with
29628         a DEBUG_INSN, move any notes in between last real insn and the last
29629         DEBUG_INSN after the last DEBUG_INSN.
29630
29631 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
29632
29633         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
29634         Fix return type.  Fix argument type.  Explain meaning of return value.
29635
29636 2010-02-16  Richard Guenther  <rguenther@suse.de>
29637
29638         PR tree-optimization/41043
29639         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
29640         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
29641         statements ...
29642         (vrp_visit_phi_node): ... but only for loop PHI nodes.
29643
29644 2010-02-16  Ira Rosen  <irar@il.ibm.com>
29645
29646         PR tree-optimization/43074
29647         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
29648         * tree-vect-loop.c (vect_analyze_loop_operations): Add
29649         vectorizable cycles in hybrid SLP check.
29650         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
29651
29652 2010-02-16  Richard Guenther  <rguenther@suse.de>
29653
29654         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
29655         (true_dependence): If memrefs_conflict_p computes must-alias
29656         trust it.  Move TBAA check after offset-based disambiguation.
29657         (canon_true_dependence): Likewise.
29658
29659 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
29660
29661         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
29662         * doc/invoke.texi: Document it.
29663         * var-tracking.c: Include toplev.h and params.h.
29664         (vt_find_locations): Return bool indicating success.  Compute
29665         hash sizes unconditionally.  Check new parameter, report.
29666         (variable_tracking_main_1): Check vt_find_locations results and
29667         retry.  Renamed from...
29668         (variable_tracking_main): ... this.  New wrapper to preserve
29669         flag_var_tracking_assignments.
29670         * Makefile.in (var-tracking.o): Adjust dependencies.
29671
29672 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
29673             Jakub Jelinek  <jakub@redhat.com>
29674
29675         PR target/42854
29676         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
29677         if weak_import attribute is present.
29678         * config/darwin.c (machopic_select_section): Likewise.
29679
29680 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
29681
29682         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
29683         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
29684         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
29685         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
29686
29687         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
29688         types.
29689
29690         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29691         Fix argument types.
29692
29693         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
29694         Rewrite text to refer to the names.
29695
29696 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
29697
29698         * config/i386/i386-builtin-types.def
29699         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
29700         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
29701         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
29702         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
29703         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
29704         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
29705         IX86_BUILTIN_VPERMIL2PS256.
29706         (MULTI_ARG_4_DF2_DI_I): Defined.
29707         (MULTI_ARG_4_DF2_DI_I1): Defined.
29708         (MULTI_ARG_4_SF2_SI_I): Defined.
29709         (MULTI_ARG_4_SF2_SI_I1): Defined.
29710         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
29711         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
29712         __builtin_ia32_vpermil2ps256.
29713         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29714         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29715         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
29716         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29717         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29718         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
29719         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
29720         CODE_FOR_xop_vpermil2v8sf3.
29721         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
29722         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
29723         * config/i386/xopintrin.h (_mm_permute2_pd): New.
29724         (_mm256_permute2_pd): New.
29725         (_mm_permute2_ps): New.
29726         (_mm256_permute2_ps): New.
29727
29728 2010-02-15  Nick Clifton  <nickc@redhat.com>
29729
29730         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
29731         boolean parameters.  Use emit_jump_insn when emitting a pop
29732         instruction containing a return insn.
29733         (push): Use 'true' rather than '1' as second parameter to F.
29734         (h8300_expand_prologue): Likewise.
29735         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
29736         (h8300_expand_epilogue): Likewise.
29737
29738 2010-02-15  Richard Guenther  <rguenther@suse.de>
29739
29740         PR middle-end/43068
29741         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
29742         if that is zero.
29743
29744 2010-02-15  Nick Clifton  <nickc@redhat.com>
29745
29746         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
29747         delta.
29748
29749 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
29750
29751         * intl.c (fake_ngettext): New function.
29752         * intl.h (fake_ngettext): Declare.
29753         (ngettext): Define macro.
29754         * collect2.c (notice_translated): New function.
29755         (main): Use notice_translated and ngettext.
29756         * collect2.h (notice_translated): Declare.
29757
29758 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
29759
29760         * reorg.c (delete_computation): Comment fixes.
29761         * caller-save.c (setup_save_areas): Idem.
29762         * sel-sched-dump.c (dump_lv_set): Idem.
29763         * rtl.def: Idem.
29764
29765 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29766
29767         * config/s390/s390.c (s390_sched_init): New function.
29768         (TARGET_SCHED_INIT): Target hook defined.
29769
29770 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
29771             Jack Howarth  <howarth@bromo.med.uc.edu>
29772             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
29773
29774         PR target/42982
29775         Partial revert of unintended change in fix for PR41605.
29776         * config/darwin.h: Fix typo.
29777         * config/darwin9.h: Same.
29778
29779 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
29780
29781         * c-pch.c (pch_init): Clear v.
29782
29783 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
29784
29785         PR middle-end/42930
29786         * graphite-scop-detection.c (graphite_can_represent_scev): Call
29787         graphite_can_represent_init for MULT_EXPR.
29788
29789 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
29790
29791         PR middle-end/42914
29792         PR middle-end/42530
29793         * graphite-sese-to-poly.c (remove_phi): New.
29794         (translate_scalar_reduction_to_array): Call remove_phi.
29795
29796 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
29797
29798         PR middle-end/42771
29799         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
29800         * graphite-clast-to-gimple.h (gloog): Update declaration.
29801         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
29802         * graphite-poly.h (struct poly_bb): Add missing comments.
29803         (struct scop): Add poly_scop_p field.
29804         (POLY_SCOP_P): New.
29805         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
29806         * graphite.c (graphite_transform_loops): Build the polyhedral
29807         representation for each scop before code generation.
29808         * sese.c (rename_variables_in_operand): Removed.
29809         (rename_variables_in_expr): Return the renamed expression.
29810         (rename_sese_parameters): New.
29811         * sese.h (rename_sese_parameters): Declared.
29812
29813 2010-02-11  Richard Guenther  <rguenther@suse.de>
29814
29815         PR tree-optimization/42998
29816         * tree-ssa-pre.c (create_expression_by_pieces): Treat
29817         POINTER_PLUS_EXPR properly.
29818
29819 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
29820             Changpeng Fang  <changpeng.fang@amd.com>
29821
29822         PR middle-end/40886
29823         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
29824         the cost of an IV candidate when the IV is used in a test against zero.
29825
29826         * gcc.dg/tree-ssa/ivopts-3.c: New.
29827
29828 2010-02-11  Richard Guenther  <rguenther@suse.de>
29829
29830         PR lto/41664
29831         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
29832         pointer-vs-decl case by swapping refs.  Handle some cases
29833         of pointer-vs-decl disambiguations more conservatively.
29834         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
29835         to false after expanding.
29836
29837 2010-02-11  Richard Guenther  <rguenther@suse.de>
29838
29839         PR driver/43021
29840         * gcc.c (process_command): Handle LTO file@offset case more
29841         appropriately.
29842
29843 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
29844
29845         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
29846         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
29847         of DEBUG_INSNs.
29848         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
29849
29850         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
29851         if MEM's mode size isn't DWARF2_ADDR_SIZE.
29852         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
29853         Optimize eq/ne comparisons when both arguments are known to be
29854         zero-extended.
29855         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
29856         Don't mask operands unnecessarily if they are known to be already
29857         zero-extended.
29858
29859 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
29860
29861         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
29862         instead of loop.
29863
29864 2010-02-10  Richard Guenther  <rguenther@suse.de>
29865
29866         PR tree-optimization/43017
29867         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
29868         for wrapping signed arithmetic.
29869
29870 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
29871
29872         PR debug/43010
29873         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
29874         if no debug info should be emitted for it.
29875
29876 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
29877
29878         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
29879         note when flag_exceptions is set.
29880
29881 2010-02-10  Duncan Sands  <baldrick@free.fr>
29882
29883         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
29884
29885 2010-02-10  Richard Guenther  <rguenther@suse.de>
29886
29887         PR c/43007
29888         * tree.c (get_unwidened): Handle constants.
29889         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
29890
29891 2010-02-10  Martin Jambor  <mjambor@suse.cz>
29892
29893         PR lto/42985
29894         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
29895         check for variable argument counts independently.
29896
29897 2010-02-10  Christian Bruel  <christian.bruel@st.com>
29898
29899         PR target/42841
29900         * config/sh/sh.c (find_barrier): Increase length for non delayed
29901         conditional branches.
29902
29903 2010-02-10  Christian Bruel  <christian.bruel@st.com>
29904
29905         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
29906
29907 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
29908
29909         * builtins.c (set_builtin_user_assembler_name): Also handle
29910         ffs if int is smaller than word.
29911
29912 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
29913
29914         PR middle-end/42973
29915         * ira-conflicts.c (get_dup): Remove.
29916         (process_reg_shuffles): Add new parameter.  Use it as an
29917         additional guard for copy generation.
29918         (add_insn_allocno_copies): Rewrite.
29919
29920 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
29921
29922         * common.opt (fsched2-use-traces): Preserved for backward
29923         compatibility.
29924         * doc/invoke.texi: Remove the documentation about option
29925         -fsched2-use-traces.
29926         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
29927         flag_sched2_use_traces.
29928         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
29929         the backward compatibility flag section.
29930
29931 2010-02-09  Richard Guenther  <rguenther@suse.de>
29932
29933         PR tree-optimization/43008
29934         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
29935         make HEAP variables initialized from global memory if they
29936         are not known builtin functions.
29937         (find_func_aliases): Adjust.
29938
29939 2010-02-09  Richard Guenther  <rguenther@suse.de>
29940
29941         PR tree-optimization/43000
29942         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
29943         arithmetic manually.
29944
29945 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
29946
29947         PR tree-optimization/42931
29948         * tree-loop-linear.c (try_interchange_loops): Don't call
29949         double_int_mul if estimated_loop_iterations failed.
29950
29951 2010-02-08  Martin Jambor  <mjambor@suse.cz>
29952
29953         PR middle-end/42898
29954         * tree-sra.c (build_accesses_from_assign): Do not mark in
29955         should_scalarize_away_bitmap if stmt has volatile ops.
29956         (sra_modify_assign): Do not process assigns piecemeal if if stmt
29957         has volatile ops.
29958
29959 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29960
29961         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
29962
29963 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
29964
29965         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
29966         before the pattern.
29967
29968 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
29969
29970         PR middle-end/42946
29971         * df-core.c (df_finish_pass): Change type of saved_flags to int.
29972
29973 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
29974
29975         PR middle-end/42988
29976         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
29977         to unknown_dependence.
29978         (graphite_legal_transform_dr): Handle the unknown_dependence.
29979         (graphite_carried_dependence_level_k): Same.
29980
29981 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
29982
29983         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
29984
29985 2010-02-07  Richard Guenther  <rguenther@suse.de>
29986
29987         PR middle-end/42991
29988         * expr.c (get_inner_reference): Always initialize *pbitsize.
29989
29990 2010-02-07  Richard Guenther  <rguenther@suse.de>
29991
29992         PR middle-end/42956
29993         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
29994         new ARRAY_REFs on variable size element or minimal index arrays.
29995         Complete.
29996         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
29997         gimple_fold_indirect_ref.
29998
29999 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
30000
30001         PR target/42957
30002         * arm.c (arm_override_options): Just return if the user has specified
30003         an invalid fpu name.
30004
30005 2010-02-03  Jason Merrill  <jason@redhat.com>
30006
30007         PR c++/42870
30008         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
30009         i386_pe_maybe_record_exported_symbol.
30010
30011 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
30012
30013         PR target/42924
30014         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
30015         (pa_delegitimize_address): New function.
30016
30017 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
30018
30019         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
30020         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
30021
30022 2010-02-05  Richard Guenther  <rguenther@suse.de>
30023
30024         PR lto/42762
30025         * lto-streamer-in.c (get_resolution): Deal with references
30026         to undefined functions.
30027
30028 2010-02-05  Richard Guenther  <rguenther@suse.de>
30029
30030         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
30031         (fold_const_aggregate_ref): Likewise.
30032         (ccp_fold_stmt): Substitute loads.
30033         (maybe_fold_reference): Verify types before substituting.
30034         Unshare properly.
30035         (fold_gimple_assign): Unshare properly.
30036         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
30037
30038 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
30039
30040         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
30041         for rs6000_gen_cell_microcode.
30042
30043 2010-02-04  Richard Guenther  <rguenther@suse.de>
30044
30045         PR rtl-optimization/42952
30046         * dse.c (const_or_frame_p): Remove MEM handling.
30047
30048 2010-02-04  Nick Clifton  <nickc@redhat.com>
30049
30050         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
30051         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
30052         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
30053         (mn10300_asm_output_mi_thunk): New function.
30054         (mn10300_can_output_mu_thunk): New function.
30055         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
30056         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
30057         (FUNCTION_ARG): Delete incorrect comment.
30058
30059 2010-02-03  Jason Merrill  <jason@redhat.com>
30060
30061         PR c++/40138
30062         * fold-const.c (operand_equal_p): Handle erroneous types.
30063
30064 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
30065
30066         * config/h8300/h8300.md (can_delay): Fix attibute condition.
30067
30068 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
30069
30070         PR rtl-optimization/42941
30071         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
30072         of xmalloc.
30073
30074 2010-02-03  Jason Merrill  <jason@redhat.com>
30075
30076         PR c++/35652
30077         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
30078
30079 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
30080
30081         PR debug/42896
30082         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
30083         (cselib_reset_table): Renamed from...
30084         (cselib_reset_table_with_next_value): ... this.
30085         (cselib_get_next_uid): Renamed from...
30086         (cselib_get_next_unknown_value): ... this.
30087         * cselib.c (next_uid): Renamed from...
30088         (next_unknown_value): ... this.
30089         (cselib_clear_table): Adjust.
30090         (cselib_reset_table): Adjust.  Renamed from...
30091         (cselib_reset_table_with_next_value): ... this.
30092         (cselib_get_next_uid): Adjust.  Renamed from...
30093         (cselib_get_next_unknown_value): ... this.
30094         (get_value_hash): Use hash.
30095         (cselib_hash_rtx): Likewise.
30096         (new_cselib_val): Adjust.  Set and dump uid.
30097         (cselib_lookup_mem): Pass next_uid as hash.
30098         (cselib_subst_to_values): Likewise.
30099         (cselib_log_lookup): Dump uid.
30100         (cselib_lookup): Pass next_uid as hash.  Adjust.
30101         (cselib_process_insn): Adjust.
30102         (cselib_init): Initialize next_uid.
30103         (cselib_finish): Adjust.
30104         (dump_cselib_table): Likewise.
30105         * dse.c (canon_address): Dump value uid.
30106         * print-rtl.c (print_rtx): Print value uid.
30107         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
30108         (dvuid): New type.
30109         (dv_uid): New function, sort of renamed from...
30110         (dv_htab_hash): ... this, reimplemented in terms of it and...
30111         (dv_uid2hash): ... this.  New.
30112         (variable_htab_eq): Drop excess assertions.
30113         (tie_break_pointers): Removed.
30114         (canon_value_cmp): Compare uids.
30115         (variable_post_merge_New_vals): Print uids.
30116         (vt_add_function_parameters): Adjust.
30117         (vt_initialize): Reset table.  Adjust.
30118
30119 2010-02-03  Richard Guenther  <rguenther@suse.de>
30120
30121         PR tree-optimization/42944
30122         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
30123         (call_may_clobber_ref_p_1): Likewise.  Properly handle
30124         malloc and calloc clobbering errno.
30125
30126 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
30127
30128         * doc/invoke.texi: Fix name of sched1 dump.
30129
30130         * opts.c (decode_options): Set flag_tree_switch_conversion
30131         only conditionally on optimize >= 2.
30132
30133         * gcse.c: Assorted comment fixes in pass description.
30134
30135 2010-02-03  Anthony Green  <green@moxielogic.com>
30136
30137         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
30138         nop padding in order to maintain alignment of storage location of
30139         target function address.
30140         (moxie_trampoline_init): Store target function address at newly
30141         aligned location.
30142         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
30143         to 32.
30144         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
30145
30146 2010-02-03  Richard Guenther  <rguenther@suse.de>
30147
30148         PR middle-end/42927
30149         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
30150
30151 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30152
30153         * config.gcc: Reenable check for obsolete targets.
30154         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
30155         mips-sgi-irix6.[0-4]*.
30156
30157 2010-02-02  Nick Clifton  <nickc@redhat.com>
30158
30159         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
30160         constant size of 4 as being the same as 0.
30161         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
30162         can take values in the range 0..4.
30163
30164 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
30165
30166         PR java/41991
30167         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
30168         as _darwin10_Unwind_FindEnclosingFunction().
30169         * libgcc-libsystem.ver: New.
30170
30171 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
30172
30173         PR target/41399
30174         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
30175         implicitly set registers.
30176
30177 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
30178
30179         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
30180         (arm_override_options): Allow automatic selection of the thread
30181         pointer register if thumb2.
30182         (legitimize_pic_address): Improve code sequences for Thumb2.
30183         (arm_call_tls_get_addr): Likewise.
30184         (legitimize_tls_address): Likewise.
30185         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
30186         (pic_load_addr_32bit): ... this.  New named pattern.
30187         * thumb2.md (pic_load_addr_thumb2): Delete.
30188         (pic_load_dot_plus_four): Delete.
30189         (tls_load_dot_plus_four): New named pattern.
30190
30191 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30192
30193         PR libgomp/29986
30194         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
30195         Document fix for TLS bug.
30196
30197 2010-01-31  Richard Guenther  <rguenther@suse.de>
30198
30199         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
30200         conservatively correct.
30201
30202 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30203
30204         PR target/42850
30205         Revert:
30206         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30207
30208         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
30209
30210 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
30211
30212         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
30213
30214 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
30215
30216         * config.gcc: Adjust order of makefile fragments for mingw targets.
30217
30218 2010-01-31  Richard Guenther  <rguenther@suse.de>
30219
30220         PR middle-end/42898
30221         * gimplify.c (gimplify_init_constructor): For volatile LHS
30222         initialize a temporary.
30223
30224 2010-01-31  Matthias Klose  <doko@ubuntu.com>
30225
30226         * configure.ac: Fix __stack_chk_fail check for cross builds configured
30227         --with-headers
30228         * configure: Regenerate.
30229
30230 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
30231
30232         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
30233         the same alias set and their sizes different constantness.
30234         (aliasing_component_refs_p): Revert 2009-10-24 change.
30235
30236 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30237
30238         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
30239         unused.
30240
30241 2010-01-29  Richard Guenther  <rguenther@suse.de>
30242
30243         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
30244         Assert we successfully updated the call.
30245
30246 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
30247
30248         PR rtl-optimization/42889
30249         * df.h (df_set_bb_dirty_nonlr): New prototype.
30250         * df-core.c (df_set_bb_dirty_nonlr): New function.
30251         * df-scan.c (df_insn_rescan): Call it instead of
30252         df_set_bb_dirty for DEBUG_INSNs.
30253
30254 2010-01-29  Richard Guenther  <rguenther@suse.de>
30255
30256         PR middle-end/37448
30257         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
30258         quadratic behavior in most cases.
30259
30260 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
30261
30262         PR target/42891
30263         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
30264         in the call to gen_x86_movsicc_0_m1.
30265
30266 2010-01-28  Richard Guenther  <rguenther@suse.de>
30267
30268         PR tree-optimization/42871
30269         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
30270
30271 2010-01-28  Richard Guenther  <rguenther@suse.de>
30272
30273         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
30274         into call arguments.
30275
30276 2010-01-28  Richard Guenther  <rguenther@suse.de>
30277
30278         PR middle-end/42883
30279         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
30280         the forwarder if the destination is an EH landing pad.
30281
30282 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
30283
30284         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
30285         block list passed to gimple_duplicate_sese_tail.
30286         (parallelize_loops): Avoid parallelization when the function
30287         has_nonlocal_label.
30288         Avoid parallelization when the preheader is IRREDUCIBLE.
30289         Try to optimize when estimated_loop_iterations_int is unresolved.
30290         Add the loop's location to the dump file.
30291         * tree-cfg.c (add_phi_args_after_redirect): Remove.
30292         (gimple_duplicate_sese_tail): Remove the check for the latch.
30293         Redirect nexits to the exit block.
30294         Remove handling of the incoming edges to the latch.
30295         Redirect the backedge from the copied latch to the exit bb.
30296
30297 2010-01-28  Michael Matz  <matz@suse.de>
30298
30299         PR target/42881
30300         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
30301         Wrap force_reg into a sequence, emit it before user.
30302
30303 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
30304
30305         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
30306         (arm_rev): New.
30307         (arm_legacy_rev): Likewise.
30308         (thumb_legacy_rev): Likewise.
30309
30310 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
30311
30312         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
30313         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
30314         on MEM's address failed, try avoid_constant_pool_reference and
30315         recurse if it returned something different.
30316         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
30317         address, try avoid_constant_pool_reference and recurse if it
30318         returned something different.
30319         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
30320         address and avoid_constant_pool_reference returned something
30321         different, don't set have_address.
30322
30323 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
30324
30325         PR debug/42861
30326         * var-tracking.c (val_store): Add modified argument, obey it.
30327         Adjust callers.
30328         (count_uses): Move down logging of main.
30329         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
30330         don't need resolution.
30331         (emit_notes_in_bb): Likewise.
30332
30333 2010-01-27  Richard Guenther  <rguenther@suse.de>
30334
30335         PR middle-end/42878
30336         * tree-inline.c (remap_decl): Delay remapping of SSA name
30337         default definitions until we need them.
30338
30339 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
30340
30341         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
30342         (rs6000_delegitimize_address): New function.
30343
30344         * config/s390/s390.c (s390_delegitimize_address): Call
30345         delegitimize_mem_from_attrs.
30346
30347         PR middle-end/42874
30348         * tree-inline.c (cannot_copy_type_1): Removed.
30349         (copy_forbidden): Don't forbid copying of functions containing
30350         records/unions with variable length fields.
30351
30352 2010-01-27  Christian Bruel  <christian.bruel@st.com>
30353
30354         Revert:
30355         PR target/42841
30356         * config/sh/sh.c (find_barrier): Increase length for non delayed
30357         conditional branches.
30358
30359 2010-01-27  Matthias Klose  <doko@ubuntu.com>
30360
30361         * configure.ac (gnu-unique-object): Fix ldd version check.
30362         * configure: Regenerate.
30363
30364 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30365
30366         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
30367         HAVE_GNU_AS value.
30368         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
30369         Test for HAVE_GNU_AS value.
30370
30371 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30372
30373         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
30374         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
30375         INT64_TYPE): Define.
30376         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
30377         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30378         INT_LEAST64_TYPE): Define.
30379         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
30380         UINT_LEAST64_TYPE): Define.
30381         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
30382         INT_FAST64_TYPE): Define.
30383         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30384         UINT_FAST64_TYPE): Define.
30385         (INTMAX_TYPE, UINTMAX_TYPE): Define.
30386         (INTPTR_TYPE, UINTPTR_TYPE): Define.
30387         (SIG_ATOMIC_TYPE): Define.
30388
30389 2010-01-26  Richard Guenther  <rguenther@suse.de>
30390
30391         * df-scan.c (df_scan_set_bb_info): Remove assert.
30392         (df_insn_rescan_debug_internal): Merge asserts.
30393         (df_install_ref): Likewise.
30394         (df_mark_reg): Use bitmap_set_range.
30395         (df_hard_reg_used_p): Remove assert.
30396         (df_hard_reg_used_count): Likewise.
30397
30398 2010-01-26  Richard Guenther  <rguenther@suse.de>
30399
30400         PR rtl-optimization/42685
30401         * web.c (web_main): Ignore DEBUG_INSNs.
30402
30403 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
30404
30405         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
30406
30407         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
30408         Fix types of fndecl and arglist parameters.
30409
30410 2010-01-26  Richard Guenther  <rguenther@suse.de>
30411
30412         PR middle-end/42806
30413         * tree-eh.c (unsplit_eh): Skip debug insns.
30414
30415 2010-01-26  Richard Guenther  <rguenther@suse.de>
30416
30417         PR tree-optimization/42250
30418         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
30419
30420 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
30421
30422         PR fortran/42866
30423         * omp-low.c (expand_omp_sections): Only use single_pred if
30424         l2_bb is single_pred_p.
30425
30426 2010-01-25  Christian Bruel  <christian.bruel@st.com>
30427
30428         PR target/42841
30429         * config/sh/sh.c (find_barrier): Increase length for non delayed
30430         conditional branches.
30431         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
30432
30433 2010-01-24  David S. Miller  <davem@davemloft.net>
30434
30435         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
30436         define if not using GAS.
30437         * config/sparc/sparc.c (sparc_elf_asm_named_section):
30438         Likewise.  Delete SECTION_MERGE code, which is only applicable
30439         when using GAS.
30440
30441 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
30442
30443         PR c++/42748
30444         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
30445         mangling of va_list in system headers.
30446
30447 2010-01-23  Toon Moene  <toon@moene.org>
30448
30449         * tree-predcom.c (combine_chains): Return NULL, not false.
30450
30451 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
30452
30453         * tree-loop-distribution.c (distribute_loop): Fix declaration and
30454         initialization of variable res to agree with return type.
30455
30456 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
30457
30458         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
30459         * tree-sra.c: Add include of expr.h.
30460
30461 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
30462
30463         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
30464         insert the debug stmt on the single non-EH edge from the stmt.
30465
30466 2010-01-22  Richard Henderson  <rth@redhat.com>
30467
30468         PR tree-opt/42833
30469         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
30470         the RHS until after generate_subtree_copies has insertted its
30471         code before the current statement.
30472
30473 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
30474
30475         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
30476
30477         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
30478
30479 2010-01-21  Martin Jambor  <mjambor@suse.cz>
30480
30481         PR tree-optimization/42585
30482         * tree-sra.c (struct access): New field grp_total_scalarization.
30483         (dump_access): Dump the new field.
30484         (should_scalarize_away_bitmap): New variable.
30485         (cannot_scalarize_away_bitmap): Likewise.
30486         (sra_initialize): Allocate new bitmaps.
30487         (sra_deinitialize): Free new bitmaps.
30488         (create_access_1): New function.
30489         (create_access): Parts moved to create_access_1.
30490         (type_consists_of_records_p): New function.
30491         (completely_scalarize_record): Likewise.
30492         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
30493         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
30494         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
30495         access.
30496         (analyze_all_variable_accesses): Completely scalarize small eligible
30497         records.
30498
30499 2010-01-21  Martin Jambor  <mjambor@suse.cz>
30500
30501         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
30502
30503 2010-01-21  Andrew Haley  <aph@redhat.com>
30504
30505         * gcc.c (process_command): Move lang_specific_driver before
30506         setting cc_libexec_prefix.
30507
30508 2010-01-21  Richard Guenther  <rguenther@suse.de>
30509
30510         PR middle-end/19988
30511         * fold-const.c (negate_expr_p): Pretend only negative
30512         real constants are easily negatable.
30513
30514 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
30515             Jason Merrill  <jason@redhat.com>
30516
30517         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
30518         (TYPE_TRANSPARENT_AGGR): this, for union and record.
30519         * calls.c (initialize argument_information): Handle it.
30520         * c-common.c (handle_transparent_union_attribute): Use new name.
30521         * c-decl.c (finish_struct): Ditto.
30522         * c-typeck.c (type_lists_compatible_p): Ditto.
30523         (convert_for_assignment): Use new name and also handle record.
30524         * function.c (aggregate_value_p): Handle it.
30525         (pass_by_reference): Ditto.
30526         (assign_parm_data_types): Ditto.
30527         * print-tree.c (print_node): Ditto.
30528         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
30529         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
30530         * tree.c (first_field): New fn.
30531
30532 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
30533
30534         PR target/42818
30535         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
30536         even when linking statically, for now.
30537
30538 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
30539
30540         PR debug/42715
30541         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
30542         without a cselib val.
30543         (count_uses): Accept MO_VAL_SET with no val on stores.
30544         (add_stores): Likewise.
30545
30546 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
30547
30548         * var-tracking.c (check_value_val): Add a compile time assertion.
30549         (dv_is_decl_p): Simplify.
30550         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
30551         gcc_assert if ENABLE_CHECKING.
30552
30553 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
30554
30555         PR debug/42782
30556         * var-tracking.c: Include tree-flow.h.
30557         (mem_dies_at_call): New.
30558         (dataflow_set_preserve_mem_locs): Use it.
30559         (dataflow_set_remove_mem_locs): Likewise.
30560         (dump_var): Renamed from dump_variable.  Adjust all callers.
30561         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
30562         * Makefile.in (var-tracking.o): Adjust deps.
30563
30564 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
30565
30566         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
30567
30568 2010-01-20  Richard Guenther  <rguenther@suse.de>
30569
30570         PR tree-optimization/42717
30571         * tree-ssa-dce.c (get_live_post_dom): Remove.
30572         (forward_edge_to_pdom): Take an arbitrary edge to copy
30573         degenerate PHI args from.
30574         (remove_dead_stmt): Use the first post-dominator even if it
30575         does not contain live statements as redirection destination.
30576
30577 2010-01-20  Richard Guenther  <rguenther@suse.de>
30578
30579         * tree-inline.c (estimate_num_insns): Handle EH builtins.
30580
30581 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
30582
30583         * sel-sched.c (create_speculation_check): Remove set but not used
30584         variable twin.
30585         (try_transformation_cache): Remove set but not used variable ds.
30586         (calculate_privileged_insns): Remove set but not used variables
30587         cur_insn and min_spec_insn.
30588         (find_best_expr): Remove set but not used variable avail_n.
30589         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
30590         variable e.
30591         * cgraphunit.c (assemble_thunk): Remove set but not used variable
30592         false_label.
30593         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
30594         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
30595         new_scop_exit_edge.
30596
30597 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
30598
30599         PR bootstrap/42786
30600         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
30601         cpu types.  Add support for *-sse3 cpu types.
30602         (x86_64-*-*): Ditto.
30603
30604 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
30605
30606         PR middle-end/42803
30607         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
30608         argument, call initializer_constant_valid_p_1 instead of
30609         initializer_constant_valid_p, pass CACHE to it, return NULL
30610         immediately if first call returns NULL.
30611         (initializer_constant_valid_p_1): New function.
30612         (initializer_constant_valid_p): Use it.
30613
30614 2010-01-20  Thomas Quinot  <quinot@adacore.com>
30615
30616         * tree.def (PLACEHOLDER_EXPR): Fix comment.
30617
30618 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
30619
30620         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
30621         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
30622         (loc_list_from_tree): Don't handle unsigned division.  Handle
30623         signed modulo using DW_OP_{over,over,div,mul,minus}.
30624         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
30625         modulo instead of signed.
30626
30627 2010-01-20  DJ Delorie  <dj@redhat.com>
30628
30629         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
30630         (Fpa): Pass it
30631         (h8300_emit_stack_adjustment): Propogate it.
30632         (push): Pass it.
30633         (h8300_expand_prologue): Likewise.
30634         (h8300_expand_epilogue): Likewise.
30635
30636 2010-01-19  Michael Matz  <matz@suse.de>
30637
30638         PR tree-optimization/41783
30639         * tree-data-ref.c (toplevel): Include flags.h.
30640         (dump_data_dependence_relation):  Also dump the inputs if the
30641         result will be unknown.
30642         (split_constant_offset_1): Look through some conversions.
30643         * tree-predcom.c (determine_roots_comp): Restart a new chain if
30644         the offset from last element is too large.
30645         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
30646         (reassociate_to_the_same_stmt): Handle vector registers.
30647         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
30648         (e.g. conversions).
30649         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
30650         wide_prolog_niters argument, emit widening instructions.
30651         (vect_do_peeling_for_alignment): Adjust caller, use widened
30652         variant of the iteration cound.
30653         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
30654
30655 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30656
30657         PR target/38697
30658         * config/arm/neon-testgen.m (emit_automatics): New parameter
30659         features. Adjust for Fixed_return_reg feature.
30660         (test_intrinsic): Call emit_automatics with new feature.
30661         * config/arm/neon.ml: Update copyright years.
30662         (features): New Fixed_return_reg feature.
30663         (ops): Update feature for Vget_low.
30664
30665 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
30666
30667         PR tree-optimization/42719
30668         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
30669         stmt uses.
30670
30671         PR debug/42728
30672         * fwprop.c (all_uses_available_at): Return false if def_set dest
30673         is a REG that is used in def_insn.
30674
30675 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
30676
30677         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
30678
30679         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
30680         Add argument names.
30681
30682         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
30683
30684         * target.h (struct gcc_target) <secondary_reload>: Change type
30685         of last argument to secondary_reload_info *.
30686
30687 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
30688
30689         PR target/42774
30690         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
30691         memory references with unaligned offsets.  Remove CQImode handling.
30692         (unaligned_memory_operand): Return 1 for memory references with
30693         unaligned offsets.  Remove CQImode handling.
30694
30695 2010-01-18  Richard Guenther  <rguenther@suse.de>
30696
30697         PR middle-end/39954
30698         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
30699         builtin calls.
30700
30701 2010-01-18  Richard Guenther  <rguenther@suse.de>
30702
30703         PR tree-optimization/42781
30704         * tree-ssa-structalias.c (find_what_var_points_to): Skip
30705         restrict processing only if the original variable was artificial.
30706
30707 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
30708
30709         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
30710         find number of popped argument bytes.
30711
30712         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
30713         Fix the text that describes the return value for invalid insns.
30714
30715         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
30716
30717         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
30718         Clarify what 'cost of the -dependence' is.  Fix quoting.
30719
30720         * toplev.c (default_get_pch_validity): Rename argument to "sz".
30721         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
30722
30723 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
30724
30725         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30726         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
30727
30728 2010-01-17  Richard Guenther  <rguenther@suse.de>
30729
30730         PR middle-end/42248
30731         * function.c (split_complex_args): Take a VEC to modify.
30732         (assign_parms_augmented_arg_list): Build a VEC instead of
30733         a chain of PARM_DECLs.
30734         (assign_parms_unsplit_complex): Take a VEC of arguments.
30735         Do not fixup unmodified parms.
30736         (assign_parms): Deal with the VEC.
30737         (gimplify_parameters): Likewise.
30738
30739 2010-01-17  Richard Guenther  <rguenther@suse.de>
30740
30741         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
30742         node existence check.
30743         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
30744         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
30745         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
30746         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
30747         (gimple_execute_on_growing_pred): Likewise.
30748
30749 2010-01-17  Richard Guenther  <rguenther@suse.de>
30750
30751         PR tree-optimization/42773
30752         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
30753         (compute_antic_aux): Likewise.
30754         (compute_partial_antic_aux): Likewise.
30755
30756 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
30757
30758         PR debug/42767
30759         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
30760         and US_TRUNCATE.
30761
30762 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
30763
30764         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
30765         appearance.
30766
30767         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
30768         Fix markup for strict argument.
30769
30770         (TARGET_SCHED_REORDER2): Fix argument types.
30771
30772         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
30773         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
30774
30775         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
30776         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
30777
30778         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
30779         Add argument name.
30780
30781         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
30782         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
30783         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
30784         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
30785         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
30786
30787         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
30788
30789         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
30790
30791         (TARGET_ASM_RELOC_RW_MASK): Add return type.
30792         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
30793
30794         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
30795
30796         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
30797         Use prototype.
30798
30799         (TARGET_ASM_NAMED_SECTION): Fix argument list.
30800
30801         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
30802         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
30803
30804         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
30805
30806         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
30807
30808         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
30809         referring to it.  Fix language.
30810
30811         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
30812
30813         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
30814
30815         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
30816
30817         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
30818
30819         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
30820         '@var{stream}.  Remove stray 'and'.
30821
30822         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
30823
30824         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
30825
30826         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
30827
30828         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
30829         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
30830
30831         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
30832         Fix description of return value.
30833         Rename argument "sz" to "len."
30834
30835         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
30836         Clarify meaning of 'true' return value.
30837
30838         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
30839
30840         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
30841         rep_mode versus mode_rep.
30842
30843         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
30844
30845         (TARGET_BUILTIN_DECL): Fix name.
30846
30847         (TARGET_COMMUTATIVE_P): Fix type of first argument.
30848
30849         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
30850
30851         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
30852
30853         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
30854
30855         (TARGET_RELAXED_ORDERING): Use @deftypevr.
30856
30857         (TARGET_GET_DRAP_RTX): Note that this is a hook.
30858         Clarify language.
30859
30860         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
30861         Rename argument tm_fn to md_fn.
30862
30863         (TARGET_OPTION_PRINT): Fix argument list.
30864
30865 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
30866
30867         PR target/42664
30868         * config/i386/i386.c (ix86_fixup_binary_operands):
30869         Revert FMA4 fixup of operands.
30870
30871 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30872
30873         PR gcc/42525
30874         * Makefile.in (write_entries_to_file, install-plugin):
30875         Use \012 instead of \n with tr.
30876
30877 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
30878
30879         * configure.ac (HAVE_AS_REF): New C macro.
30880         * configure: Regenerate.
30881         * config.in: Likewise.
30882         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
30883         if HAVE_AS_REF.
30884         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
30885         if HAVE_AS_REF.
30886
30887 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
30888
30889         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
30890
30891         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
30892
30893         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
30894
30895         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
30896
30897         (TARGET_IN_SMALL_DATA_P): Fix argument type.
30898
30899         (TARGET_BINDS_LOCAL_P): Fix argument type.
30900
30901         (TARGET_ASM_FILE_END): Use prototype.
30902
30903         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
30904
30905         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
30906
30907         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
30908
30909         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
30910
30911         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
30912         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
30913
30914         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
30915         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
30916
30917         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
30918         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
30919         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
30920         (TARGET_ADDR_SPACE_CONVERT): Likewise.
30921
30922         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
30923
30924         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
30925
30926         (TARGET_INIT_BUILTINS): Use prototype.
30927
30928         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
30929         Put 'const char *' in braces.  Fix parameter types.
30930         (TARGET_INVALID_CONVERSION): Fix parameter types.
30931         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
30932         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
30933
30934         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
30935         Fix argument type.
30936
30937         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
30938
30939         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
30940
30941 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
30942
30943         * doc/tm.texi (TARGET_HELP): Fix return type.
30944
30945         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
30946         in braces.  Fix argument types.
30947
30948         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
30949
30950         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
30951
30952         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
30953
30954         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
30955         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
30956
30957         (TARGET_MANGLE_TYPE): Fix argument types.
30958
30959         (TARGET_IRA_COVER_CLASSES): Use prototype.
30960
30961         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
30962
30963         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
30964
30965         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
30966
30967         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
30968
30969         (TARGET_CALLEE_COPIES): Fix argument types.
30970
30971         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
30972
30973         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
30974
30975         (TARGET_FUNCTION_VALUE): Fix argument types.
30976
30977         (TARGET_RETURN_IN_MSB): Fix argument type.
30978
30979         (TARGET_RETURN_IN_MEMORY): Fix argument types.
30980
30981         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
30982
30983         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
30984
30985         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
30986         agree with return type.
30987
30988         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
30989
30990 2010-01-15  Jing Yu  <jingyu@google.com>
30991
30992         PR rtl-optimization/42691
30993         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
30994         a pseudo to a constant and are merged, and adjust comments.
30995
30996 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
30997
30998         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
30999
31000 2010-01-15  Richard Guenther  <rguenther@suse.de>
31001
31002         PR middle-end/42739
31003         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
31004         labels of computed or non-local gotos to the destination.
31005         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
31006         landing pad label is the first label.
31007
31008 2010-01-15  Richard Guenther  <rguenther@suse.de>
31009
31010         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
31011
31012 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
31013
31014         PR target/42747
31015         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
31016         to allow generation of the xssqrtdp instruction on power7.
31017         (sqrtdf2_fpr): Ditto.
31018
31019 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
31020
31021         PR middle-end/42674
31022         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
31023         functions with noreturn attribute.
31024
31025         PR c++/42608
31026         * varasm.c (declare_weak): Add weak attribute to decl if it
31027         doesn't have one already.
31028         (assemble_external): Only add decls to weak_decls if they also
31029         have weak attribute.
31030
31031 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
31032
31033         * var-tracking.c (var_reg_delete): Don't delete the association
31034         between REGs and values or one-part variables if the register
31035         isn't clobbered.
31036
31037 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
31038
31039         PR debug/42657
31040         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
31041         because its first operand is a non-localized variable.
31042
31043 2010-01-14  Martin Jambor  <mjambor@suse.cz>
31044
31045         PR tree-optimization/42706
31046         * tree-sra.c (encountered_recursive_call): New variable.
31047         (encountered_unchangable_recursive_call): Likewise.
31048         (sra_initialize): Initialize both new variables.
31049         (callsite_has_enough_arguments_p): New function.
31050         (scan_function): Call decl and flags check only for IPA-SRA, check
31051         whether there is a recursive call and whether it has enough arguments.
31052         (all_callers_have_enough_arguments_p): New function.
31053         (convert_callers): Look for recursive calls only when
31054         encountered_recursive_call is set.
31055         (ipa_early_sra): Bail out either if
31056         !all_callers_have_enough_arguments_p or
31057         encountered_unchangable_recursive_call.
31058
31059 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
31060
31061         * sel-sched.c: Add 2010 to copyright years.
31062         * sel-sched-ir.c: Likewise.
31063         * sel-sched-ir.h: Likewise.
31064
31065 2010-01-14  Martin Jambor  <mjambor@suse.cz>
31066
31067         PR tree-optimization/42714
31068         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
31069         constructors specially.
31070
31071 2010-01-14  Andi Kleen  <ak@linux.intel.com>
31072
31073         * config/i386/drivers-i386.c (detect_caches_intel):
31074         Add l2sizekb parameter and fill in.
31075         (host_detect_local_cpu): Add l2sizekb, fill in.
31076         Add Atom small cache heuristic.
31077
31078 2010-01-14  Andi Kleen  <ak@linux.intel.com>
31079
31080         * config/i386/drivers-i386.c (detect_caches_cpuid4):
31081         Add level3 parameter and fill in.
31082         (detect_caches_intel): Handle level3 cache.
31083
31084 2010-01-14  Andi Kleen  <ak@linux.intel.com>
31085
31086         * config/i386/drivers-i386.c (host_detect_local_cpu):
31087         Fix core duo detection.
31088
31089 2010-01-14  Andi Kleen  <ak@linux.intel.com>
31090
31091         * config/i386/drivers-i386.c (host_detect_local_cpu):
31092         Fix Atom detection.
31093
31094 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
31095
31096         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
31097         (rs6000_variable_issue_1): this.  Use...
31098         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
31099
31100 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
31101
31102         * sel-sched-ir.c (sel_restore_other_notes): Rename to
31103         sel_restore_notes.  Update all callers.  Call reemit_notes
31104         for all insns.
31105
31106 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
31107
31108         PR rtl-optimization/42246
31109         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
31110         loops.
31111
31112 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
31113
31114         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
31115         all successors is the same as number of successors in current region.
31116
31117 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
31118
31119         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
31120         to rename is not separable.  Otherwise check that its LHS is not NULL.
31121
31122 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
31123
31124         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
31125
31126 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
31127
31128         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
31129         available registers when failed to discover LHS register class.
31130         Fix indentation.  Update comment.
31131
31132 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
31133             Alexander Monakov  <amonakov@ispras.ru>
31134
31135         PR rtl-optimization/42389
31136         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
31137         to can_issue_more.
31138         (advance_state_on_fence): Likewise.
31139         (sel_target_adjust_priority): Print debug output only when
31140         sched_verbose >= 4, not 2.
31141         (get_expr_cost): Do not issue all unique insns on the next cycle.
31142         (fill_insns): Initialize can_issue_more from the value saved
31143         with the fence.
31144         * sel-sched-ir.c (flist_add): New parameter issue_more.
31145         Init FENCE_ISSUE_MORE with it.
31146         (merge_fences): Likewise.
31147         (init_fences): Update call to flist_add.
31148         (add_to_fences, add_clean_fence_to_fences)
31149         (add_dirty_fence_to_fences): Likewise.
31150         (move_fence_to_fences): Update call to merge_fences.
31151         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
31152         sched groups.
31153         * sel-sched-ir.h (struct _fence): New field issue_more.
31154         (FENCE_ISSUE_MORE): New accessor macro.
31155
31156 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
31157
31158         PR rtl-optimization/42388
31159         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
31160         that have no predecessors nor successors.  Do not call move_bb_info
31161         for empty blocks outside of current region.
31162
31163 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
31164
31165         PR rtl-optimization/42294
31166         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
31167         * sel-sched.c (move_exprs_to_boundary): Transitively add all
31168         originators' originators.
31169
31170 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
31171
31172         PR rtl-optimization/39453
31173         PR rtl-optimization/42246
31174         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
31175         for pipelining_p.
31176         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
31177
31178 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
31179             Alexander Monakov  <amonakov@ispras.ru>
31180
31181         PR middle-end/42245
31182         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
31183         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
31184         argument.  Update all callers.
31185         (tidy_control_flow): ... and here.  Recompute topological order
31186         of basic blocks in region if necessary.
31187         (sel_redirect_edge_and_branch): Change return type.  Return true
31188         if topological order might have been invalidated.
31189         (purge_empty_blocks): Export and move from...
31190         * sel-sched.c (purge_empty_blocks): ... here.
31191         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
31192         (maybe_tidy_empty_bb): Delete prototype.
31193         (purge_empty_blocks): Declare.
31194
31195 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
31196
31197         PR rtl-optimization/42249
31198         * sel-sched.c (try_replace_dest_reg): When chosen register
31199         and original register is the same, do not bail out early, but
31200         still check all original insns for validity of replacing destination
31201         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
31202         in this case.
31203
31204 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
31205
31206         PR c/42721
31207         Port from no-undefined-overflow branch:
31208         2009-03-09  Richard Guenther  <rguenther@suse.de>
31209
31210         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
31211
31212 2010-01-14  Richard Guenther  <rguenther@suse.de>
31213
31214         PR lto/42665
31215         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
31216
31217 2010-01-14  Ira Rosen  <irar@il.ibm.com>
31218
31219         PR tree-optimization/42709
31220         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
31221         as scalar type in creation of constant vector operand.
31222
31223 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31224
31225         PR testsuite/42414
31226         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
31227         (check-parallel-%): Match `testsuite' directory component only
31228         at the end.
31229
31230 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
31231
31232         PR translation/39521
31233         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
31234         strings with _().
31235
31236 2010-01-13  Richard Guenther  <rguenther@suse.de>
31237
31238         PR tree-optimization/42730
31239         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
31240         offset zero.
31241
31242 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
31243
31244         PR target/pr42542
31245         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
31246         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
31247         them signed.
31248
31249 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
31250
31251         * config/bfin/libgcc-bfin.ver: Regenerate based on current
31252         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
31253         ___umulsi3_highpart.
31254
31255         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
31256         rather than schedule_insns if the pass is enabled.
31257
31258 2010-01-13  Martin Jambor  <mjambor@suse.cz>
31259
31260         PR tree-optimization/42704
31261         * tree-sra.c (sra_modify_assign): Do not delete assignments to
31262         SSA_NAMEs.
31263
31264 2010-01-13  Martin Jambor  <mjambor@suse.cz>
31265
31266         PR tree-optimization/42703
31267         * tree-sra.c (analyze_access_subtree): Check that we can build a
31268         reference to the original data within the aggregate.
31269
31270 2010-01-13  Richard Guenther  <rguenther@suse.de>
31271
31272         PR tree-optimization/42705
31273         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
31274
31275 2010-01-13  Richard Guenther  <rguenther@suse.de>
31276
31277         PR middle-end/42716
31278         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
31279
31280 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
31281
31282         PR debug/41371
31283         * var-tracking.c (values_to_unmark): New variable.
31284         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31285         values_to_unmark vector.  Moved body to...
31286         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
31287         instead queue it into values_to_unmark vector.
31288         (vt_find_locations): Free values_to_unmark vector.
31289
31290 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
31291
31292         * config/s390/s390.c (override_options): Set
31293         default of max-pending-list-length to 256
31294
31295 2010-01-13  Richard Guenther  <rguenther@suse.de>
31296
31297         PR lto/42678
31298         * tree-pass.h (PROP_gimple_lcx): New.
31299         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
31300         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
31301         before the final cleanup_eh.
31302         (dump_properties): Dump PROP_gimple_lcx.
31303         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
31304         (tree_lower_complex_O0): Remove.
31305         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
31306         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
31307         tree_lower_complex, schedule TODO_update_ssa.
31308         * lto-streamer-out.c (output_function): Stream the functions
31309         properties.
31310         * lto-streamer-in.c (input_function): Likewise.
31311         (lto_read_body): Do not override them here.
31312
31313 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
31314
31315         PR c/42708
31316         * c-typeck.c (build_c_cast): Fold value cast to union type before
31317         wrapping it in a CONSTRUCTOR.
31318
31319 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
31320
31321         PR rtl-optimization/42699
31322         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
31323         involved.
31324
31325 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31326
31327         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
31328         SUBTARGET_WARN_UNUSED_SPEC): Move ...
31329         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
31330         SUBTARGET_WARN_UNUSED_SPEC): ... here
31331         * config/mips/iris5.h (LIBGCC_SPEC): Define.
31332
31333 2010-01-12  Julian Brown  <julian@codesourcery.com>
31334
31335         * config/arm/neon-schedgen.ml (Utils): Don't try to
31336         open missing module.
31337         (find_with_result): New.
31338
31339 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
31340
31341         PR debug/42662
31342         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
31343         sharing when canonicalizing ({lt,ge}u (plus a b) b).
31344
31345         PR tree-optimization/42645
31346         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
31347         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
31348         decl_map, set processing_debug_stmt to -1 and return name without
31349         any remapping.
31350
31351 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
31352
31353         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
31354         binutils version, and reword target configuration description.
31355
31356 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
31357
31358         * config/avr/avr.h (LINKER_NAME): Remove.
31359
31360 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
31361
31362         PR target/42416
31363         * config/rs6000/rs6000.c (rs6000_override_options): On targets
31364         that support VSX, warn for -mno-altivec if vsx is not disabled,
31365         and disable vsx.
31366
31367 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
31368             Shujing Zhao  <pearly.zhao@oracle.com>
31369
31370         PR translation/42469
31371         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
31372         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
31373         character between option name and help text.
31374         * c.opt (imultilib): Likewise.
31375
31376 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
31377
31378         * lto-streamer-out.c (output_unreferenced_globals): Output static
31379         variables.
31380
31381 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
31382
31383         PR rtl-optimization/42621
31384         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
31385         optimizing for size.
31386         (duplicate_computed_gotos): Remove now-redundant check.
31387
31388 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
31389
31390         PR target/37454
31391         * configure.ac: Save and restore LDFLAGS and LIBS
31392         * configure: Regenerate.
31393
31394 2010-01-10  Richard Guenther  <rguenther@suse.de>
31395
31396         PR middle-end/42667
31397         * builtins.c (fold_builtin_strlen): Add type argument and
31398         convert the resulting length to it.
31399         (fold_builtin_1): Adjust.
31400
31401 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
31402
31403         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
31404         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
31405         1 insn.
31406         (num_insns_constant_wide): Adjust for that change.
31407
31408 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
31409
31410         PR debug/42631
31411         * web.c (union_defs): Add used argument, to combine uses of
31412         uninitialized regs.
31413         (entry_register): Adjust type and tests of used argument.
31414         (web_main): Widen used for new use.  Pass it to union_defs.
31415         * df.h (union_defs): Adjust prototype.
31416
31417 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
31418
31419         PR debug/42630
31420         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
31421         uses in new incoming argument.  Free body.
31422         (reset_debug_uses_in_loop): New.
31423         (analyze_insn_to_expand_var): Call the latter if the former found
31424         anything.  Fix whitespace.  Reject invalid dest overlaps before
31425         going through all insns in the loop.
31426
31427 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
31428
31429         PR debug/42629
31430         * haifa-sched.c (dying_use_p): Debug insns don't count.
31431
31432 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
31433
31434         PR middle-end/42363
31435         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
31436         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
31437         (verify_gimple_call): Reject LHS in noreturn calls.
31438
31439 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
31440
31441         PR debug/42604
31442         PR debug/42395
31443         * tree-vect-loop-manip.c (adjust_info): New type.
31444         (adjust_vec): New pointer to vector.
31445         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
31446         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
31447         (slpeel_update_phis_for_duplicate_loop): Use them.
31448         (slpeel_update_phi_nodes_for_guard1): Likewise.
31449         (slpeel_update_phi_nodes_for_guard2): Likewise.
31450         (slpeel_tree_peel_loop_to_edge): Likewise.
31451         (vect_update_ivs_after_vectorizer): Likewise.
31452
31453 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
31454
31455         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
31456         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
31457
31458 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
31459
31460         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
31461         bogus uninitialized warning.
31462
31463 2010-01-09  Richard Guenther  <rguenther@suse.de>
31464
31465         PR middle-end/42512
31466         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
31467         the evolution is compatible with the initial condition.
31468
31469 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
31470
31471         * gcc.c (process_command): Update copyright notice dates.
31472         * gcov.c (print_version): Likewise.
31473         * gcov-dump.c (print_version): Likewise.
31474         * mips-tfile.c (main): Likewise.
31475         * mips-tdump.c (main): Likewise.
31476
31477 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
31478
31479         PR target/41885
31480         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
31481         (rotlhi3): Delete.
31482         (rotlhi3_8): Delete.
31483         (rotlsi3): Delete.
31484         (rotlsi3_8): Delete.
31485         (rotlsi3_16): Delete.
31486         (rotlsi3_24): Delete.
31487         (rotl<mode>3): New.
31488         (*rotw<mode>3): New.
31489         (*rotb<mode>3): New.
31490         * config/avr/avr.c (avr_rotate_bytes): New function.
31491         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
31492
31493 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
31494
31495         PR target/37454
31496         * configure.ac: Modify -rdynamic check.
31497         * configure: Regenerate.
31498
31499 2010-01-08  DJ Delorie  <dj@redhat.com>
31500
31501         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
31502         register popping order.
31503
31504 2010-01-08  Richard Guenther  <rguenther@suse.de>
31505
31506         PR lto/42528
31507         * c.opt (fsigned-char): Also let LTO handle this option.
31508         (funsigned-char): Likewise.
31509
31510 2010-01-07  Richard Guenther  <rguenther@suse.de>
31511
31512         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
31513         (gimple_op): Likewise.
31514         (gimple_op_ptr): Likewise.
31515         (gimple_assign_set_lhs): Remove gcc_assert.
31516         (gimple_assign_set_rhs1): Likewise.
31517         (gimple_assign_set_rhs2): Likewise.
31518         (gimple_call_set_lhs): Likewise.
31519         (gimple_call_set_fn): Likewise.
31520         (gimple_call_set_fndecl): Likewise.
31521         (gimple_call_fndecl): Likewise.
31522         (gimple_call_return_type): Likewise.
31523         (gimple_call_set_chain): Likewise.
31524         (gimple_call_num_args): Likewise.
31525         (gimple_call_set_arg): Likewise.
31526         (gimple_cond_set_code): Likewise.
31527         (gimple_cond_set_lhs): Likewise.
31528         (gimple_cond_set_rhs): Likewise.
31529         (gimple_cond_set_true_label): Likewise.
31530         (gimple_cond_set_false_label): Likewise.
31531         (gimple_label_set_label): Likewise.
31532         (gimple_goto_set_dest): Likewise.
31533         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
31534         (gimple_debug_bind_get_value): Likewise.
31535         (gimple_debug_bind_get_value_ptr): Likewise.
31536         (gimple_debug_bind_set_var): Likewise.
31537         (gimple_debug_bind_set_value): Likewise.
31538         (gimple_debug_bind_reset_value): Likewise.
31539         (gimple_debug_bind_has_value_p): Likewise.
31540         (gimple_return_retval_ptr): Remove gcc_assert.
31541         (gimple_return_retval): Likewise.
31542         (gimple_return_set_retval): Likewise.
31543         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
31544         (safe_referenced_var_iterator): Remove.
31545         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
31546         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
31547         (fill_referenced_var_vec): Remove.
31548         (first_readonly_imm_use): Remove redundant gcc_assert.
31549         (phi_arg_index_from_use): Combine gcc_asserts.
31550         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
31551         (first_imm_use_stmt): Remove redundant gcc_assert.
31552         * tree-cfg.c (verify_gimple_call): Verify function and chain
31553         operands.  Verify arguments.
31554         (verify_types_in_gimple_stmt): Verify condition code and labels.
31555
31556 2010-01-07  Richard Guenther  <rguenther@suse.de>
31557
31558         PR tree-optimization/42641
31559         * sese.c (rename_map_elt_info): Use the SSA name version, do
31560         not hash pointers.
31561
31562 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
31563
31564         PR tree-optimization/42625
31565         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
31566         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
31567
31568 2010-01-07  Duncan Sands  <baldrick@free.fr>
31569
31570         * Makefile.in (PLUGIN_HEADERS): Add version.h.
31571
31572 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
31573
31574         PR target/42511
31575         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
31576         note itself is not function_invariant_p.
31577
31578 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
31579
31580         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
31581         Do not add the DF_NOTE problem.
31582         * store-motion.c (execute_rtl_store_motion): Likewise.
31583
31584 2010-01-07  Martin Jambor  <mjambor@suse.cz>
31585
31586         PR tree-optimization/42157
31587         * tree-sra.c (compare_access_positions): Stabilize sort if both
31588         accesses have integer types, return zero immediately if they are the
31589         same.
31590
31591 2010-01-06  Richard Henderson  <rth@redhat.com>
31592
31593         PR middle-end/41883
31594         * haifa-sched.c (add_to_note_list): Merge into ...
31595         (concat_note_lists): ... here, and ...
31596         (unlink_other_notes, rm_other_notes): Merge into...
31597         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
31598         NOTE_INSN_EPILOGUE_BEG.
31599
31600 2010-01-06  Richard Guenther  <rguenther@suse.de>
31601
31602         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
31603         not inline regular functions into always-inline functions.
31604
31605 2010-01-06  Nick Clifton  <nickc@redhat.com>
31606
31607         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
31608         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
31609         used together.
31610         (OVERRIDE_OPTIONS): Delete.
31611         (OPTIMIZATION_OPTIONS): Define.
31612         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
31613         * config/rx/rx.c (rx_handle_option): Issue an error message if
31614         -mcpu=rx200 and -fpu are used together.
31615         (rx_set_optimization_options): New function.  Issue an error
31616         message if an optimization attribute attempts to reset the FPU/
31617         math optimization pairing.
31618         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
31619         * config/rx/rx.opt: Set the default to 32-bit doubles.
31620         * config/rx/t-rx: Add multilibs for -nofpu option.
31621         * doc/invoke.texi: Update documentation of RX options.
31622
31623 2010-01-06  Richard Guenther  <rguenther@suse.de>
31624
31625         * tree-ssa-pre.c (name_to_id): New global.
31626         (alloc_expression_id): Simplify SSA name handling.
31627         (lookup_expression_id): Likewise.
31628         (init_pre): Zero name_to_id.
31629         (fini_pre): Free it.
31630
31631 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
31632
31633         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
31634
31635 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
31636
31637         PR target/42542
31638         * config/i386/sse.md (smaxv2di3): New.
31639         (umaxv2di3): Likewise.
31640         (sminv2di3): Likewise.
31641         (uminv2di3): Likewise.
31642
31643 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31644
31645         PR target/42564
31646         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
31647         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
31648         (legitimize_tls_address): Likewise.
31649         (sparc_tls_referenced_p): Likewise.
31650         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
31651         and adjust calls to legitimize_pic_address.
31652         (legitimate_constant_p) Use sparc_tls_referenced_p.
31653         (legitimate_pic_operand_p): Likewise.
31654         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
31655         (sparc_tls_symbol_ref_1): Delete.
31656         (sparc_tls_referenced_p): Make static, recognize specific patterns.
31657         (legitimize_tls_address): Make static, handle CONST patterns.
31658         (legitimize_pic_address): Make static, remove unused parameter and
31659         adjust recursive calls.
31660         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
31661         and adjust call to legitimize_pic_address.
31662         (sparc_output_mi_thunk): Likewise.
31663
31664 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
31665             H.J. Lu  <hongjiu.lu@intel.com>
31666
31667         PR target/42542
31668         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
31669         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
31670         operands to make them signed.
31671
31672         Revert:
31673         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
31674
31675         PR target/42542
31676         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31677         GTU to GT for V4SI and V2DI.
31678
31679         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31680         (umin<mode>3): Removed.
31681         (uminv8hi3): New.
31682         (uminv4si3): Likewise.
31683
31684 2010-01-05  Martin Jambor  <mjambor@suse.cz>
31685
31686         PR tree-optimization/42462
31687         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
31688         current_function_decl to helper functions and macros.
31689
31690 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31691
31692         PR bootstrap/41771
31693         * flags.h: Don't include real.h.
31694         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
31695         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
31696         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
31697         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
31698         * dominance.c: Update copyright.
31699         * gimple.c (walk_gimple_op): Remove inline.
31700         * tree-ssa-reassoc.c: Include real.h.
31701         * Makefile.in (FLAGS_H): Remove $(REAL_H).
31702         (tree-ssa-reassoc.o): Depend on $(REAL_H).
31703
31704 2010-01-05  Nick Clifton  <nickc@redhat.com>
31705
31706         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
31707         register to push into the stack frame when the accumulator has to
31708         be saved during interrupts.
31709
31710 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
31711
31712         * doc/invoke.texi: Remove the documentation about option
31713         -Wunreachable-code.
31714         * common.opt (Wunreachable-code):  Preserved for backward
31715         compatibility.
31716         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
31717         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
31718         the backward compatibility flag section.
31719
31720 2010-01-05  Richard Guenther  <rguenther@suse.de>
31721
31722         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
31723
31724 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
31725
31726         PR other/42611
31727         * cfgexpand.c (expand_one_var): Diagnose too large variables.
31728
31729         PR tree-optimization/42508
31730         * tree-sra.c (convert_callers): Check for recursive call
31731         by comparing cgraph nodes instead of decls.
31732         (modify_function): Call ipa_modify_formal_parameters also
31733         on all same_body aliases.
31734
31735         * cgraphunit.c (cgraph_materialize_all_clones): Compare
31736         cgraph nodes when checking for same_body aliases.
31737
31738 2010-01-05  Richard Guenther  <rguenther@suse.de>
31739
31740         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
31741         allocation and lookup.
31742         (get_or_alloc_expr_for_constant): Likewise.
31743         (phi_translate): Sink allocation.
31744
31745 2010-01-04  Richard Guenther  <rguenther@suse.de>
31746
31747         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
31748         a new entry only if needed.
31749         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
31750         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
31751         hashtable lookup.
31752         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
31753         the result array.
31754         (phi_translate): Handle CONSTANTs early.
31755
31756 2010-01-04  Martin Jambor  <mjambor@suse.cz>
31757
31758         PR tree-optimization/42398
31759         * tree-sra.c (struct access): Removed flag grp_different_types.
31760         (dump_access): Do not dump the removed flag.
31761         (sort_and_splice_var_accesses): Do not set the removed flag.
31762         (sra_modify_expr): Check for type compatibility directly.
31763
31764 2010-01-04  Martin Jambor  <mjambor@suse.cz>
31765
31766         PR tree-optimization/42366
31767         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
31768         edges with variable number of parameters.
31769         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
31770         flag instead of asserting it.
31771         (ipa_read_node_info): Read uses_analysis_done flag.
31772
31773 2010-01-04  Richard Guenther  <rguenther@suse.de>
31774
31775         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
31776         iterative_hash_* as intended.
31777         (vn_reference_compute_hash): Likewise.  Simplify hashing
31778         SSA names.
31779         (vn_reference_lookup_2): Likewise.
31780         (vn_nary_op_compute_hash): Likewise.
31781         (vn_phi_compute_hash): Likewise.
31782         (expressions_equal_p): Remove strange code.
31783         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
31784         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
31785         (bitmap_insert_into_set_1): Take value-id as parameter.
31786         (add_to_value): Pass it.
31787         (bitmap_insert_into_set): Likewise.
31788         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
31789
31790 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
31791
31792         PR driver/42442
31793         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
31794         (do_self_spec): For switches with SWITCH_IGNORE set set also
31795         SWITCH_IGNORE_PERMANENTLY.
31796         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
31797         of SWITCH_IGNORE.
31798
31799 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
31800
31801         * lto-streamer-out.c (output_unreferenced_globals): Output the full
31802         tree of an unreferenced global var.
31803
31804 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
31805
31806         PR target/42542
31807         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31808         GTU to GT for V4SI and V2DI.
31809
31810         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31811         (umin<mode>3): Removed.
31812         (uminv8hi3): New.
31813         (uminv4si3): Likewise.
31814
31815 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
31816
31817         PR lto/42581
31818         * collect2.c (main): Turn on trace in collect2 if -v is passed
31819         to gcc with LTO.
31820
31821 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
31822
31823         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
31824         description of expression operand.
31825
31826 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
31827
31828         * configure.ac: Add install-html to target_list for Make-hooks.
31829         * configure: Regenerate.
31830         * fortran/Make-lang.in (F95_HTMLFILES): New.
31831         (fortran.html): Use it.
31832         (fortran.install-html): New.
31833         * Makefile.in (install-html): Add lang.install-html.
31834         * java/Make-lang.in (JAVA_HTMLFILES): New.
31835         (java.html): Use it.
31836         (java.install-html): New.
31837         * objc/Make-lang.in (objc.install-html): New.
31838         * objcp/Make-lang.in (obj-c++.install-html): New.
31839         * cp/Make-lang.in (c++.install-html): New.
31840         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
31841         * lto/Make-lang.in (lto.install-html): New.
31842
31843 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
31844
31845         PR lto/42520
31846         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
31847
31848 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
31849
31850         PR rtl-optimization/41862
31851         * store-motion.c (store_killed_in_insn, compute_store_table,
31852         remove_reachable_equiv_notes, replace_store_insn,
31853         build_store_vectors): Ignore all DEBUG_INSNs.
31854
31855 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
31856
31857         PR lto/41564
31858         * common.opt: Add dumpdir.
31859
31860         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
31861         isn't specified.
31862         (option_map): Add --dumpdir.
31863
31864         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
31865
31866         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
31867
31868         * opts.c (decode_options): Try dump_dir_name first if
31869         dump_base_name isn't an absolute path.
31870         (common_handle_option): Handle OPT_dumpdir.
31871
31872         * toplev.c (dump_dir_name): New.
31873         (print_switch_values): Also ignore -dumpdir.
31874
31875         * toplev.h (dump_dir_name): New.
31876
31877 2010-01-03  Richard Guenther  <rguenther@suse.de>
31878
31879         PR tree-optimization/42589
31880         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
31881         double-word expansion of bswap32.
31882
31883 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
31884
31885         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
31886         with BLOCK_FOR_INSN.
31887         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
31888         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
31889         noce_process_if_block): Likewise.
31890         * gcse.c (compute_local_properties, insert_expr_in_table,
31891         insert_set_in_table, canon_list_insert, find_avail_set,
31892         pre_insert_copy_insn): Likewise.
31893
31894         * basic-block.h (BLOCK_NUM): Move from here...
31895         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
31896
31897 2010-01-03  Richard Guenther  <rguenther@suse.de>
31898
31899         PR tree-optimization/42438
31900         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
31901         contains_may_not_return_call flag.
31902         (BB_MAY_NOTRETURN): New.
31903         (valid_in_sets): Trapping nary operations are not valid
31904         in blocks that may not return.
31905         (insert_into_preds_of_block): Remove check for trapping expressions.
31906         (compute_avail): Compute also BB_MAY_NOTRETURN.
31907
31908 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
31909
31910         * doc/invoke.texi: Add 2010 to copyright years.
31911
31912 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
31913
31914         * config/sparc/sparc.c: Fix formatting nits.
31915
31916 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
31917             Alexander Monakov  <amonakov@ispras.ru>
31918
31919         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
31920
31921 2010-01-02  Richard Guenther  <rguenther@suse.de>
31922
31923         PR middle-end/42577
31924         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
31925         (simplify_switch_using_ranges): Mark to be removed edges
31926         as non-executable.
31927
31928 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31929
31930         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31931
31932         * collect2.c (scan_libraries): Add missing argument in call to
31933         scan_prog_file.
31934
31935 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
31936
31937         PR target/42448
31938         * config/alpha/predicates.md (aligned_memory_operand): Return false
31939         for CQImode.
31940         (unaligned_memory_operand): Return true for CQImode.
31941         * config/alpha/alpha.c (get_aligned_mem): Assert that location
31942         doesn not cross aligned SImode word boundary.
31943
31944 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
31945
31946         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
31947         Remove.
31948         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
31949         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
31950
31951 2010-01-02  Richard Guenther  <rguenther@suse.de>
31952
31953         PR lto/41597
31954         * toplev.c (compile_file): Emit LTO marker properly.  Change
31955         it to __gnu_lto_v1.
31956         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
31957
31958 2010-01-01  Richard Guenther  <rguenther@suse.de>
31959
31960         PR debug/42455
31961         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
31962
31963 2010-01-01  Richard Guenther  <rguenther@suse.de>
31964
31965         PR c/42570
31966         * c-decl.c (grokdeclarator): For zero-size arrays force
31967         structural equality checks as layout_type does.
31968
31969 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
31970
31971         * builtins.c: Update copyright to 2010.
31972
31973 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
31974
31975         PR lto/42531
31976         * lto-streamer-out.c (produce_asm): Revert the last change.
31977         (copy_function): Likewise.
31978
31979         * lto-streamer.c (lto_get_section_name): Skip any leading
31980         asterisk in name.
31981
31982 2010-01-01  Richard Guenther  <rguenther@suse.de>
31983
31984         PR middle-end/42559
31985         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
31986         for LABEL_DECLs.
31987
31988 \f
31989 Copyright (C) 2010 Free Software Foundation, Inc.
31990
31991 Copying and distribution of this file, with or without modification,
31992 are permitted in any medium without royalty provided the copyright
31993 notice and this notice are preserved.