OSDN Git Service

* lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-09-16  Jan Hubicka  <jh@suse.cz>
2
3         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
4         processing clone.
5
6 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
9
10         * config/i386/i386.c (predict_jump): Add prototype.
11         (flag_opts): Add -m8bit-idiv.
12         (ix86_split_idivmod): New.
13
14         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
15         Add 2 splitters for SI/DI mode divide.
16         (divmod<mode>4_1): New pattern.
17         (udivmod<mode>4_1): Likewise.
18         (testdi_ccno_1): Likewise.
19
20         * config/i386/i386.opt (m8bit-idiv): New.
21
22         * doc/invoke.texi: Document -m8bit-idiv.
23
24 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
25
26         PR bootstrap/45680
27         * config/i386/i386.c (min_insn_size): Moved out of the
28         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
29
30 2010-09-16  Jan Hubicka  <jh@suse.cz>
31
32         * lto-cgraph.c (lto_output_node): Fix handling of clones.
33         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
34         unreachable clones with reachable clones.
35         * tree-inline.c (copy_bb): Fix sanity checking when producing
36         unreachable clone.
37
38 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
39
40         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
41         (TARGET_MEMORY_MOVE_COST): Define.
42         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
43
44 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
45
46         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
47         maybe_tidy_empty_bb.
48
49         Revert:
50         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
51         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
52
53 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
54
55         * target.def (target_option.optimization): New hook.
56         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
57         TARGET_OPTION_OPTIMIZATION hook.
58         * doc/tm.texi: Regenerate.
59         * hooks.c (hook_void_int_int): New.
60         * hooks.h (hook_void_int_int): Declare.
61         * opts.c: Don't include tm_p.h.
62         (decode_options): Use targetm.target_option.optimization instead
63         of OPTIMIZATION_OPTIONS.
64         * system.h (OPTIMIZATION_OPTIONS): Poison.
65         * config/arm/arm-protos.h (arm_optimization_options): Remove.
66         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
67         (arm_optimization_options): Rename to arm_option_optimization.
68         Make static.
69         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
70         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
71         (cris_option_optimization): New.
72         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
73         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
74         (crx_option_optimization): New.
75         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
76         * config/frv/frv-protos.h (frv_optimization_options): Remove.
77         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
78         (frv_optimization_options): Rename to frv_option_optimization.
79         Make static.
80         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
81         * config/h8300/h8300.c (h8300_option_optimization): New.
82         (TARGET_OPTION_OPTIMIZATION): Define.
83         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
84         * config/i386/i386-protos.h (optimization_options): Remove.
85         * config/i386/i386.c (optimization_options): Rename to
86         ix86_option_optimization.  Make static.
87         (TARGET_OPTION_OPTIMIZATION): Define.
88         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
89         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
90         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
91         (ia64_optimization_options): Rename to ia64_option_optimization.
92         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
93         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
94         commented-out definition.
95         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
96         instead of OPTIMIZATION_OPTIONS.
97         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
98         (m32r_option_optimization): New.
99         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
100         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
101         Remove.
102         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
103         (mcore_option_optimization): New.
104         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
105         * config/mep/mep-protos.h (mep_optimization_options): Remove.
106         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
107         (mep_optimization_options): Rename to mep_option_optimization.
108         Make static.  Take unused level and size parameters.
109         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
110         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
111         (mmix_option_optimization): New.
112         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
113         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
114         (pdp11_option_optimization): New.
115         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
116         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
117         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
118         (optimization_options): Rename to rs6000_option_optimization.
119         Make static.
120         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
121         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
122         * config/rx/rx.c (rx_set_optimization_options): Rename to
123         rx_option_optimization.  Make static.  Take unused level and size
124         parameters.
125         (TARGET_OPTION_OPTIMIZATION): Define.
126         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
127         * config/s390/s390-protos.h (optimization_options): Remove.
128         * config/s390/s390.c (optimization_options): Rename to
129         s390_option_optimization.  Make static.  Don't mark size parameter
130         unused.
131         (TARGET_OPTION_OPTIMIZATION): Define.
132         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
133         * config/sh/sh-protos.h (sh_optimization_options): Remove.
134         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
135         (sh_optimization_options): Rename to sh_option_optimization.  Make
136         static.  Don't mark parameters unused.
137         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
138         * config/spu/spu-protos.h (spu_optimization_options): Remove.
139         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
140         (spu_optimization_options): Rename to spu_option_optimization.
141         Make static.
142         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
143         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
144         (v850_option_optimization): New.
145         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
146         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
147         (xtensa_option_optimization): New.
148         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
149
150 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
151
152         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
153         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
154         * doc/tm.texi: Regenerate.
155         * system.h (OVERRIDE_OPTIONS): Poison.
156         * target.def (override): Default to hook_void_void.
157         * targhooks.c (default_target_option_override): Remove.
158         * genmodes.c, machmode.def: Update comments mentioning
159         OVERRIDE_OPTIONS.
160         * config/alpha/alpha-modes.def: Update comment mentioning
161         alpha_override_options.
162         * config/alpha/alpha-protos.h (override_options): Remove.
163         * config/alpha/alpha.c (override_options): Rename to
164         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make
165         static.
166         (TARGET_OPTION_OVERRIDE): Define.
167         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
168         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
169         of OVERRIDE_OPTIONS.
170         * config/arc/arc-protos.h (arc_init): Remove.
171         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
172         (arc_init): Rename to arc_option_override.  Make static.
173         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
174         (OVERRIDE_OPTIONS): Remove.
175         * config/arm/arm-protos.h (arm_override_options): Remove.
176         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
177         (arm_override_options): Rename to arm_option_override.  Make
178         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
179         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
180         * config/arm/arm.md: Update comment referring to
181         arm_override_options.
182         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
183         instead of OVERRIDE_OPTIONS.
184         * config/avr/avr-protos.h (avr_override_options): Remove.
185         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
186         (avr_override_options): Rename to avr_option_override.  Make
187         static.
188         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
189         * config/bfin/bfin-protos.h (override_options): Remove (twice).
190         * config/bfin/bfin.c (override_options): Rename to
191         bfin_option_override.  Make static.
192         (TARGET_OPTION_OVERRIDE): Define.
193         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
194         * config/cris/cris-protos.h (cris_override_options): Remove.
195         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
196         (cris_override_options): Rename to cris_option_override.  Make
197         static.
198         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
199         * config/frv/frv-protos.h (frv_override_options): Remove.
200         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
201         (frv_override_options): Rename to frv_option_override.  Make
202         static.
203         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
204         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
205         * config/h8300/h8300.c (h8300_init_once): Rename to
206         h8300_option_override.  Make static.
207         (TARGET_OPTION_OVERRIDE): Define.
208         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
209         * config/i386/i386-protos.h (override_options): Remove.
210         * config/i386/i386.c (override_options): Rename to
211         ix86_option_override_internal.  Make static.  Comments referring
212         to this function and callers changed.
213         (ix86_option_override): New.
214         (TARGET_OPTION_OVERRIDE): Define.
215         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
216         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update
217         comment.
218         * config/ia64/ia64.c (ia64_file_start): Update comment referring
219         to ia64_override_options.
220         * config/iq2000/iq2000-protos.h (override_options): Remove.
221         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
222         (override_options): Rename to iq2000_option_override.  Make
223         static.
224         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
225         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
226         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
227         (lm32_override_options): Rename to lm32_option_override.  Make
228         static.
229         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
230         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
231         (m32r_option_override): New.
232         (m32r_init): Update comment.
233         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
234         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options):
235         Remove.
236         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
237         (m68hc11_override_options): Rename to m68hc11_option_override.
238         Make static.  Return void.
239         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
240         * config/m68k/m68k-protos.h (override_options): Remove.
241         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
242         (override_options): Rename to m68k_option_override.  Make static.
243         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
244         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
245         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
246         (mcore_override_options): Rename to mcore_option_override.  Make
247         static.
248         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
249         * config/mep/mep-protos.h (mep_override_options): Remove.
250         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
251         (mep_override_options): Rename to mep_option_override.  Make
252         static.
253         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
254         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
255         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
256         (mmix_override_options): Rename to mmix_option_override.  Make
257         static.
258         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
259         * config/mn10300/mn10300-protos.h (mn10300_override_options):
260         Remove.
261         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
262         (mn10300_override_options): Rename to mn10300_option_override.
263         Make static.
264         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
265         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
266         * config/moxie/moxie.c (moxie_override_options): Rename to
267         moxie_option_override.  Make static.
268         (TARGET_OPTION_OVERRIDE): Define.
269         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
270         * config/picochip/picochip-protos.h (picochip_override_options):
271         Remove.  Update comment referring to picochip_override_options.
272         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
273         (picochip_override_options): Rename to picochip_option_override.
274         Make static.  Update comment and definition of
275         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
276         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
277         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update
278         comment.
279         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update
280         comment.
281         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update
282         comment.
283         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update
284         comment.
285         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update
286         comment.
287         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
288         instead of OVERRIDE_OPTIONS.
289         * config/rs6000/rs6000-modes.def: Update comment referring to
290         rs6000_override_options.
291         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
292         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
293         (rs6000_override_options): Rename to
294         rs6000_option_override_internal.  Make static.  Commented
295         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
296         (rs6000_option_override): New.
297         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
298         instead of OVERRIDE_OPTIONS.
299         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update
300         comment.
301         * config/s390/s390-protos.h (override_options): Remove.
302         * config/s390/s390.c (override_options): Rename to
303         s390_option_override.  Make static.
304         (TARGET_OPTION_OVERRIDE): Define.
305         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
306         * config/score/score-protos.h (score_override_options): Remove.
307         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
308         (score_override_options): Rename to score_option_override.  Make
309         static.
310         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
311         Update comment referring to override_options.
312         * config/score/score3.c (score3_override_options): Rename to
313         score3_option_override.
314         * config/score/score3.h (score3_override_options): Rename to
315         score3_option_override.
316         * config/score/score7.c (score7_override_options): Rename to
317         score7_option_override.
318         * config/score/score7.h (score7_override_options): Rename to
319         score7_option_override.
320         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
321         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
322         (sparc_override_options): Rename to sparc_option_override.  Make
323         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
324         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
325         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
326         instead of OVERRIDE_OPTIONS.
327         * config/spu/spu-protos.h (spu_override_options): Remove.
328         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
329         (spu_override_options): Rename to spu_option_override.  Make
330         static.
331         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
332         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
333         OVERRIDE_OPTIONS.
334         * config/vax/vax-protos.h (override_options): Remove.
335         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
336         (override_options): Rename to vax_option_override.  Make static.
337         Call SUBTARGET_OVERRIDE_OPTIONS.
338         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
339         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
340         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
341         * config/xtensa/xtensa-protos.h (override_options): Remove.
342         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
343         (override_options): Rename to xtensa_option_override.  Make
344         static.
345         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
346
347 2010-09-16  Richard Guenther  <rguenther@suse.de>
348
349         PR tree-optimization/45623
350         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
351         (get_constraint_for_component_ref): If computing a constraint
352         for the rhs handle type punning through unions.
353         (get_constraint_for_address_of): Adjust.
354         (get_constraint_for_1): Likewise.
355         (get_constraint_for): Likewise.
356         (get_constraint_for_rhs): New function.
357         (do_structure_copy): Adjust.
358         (make_constraint_to): Likewise.
359         (handle_const_call): Likewise.
360         (find_func_aliases): Likewise.
361         (process_ipa_clobber): Likewise.
362         (create_variable_info_for): Likewise.
363
364 2010-09-16  Ira Rosen  <irar@il.ibm.com>
365
366         * tree-vectorizer.c: Fix documentation.
367         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
368         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
369         is_pattern_stmt_p, is_loop_header_bb_p,
370         stmt_vinfo_set_inside_of_loop_cost,
371         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
372         known_alignment_for_access_p): Likewise.
373         * tree-vect-loop.c: Fix documentation.
374         (vect_get_cost): Start function name from new line.
375         * tree-vect-data-refs.c: Fix documentation.
376         * tree-vect_stmts.c: Likewise.
377         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
378         (vectorizable_store): Free vec_oprnds if allocated.
379         (vectorizable_condition): Initialize several variables to avoid
380         warnings.
381         * tree-vect-slp.c: Fix documentation.
382
383 2010-09-16  Richard Guenther  <rguenther@suse.de>
384
385         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
386         is TS_TRANSLATION_UNIT_DECL.
387         (initialize_tree_contains_struct): Adjust.
388         (all_translation_units): New global vector.
389         (build_translation_unit_decl): New function.
390         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
391         (struct tree_translation_unit_decl): New.
392         (all_translation_units): Declare.
393         (union tree_node): Add translation_unit_decl member.
394         (build_translation_unit_decl): Declare.
395         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
396         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
397         New function.
398         (pack_value_fields): Call it.
399         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
400         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
401         (lto_output_tree_pointers): Call it.
402         * lto-streamer-in.c (lto_input_tree_ref): Handle references
403         to TRANSLATION_UNIT_DECL.
404         (unpack_ts_translation_unit_decl_value_fields): New function.
405         (unpack_value_fields): Call it.
406         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
407         (lto_input_tree_pointers): Call it.
408         * lto-streamer.c (check_handled_ts_structures): Adjust.
409         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
410         * c-decl.c (all_translation_units): Remove.
411         (pop_scope): Use build_translation_unit_decl.
412         (collect_all_refs): Adjust.
413         (for_each_global_decl): Likewise.
414         (c_write_global_declarations): Likewise.
415
416 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
417
418         PR bootstrap/45686
419         * fold-const.c (fold_checksum_tree): Change slot from const void **
420         to void **, use CONST_CAST_TREE to store into *slot.
421
422 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
423
424         * config/i386/i386.md: Remove unneeded empty conditions and
425         preparation statements from expanders.
426         * config/i386/mmx.md: Ditto.
427         * config/i386/sse.md: Ditto.
428
429 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
430
431         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
432
433 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
434
435         PR rtl-optimization/45593
436         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
437         insns that were in delay slots as stand-alone insns.
438
439 2010-09-15  Ian Lance Taylor  <iant@google.com>
440
441         * incpath.c (remove_duplicates): If name is not a directory, issue
442         a warning rather than an error.
443
444 2010-09-15  Martin Jambor  <mjambor@suse.cz>
445
446         PR middle-end/45644
447         * tree-sra.c (create_access): Check for bit-fields directly.
448
449 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
450
451         PR tree-optimization/45633
452         * tree-cfg.c (verify_gimple_assign_binary): Allow
453         MINUS_EXPR with lhs and rhs1 pointer vector and
454         rhs2 sizetype vector.
455         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
456         or vector pointer use TER to optimize pointer subtraction.
457
458 2010-09-15  Jie Zhang  <jie@codesourcery.com>
459
460         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
461         fcmpd to fcmps.
462
463 2010-09-15  Ian Lance Taylor  <iant@google.com>
464
465         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
466
467 2010-09-15  Ian Lance Taylor  <iant@google.com>
468
469         * function.c (get_arg_pointer_save_area): Set
470         arg_pointer_save_area_init to true.
471
472 2010-09-15  Martin Jambor  <mjambor@suse.cz>
473
474         * tree-sra.c (generate_subtree_copies): Updated comment.
475         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
476         obtained from the statement iterator instead.
477         (load_assign_lhs_subreplacements): Removed parameters lhs and
478         right_offset, which is obtained from top_racc instead.  Parameter lacc
479         is now expected to be the root of the processed tree rather than root's
480         first child.  Updated all callers.
481
482 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
483
484         * config/pdp11/pdp11.c (register_move_cost): Rename to
485         pdp11_register_move_cost.
486         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
487         pdp11_register_move_cost.
488         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
489         pdp11_register_move_cost instead of register_move_cost.
490
491 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
492
493         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
494         pattern for vmovn. Expansion in case of non 
495         -mvectorize-with-neon-quad.
496         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
497         non- -mvectorize-with-neon-quad case.
498         (move_lo_quad_<mode>): New expansion to vmov into low part.
499         (move_hi_quad_<mode>): New expansion to vmov into high part.
500         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
501         (move_lo_quad_v4sf): Likewise.
502         (move_lo_quad_v8hi): Likewise.
503         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
504         low part.
505         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
506         high part.
507         * config/arm/iterators.md (ANY128): New mode iterator.
508         (V_narrow_pack): New mode attribute.
509         (V_HALF): Add attribute.
510         (V_DOUBLE): Add attribute.
511         (V_mode_nunits): Add attribute.
512
513 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
514
515         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
516         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
517
518 2010-09-15  Olivier Hainque  <hainque@adacore.com>
519             Jose Ruiz  <ruiz@adacore.com>
520
521         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
522         * config/alpha/osf5-unwind.h: New file.
523
524 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
525
526         PR bootstrap/45672
527         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
528         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
529         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
530
531 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
532
533         * c-lang.h (struct lang_type): Add variable_size GTY option.
534
535 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
536
537         PR bootstrap/45672
538         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
539
540 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
541
542         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
543         result isn't used in memory address.
544
545 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
546
547         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
548         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
549         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
550         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
551         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
552         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
553
554         * target.def: Add units_per_simd_word to vectorize.
555
556         * targhooks.c (default_units_per_simd_word): New.
557         * targhooks.h (default_units_per_simd_word): Likewise.
558         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
559         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
560         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
561         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
562         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
563         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
564         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
565         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
566
567         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
568         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
569
570         * tree-vect-stmts.c: Don't include "tm_p.h".
571         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
572         with targetm.vectorize.units_per_simd_word.
573
574         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
575
576         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
577
578         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
579         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
580
581         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
582         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
583
584         * doc/tm.texi: Regenerated.
585
586 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
587
588         * tree-vect-stmts.c: Include "tm_p.h".
589
590         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
591         out of RTX_CODE.
592
593 2010-09-14  Martin Jambor  <mjambor@suse.cz>
594
595         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
596         location of generated statement.  Changed all callers.
597         (build_ref_for_model): New parameter loc which used to set location of
598         all generated expressions.  Changed all callers.
599         (generate_subtree_copies): Likewise.
600         (init_subtree_with_zero): Likewise.
601         (sra_modify_expr): Set locations of all generated statements and
602         expressions to the location the original statement.
603         (handle_unscalarized_data_in_subtree): Likewise.
604         (load_assign_lhs_subreplacements): Likewise.
605         (sra_modify_constructor_assign): Likewise.
606         (sra_modify_assign): Likewise.
607
608 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
609
610         PR target/45277
611         PR target/45363
612         PR target/45407
613         * doc/install.texi (sparc*-*-*): New section.
614         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
615
616 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
617
618         PR middle-end/45567
619         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
620         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
621         (expand_builtin): Adjust caller.
622         (expand_builtin_unop): Only use subtarget if it has the right mode.
623
624 2010-09-14  Tristan Gingold  <gingold@adacore.com>
625
626         * configure.ac (plugins): Fix typos.
627         * configure: Regenerate.
628
629 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
630
631         PR debug/45660
632         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
633         gen_type_die for function/method return type.
634
635 2010-09-14  Ira Rosen  <irar@il.ibm.com>
636
637         PR tree-optimization/45470
638         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
639         can throw an exception.
640         * tree-vect-stmts.c (vectorizable_call): Likewise.
641
642 2010-09-14  DJ Delorie  <dj@redhat.com>
643
644         PR target/44749
645         * config/mep/mep-protos.h (mep_save_register_info,
646         mep_reinit_regs, mep_init_regs): Declare.
647
648         * config/mep/mep.c: Move all target definitions to the end of the
649         file to avoid the need for duplicate declarations.
650         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
651         (mep_reorg_erepeat): Remove unused variables.
652         (mep_expand_builtin): Likewise.
653
654         * config/mep/mep-pragma.c: Don't include rtl.h.
655         (INVALID_REGNUM): New.
656         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
657         functions.
658         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
659         Avoid enum/integer math.
660
661 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
662
663         PR target/44749
664         * config/mep/t-mep (GTM_H): Add insn-constants.h.
665         * config/mep/mep.c (mep_conditional_register_usage): Take no
666         parameters.
667         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
668         prototype.
669         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
670         call to mep_conditional_register_usage.
671
672 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
673
674         PR debug/43937
675         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
676         the DECL as well.
677
678 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
679
680         PR rtl-optimization/45617
681         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
682         even if low N bits of X aren't known to be zero.
683
684 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
685
686         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
687
688         * config/i386/i386.c (initial_ix86_tune_features): Add
689         X86_TUNE_VECTORIZE_DOUBLE.
690         (ix86_units_per_simd_word): New.
691
692         * config/i386/i386.h (ix86_tune_indices): Add
693         X86_TUNE_VECTORIZE_DOUBLE.
694         (TARGET_VECTORIZE_DOUBLE): New.
695         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
696
697 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
698
699         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
700         (new_temp_expr_table): Allocate call_cnt vector.
701         (free_temp_expr_table): Free it.
702         (process_replaceable): Add call_cnt parm and set in vector.
703         (find_replaceable_in_bb): Skip replacement if def/use span a call.
704         (debug_ter): Dump call_cnt value, remove stderr uses.
705
706 2010-09-13  Jan Hubicka  <jh@suse.cz>
707
708         * tree.c (build_zero_cst): New.
709         * tree.h (build_zero_cst): Declare.
710         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
711         (get_base_constructor): Break out from ...
712         (fold_const_aggregate_ref): Here; handle empty constructors.
713
714 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
715
716         * config/arm/arm.md: (define_attr "conds"): Update comment.
717         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
718         conds attribute to clob.
719         (arm_sync_compare_and_swapsi): Likewise.
720         (arm_sync_compare_and_swap<mode>): Likewise.
721         (arm_sync_lock_test_and_setsi): Likewise.
722         (arm_sync_lock_test_and_set<mode>): Likewise.
723         (arm_sync_new_<sync_optab>si): Likewise.
724         (arm_sync_new_nandsi): Likewise.
725         (arm_sync_new_<sync_optab><mode>): Likewise.
726         (arm_sync_new_nand<mode>): Likewise.
727         (arm_sync_old_<sync_optab>si): Likewise.
728         (arm_sync_old_nandsi): Likewise.
729         (arm_sync_old_<sync_optab><mode>): Likewise.
730         (arm_sync_old_nand<mode>): Likewise.
731
732 2010-09-13  Olivier Hainque  <hainque@adacore.com>
733
734         * fwprop.c (forward_propagate_and_simplify): Only attach a
735         REG_EQUAL note to an insn if the destination is a register.
736         * gcse.c (try_replace_reg): Likewise.
737
738 2010-09-13  Richard Guenther  <rguenther@suse.de>
739
740         PR tree-optimization/45611
741         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
742         (copy_ref_info): Likewise.
743
744 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
745
746         PR debug/45604
747         PR debug/45419
748         PR debug/45408
749         * tree-pretty-print.c (dump_generic_node): Disregard top-level
750         types of MEM_REF pointer types to the same type.
751
752 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
753
754         PR rtl-optimization/41087
755         * ifcvt.c (noce_get_condition): Don't allow conditions with
756         side-effects.
757
758 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
759
760         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
761         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
762         * config/frv/frv.c (frv_register_move_cost): Make static. Change
763         arguments type to reg_class_t. Add mode argument.
764         (frv_memory_move_cost): New.
765         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
766
767 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
768
769         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
770         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
771
772 2010-09-10  Jan Hubicka  <jh@suse.cz>
773
774         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
775
776 2010-09-10  Richard Guenther  <rguenther@suse.de>
777
778         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
779         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
780         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
781         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
782         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
783
784 2010-09-10  Richard Guenther  <rguenther@suse.de>
785
786         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
787         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
788         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
789         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
790
791 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
792
793         PR middle-end/45634
794         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
795         of string folding is of integral type.
796
797 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
798
799         * doc/invoke.texi (-x): Fix typo.
800
801 2010-09-10  Richard Guenther  <rguenther@suse.de>
802
803         PR debug/44115
804         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
805         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
806         Output DECL_DEBUG_EXPR.
807         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
808         Input DECL_DEBUG_EXPR.
809
810 2010-09-10  Richard Guenther  <rguenther@suse.de>
811
812         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
813         (build_index_type): Implement in terms of build_range_type.
814         (build_range_type): Do not allow NULL_TREE type, improve
815         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
816         if we didn't hash.
817         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
818         create a distinct copy of the type.
819
820 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
821
822         * configure: Regenerated.
823         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
824
825 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
826
827         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
828         * config/arm/cortex-a9-neon.md: New and partially generated.
829         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
830
831 2010-09-10  Richard Guenther  <rguenther@suse.de>
832
833         * tree.h (build_index_2_type): Remove.
834         * tree.c (build_index_2_type): Remove.
835
836 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
837
838         PR bootstrap/45630
839         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
840         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
841         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
842
843 2010-09-10  Martin Jambor  <mjambor@suse.cz>
844
845         PR tree-optimization/44972
846         * tree-sra.c: Include toplev.h.
847         (build_ref_for_offset): Entirely reimplemented.
848         (build_ref_for_model): New function.
849         (build_user_friendly_ref_for_offset): New function.
850         (analyze_access_subtree): Removed build_ref_for_offset check.
851         (propagate_subaccesses_across_link): Likewise.
852         (create_artificial_child_access): Use
853         build_user_friendly_ref_for_offset.
854         (propagate_subaccesses_across_link): Likewise.
855         (ref_expr_for_all_replacements_p): Removed.
856         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
857         (sra_modify_expr): Use build_ref_for_model.
858         (load_assign_lhs_subreplacements): Likewise.
859         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
860         checks for return values of build_ref_for_offset.
861         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
862         build_ref_for_offset.
863         * ipa-prop.h: Include gimple.h
864         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
865         (ipa_analyze_indirect_call_uses): Update comment.
866         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
867         (IPA_PROP_H): Likewise.
868
869 2010-09-10  Martin Jambor  <mjambor@suse.cz>
870
871         PR tree-optimization/44972
872         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
873         calling build_ref_for_offset.
874
875 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
876
877         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
878         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
879         * config/arm/arm-tune.md: Regenerate.
880         * doc/invoke.texi (ARM Options): Document it.
881
882 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
883
884         * config/i386/i386.c: Include sched-int.h.
885         (TARGET_SCHED_DISPATCH): Defined.
886         (TARGET_SCHED_DISPATCH_DO): Defined.
887         (DISPATCH_WINDOW_SIZE): Defined.
888         (MAX_DISPATCH_WINDOWS): Defined.
889         (MAX_INSN): Defined.
890         (MAX_IMM): Defined.
891         (MAX_IMM_SIZE): Defined.
892         (MAX_IMM_32): Defined.
893         (MAX_IMM_64): Defined.
894         (MAX_LOAD): Defined.
895         (MAX_STORE): Defined.
896         (BIG): Defined.
897         (dispatch_group): New.
898         (num_allowable_groups): New.
899         (group_name): New.
900         (sched_insn_info_s): New.
901         (dispatch_windows_s): New.
902         (imm_info_s): New.
903         (dispatch_window_list): New.
904         (dispatch_window_list1): New.
905         (get_mem_group): New.
906         (is_cmp): New.
907         (dispatch_violation): New.
908         (is_branch): New.
909         (is_prefetch): New.
910         (init_window): New.
911         (allocate_window): New.
912         (init_dispatch_sched): New.
913         (is_end_basic_block): New.
914         (process_end_window): New.
915         (allocate_next_window): New.
916         (find_constant_1): New.
917         (find_constant): New.
918         (get_num_immediates): New.
919         (has_immediate): New.
920         (get_insn_path): New.
921         (get_insn_group): New.
922         (count_num_restricted): New.
923         (fits_dispatch_window): New.
924         (add_insn_window): New.
925         (add_to_dispatch_window): New.
926         (debug_dispatch_window_file): New.
927         (debug_dispatch_window): New.
928         (debug_insn_dispatch_info_file): New.
929         (debug_ready_dispatch): New.
930         (do_dispatch): New.
931         (has_dispatch): New.
932         * config/i386/i386.h (debug_ready_dispatch): Declared.
933         (debug_dispatch_window): Declared.
934         * config/i386/i386.opt (mdispatch-scheduler): New flag.
935         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
936         (TARGET_SCHED_DISPATCH_DO): New.
937         * doc/tm.texi: Regererated.
938         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
939         ready_remove_first_dispatch
940         (schedule_block): Call targetm.sched.dispatch and
941         targetm.sched.dispatch_do.
942         (sched_init): Call targetm.sched.dispatch and
943         targetm.sched.dispatch_do.
944         (ready_remove_first_dispatch): New.
945         (number_in_ready): New.
946         (get_ready_element): New.
947         * hooks.c (hook_bool_rtx_int_false): New.
948         (hook_void_rtx_int): New.
949         * hooks.h (hook_bool_rtx_int_false): Declared.
950         (hook_void_rtx_int): Declared.
951         * sched-int.h (IS_DISPATCH_ON): Defined.
952         (IS_CMP): Defined.
953         (DISPATCH_VIOLATION): Defined.
954         (FITS_DISPATCH_WINDOW): Defined.
955         (DISPATCH_INIT): Defined.
956         (ADD_TO_DISPATCH_WINDOW): Defined.
957         (get_ready_element): Declared.
958         (number_in_ready): Declared.
959         * target.def (dispatch): Defined.
960         (dispatch_do): Defined.
961
962 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
963
964         PR middle-end/45312
965         * reload1.c (merge_assigned_reloads): Remove.
966         (reload_as_needed): Don't call it.
967
968 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
969
970         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
971         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
972         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
973
974 2010-09-09  Matthias Klose  <doko@ubuntu.com>
975
976         PR bootstrap/43847
977         * configure.ac (--enable-plugin): Enhance for cross builds.
978         * configure: Regenerate.
979
980 2010-09-09  Jan Hubicka  <jh@suse.cz>
981
982         PR tree-optimization/45598
983         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
984         string folding is of integral type.
985
986 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
987
988         * configure.ac (gnu_indirect_function): New test.
989         * configure: Rebuilt.
990         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
991         * defaults.h (IFUNC_ASM_TYPE): Provide default.
992
993         * doc/extend.texi (Function Attributes): Document ifunc.
994         * varasm.c (do_assemble_alias): Deal with ifuncs too.
995
996 2010-09-09  Hariharan Sandanagobalane <hariharan@picochip.com>
997
998         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
999         epilogue instruction move.
1000
1001 2010-09-09  Jan Hubicka  <jh@suse.cz>
1002
1003         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
1004         command line to allow more partitions than input files.
1005
1006 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
1007
1008         PR middle-end/44554
1009         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
1010
1011 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
1012
1013         PR middle-end/40386
1014         * ira.c (pseudo_for_reload_consideration_p): Don't use
1015         flag_ira_share_spill_slots.
1016
1017 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1018
1019         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
1020         point zero operands that fit into a single GPR.
1021         (s390_preferred_reload_class): Ensure we only return general-purpose
1022         register classes.
1023         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
1024         floating-point zero operands into GPRs.
1025         ("*mov<mode>_64"): Likewise.
1026         ("mov<mode>"): Likewise using lhi.
1027
1028 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1029
1030         * config/s390/s390.c (s390_symref_operand_p): Return false for
1031         literal pool references.
1032         (s390_check_qrst_address): Update caller.
1033
1034 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
1035
1036         * config/i386/predicates.md (ext_register_operand): Check that
1037         SUBREG_REG is really a register before looking for REGNO.
1038         (reg_not_xmm0_operand): Handle SUBREGs correctly.
1039         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
1040
1041 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
1042
1043         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
1044         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
1045         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
1046         * print-rtl.c (print_rtx): Likewise.
1047         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
1048         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
1049         for ADDR_EXPR with non-addressable object.
1050         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
1051         (struct dw_val_struct): Add v.val_decl_ref.
1052         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
1053         Handle DW_OP_GNU_implicit_pointer.
1054         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
1055         (get_ref_die_offset_label): New function.
1056         (implicit_ptr_descriptor): New function.
1057         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
1058         (loc_descriptor): Likewise.
1059         (gen_variable_die): Put even definitions into decl_die_table.
1060         (resolve_addr_in_expr): Resolve still unresolved
1061         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
1062         return false.
1063         (dwarf2out_finish): Call output_location_lists after outputting
1064         .debug_info and .debug_abbrev instead of before.
1065
1066 2010-09-09  Roland McGrath  <roland@redhat.com>
1067
1068         * dwarf2out.c (DWARF_REF_SIZE): Define.
1069         (size_of_loc_descr): Use it for DW_OP_call_ref.
1070
1071 2010-09-09  Alan Modra  <amodra@gmail.com>
1072
1073         * doc/invoke.text: Reinstate mcmodel=medium.
1074         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1075         CMODEL_MEDIUM as default.
1076         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
1077         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
1078         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
1079         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
1080
1081 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1082
1083         PR target/45250
1084         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
1085         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
1086         (builtin_longjmp): Likewise.
1087         (allocate_stack): Use hard_frame_pointer_rtx instead of
1088         frame_pointer_rtx.
1089         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
1090         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
1091         (pa_can_eliminate): Likewise.
1092         (TARGET_INTERNAL_ARG_POINTER): Define.
1093         (TARGET_CAN_ELIMINATE): Define.
1094         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
1095         pointer.
1096         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
1097         (pa_internal_arg_pointer, pa_can_eliminate,
1098         pa_initial_elimination_offset): New.
1099         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
1100         (HARD_FRAME_POINTER_REGNUM): Set to register three.
1101         (INITIAL_FRAME_POINTER_OFFSET): Delete.
1102         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
1103         Define.
1104         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
1105         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
1106         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
1107         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
1108         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
1109         new soft frame pointer.
1110         * config/pa/pa64-regs.h: Likewise.
1111
1112 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
1113
1114         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
1115         numerical constant.
1116         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
1117
1118 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
1119
1120         PR debug/45531
1121         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
1122
1123 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
1124
1125         PR debug/45419
1126         PR debug/45408
1127         * tree-pretty-print.c (dump_generic_node): Disregard top-level
1128         qualifiers in otherwise equal MEM_REF pointer types.
1129         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
1130         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
1131
1132 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1133
1134         PR target/44392
1135         * config/arm/arm.md (bswapsi2): Handle condition correctly
1136         for armv6 and optimize_size.
1137
1138 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1139
1140         PR other/18555
1141         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
1142
1143 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
1144
1145         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
1146         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
1147         ix86_expand_strlen, legitimate_pic_address_disp_p,
1148         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
1149         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
1150         ix86_check_movabs, ix86_secondary_memory_needed): Change function
1151         prototype to bool.
1152         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
1153         return_in_memory_ms_64, ix86_check_movabs,
1154         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
1155         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
1156         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
1157         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
1158         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
1159         ix86_secondary_memory_needed): Change to bool.  Return
1160         "true" and "false" values.
1161         * config/i386/i386.md: Return "true" and "false" values.
1162
1163 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1164
1165         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1166         run_expensive_tests.
1167
1168 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1169
1170         * toplev.c (output_stack_usage): Use lbasename instead of basename.
1171
1172 2010-09-08  Martin Jambor  <mjambor@suse.cz>
1173
1174         PR other/45443
1175         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
1176         at -O3.
1177
1178 2010-09-08  Richard Guenther  <rguenther@suse.de>
1179
1180         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
1181         (visit): Adjust.
1182         (iterative_hash_gimple_type): Likewise.
1183         (gimple_type_hash): Likewise.
1184         (gimple_register_type): Likewise.
1185         (print_gimple_types_stats): Likewise.
1186         (free_gimple_type_tables): Likewise.
1187
1188 2010-09-08  Michael Matz  <matz@suse.de>
1189
1190         PR tree-optimization/43430
1191         * tree-vect-stmts.c (vectorizable_condition): Support multiple
1192         copies for conditional statements if it's not part of a reduction.
1193
1194 2010-09-08  Michael Matz  <matz@suse.de>
1195
1196         PR tree-optimization/33244
1197         * tree-ssa-sink.c (statement_sink_location): Don't sink into
1198         empty loop latches.
1199
1200 2010-09-08  Richard Guenther  <rguenther@suse.de>
1201
1202         PR tree-optimization/45578
1203         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
1204         Be more careful when transfering alignment information to
1205         the new induction variable.
1206         (copy_ref_info): Likewise.
1207
1208 2010-09-08  Richard Guenther  <rguenther@suse.de>
1209
1210         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
1211         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
1212
1213 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
1214
1215         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
1216         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
1217
1218 2010-09-08  Kenneth Zadeck <zadeck@naturalbridge.com>
1219
1220         PR doc/45587
1221         * doc/md.texi: Fixed modes on several standard pattern names.
1222
1223 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
1224
1225         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
1226         (ashl<mode>3): ...this.
1227         (loongson_psra<V_suffix>): Rename to...
1228         (ashr<mode>3): ...this.
1229         (loongson_psrl<V_suffix>): Rename to...
1230         (lshr<mode>3): ...this.
1231         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
1232         (CODE_FOR_loongson_psllw): Define.
1233         (CODE_FOR_loongson_psrlh): Define.
1234         (CODE_FOR_loongson_psrlw): Define.
1235         (CODE_FOR_loongson_psrah): Define.
1236         (CODE_FOR_loongson_psraw): Define.
1237
1238 2010-09-07  Richard Henderson  <rth@redhat.com>
1239
1240         * tree-vect-data-refs.c: Include tm_p.h.
1241         * Makefile.in (tree-vect-data-refs.o): Update deps.
1242         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
1243         Move delarations outside #ifdef RTX_CODE.
1244
1245 2010-09-07  Richard Henderson  <rth@redhat.com>
1246
1247         * final.c (rest_of_handle_final): Unconditionally do
1248         output_function_exception_table before assemble_end_function.
1249
1250 2010-09-07  Jan Hubicka  <jh@suse.cz>
1251
1252         * tree-inline.c (tree_inlinable_function_p): Do not test
1253         DECL_REPLACEABLE_P.
1254         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
1255         update_callee_keys, cgraph_decide_inlining): Test function availability.
1256         * cif-code.def (OVERWRITABLE): New code.
1257
1258 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
1259             Jack Howarth <howarth@bromo.med.uc.edu>
1260
1261         PR target/36502
1262         PR target/42313
1263         PR target/44651
1264         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
1265         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
1266         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
1267         MAX macro.
1268
1269 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1270
1271         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
1272         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
1273
1274 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1275
1276         * config.gcc: Don't append t-android for Android targets.
1277
1278         * config/t-android: Removed.
1279
1280 2010-09-07  Richard Henderson  <rth@redhat.com>
1281
1282         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
1283         * doc/tm.texi.in: Add doc marker.
1284         * doc/tm.texi: Rebuild.
1285         * except.c (switch_to_exception_section): Always build.
1286         (output_one_function_exception_table): Move section switch,
1287         personality output, and label output ...
1288         (output_function_exception_table): ... here.  Use the new
1289         personality hook.
1290
1291         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
1292         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
1293         TARGET_ASM_INIT_SECTIONS): New.
1294         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
1295         make static.
1296         (TARGET_ASM_UNWIND_EMIT): Update to match.
1297         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
1298
1299         * config/arm/arm.c (arm_asm_emit_except_personality): New.
1300         (arm_asm_init_sections): New.
1301         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
1302
1303 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1304
1305         * config/arm/arm.md: Remove unused variable.
1306
1307 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
1308
1309         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1310         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
1311         (m32r_memory_move_cost): New function.
1312
1313 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1314
1315         * config.gcc: Append t-android for Android targets.
1316
1317         * config/t-android: New.
1318
1319 2010-09-07  Richard Henderson  <rth@redhat.com>
1320
1321         * target.def (unwind_emit_before_insn): New hook.
1322         * doc/tm.texi.in: Add @hook marker for it.
1323         * doc/tm.texi: Rebuild.
1324         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
1325
1326 2010-09-07  Martin Jambor  <mjambor@suse.cz>
1327
1328         PR fortran/43665
1329         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
1330         are any type attributes.
1331
1332 2010-09-07  Jan Hubicka  <jh@suse.cz>
1333
1334         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
1335         array_ref_low_bound in string access folding.
1336
1337 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
1338
1339         PR target/45206
1340         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
1341         eh_return fixup sequence.
1342
1343 2010-09-07  Jan Hubicka  <jh@suse.cz>
1344
1345         * gimple-fold.c (maybe_fold_reference): Verify that operand is
1346         gimple_min_invariant.
1347
1348 2010-09-07  Richard Guenther  <rguenther@suse.de>
1349
1350         PR middle-end/45569
1351         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
1352         nor CONSTRUCTOR can trap.
1353         * tree-complex.c (update_complex_assignment): Update EH info.
1354
1355 2010-09-07  Richard Guenther  <rguenther@suse.de>
1356
1357         PR middle-end/45569
1358         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
1359         * passes.c (execute_function_todo): Do not verify anything if
1360         we saw errors.
1361
1362 2010-09-07  Richard Guenther  <rguenther@suse.de>
1363
1364         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
1365
1366 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
1367
1368         PR target/43137
1369         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
1370         New define_mode_attrs.
1371         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
1372         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
1373         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
1374         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
1375         Remove pool_range attribute.
1376         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
1377         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
1378         pool_range and neg_pool_range attributes.
1379         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
1380         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
1381         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
1382
1383 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1384
1385         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
1386         check glibc.
1387
1388 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
1389
1390         PR target/22152
1391         * config/i386/mmx.md (*mov<mode>_internal_rex64,
1392         *mov<mode>_internal_avx, *mov<mode>_internal,
1393         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
1394         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
1395
1396 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
1397
1398         * c-typeck.c (do_warn_double_promotion): Remove.
1399         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
1400         Objective-C++ too.
1401
1402 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
1403
1404         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
1405         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
1406         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
1407         argument type to reg_class_t. Change result type to bool.
1408         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1409
1410 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1411
1412         PR libobjc/19850
1413         * gthr-posix.h (__gthread_objc_thread_detach): Use
1414         _objc_thread_attribs when detaching a thread.
1415         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
1416
1417 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1418
1419         PR target/45524
1420         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
1421         * configure: Regenerated.
1422
1423 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1424
1425         * combine.c (try_combine): Set subst_low_luid to i0.
1426
1427 2010-09-06  Richard Guenther  <rguenther@suse.de>
1428
1429         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
1430         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
1431         (build_aligned_type): Declare.
1432         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
1433         (check_aligned_type): New function.
1434         (build_aligned_type): Likewise.
1435         * expr.c (expand_assignment): Handle misaligned stores via
1436         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
1437         (expand_expr_real_1): Likewise.
1438         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
1439         * tree-vect-stmts.c (vectorizable_store): Do not build
1440         MISALIGNED_INDIRECT_REF but initialize alignment information.
1441         (vectorizable_load): Likewise.
1442         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
1443         handling.
1444         * cfgexpand.c (expand_debug_expr): Likewise.
1445         * dwarf2out.c (loc_list_from_tree): Likewise.
1446         * fold-const.c (maybe_lvalue_p): Likewise.
1447         (operand_equal_p): Likewise.
1448         (build_fold_addr_expr_with_type_loc): Likewise.
1449         * gimplify.c (gimplify_addr_expr): Likewise.
1450         (gimplify_expr): Likewise.
1451         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1452         (verify_gimple_assign_single): Likewise.
1453         * tree-dump.c (dequeue_and_dump): Likewise.
1454         (tree_could_trap_p): Likewise.
1455         * tree-predcom.c (ref_at_iteration): Likewise.
1456         * tree-pretty-print.c (dump_generic_node): Likewise.
1457         (op_code_prio): Likewise.
1458         (op_symbol_code): Likewise.
1459         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1460         * tree-ssa-loop-im.c (for_each_index): Likewise.
1461         (gen_lsm_tmp_name): Likewise.
1462         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1463         (find_interesting_uses_address): Likewise.
1464         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1465         * tree-ssa-operands.c (get_expr_operands): Likewise.
1466         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1467         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1468         (ao_ref_init_from_vn_reference): Likewise.
1469         * tree.c (staticp): Likewise.
1470         (build1_stat): Likewise.
1471         (reference_alias_ptr_type): Likewise.
1472         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1473         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
1474         MISALIGNED_INDIRECT_REF handling.
1475
1476 2010-09-06  Richard Guenther  <rguenther@suse.de>
1477
1478         PR tree-optimization/45534
1479         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
1480         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
1481         on the target.
1482         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
1483         valid on the target.
1484
1485 2010-09-06  Andreas Schwab  <schwab@redhat.com>
1486
1487         * configure.ac: Quote argument of AC_MSG_WARN.
1488         * configure: Regenerate.
1489
1490 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
1491
1492         * sel-sched.c (move_cond_jump): Correct arguments to
1493         maybe_tidy_empty_bb.
1494         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
1495
1496 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
1497
1498         PR rtl-optimization/44919
1499         * sel-sched.c (move_cond_jump): Remove assert, check that
1500         the several blocks case can only happen with mutually exclusive
1501         insns instead.  Rewrite the movement code to support moving through
1502         several basic blocks.
1503
1504 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
1505
1506         * config/i386/i386.md (iptrsize): New mode attribute.
1507         (tp_seg): Ditto.
1508         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
1509         mode iterator.
1510         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
1511         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
1512         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
1513         (stack_tls_protect_set_<mode>): Ditto from
1514         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
1515         of thread base pointer load.
1516         (stack_tls_protect_test_<mode>): Ditto from
1517         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
1518         of thread base pointer load.
1519         (stack_protect_set): Rewrite using indirect functions.
1520         (stack_protect_test): Ditto.
1521         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
1522         (ix86_print_operand): Handle '@'.
1523
1524 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
1525
1526         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
1527         MINUS_EXPR.
1528
1529 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
1530
1531         * doc/invoke.texi: Document -Wdouble-promotion.
1532         * c-typeck.c (convert_arguments): Check for implicit conversions
1533         from float to double.
1534         (do_warn_double_promotion): New function.
1535         (build_conditional_expr): Use it.
1536         (build_binary_op): Likewise.
1537
1538 2010-09-05  Richard Guenther  <rguenther@suse.de>
1539
1540         PR tree-optimization/45535
1541         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
1542         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
1543         dereferencing it.
1544         (indirect_refs_may_alias_p): Likewise.
1545
1546 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
1547
1548         * config/sh/sh.c (sh_option_override): Make static.
1549         Adjust comments.  Declare.
1550         (sh_function_value_regno_p): Likewise.
1551         (sh_register_move_cost): Modify the arguments, make static.
1552         Adjust comments.  Declare.
1553         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
1554         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1555         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
1556         REGISTER_MOVE_COST): Delete.
1557         * config/sh/sh-protos.h (sh_override_options): Delete.
1558         (sh_register_move_cost): Delete.
1559         (sh_function_value_regno_p): Delete.
1560
1561 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
1562
1563         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
1564         m32r_function_value_regno_p): New functions.
1565         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1566         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
1567         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
1568         FUNCTION_VALUE_REGNO_P): Remove.
1569
1570 2010-09-04  Jan Hubicka  <jh@suse.cz>
1571
1572         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
1573         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
1574         fold_read_from_constant_string.
1575
1576         * gimple.h (canonicalize_constructor_val): Declare.
1577         * gimple-fold.c (canonicalize_constructor_val): New function.
1578         (get_symbol_constant_value):Use it.
1579         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1580
1581 2010-09-04  Jan Hubicka  <jh@suse.cz>
1582
1583         * tree-switch-conversion.c (build_one_array): Set constructor to be
1584         static.
1585         * varpool.c (varpool_finalize_decl): Compute const_value_known.
1586
1587 2010-09-04  Richard Guenther  <rguenther@suse.de>
1588
1589         PR bootstrap/45519
1590         * tree-flow.h (force_gimple_operand_1): Declare.
1591         (force_gimple_operand_gsi_1): Likewise.
1592         * gimplify.c (force_gimple_operand_1): New worker taking a
1593         gimple predicate for ...
1594         (force_gimple_operand): ... which now wraps it.
1595         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
1596         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
1597         last change.
1598         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
1599         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
1600         (create_mem_ref): Likewise.
1601
1602 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
1603
1604         * config/i386/predicates.md (sse_reg_operand): New predicate.
1605         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
1606         predicate for operand 1.
1607         (XFmode push splitter): Use fp_register_operand predicate
1608         for operand 1.
1609         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
1610         (SF-DF float_extend push splitter): Add reload_completed insn
1611         predicate.
1612         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
1613         MODEF mode macro.  Add reload_completed insn predicate.
1614
1615 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
1616
1617         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
1618         (struct df_extract_ref): Remove.
1619         (union df_ref_d): Remove extract_ref member.
1620         (df_ref_create): Remove last three arguments.
1621         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
1622         * df-scan.c (df_ref_record): Remove last three arguments, do not
1623         pass them to df_ref_create_structure.
1624         (df_uses_record): Remove first and last three arguments.  Replace
1625         first argument with DF_REF_REGULAR, adjust calls to remove the
1626         width, offset and mode.  Always call recursively on the second
1627         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
1628         (df_ref_create_structure): Remove first argument.
1629         (struct df_scan_problem_data): Remove ref_extract_pool.
1630         (df_scan_free_internal): Do not free it.
1631         (df_scan_alloc): Do not allocate it.
1632         (df_ref_create): Remove last three arguments, do not pass them to
1633         df_ref_create_structure.
1634         (df_free_ref): Remove DF_REF_EXTRACT case.
1635         (df_notes_rescan): Adjust call to df_uses_record.
1636         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
1637         Remove DF_REF_EXTRACT case.
1638         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
1639         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
1640         and SUBREG definitions.
1641         (df_get_conditional_uses): Remove references to width/offset/mode,
1642         adjust call to df_ref_create_structure.
1643         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
1644         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
1645         calls to df_uses_record and df_ref_record.
1646         * fwprop.c (update_df): Remove references to width/offset/mode,
1647         adjust call to df_ref_create.
1648
1649 2010-09-03  Jan Hubicka  <jh@suse.cz>
1650
1651         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
1652         (build_cdtor_fns): Update use of build_cdtor.
1653
1654 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
1655
1656         * doc/options.texi (SeparateAlias): Document.
1657         * opt-functions.awk (switch_flags): Handle SeparateAlias.
1658         * opth-gen.awk: Generate enumeration names for options marked
1659         SeparateAlias, but not for those marked Ignore.
1660         * opts-common.c (generate_canonical_option): Don't output separate
1661         argument for options marked CL_SEPARATE_ALIAS.
1662         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
1663         * opts.h (CL_SEPARATE_ALIAS): New.
1664         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1665         CL_COMMON): Adjust definitions.
1666         * config/i386/darwin.opt, config/mips/sde.opt: New.
1667         * common.opt (fdump-final-insns): New.
1668         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1669         i386/darwin.opt.
1670         (mips*-sde-elf*): Add mips/sde.opt.
1671         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
1672         -mno-data-in-code and -mcode-xonly here.
1673         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
1674         * gcc.c (option_map): Add "j" to --dump entry.
1675         (translate_options): Don't translate -d to -foutput-class-dir= here.
1676
1677 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
1678
1679         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
1680         DR_IS_WRITE.
1681         (compute_all_dependences): Same.
1682         (create_rdg_edge_for_ddr): Same.
1683         * tree-data-ref.h (DR_IS_WRITE): New.
1684         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
1685         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
1686         (write_memrefs_written_at_least_once): Same.
1687         * tree-predcom.c (suitable_component_p): Same.
1688         (determine_roots_comp): Same.
1689         (execute_load_motion): Same.
1690         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
1691         (vect_enhance_data_refs_alignment): Same.
1692         (vect_analyze_group_access): Same.
1693
1694 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
1695
1696         PR testsuite/42843
1697         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
1698         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
1699
1700 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
1701
1702         * dwarf2out.c (file scope): Remove #if0'd code.
1703         (gen_subprogram_die): Same.
1704
1705 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
1706
1707         PR middle-end/45484
1708         * dwarf2out.c (flush_queued_reg_saves): Rename to...
1709         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
1710         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
1711         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
1712         * config/i386/i386.c (output_set_got): Call it.
1713
1714 2010-09-03  Michael Matz  <matz@suse.de>
1715
1716         PR middle-end/45415
1717         * tree-sra.c (sra_modify_assign): If we modify the statement,
1718         say so.
1719
1720         * tree-ssa.c (verify_ssa): Check number of operands and links
1721         per statement to agree.
1722
1723 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
1724             Iain Sandoe  <iains@gcc.gnu.org>
1725
1726         PR target/45476
1727         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
1728         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
1729         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
1730
1731 2010-09-03  Richard Guenther  <rguenther@suse.de>
1732
1733         * lto-streamer-out.c (output_function): Output function
1734         start and end loci.
1735         * lto-streamer-in.c (input_function): Input function start
1736         and end loci.
1737
1738 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1739
1740         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
1741         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
1742         * configure: Regenerate.
1743         * aclocal.m4: Regenerate.
1744
1745 2010-09-03  Jan Hubicka  <jh@suse.cz>
1746
1747         PR lto/44812
1748         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
1749         on functions/variables in other partition.
1750
1751 2010-09-03  Jan Hubicka  <jh@suse.cz>
1752
1753         * cgraph.h (struct varpool_node): Add const_value_known.
1754         (varpool_decide_const_value_known): Declare.
1755         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
1756         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
1757         (input_varpool_node): Restore const_value_known.
1758         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
1759         initializer folding.
1760         * ipa.c (ipa_discover_readonly_nonaddressable_var,
1761         function_and_variable_visibility): Compute const_value_known.
1762         * gimple-fold.c (get_symbol_constant_value): Use varpool for
1763         initializer folding.
1764         * varpool.c (varpool_decide_const_value_known): New function.
1765
1766 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
1767
1768         * config/i386/i386.md: Remove empty preparation statements
1769         from splitters.
1770
1771 2010-09-03  Jan Hubicka  <jh@suse.cz>
1772
1773         * passes.c (rest_of_decl_compilation): Do not add local vars into
1774         varpool.
1775         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
1776         static or extern vars are in varpool.
1777         (varpool_finalize_decl): Sanity check that only static vars are
1778         finalized.
1779
1780 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
1781
1782         PR debug/45500
1783         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
1784         not just generic vectors with BLKmode.
1785
1786 2010-09-03  Richard Guenther  <rguenther@suse.de>
1787
1788         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
1789         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
1790         * tree.h (TMR_SYMBOL): Remove.
1791         (TMR_BASE, TMR_OFFSET): Adjust.
1792         (TMR_INDEX2): New.
1793         * alias.c (ao_ref_from_mem): Use TMR_BASE.
1794         * builtins.c (get_object_alignment): Merge TMR_BASE and
1795         TMR_SYMBOL handling.
1796         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
1797         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
1798         handling.  Also allow TARGET_MEM_REF as base address.
1799         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
1800         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
1801         base.  Gimplify TMR_INDEX2.
1802         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
1803         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1804         (get_addr_base_and_unit_offset): Likewise.
1805         * tree-eh.c (tree_could_trap_p): Likewise.
1806         * tree-pretty-print.c (dump_generic_node): Likewise.
1807         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
1808         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
1809         base to index2.
1810         (get_address_description): Reconstruct addres description
1811         from merged TMR_BASE and TMR_INDEX2.
1812         (maybe_fold_tmr): Fold propagated addresses.
1813         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
1814         MEM_REF and TARGET_MEM_REF paths.
1815         (indirect_refs_may_alias_p): Likewise.
1816         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
1817         instead of TMR_SYMBOL.
1818         * tree-ssa-operands.c (get_tmr_operands): Simplify.
1819         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
1820         according to changes ...
1821         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
1822         Split TARGET_MEM_REF into two fields plus the base.
1823         * tree.c (mem_ref_offset): Simplify.
1824         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
1825         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
1826         Strip NOPs when folding MEM_REF addresses.
1827         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
1828         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
1829         (fold_gimple_assign): ... not here.
1830
1831 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
1832
1833         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
1834         * config/mips/mips.c (mips_shift_truncation_mask): New function.
1835         (TARGET_SHIFT_TRUNCATION_MASK): Define.
1836
1837 2010-09-02  Richard Henderson  <rth@redhat.com>
1838
1839         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
1840         instead of readelf in the test.
1841         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
1842         in the .debug_frame section for coff targets.
1843         * configure: Rebuild.
1844
1845 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
1846
1847         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
1848         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
1849         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1850         (m32c_class_likely_spilled_p): Make static. Change argument type to
1851         reg_class_t. Change result type to bool.
1852
1853 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1854
1855         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
1856         to convert (double)(long) into a single FRIZ instruction or not
1857         when -ffast-math is used.
1858
1859         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
1860         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
1861         or FRIZ instruction if -ffast-math.
1862         * config/rs6000/rs6000.md (friz): Ditto.
1863
1864         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
1865
1866 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1867
1868         * opth-gen.awk (quote, comma): Remove unused variables.
1869
1870 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
1871
1872         * arm.c (arm_override_options): Correct fall-back code to use
1873         SUBTARGET_CPU_DEFAULT.
1874
1875 2010-09-02  Julian Brown  <julian@codesourcery.com>
1876
1877         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
1878         unspecs.
1879         (vcond<mode>, vcondu<mode>): New expanders.
1880         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
1881         comparisons with zero.
1882         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
1883         * config/arm/constraints.md (Dz): New constraint.
1884
1885 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
1886
1887         * target.def (class_likely_spilled_p): New hook.
1888         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
1889         * doc/tm.texi: Regenerate.
1890         * targhooks.c (default_class_likely_spilled_p): New function.
1891         * targhooks.h (default_class_likely_spilled_p): Declare.
1892         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
1893         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
1894         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
1895         Use fixed_reg_set instead of fixed_regs.
1896         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
1897         * calls.c (avoid_likely_spilled_reg): Ditto.
1898         * ira-conflicts.c (ira_build_conflicts): Ditto.
1899         * ira.c (update_equiv_regs): Ditto.
1900         * mode-switching.c (create_pre_exit): Ditto.
1901         * regmove.c (find_matches): Ditto.
1902         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
1903         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
1904         (small_register_class_p): New inline function.
1905         (push_secondary_reload, find_reusable_reload, find_reloads): Use
1906         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
1907
1908         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
1909         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
1910         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1911
1912 2010-09-02  Richard Guenther  <rguenther@suse.de>
1913
1914         PR tree-optimization/44937
1915         PR tree-optimization/45412
1916         * ipa-split.c (split_function): Properly remove PHI nodes.
1917
1918 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1919
1920         * opts.h (struct cl_option): Add warn_message field.
1921         (struct cl_decoded_option): Add warn_message field.
1922         * doc/options.texi (Ignore, Warn): Document.
1923         * opt-functions.awk (needs_state_p): Don't consider aliases or
1924         ignored options to need state saved.
1925         * optc-gen.awk: Handle Warn and Ignore.
1926         * opth-gen.awk: Output OPT_SPECIAL_ignore.
1927         * opts-common.c (decode_cmdline_option): Set warn_message field.
1928         Handle ignored options.
1929         (decode_cmdline_options_to_array, generate_option,
1930         generate_option_input_file): Set warn_message field.
1931         (read_cmdline_option): Generate warnings from warn_message field.
1932         Handle ignored options.
1933         * common.opt (Wunreachable-code, fargument-alias,
1934         fargument-noalias, fargument-noalias-global,
1935         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
1936         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
1937         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
1938         ftree-salias): Mark Ignore.
1939         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
1940         -mintel-syntax and -mno-intel-syntax here.
1941         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
1942         using Warn.
1943         * opts.c (common_handle_option): Don't handle options marked as
1944         ignored.
1945         (enable_warning_as_error): Handle ignored options.
1946
1947 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1948
1949         PR driver/44076
1950         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
1951         alias_target fields.
1952         * opt-functions.awk (opt_sanitized_name): Don't handle
1953         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
1954         * optc-gen.awk: Generate alias fields.
1955         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
1956         Don't generate such constants for aliases.
1957         * opts-common.c (generate_canonical_option): New.
1958         (decode_cmdline_option): Handle aliases.  Use
1959         generate_canonical_option for known options instead of copying the
1960         input option text.
1961         * doc/options.texi (Alias): Document.
1962         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
1963         fstack-check, specs): Mark as aliases.
1964         * gcc.c (driver_handle_option): Canonicalize -L options to joined
1965         arguments.
1966         (driver_handle_option): Don't handle OPT_specs.
1967         * opts.c (common_handle_option): Don't handle options marked as
1968         aliases.
1969         (enable_warning_as_error): Handle aliases.
1970         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
1971         OPT_Wlarger_than_eq.
1972         * tree-optimize.c (tree_rest_of_compilation): Use
1973         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
1974
1975 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
1976
1977         * config/i386/i386.md (nonmemory_operand): New mode attribute.
1978         (push memory peephole2): Macroize peepholes using SWI mode iterator.
1979         (move immediate to memory peephole2): Macroize peepholes using
1980         SWI124 mode iterator.
1981         (non-pairable NOT peephole2): Macroize peepholes using SWI124
1982         mode iterator.
1983         (simple lea add peephole2): Macroize peepholes using SWI48
1984         mode iterator.
1985         (simple lea mult peephole2): Ditto.
1986         (imul by 3,5,9 to lea peephole2): Ditto.
1987         (mov $-1, reg peephole2): Macroize peepholes using SWI248
1988         mode iterator.
1989         (imul $32bit_imm,mem,reg peephole2): Ditto.
1990         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
1991
1992 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
1993
1994         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
1995
1996 2010-09-02  Olivier Hainque  <hainque@adacore.com>
1997
1998         PR middle-end/44763
1999         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
2000         (allocno_priority_compare_func): Use it instead of a straight
2001         difference computation over priorities.
2002
2003 2010-09-02  Andi Kleen  <ak@linux.intel.com>
2004
2005         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
2006
2007 2010-09-02  Ira Rosen  <irar@il.ibm.com>
2008
2009         * tree-vectorizer.h (get_later_stmt): New function.
2010         (vect_analyze_data_ref_dependences): Add argument.
2011         * tree-vect-loop.c (vect_analyze_loop): Update call to
2012         vect_analyze_data_ref_dependences.
2013         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
2014         New function.
2015         (vect_analyze_data_ref_dependence): Add argument for basic block
2016         dependencies. Check dependencies in basic block vectorization.
2017         (vect_analyze_data_ref_dependences): Add argument and update call to
2018         vect_analyze_data_ref_dependences.
2019         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
2020         (vect_bb_vectorizable_with_dependencies): New.
2021         (vect_slp_analyze_bb): Check dependencies in basic block.
2022         (vect_schedule_slp_instance): Insert stores before the last store in
2023         SLP instance.
2024
2025 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
2026
2027         PR target/45476
2028         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
2029         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
2030
2031 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
2032
2033         PR middle-end/45458
2034         * bb-reorder.c (add_labels_and_missing_jumps): Treat
2035         bbs ending with throwing insns like blocks ending with a call.
2036         (fix_up_fall_thru_edges): Likewise.
2037
2038 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
2039
2040         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
2041         (m32c_function_arg_advance): Delete.
2042         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2043         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
2044         comments.  Take a const_tree and a bool.  Declare.
2045         (m32c_function_arg_advance): Likewise.
2046         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2047
2048 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
2049
2050         PR target/45476
2051         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
2052         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
2053         * config/i386/mingw32.h: ... here.
2054
2055 2010-09-01  Andi Kleen  <ak@linux.intel.com>
2056
2057         PR lto/45475
2058         * lto-streamer-in.c (lto_input_ts_target_option): Add.
2059         (lto_input_tree_pointers): Call lto_input_ts_target_option.
2060         * lto-streamer-out (lto_output_ts_target_option): Add.
2061         (lto_output_tree_pointers): Call lto_output_ts_target_option.
2062
2063 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
2064
2065         PR/target 45452
2066         * config/i386/cygwin.h: Change order of specified import libraries.
2067         * config/i386/mingw32.h: Likewise.
2068         * config/i386/t-cygwin: Likewise.
2069         * config/i386/t-mingw32: Likewise.
2070         * config/i386/t-mingw-w32: Likewise.
2071         * config/i386/t-mingw-w64: Likewise.
2072
2073 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2074
2075         * config/arm/neon-schedgen.ml (core): New type.
2076         (allCores): List of supported cores.
2077         (availability_table): Add supported cores.
2078         (collate_bypasses): Accept core as a parameter.
2079         (worst_case_latencies_and_bypasses): Accept core as a parameter.
2080         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
2081         and coreStr to get tune attribute and prefix for functional units.
2082         (emit_bypasses): Accept core name and use it.
2083         (calculate_per_core_availability_table): New.
2084         (filter_core): New.
2085         (calculate_core_availability_table): New.
2086         (main): Use calculate_core_availablity_table.
2087         * config/arm/cortex-a8-neon.md: Update copyright year.
2088         Regenerated from ml file and merged in.
2089         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
2090         cortex_a8_neon_mrc.
2091
2092 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
2093
2094         * Makefile.in (tree-switch-conversion.o): Update dependencies.
2095
2096 2010-09-01  Richard Guenther  <rguenther@suse.de>
2097
2098         * alias.c (ao_ref_from_mem): Adjust.
2099         * builtins.c (get_object_alignment): Likewise.
2100         * cfgexpand.c (expand_debug_expr): Likewise.
2101         * gimple.c (get_base_address): Likewise.
2102         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2103         (get_addr_base_and_unit_offset): Likewise.  Fix for
2104         both TMR_SYMBOL and TMR_BASE being set.
2105         * tree-eh.c (tree_could_trap_p): Likewise.
2106         * gimplify.c (gimplify_expr): Do not attempt to gimplify
2107         TMR_SYMBOL.  Always gimplify TMR_BASE.
2108         * tree-cfg.c (verify_types_in_gimple_reference): Verify
2109         TMR_BASE if there is a TMR_SYMBOL.
2110         * tree-pretty-print.c (dump_generic_node): Adjust.
2111         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
2112         (tree_mem_ref_addr): Likewise.
2113         (create_mem_ref_raw): Likewise.
2114         (move_fixed_address_to_symbol): Likewise.
2115         (create_mem_ref): Likewise.
2116         (dump_mem_address): Likewise.
2117         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
2118         Fix for both TMR_SYMBOL and TMR_BASE being set.
2119         (indirect_refs_may_alias_p): Likewise.
2120         * tree-ssa-operands.c (get_tmr_operands): Adjust.
2121         * tree.def (TARGET_MEM_REF): Adjust documentation.
2122
2123 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
2124
2125         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
2126         Rename from X86_TUNE_ADD_ESP_4.
2127         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
2128         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
2129         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
2130         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
2131         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
2132         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
2133         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
2134         * config/i386/i386.c (initial_ix86_tune_features)
2135         <X86_TUNE_SINGLE_POP>: Invert members.
2136         <X86_TUNE_DOUBLE_POP>: Ditto.
2137         <X86_TUNE_SINGLE_PUSH>: Ditto.
2138         <X86_TUNE_DOUBLE_PUSH>: Ditto.
2139         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
2140         No longer exported.
2141         (push peephole2 patterns): Macroize peepholes using P mode iterator.
2142         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
2143         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
2144         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
2145
2146 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2147
2148         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
2149         a volatile LHS if the constructor has only one element.
2150
2151 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
2152
2153         PR bootstrap/45321
2154         * tree.c (stdarg_p): Make fntype parameter const.
2155         * tree.h (stdarg_p): Likewise.
2156         (function_args_iterator): Remove unused fntype field.
2157         (function_args_iter_init): Do not initialize fntype
2158         field.  Make fntype parameter const.
2159
2160 2010-09-01  Richard Guenther  <rguenther@suse.de>
2161
2162         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
2163         estimate.
2164         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
2165         (execute_vrp): Compute number of iteration estimates.
2166         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
2167         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
2168         * tree-data-ref.c (estimated_loop_iterations): Adjust.
2169         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2170         Infer loop bounds from undefined behavior based on a new parameter.
2171         (estimate_numbers_of_iterations): Likewise.
2172         (scev_probably_wraps_p): Adjust.
2173         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
2174
2175 2010-09-01  Nick Clifton  <nickc@redhat.com>
2176
2177         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
2178         where appropriate.
2179         (xstormy16_legitimate_address_p): Use true and false instead of 1
2180         and 0.
2181         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
2182         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
2183         magic constant 2.
2184         (xstormy16_expand_call): Fix comment at start of function.
2185
2186 2010-09-01  Nick Clifton  <nickc@redhat.com>
2187
2188         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
2189         when pushing accumulator register.
2190         (rx_get_stack_layout): Always save call clobbered registers inside
2191         interrupt handlers.
2192         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
2193
2194 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
2195
2196         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
2197         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
2198
2199         * libgcc-std.ver (GCC_4.6.0): Define version.
2200
2201 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
2202
2203         * tree-nested.c (convert_all_function_calls): Iterate until after the
2204         sum of static chains in the nest doesn't change.
2205
2206 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
2207
2208         * config/m32c/m32c.c (classes_intersect): Remove.
2209         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
2210         reg_classes_intersect_p instead of classes_intersect.
2211         (class_can_hold_mode): Change arguments type from enum reg_class to
2212         reg_class_t.  Use reg_class_contents instead of class_contents.
2213         (m32c_register_move_cost): Make static. Change arguments type from
2214         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
2215         classes_intersect. Use reg_class_contents instead of class_contents.
2216         (m32c_memory_move_cost): Make static. Change arguments type from
2217         enum reg_class to reg_class_t.
2218         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2219         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2220         * config/m32c/m32c-protos.h (m32c_register_move_cost,
2221         m32c_memory_move_cost): Remove.
2222
2223 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2224
2225         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
2226         (arm_function_arg): Delete.
2227         (arm_needs_doubleword_align): Take a const_tree.
2228         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2229         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
2230         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
2231         (arm_function_arg): Make static.  Take a const_tree and a bool.
2232         (arm_function_arg_advance): Likewise.
2233         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2234
2235 2010-08-31  Andi Kleen  <ak@linux.intel.com>
2236
2237         * common.opt (fwhopr=): Update for -fwhopr=jobserver
2238         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
2239         * lto-wrapper.c (run_gcc): Add jobserver mode.
2240         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
2241         argument.
2242
2243 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
2244
2245         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
2246         (popsi1): Ditto.
2247         (*popdi1_epilogue): Ditto.
2248         (*popsi1_epilogue): Ditto.
2249         (popsi, popdi peephole2 patterns): Update peepholes for changed
2250         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
2251
2252         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
2253         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
2254
2255         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
2256         (override_options): Do not initialize removed ix86_gen_pop1.
2257         (gen_pop): New static function.
2258         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
2259         (release_scratch_register_on_entry): Ditto.
2260         (ix86_restore_reg_using_pop): Ditto.
2261         (ix86_expand_epilogue): Ditto.
2262
2263 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
2264
2265         PR middle-end/45461
2266         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
2267
2268 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2269
2270         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
2271         semicolons.
2272
2273 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2274
2275         * doc/extend.texi: Fix documentation of the return value of
2276         __builtin_choose_expr.
2277
2278 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2279
2280         * config/v850/v850-protos.h (function_arg): Delete.
2281         * config/v850/v850.h (FUNCTION_ARG): Delete.
2282         (FUNCTION_ARG_ADVANCE): Move code to...
2283         * config/v850/v850.c (v850_function_arg_advance): ...here.
2284         (v850_function_arg): Make static.  Take a const_tree and a bool.
2285         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2286
2287 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2288
2289         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
2290         these...
2291         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
2292         ...and these...
2293         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
2294         ..to here..
2295         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
2296         ...and here.
2297         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2298
2299 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2300
2301         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
2302         Delete.
2303         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2304         * config/rx/rx.c (rx_function_arg_size): Make static.
2305         (rx_function_arg): Likewise.
2306         (rx_function_arg_advance): New function.
2307         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2308
2309 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
2310
2311         * config/arm/arm.c (arm_override_options): Remove superfluous test.
2312         Fix indentation.
2313
2314 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
2315
2316         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
2317         (dwarf2out_decl) <CONST_DECL>: Likewise.
2318
2319 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
2320
2321         Stack usage support
2322         * common.opt (-fstack-usage): New option.
2323         * doc/invoke.texi (Debugging options): Document it.
2324         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
2325         allocate_dynamic_stack_space.
2326         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
2327         and propagate it to allocate_dynamic_stack_space.
2328         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
2329         * calls.c (initialize_argument_information): Pass TRUE as 4th
2330         argument to allocate_dynamic_stack_space.
2331         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
2332         to 1 when pushing a variable-sized argument onto the stack.  Pass
2333         TRUE as 4th argument to allocate_dynamic_stack_space.
2334         Update current_function_pushed_stack_size.
2335         (emit_library_call_value_1): Likewise.
2336         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
2337         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
2338         attempt to find an upper bound.  Remove redundant code for the
2339         SETJMP_VIA_SAVE_AREA case.
2340         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
2341         * function.h (struct stack_usage): New structure.
2342         (current_function_static_stack_size): New macro.
2343         (current_function_dynamic_stack_size): Likewise.
2344         (current_function_pushed_stack_size): Likewise.
2345         (current_function_dynamic_alloc_count): Likewise.
2346         (current_function_has_unbounded_dynamic_stack_size): Likewise.
2347         (current_function_allocates_dynamic_stack_space): Likewise.
2348         (struct function): Add new field 'su'.
2349         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
2350         add the value of the dynamic offset to the dynamic stack usage.
2351         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
2352         for variable-sized objects.
2353         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
2354         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
2355         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
2356         BUILT_IN_ALLOCA for variable-sized objects.
2357         * output.h (output_stack_usage): Declare.
2358         * toplev.c (stack_usage_file): New file pointer.
2359         (output_stack_usage): New function.
2360         (open_auxiliary_file): Likewise.
2361         (lang_dependent_init): Open file if flag_stack_usage is set.
2362         (finalize): Close file if stack_usage_file is not null.
2363         * tree.h (ALLOCA_FOR_VAR_P): New macro.
2364         * config/alpha/alpha.c (compute_frame_size): New function.
2365         (alpha_expand_prologue): Use it.
2366         (alpha_start_function): Likewise.
2367         (alpha_expand_epilogue): Likewise.  Set stack usage info.
2368         * config/i386/i386.c (ix86_expand_prologue): Likewise.
2369         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2370         * config/mips/mips.c (mips_expand_prologue): Likewise.
2371         * config/pa/pa.c (hppa_expand_prologue): Likewise.
2372         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2373         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2374
2375 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
2376
2377         PR tree-optimization/45427
2378         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
2379         Handle the case that the exit is never taken correctly.
2380         (number_of_iterations_ne): Pass exit_must_be_taken to
2381         number_of_iterations_ne_max.
2382
2383 2010-08-30  Catherine Moore  <clm@codesourcery.com>
2384
2385         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
2386         Infer -mdspr2 for the the 74K.
2387
2388 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
2389
2390         PR debug/45419
2391         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
2392
2393         PR middle-end/45423
2394         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
2395         and TRUTH_{AND,OR,XOR}_EXPR.
2396         * c-parser.c (c_parser_omp_atomic): Handle boolean
2397         {PRE,POST}_{INC,DEC}REMENT.
2398
2399 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
2400
2401         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
2402         (function_arg): Delete.
2403         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2404         (FUNCTION_INCOMING_ARG): Delete.
2405         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
2406         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
2407         and a bool.
2408         (function_arg): Rename to...
2409         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
2410         a bool.
2411         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
2412         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2413         (TARGET_FUNCTION_INCOMING_ARG): Define.
2414
2415 2010-08-30  Richard Guenther  <rguenther@suse.de>
2416
2417         PR tree-optimization/21602
2418         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
2419         using points-to information.
2420
2421 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
2422
2423         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
2424
2425 2010-08-30  Richard Guenther  <rguenther@suse.de>
2426
2427         PR tree-optimization/45449
2428         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
2429         variables.
2430
2431 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
2432
2433         * opts.h (CL_ERR_NEGATIVE): Define.
2434         * opts.c (unknown_option_callback): Don't postpone warnings for
2435         options marked with CL_ERR_NEGATIVE.
2436         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
2437         for negative versions of CL_REJECT_NEGATIVE options.
2438
2439 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
2440
2441         * config/i386/i386.md (zero_extendsidi2_1): Rename from
2442         zero_extendsidi2_32.
2443         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
2444         using SWI12 mode iterator.
2445         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
2446         to define_insn_and_split pattern.
2447         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
2448         using SWI24 mode iterator.
2449         (*zero_extendqi<mode>2_and): Macroize insn from
2450         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
2451         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
2452         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
2453         SWI24 mode iterator.
2454         (*zero_extendqi<mode>2_movzbl): Ditto from
2455         *zero_extendqi{hi,si}2_movzbl.
2456         (extendsidi2_1): Rename from extendsidi2_32.
2457         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
2458         SWI12 mode iterator.
2459
2460 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
2461
2462         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
2463         general purpose registers.
2464         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
2465         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
2466         with general purpose registers and memory operands.  Add associated
2467         CCImode post-reload splitter.
2468         * config/ia64/div.md: Change BImode to CCImode throughout.
2469
2470 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
2471
2472         * config/ia64/ia64.md (cstorebi4): Fix thinko.
2473
2474 2010-08-28  Hariharan Sandanagobalane <hariharan@picochip.com>
2475
2476         * config/picochip/picochip.c (reorder_var_tracking_notes): This
2477         function was dropping debug insns which caused PR45299.
2478
2479 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
2480
2481         * config/i386/sse.md (extsuffix): New code attribute.
2482         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
2483         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
2484         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
2485         and sse4_1_zero_extendv4qiv4si2.
2486         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
2487         and sse4_1_zero_extendv2qiv2di2.
2488         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
2489         and sse4_1_zero_extendv4hiv4si2.
2490         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
2491         and sse4_1_zero_extendv2hiv2di2.
2492         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
2493         and sse4_1_zero_extendv2siv2di2
2494
2495         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
2496         using any_extend code iterator.
2497         (*avx_<s>mulv8hi3_highpart): Macroize insn from
2498         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
2499         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
2500
2501         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
2502         gen_sse4_1_sign_extend* functions.
2503         (struct builtin_description bdesc_args): Ditto.
2504
2505 2010-08-27  Xinliang David Li  <davidxl@google.com>
2506
2507         PR/45422
2508         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
2509         (iv_ca_set_no_cp): Update used inv expr count.
2510         (iv_ca_set_cp): Ditto.
2511         (iv_ca_new): Initialize new member.
2512         (iv_ca_free): Free memory.
2513
2514 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2515
2516         * config/sh/sh-protos.h (sh_function_arg): Delete.
2517         (sh_function_arg_advance): Delete.
2518         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2519         (PASS_IN_REG_P): Eliminate cast.
2520         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
2521         const_tree and a bool.
2522         (sh_function_arg): Likewise.
2523         (sh_output_mi_thunk): Call sh_function_arg_advance) and
2524         sh_function_arg.
2525         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2526
2527 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
2528             Kaz Kojima  <kkojima@gcc.gnu.org>
2529
2530         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
2531         when possible.
2532         (sh_expand_epilogue): Likewise.
2533         * config/sh/sh.md (movml_push_banked): New insn.
2534         (movml_pop_banked): Likewise.
2535
2536 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
2537
2538         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
2539         gen_regexp_oneof, gen_regexp_sequence): Use the string found
2540         in vector element 0 rather than the original string when there's
2541         only one element.
2542         (gen_regexp): Remove extra semicolon.
2543
2544         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
2545         thumb2_movsf_vfp): Set attribute "insn".
2546         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
2547         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
2548         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
2549         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
2550         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
2551         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
2552         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
2553         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
2554         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
2555         if_not_arith, if_arith_not, cond_move_not): Likewise.
2556
2557 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2558
2559         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
2560         New declaration.
2561         (rs6000_allocate_stack_temp): Ditto.
2562         (rs6000_expand_convert_si_to_sfdf): Ditto.
2563
2564         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
2565         line.  Update the options set if power6 or power7 server/embedded
2566         type options are used.  If we give a warning for no vsx under
2567         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
2568         (rs6000_allocate_stack_temp): New function to allocate a stack
2569         tempoary and adjust the address so it meets either REG+OFFSET or
2570         REG+REG addressing requirements.
2571         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
2572         that they can be used with the LFIWAX/LFIWZX instrucitons.
2573         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
2574         converting signed/unsigned SImode to either SFmode/DFmode.
2575
2576         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
2577         whether certain instructions can be generated.
2578         (TARGET_FCTIDZ): Ditto.
2579         (TARGET_STFIWX): Ditto.
2580         (TARGET_LFIWAX): Ditto.
2581         (TARGET_LFIWZX): Ditto.
2582         (TARGET_FCFIDS): Ditto.
2583         (TARGET_FCFIDU): Ditto.
2584         (TARGET_FCFIDUS): Ditto.
2585         (TARGET_FCTIDUZ): Ditto.
2586         (TARGET_FCTIWUZ): Ditto.
2587
2588         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
2589         (UNSPEC_FCTID): Ditto.
2590         (UNSPEC_LFIWAX): Ditto.
2591         (UNSPEC_LFIWZX): Ditto.
2592         (UNSPEC_FCTIWUZ): Ditto.
2593         (rreg): Use correct constraints.
2594         (SI_CONVERT_FP): New mode attribute for floating point conversion
2595         tests.
2596         (E500_CONVERT): Ditto.
2597         (lfiwax): New insns for converting from integer to floating point
2598         utilizing newer instructions.  Attempt to optimize conversions
2599         that come from memory so that we don't load the value into a GPR,
2600         spill it to the stack and reload it into a FPR.
2601         (floatsi<mode>2_lfiwax): Ditto.
2602         (floatsi<mode>2_lfiwax_mem): Ditto.
2603         (floatsi<mode>2_lfiwax_mem2): Ditto.
2604         (lfiwzx): Ditto.
2605         (floatunssi<mode>2_lfiwzx): Ditto.
2606         (floatunssi<mode>2_lfiwzx_mem): Ditto.
2607         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
2608         (floatdidf2_mem): Ditto.
2609         (floatunsdidf2_fcfidu): Ditto.
2610         (floatunsdidf2_mem): Ditto.
2611         (floatunsdisf2): Ditto.
2612         (floatunsdisf2_fcfidus): Ditto.
2613         (floatunsdisf2_mem): Ditto.
2614         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
2615         Use FCFID on 32-bit hosts that support it.
2616         (floatsidf2_internal): Ditto.
2617         (floatunssisf2): Ditto.
2618         (floatunssidf2): Ditto.
2619         (floatunssidf2_internal): Ditto.
2620         (floatsisf2): Ditto.
2621         (floatdidf2): Ditto.
2622         (floatdidf2_fpr): Ditto.
2623         (floatunsdidf2): Ditto.
2624         (floatdisf2): Ditto.
2625         (floatdisf2_fcfids): Ditto.
2626         (floatdisf2_internal1): Ditto.
2627         (fixuns_truncsfsi2): Delete, merge into common pattern for both
2628         SF/DF.  Add power7 support.
2629         (fix_truncsfsi2): Ditto.
2630         (fixuns_truncdfsi2): Ditto.
2631         (fixuns_truncdfdi2): Ditto.
2632         (fix_truncdfsi2): Ditto.
2633         (fix_truncdfsi2_internal): Ditto.
2634         (fix_truncdfsi2_internal_gfxopt): Ditto.
2635         (fix_truncdfsi2_mfpgpr): Ditto.
2636         (fctiwz): Ditto.
2637         (btruncdf2): Ditto.
2638         (btruncdf2_fpr): Ditto.
2639         (btructsf2): Ditto.
2640         (ceildf2): Ditto.
2641         (ceildf2_fpr): Ditto.
2642         (ceilsf2): Ditto.
2643         (floordf2): Ditto.
2644         (floordf2_fpr): Ditto.
2645         (floorsf2): Ditto.
2646         (rounddf2): Ditto.
2647         (rounddf2_fpr): Ditto.
2648         (roundsf2): Ditto.
2649         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
2650         (fix_trunc<mode>di2): Ditto.
2651         (fixuns_trunc<mode>si2): Ditto.
2652         (fixuns_trunc<mode>di2): Ditto.
2653         (fctiwz_<mode>): Ditto.
2654         (btrunc<mode>2): Ditto.
2655         (btrunc<mode>2_fpr): Ditto.
2656         (ceil<mode>2): Ditto.
2657         (ceil<mode>2_fpr): Ditto.
2658         (floor<mode>2): Ditto.
2659         (float<mode>2_fpr): Ditto.
2660         (round<mode>2): Ditto.
2661         (round<mode>2_fpr): Ditto.
2662         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
2663         (fixuns_trunc<mode>si2_stfiwx): Ditto.
2664         (fix_truncdfsi2_internal): Ditto.
2665         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
2666         converted value on stack, loaded into GPR, and then stored into
2667         the final destination.
2668         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
2669         FCTIDZ.
2670         (lrint<mode>di2): New insn, provide the lrint builtin functions.
2671         (ftruncdf2): Delete, unused.
2672         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
2673
2674         * config/rs6000/vsx.md (toplevel): Update copyright year.
2675         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
2676         (VSr3): Ditto.
2677
2678 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
2679             Jeremie Salvucci  <jeremie.salvucci@free.fr>
2680
2681         * gengtype.c (output_type_enum): Test the right union member.
2682
2683 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
2684
2685         PR target/41484
2686         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
2687         operands for operand 1.
2688         (sse4_1_extendv4qiv4si2): Ditto.
2689         (sse4_1_extendv2qiv2di2): Ditto.
2690         (sse4_1_extendv4hiv4si2): Ditto.
2691         (sse4_1_extendv2hiv2di2): Ditto.
2692         (sse4_1_extendv2siv2di2): Ditto.
2693         (sse4_1_zero_extendv8qiv8hi2): Ditto.
2694         (sse4_1_zero_extendv4qiv4si2): Ditto.
2695         (sse4_1_zero_extendv2qiv2di2): Ditto.
2696         (sse4_1_zero_extendv4hiv4si2): Ditto.
2697         (sse4_1_zero_extendv2hiv2di2): Ditto.
2698         (sse4_1_zero_extendv2siv2di2): Ditto.
2699         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
2700         (*sse4_1_extendv4qiv4si2): Ditto.
2701         (*sse4_1_extendv2qiv2di2): Ditto.
2702         (*sse4_1_extendv4hiv4si2): Ditto.
2703         (*sse4_1_extendv2hiv2di2): Ditto.
2704         (*sse4_1_extendv2siv2di2): Ditto.
2705         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
2706         (*sse4_1_zero_extendv4qiv4si2): Ditto.
2707         (*sse4_1_zero_extendv2qiv2di2): Ditto.
2708         (*sse4_1_zero_extendv4hiv4si2): Ditto.
2709         (*sse4_1_zero_extendv2hiv2di2): Ditto.
2710         (*sse4_1_zero_extendv2siv2di2): Ditto.
2711
2712 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2713
2714         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
2715         (mips_function_arg): Delete.
2716         (mips_function_arg_boundary): Take a const_tree.
2717         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
2718         (mips_arg_info): Likewise.
2719         (mips_setup_incoming_varargs): Call mips_function_arg_advance
2720         instead of FUNCTION_ARG_ADVANCE.
2721         (mips_function_arg_advance): Adjust prototype.  Make static.
2722         (mips_function_arg): Likewise.
2723         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2724         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
2725
2726 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2727
2728         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2729         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
2730         (function_arg): Delete.
2731         (function_arg_boundary): Take a const_tree.
2732         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
2733         (rs6000_spe_function_arg): Likewise.
2734         (rs6000_parm_start): Likewise.
2735         (rs6000_arg_size): Likewise.
2736         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
2737         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
2738         (rs6000_mixed_function_arg): Likewise.
2739         (function_arg): Rename to...
2740         (rs6000_function_arg): ...this.
2741         (function_arg_advance): Rename to...
2742         (rs6000_function_arg_advance_1): ...this
2743         (rs6000_function_arg_advance): New function.  Call it.
2744         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
2745         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
2746         (rs6000_function_value): Likewise.
2747         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2748
2749 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2750
2751         * config/arm/arm.md (enabled): Test the value of arch_enabled
2752         rather than just using it.
2753
2754 2010-08-27  Olivier Hainque  <hainque@adacore.com>
2755             Eric Botcazou  <ebotcazou@adacore.com>
2756
2757         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
2758         cover all the possible offsets from this base.
2759         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
2760
2761 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
2762
2763         PR tree-optimization/44485
2764         * calls.c (flags_from_decl_or_type): For const or pure
2765         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
2766         together with ECF_CONST resp. ECF_PURE.
2767         * builtins.c (expand_builtin): Use flags_from_decl_or_type
2768         instead of querying flags directly.
2769         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
2770         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
2771
2772 2010-08-26  Richard Guenther  <rguenther@suse.de>
2773
2774         PR tree-optimization/45255
2775         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
2776         and externals are also invariant.
2777
2778 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2779
2780         PR rtl-optimization/44858
2781         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
2782         newi2pat, make sure they don't affect newpat.
2783
2784         PR rtl-optimization/45400
2785         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
2786         SUBREG_REG if both modes are of MODE_INT class.
2787
2788 2010-08-25  Julian Brown  <julian@codesourcery.com>
2789
2790         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
2791         * config/arm/arm.md (generic_sched): No for Cortex-A5.
2792         (generic_vfp): Likewise.
2793         (cortex-a5.md): Include.
2794         * config/arm/cortex-a5.md: New.
2795
2796 2010-08-25  Richard Guenther  <rguenther@suse.de>
2797
2798         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
2799         * gimple.c (gimple_get_alias_set): Remove special handling
2800         for pointers.
2801
2802 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2803
2804         PR middle-end/45355
2805         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
2806         dead_or_set_p when computing i0_feeds_i2_n.
2807
2808         * combine.c (find_split_point): Undo canonicalization of multiply-add
2809         to (minus x (mult)) when it seems likely that this will increase the
2810         chances of a split.
2811
2812 2010-08-25  Richard Guenther  <rguenther@suse.de>
2813
2814         PR lto/44562
2815         * lto-streamer.c (lto_record_common_node): Do not mess with
2816         TYPE_CANONICAL when not in lto.
2817         * gimple.c (gimple_register_type): Likewise.
2818
2819 2010-08-25  Richard Guenther  <rguenther@suse.de>
2820
2821         PR tree-optimization/45316
2822         * tree-ssa-pre.c (eliminate): Properly clean EH info.
2823
2824 2010-08-25  Richard Guenther  <rguenther@suse.de>
2825
2826         PR tree-optimization/45393
2827         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
2828         and clean EH info.  Avoid SSA update.
2829         (execute_cse_sincos): Cleanup the CFG if it has changed.
2830
2831 2010-08-25  Richard Guenther  <rguenther@suse.de>
2832
2833         PR middle-end/45379
2834         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
2835         TARGET_MEM_REF in alignment computation.
2836
2837 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2838
2839         PR tree-optimization/45059
2840         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
2841         type conversions from newop{1,2}.  Assert t is a comparison and
2842         newop{1,2} after the stripping are gimple vals.
2843
2844 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
2845
2846         * config/arm/iterators.md (VU, SE, V_widen_l): New.
2847         (V_unpack, US): New.
2848         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
2849         (vec_unpack<US>_lo_<mode>): Likewise.
2850         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
2851         (neon_vec_unpack<US>_lo_<mode>): Likewise.
2852         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
2853         (vec_widen_<US>mult_hi_<mode>): Likewise.
2854         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
2855         (neon_vec_<US>mult_hi_<mode>"): Likewise.
2856         (neon_unpack<US>_<mode>): Widening move intermediate step for
2857         vectorizing without -mvectorize-with-neon-quad.
2858         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
2859         for vectorizing without -mvectorize-with-neon-quad.
2860         * config/arm/predicates.md (vect_par_constant_high): Check for
2861         high-half lanes of a vector.
2862         (vect_par_constant_low): Check for low-half lanes of a vector.
2863
2864 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2865
2866         * tree-if-conv.c (struct ifc_dr): New.
2867         (IFC_DR): New.
2868         (DR_WRITTEN_AT_LEAST_ONCE): New.
2869         (DR_RW_UNCONDITIONALLY): New.
2870         (memref_read_or_written_unconditionally): Use the cached values
2871         when possible.
2872         (write_memref_written_at_least_once): Same.
2873         (if_convertible_loop_p): Initialize and free DR->aux fields.
2874
2875 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2876
2877         * gimple.c (gimple_could_trap_p_1): Not static anymore.
2878         Pass an extra bool parameter include_mem.
2879         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
2880         (gimple_assign_rhs_could_trap_p): Same.
2881         * gimple.h (gimple_could_trap_p_1): Declared.
2882         * tree-data-ref.h (same_data_refs_base_objects): New.
2883         (same_data_refs): New.
2884         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
2885         (write_memrefs_written_at_least_once): New.
2886         (ifcvt_memrefs_wont_trap): New.
2887         (operations_could_trap): New.
2888         (ifcvt_could_trap_p): New.
2889         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
2890         Gets a vector of data refs.
2891         (if_convertible_stmt_p): Same.
2892         (if_convertible_loop_p_1): New.
2893         (if_convertible_loop_p): Call if_convertible_loop_p_1.
2894
2895 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2896
2897         * common.opt (ftree-loop-if-convert-stores): New flag.
2898         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
2899         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
2900         the created statement before GSI.
2901         (if_convertible_phi_p): Allow virtual phi nodes when
2902         flag_loop_if_convert_stores is set.
2903         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
2904         Do not handle types that do not match is_gimple_reg_type.
2905         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
2906         when flag_loop_if_convert_stores is set, as LHS can contain
2907         memory refs.
2908         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
2909         to if_convertible_gimple_assign_stmt_p.
2910         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
2911         (replace_phi_with_cond_gimple_assign_stmt): Renamed
2912         predicate_scalar_phi.  Do not handle virtual phi nodes.
2913         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
2914         Call predicate_scalar_phi.
2915         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
2916         just after the labels for flag_loop_if_convert_stores, otherwise
2917         insert the predicate in the end of the BB.
2918         (predicate_mem_writes): New.
2919         (combine_blocks): Call predicate_all_scalar_phis.  When
2920         flag_loop_if_convert_stores is set, call predicate_mem_writes.
2921         (tree_if_conversion): Call mark_sym_for_renaming when
2922         flag_loop_if_convert_stores is set.
2923         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
2924         flag_loop_if_convert_stores is set.
2925
2926 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
2927
2928         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
2929         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
2930         (pa_function_value): Make static.
2931         (override_options): Rename to...
2932         (pa_option_override): ...this. Make static.
2933         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
2934         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
2935         TARGET_OPTION_OVERRIDE): Define.
2936         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
2937         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
2938         Remove.
2939         * config/pa/pa-protos.h (override_options): Remove.
2940
2941 2010-08-24  Richard Guenther  <rguenther@suse.de>
2942
2943         PR middle-end/45379
2944         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
2945         if addr->index is NULL or zero.
2946         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
2947         TARGET_MEM_REF more properly.
2948         (indirect_ref_may_alias_decl_p): Likewise.
2949         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
2950         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
2951
2952 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
2953
2954         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
2955         (m32c_override_options): Rename to...
2956         (m32c_option_override): ...this. Make static.
2957         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
2958         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
2959         Remove.
2960         * config/m32c/m32c-protos.h (m32c_override_options,
2961         m32c_function_value_regno_p): Remove.
2962
2963 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2964
2965         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
2966         Fix a typo in a previous commit.
2967
2968 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
2969
2970         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
2971         Pre-initialize innerloop_iters to one.
2972
2973 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2974
2975         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
2976         existing static function global.
2977
2978         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
2979         is changed to global.
2980
2981         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
2982         may_be_nonaddressable_p on base, and don't collect this reference
2983         if the address of the base could not be taken.
2984
2985 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2986
2987         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
2988         enable the compiler to autovectorize mathmetical functions for
2989         power7 using the Mathematical Acceleration Subsystem library.
2990
2991         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
2992         handle which vector math library we have.
2993         (rs6000_override_options): Add -mveclibabi=mass support.
2994         (rs6000_builtin_vectorized_libmass): New function to handle auto
2995         vectorizing math functions that are in the MASS library.
2996         (rs6000_builtin_vectorized_function): Call it.
2997
2998         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2999         -mveclibabi=mass.
3000
3001 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3002
3003         PR boehm-gc/34544
3004         * gthr-posix.h (__gthread_active_init): Delete.
3005         (__gthread_active_p): Do activity check here.
3006         Don't include errno.h on hppa-hpux.  Update comment.
3007         * gthr-posix95.h (__gthread_active_init): Delete.
3008         (__gthread_active_p): Do activity check here.
3009         Don't include errno.h on hppa-hpux.  Update comment.
3010         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
3011         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
3012         add -lpthread when -mt or -pthread is specified.
3013         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
3014         (LINK_GCC_C_SEQUENCE_SPEC): Define.
3015         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
3016         (stublib.c, pthread_default_stacksize_np-stub.o,
3017         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
3018         $(T)libgcc_stub.a): Add methods.
3019         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
3020         (stublib.c, pthread_default_stacksize_np-stub.o,
3021         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
3022         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3023         pthread_mutex_unlock): New stubs.
3024
3025 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
3026
3027         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
3028         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
3029         options.
3030         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
3031         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
3032         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
3033         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
3034         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
3035         "-l".
3036         * cppspec.c: Include opts.h.
3037         (lang_specific_driver): Use cl_decoded_option structures.
3038         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
3039         * doc/tm.texi: Regenerate.
3040         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
3041         (driver_handle_option): Allow driver options needing no special
3042         processing.
3043         (process_command): Decode options before call to
3044         lang_specific_driver.  Pass decoded options to
3045         lang_specific_driver.
3046         * gcc.h (lang_specific_driver): Update prototype.
3047         * gccspec.c: Include opts.h.
3048         (lang_specific_driver): Use cl_decoded_option structures.
3049         * opts-common.c (option_ok_for_language, generate_option,
3050         generate_option_input_file): New.
3051         (decode_cmdline_option): Use option_ok_for_language.
3052         (decode_cmdline_options_to_array): Use generate_option_input_file.
3053         (handle_generated_option): Use generate_option.
3054         * opts.h (generate_option, generate_option_input_file): Declare.
3055
3056 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
3057
3058         * config/mips/mips.c (mips_override_options): Rename to...
3059         (mips_option_override): ...this. Make static.
3060         (TARGET_OPTION_OVERRIDE): Define.
3061         (mips_in_small_data_p): Update comment.
3062         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
3063         (FIXED_REGISTERS): Update comment.
3064         * config/mips/mips-protos.h (mips_override_options): Remove.
3065
3066 2010-08-21  Olivier Hainque  <hainque@adacore.com>
3067
3068         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
3069
3070 2010-08-21  Olivier Hainque  <hainque@adacore.com>
3071
3072         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
3073         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
3074
3075 2010-08-20  Jan Hubicka  <jh@suse.cz>
3076
3077         * tree-pass.h (pass_ipa_cdtor_merge): New function.
3078         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
3079         heap allocated.
3080         (record_cdtor_fn): Move to ipa.c; do not test for
3081         have_ctors_dtors.
3082         (build_cdtor): Move to ipa.c; add code avoiding construction
3083         when target have ctors/dtors and there is only one ctor/dtor at given
3084         priority.
3085         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
3086         sort; reverse order of constructors.
3087         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
3088         (cgraph_finalize_function): Do not call record_cdtor_fn.
3089         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
3090         (cgraph_build_static_cdtor): Move to ipa.c.
3091         * ipa.c: Include target.h and tree-iterator.h.
3092         (cgraph_build_static_cdtor, static_ctors, static_dtors,
3093         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
3094         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
3095         pass_ipa_cdtor_merge): New.
3096         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
3097         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
3098         bounds access.
3099
3100 2010-08-20  Jan Hubicka  <jh@suse.cz>
3101
3102         PR c++/45307
3103         PR c++/17736
3104         * cgraph.h (cgraph_only_called_directly_p,
3105         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
3106         static cdtors.
3107         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
3108         are not needed.
3109         (cgraph_finalize_function): Static cdtors are reachable.
3110         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
3111
3112 2010-08-20  Jan Hubicka  <jh@suse.cz>
3113
3114         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
3115         flag_wpa.
3116         * lto-streamer-out.c (lto_output): Likewise.
3117         * passes.c (ipa_write_optimization_summaries): Initialize statement
3118         uids.
3119
3120 2010-08-20  Olivier Hainque  <hainque@adacore.com>
3121
3122         * tree.h (alias_diag_flags): New enum.
3123         (alias_pair): Add an 'emitted_diags' field.
3124         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
3125         (assemble_alias): Initialize emitted_diags of new pairs.
3126
3127 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
3128
3129         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3130         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3131         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3132         (STACK_CHECK_PROTECT): Define.
3133         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
3134         (output_probe_stack_range): Likewise.
3135         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
3136         builtin stack checking is enabled.
3137         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
3138         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3139         (probe_stack_range): New insn.
3140
3141 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3142
3143         PR target/45336
3144         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
3145         short first.
3146
3147         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
3148         char first.
3149
3150 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3151
3152         PR target/45336
3153         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
3154         to cover zero extension into 64-bit register.
3155         (*sse2_pextrw): Likewise.
3156         (*sse4_1_pextrd_zext): New insn.
3157
3158 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
3159
3160         revert r163410, partially revert r163267.
3161         * config/rs6000/darwin.h (LIB_SPEC): Remove.
3162         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
3163         Darwin versions.
3164
3165 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3166
3167         PR middle-end/44974
3168         * builtins.c (expand_builtin): Don't optimize away
3169         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
3170
3171 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
3172
3173         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
3174         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
3175         alternative 1 of operand 2.
3176
3177 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3178             Paolo Bonzini  <bonzini@gnu.org>
3179
3180         * simplify-rtx.c (simplify_unary_operation_1): Optimize
3181         (sign_extend (zero_extend (...)) and
3182         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
3183
3184 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3185
3186         PR rtl-optimization/45353
3187         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
3188         after bb_note is a BARRIER.
3189
3190 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
3191
3192         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
3193         linking libgcc.a.
3194
3195 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3196             Michael Matz  <matz@suse.de>
3197
3198         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
3199
3200 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
3201
3202         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
3203         (ggc_mark_roots): ...here.
3204
3205 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
3206
3207         * vec.h (FOR_EACH_VEC_ELT): Define.
3208         * c-decl.c: Use it.
3209         * cfgloop.c: Likewise.
3210         * cfgloopmanip.c: Likewise.
3211         * cgraph.c: Likewise.
3212         * cgraphunit.c: Likewise.
3213         * combine.c: Likewise.
3214         * config/bfin/bfin.c: Likewise.
3215         * config/mips/mips.c: Likewise.
3216         * config/rs6000/rs6000.c: Likewise.
3217         * dbxout.c: Likewise.
3218         * df-scan.c: Likewise.
3219         * dominance.c: Likewise.
3220         * dse.c: Likewise.
3221         * dwarf2out.c: Likewise.
3222         * except.c: Likewise.
3223         * expr.c: Likewise.
3224         * function.c: Likewise.
3225         * gcse.c: Likewise.
3226         * genattr.c: Likewise.
3227         * ggc-common.c: Likewise.
3228         * gimplify.c: Likewise.
3229         * graphite-blocking.c: Likewise.
3230         * graphite-clast-to-gimple.c: Likewise.
3231         * graphite-dependences.c: Likewise.
3232         * graphite-interchange.c: Likewise.
3233         * graphite-poly.c: Likewise.
3234         * graphite-scop-detection.c: Likewise.
3235         * graphite-sese-to-poly.c: Likewise.
3236         * graphite.c: Likewise.
3237         * haifa-sched.c: Likewise.
3238         * ifcvt.c: Likewise.
3239         * implicit-zee.c: Likewise.
3240         * ipa-prop.c: Likewise.
3241         * ipa-struct-reorg.c: Likewise.
3242         * ipa.c: Likewise.
3243         * ira-build.c: Likewise.
3244         * ira-color.c: Likewise.
3245         * ira-emit.c: Likewise.
3246         * lambda-code.c: Likewise.
3247         * loop-invariant.c: Likewise.
3248         * loop-unroll.c: Likewise.
3249         * lower-subreg.c: Likewise.
3250         * lto-cgraph.c: Likewise.
3251         * lto-opts.c: Likewise.
3252         * lto-streamer-in.c: Likewise.
3253         * lto-streamer-out.c: Likewise.
3254         * lto-streamer.c: Likewise.
3255         * lto-symtab.c: Likewise.
3256         * matrix-reorg.c: Likewise.
3257         * opts.c: Likewise.
3258         * predict.c: Likewise.
3259         * print-tree.c: Likewise.
3260         * sdbout.c: Likewise.
3261         * sel-sched-dump.c: Likewise.
3262         * sel-sched-ir.c: Likewise.
3263         * sel-sched.c: Likewise.
3264         * sese.c: Likewise.
3265         * stor-layout.c: Likewise.
3266         * tree-cfg.c: Likewise.
3267         * tree-cfgcleanup.c: Likewise.
3268         * tree-chrec.c: Likewise.
3269         * tree-data-ref.c: Likewise.
3270         * tree-emutls.c: Likewise.
3271         * tree-inline.c: Likewise.
3272         * tree-into-ssa.c: Likewise.
3273         * tree-loop-distribution.c: Likewise.
3274         * tree-loop-linear.c: Likewise.
3275         * tree-mudflap.c: Likewise.
3276         * tree-outof-ssa.c: Likewise.
3277         * tree-parloops.c: Likewise.
3278         * tree-predcom.c: Likewise.
3279         * tree-pretty-print.c: Likewise.
3280         * tree-scalar-evolution.c: Likewise.
3281         * tree-ssa-live.c: Likewise.
3282         * tree-ssa-loop-im.c: Likewise.
3283         * tree-ssa-loop-ivcanon.c: Likewise.
3284         * tree-ssa-loop-ivopts.c: Likewise.
3285         * tree-ssa-loop-manip.c: Likewise.
3286         * tree-ssa-loop-niter.c: Likewise.
3287         * tree-ssa-loop-prefetch.c: Likewise.
3288         * tree-ssa-phiprop.c: Likewise.
3289         * tree-ssa-pre.c: Likewise.
3290         * tree-ssa-reassoc.c: Likewise.
3291         * tree-ssa-sccvn.c: Likewise.
3292         * tree-ssa-structalias.c: Likewise.
3293         * tree-ssa.c: Likewise.
3294         * tree-vect-data-refs.c: Likewise.
3295         * tree-vect-loop-manip.c: Likewise.
3296         * tree-vect-loop.c: Likewise.
3297         * tree-vect-patterns.c: Likewise.
3298         * tree-vect-slp.c: Likewise.
3299         * tree-vect-stmts.c: Likewise.
3300         * tree-vrp.c: Likewise.
3301         * tree.c: Likewise.
3302         * value-prof.c: Likewise.
3303         * var-tracking.c: Likewise.
3304         * varasm.c: Likewise.
3305         * vmsdbgout.c: Likewise.
3306
3307 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
3308             Richard Guenther  <richard.guenther@gmail.com>
3309
3310         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
3311         copy the src value and return a copy.
3312         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
3313         (C++ Volatiles): Adjust to describe C++ semantics only.
3314
3315 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
3316
3317         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
3318         be zero or nonzero.
3319         * doc/tm.texi: Regenerate.
3320         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
3321         * df-scan.c (df_get_exit_block_use_set), reginfo.c
3322         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
3323         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
3324         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
3325         to 1.
3326
3327 2010-08-20  Olivier Hainque  <hainque@adacore.com>
3328
3329         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
3330         an extra nop past a sibling call at the very end.
3331
3332 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
3333
3334         PR bootstrap/45350
3335         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
3336         a comment.
3337
3338 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
3339
3340         * target.def (function_arg, function_incoming_arg): Remove const
3341         qualifier on CUMULATIVE_ARGS parameter.
3342         * targhooks.h (default_function_arg, default_function_incoming_arg):
3343         Likewise.
3344         * targhooks.c (default_function_arg, default_function_incoming_arg):
3345         Likewise.
3346         * config/i386/i386.c (ix86_function_arg): Likewise.
3347
3348 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
3349
3350         PR target/45336
3351         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
3352         SIGN_EXTENDs or ZERO_EXTENDs.
3353
3354 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
3355
3356         PR target/42172
3357         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
3358         Take its cost into account if nonnull.
3359         (insn_a_feeds_b): New static function.
3360         (combine_instructions): Look for four-insn combinations.
3361         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
3362         them into account when computing all_adjacent and looking for other
3363         uses.
3364         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
3365         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
3366         (try_combine): New arg I0.  Handle four-insn combinations.
3367         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
3368         like ELIM_I1.
3369
3370 2010-08-19  Jason Merrill  <jason@redhat.com>
3371
3372         PR c++/45307
3373         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
3374         if ctor is empty.
3375         (gimplify_modify_expr_rhs): Adjust.
3376
3377 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
3378
3379         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
3380         bitmap_bit_p.
3381         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
3382         * dominance.c (iterate_fix_dominators): Likewise.
3383         * dse.c (set_usage_bits): Likewise.
3384         (set_position_unneeded, record_store): Likewise.
3385         * gimple-fold.c (get_maxval_strlen): Likewise.
3386         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
3387         * ipa-inline.c (update_caller_keys): Likewise.
3388         * ipa-split.c (verify_non_ssa_vars): Likewise.
3389         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
3390         (close_type_exposed_parameter, close_type_full_escape): Likewise.
3391         (close_addressof_down): Likewise.
3392         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
3393         (setup_allocno_left_conflicts_size): Likewise.
3394         (ira_reassign_conflict_allocnos): Likewise.
3395         (ira_reassign_pseudos): Likewise.
3396         * ira-emit.c (change_loop): Likewise.
3397         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
3398         * lto-streamer-out.c (write_symbol): Likewise.
3399         * predict.c (expr_expected_value_1): Likewise.
3400         * regstat.c (regstat_bb_compute_ri): Likewise.
3401         * sel-sched.c (create_block_for_bookkeeping): Likewise.
3402         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
3403         * stmt.c (expand_case): Likewise.
3404         * tree-eh.c (emit_eh_dispatch): Likewise.
3405         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
3406         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
3407         Likewise.
3408         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
3409         (rdg_build_components): Likewise.
3410         * tree-object-size.c (collect_object_sizes_for): Likewise.
3411         * tree-sra.c (convert_callers): Likewise.
3412         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
3413         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
3414         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
3415
3416 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
3417
3418         * config/i386/i386.md (*lea_1): Use P mode iterator.
3419         (lea add splitter): Also handle DImode operands.
3420         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
3421         predicate.  Do not use ix86_lea_for_add_ok.
3422         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
3423         (lea ashift splitter): Also handle DImode operands.
3424         (DImode lea ashift splitter): Remove splitter.
3425
3426 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
3427
3428         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
3429         ix86_binary_operator_ok.
3430
3431 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
3432
3433         PR rtl-optimization/44691
3434         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
3435         is not a register.
3436
3437 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
3438
3439         PR target/45070
3440         * config/arm/arm.c (arm_output_epilogue): Ensure that return
3441          value of size 1-3 is handled correctly.
3442
3443 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
3444
3445         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
3446         type for the conditional has wide enough range.
3447
3448 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
3449
3450         PR target/45327
3451         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
3452         ix86_binary_operator_ok.
3453
3454 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
3455
3456         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
3457         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
3458         code to output insn mnemonic.  Fix comment.
3459         (*addsi_1_zext): Add r-r-0 alternative 1.
3460         <TYPE_LEA>: Split insn to lea.
3461         <default>: Handle alternative 1.
3462         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
3463         multi-level if_then_else RTX to set "type" attribute.
3464         <default>: Handle alternative 2.
3465         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
3466         Use cond RTX instead of multi-level if_then_else RTX to set
3467         "type" attribute.
3468         <default>: Handle alternatives 2 and 4.
3469         (lea splitters): Update calls to ix86_lea_for_add_ok.
3470
3471         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
3472         argument.
3473         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
3474
3475 2010-08-18  Richard Guenther  <rguenther@suse.de>
3476
3477         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
3478         use operand helpers.
3479
3480 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
3481
3482         PR middle-end/45292
3483         * optabs.c (expand_bool_compare_and_swap): Expand pending
3484         pops before trying the optab.
3485
3486 2010-08-18  Yao Qi  <yao@codesourcery.com>
3487
3488         PR target/45094
3489         * config/arm/arm.c (output_move_double): Fix typo generating
3490         instructions ('ldr'->'str').
3491
3492 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3493
3494         PR rtl-optimization/42575
3495         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
3496         live ranges.
3497
3498 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3499
3500         * config/arm/arm-protos.h (arm_expand_sync): New.
3501         (arm_output_memory_barrier, arm_output_sync_insn): New.
3502         (arm_sync_loop_insns): New.
3503         * config/arm/arm.c (FL_ARCH7): New.
3504         (FL_FOR_ARCH7): Include FL_ARCH7.
3505         (arm_arch7): New.
3506         (arm_print_operand): Support %C markup.
3507         (arm_legitimize_sync_memory): New.
3508         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
3509         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
3510         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
3511         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
3512         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
3513         (arm_process_output_sync_insn, arm_output_sync_insn): New.
3514         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
3515         * config/arm/arm.h (struct arm_sync_generator): New.
3516         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
3517         (TARGET_HAVE_MEMORY_BARRIER): New.
3518         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
3519         * config/arm/arm.md: Include sync.md.
3520         (UNSPEC_MEMORY_BARRIER): New.
3521         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
3522         (VUNSPEC_SYNC_OP):New.
3523         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
3524         (sync_result, sync_memory, sync_required_value): New attributes.
3525         (sync_new_value, sync_t1, sync_t2): Likewise.
3526         (sync_release_barrier, sync_op): Likewise.
3527         (length): Add logic to length attribute defintion to call
3528         arm_sync_loop_insns when appropriate.
3529         * config/arm/sync.md: New file.
3530
3531 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
3532
3533         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
3534         ENABLE_TREE_CHECKING.
3535         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
3536         and GCC >= 4.3.
3537
3538 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
3539
3540         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
3541         or optimizing for size, always avoid lea if possible.
3542
3543         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
3544
3545 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
3546
3547         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
3548         Dunmmy function with NULL return unless the target is
3549         OSX >= 10.6 (Darwin10).
3550
3551 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
3552
3553         * gcc.c (spec_function): Add remove-outfile.
3554         (remove_outfile_spec_function): New function.
3555         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
3556         * invoke.texi (replace-outfile): Document.
3557
3558 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
3559
3560         PR target/45296
3561         * reginfo.c (globalize_reg): Reject stack registers.
3562
3563 2010-08-17  Richard Guenther  <rguenther@suse.de>
3564
3565         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
3566         list of conditional equivalences.
3567         (free_all_edge_infos): Adjust.
3568         (record_equivalences_from_incoming_edge): Likewise.
3569         (record_cond): Likewise.
3570         (build_and_record_new_cond): Likewise.
3571         (record_conditions): Likewise.
3572         (dom_opt_leave_block): Likewise.
3573
3574 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
3575
3576         * doc/invoke.texi (ms-extension): Add documentation.
3577
3578 2010-08-17  Richard Guenther  <rguenther@suse.de>
3579
3580         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
3581
3582 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
3583
3584         PR c/40563
3585         * c-decl.c (diagnose_uninitialized_cst_member): New function.
3586         (finish_decl): Use it to issue a -Wc++-compat warning about
3587         uninitialized const field in struct or union.
3588
3589         (finish_struct): Use strip_array_types.
3590
3591 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
3592
3593         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
3594         functions.
3595         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
3596         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
3597         call block_nreverse here.
3598         (blocks_nreverse): Rename decl temporary to block.
3599
3600 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
3601
3602         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
3603         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
3604         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
3605         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
3606         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
3607         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
3608         thumb2_iorsi3): Delete.
3609         (orsi_notsi_si): No longer a named pattern.
3610         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
3611         * config/arm/predicates.md (shift_amount_operand): New.
3612         (mult_operator): New.
3613         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
3614         attr enabled): New.
3615         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
3616         arch matches t2.
3617         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
3618         (not_shiftsi_compare0): Likewise, renamed from
3619         arm_notsi_shiftsi_compare0.
3620         (not_shiftsi_compare0_scratch): Likweise, renamed from
3621         arm_notsi_shiftsi_compare0_scratch.
3622         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
3623         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
3624         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
3625         so that the register alternative is disabled when the shift_operator
3626         is MULT.  Use "M" as the constraint for constants.
3627         (arith_shiftsi splitter): Enable for TARGET_32BIT.
3628         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
3629         constraint for constants.
3630         (arith_shiftsi_compare0_scratch): Likewise.
3631         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
3632         Handle Thumb2 alternative.
3633
3634 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3635
3636         * doc/options.texi (NoDriverArg): Document.
3637         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
3638         -MDX and -MMDX.
3639         * opt-functions.awk (switch_flags): Handle NoDriverArg.
3640         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
3641         marking for CL_NO_DRIVER_ARG options when in the driver.
3642         * opts.h (CL_NO_DRIVER_ARG): Define.
3643         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3644         CL_COMMON): Update values.
3645
3646 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3647
3648         * common.opt: Add driver options.
3649         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
3650         * doc/options.texi (Driver, RejectDriver): Document.
3651         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
3652         print_prog_name, print_multi_directory, print_sysroot,
3653         print_multi_os_directory, print_multi_lib,
3654         print_sysroot_headers_suffix, report_times, combine_flag,
3655         use_pipes, wrapper_string): Remove.
3656         (save_switch, driver_unknown_option_callback,
3657         driver_wrong_lang_callback, driver_post_handling_callback,
3658         driver_handle_option): New.
3659         (spec_lang, last_language_n_infiles): Make file-scope static
3660         instead of local to process_command.
3661         (process_command): Use decode_cmdline_options_to_array and
3662         read_cmdline_option for option processing.  Compute have_c in
3663         prescan of decoded options.
3664         * opt-functions.awk (switch_flags): Handle Driver and
3665         RejectDriver.
3666         (var_type, var_type_struct): Handle Separate options as generating
3667         const char * variables.
3668         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
3669         CL_TARGET to be passed by caller if required.
3670         (decode_cmdline_options_to_array): Update comment.
3671         * opts.c (complain_wrong_lang): Handle options only valid for the
3672         driver.
3673         (decode_options): Update call to decode_cmdline_options_to_array.
3674         (print_filtered_help): Ignore driver-only options.
3675         (print_specific_help): Ignore CL_DRIVER.
3676         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
3677         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
3678         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
3679         Update values.
3680
3681 2010-08-16  Richard Guenther  <rguenther@suse.de>
3682
3683         * tree-cfg.c (verify_types_in_gimple_reference): Verify
3684         TARGET_MEM_REF a bit.
3685         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
3686         (create_mem_ref_raw): Always create TMR_OFFSET, store the
3687         alias pointer type via it.
3688         (copy_mem_ref_info): Adjust.
3689         (maybe_fold_tmr): Likewise.
3690         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
3691         (reference_alias_ptr_type): Likewise.
3692         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
3693         adjust documentation of TMR_OFFSET operand.
3694         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
3695         use the alias pointer type.
3696         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
3697         initialize mem attrs but the TMR itself.
3698         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
3699         similar to MEM_REF.
3700         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
3701         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
3702         (unshare_and_remove_ssa_names): Likewise.
3703         (copy_ref_info): Adjust.
3704         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
3705         TARGET_MEM_REF case.
3706         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
3707         at TMR_ORIGINAL.
3708         * tree.h (TMR_ORIGINAL): Remove.
3709         * gimple.c (get_base_address): For TARGET_MEM_REF with a
3710         symbol return that.
3711         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
3712         with a symbol.
3713         (get_addr_base_and_unit_offset): Likewise.
3714         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
3715         TARGET_MEM_REFs.
3716         (indirect_ref_may_alias_decl_p): Likewise.
3717         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
3718
3719 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
3720
3721         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
3722         with GCC version 4.6, the default setting (when not optimizing
3723         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
3724         been changed to -fomit-frame-pointer.
3725
3726 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
3727
3728         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
3729         Darwin10.  Do not link libgcc.a for Darwin >= 9.
3730
3731 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
3732
3733         * doc/invoke.texi (Warning Options): Fix terminology and markup
3734         in the description of how unknown warning options are handled.
3735
3736 2010-08-15  Ira Rosen  <irar@il.ibm.com>
3737
3738         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
3739         in basic blocks.
3740         (vect_supportable_dr_alignment): Check alignment for basic blocks.
3741         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
3742         data references.
3743         (vect_bb_vectorization_profitable_p): New function.
3744         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
3745         check if it's worthwhile to vectorize the basic block.
3746
3747 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
3748
3749         * reload.h (register_move_cost, memory_move_secondary_cost,
3750         secondary_reload_class): Adjust prototype.
3751         * rtl.h (reg_class_subset_p): Adjust prototype.
3752         * reload.c (secondary_reload_class): Change arguments type from
3753         enum reg_class to reg_class_t. Change result type to reg_class_t.
3754         * reginfo.c (register_move_cost, reg_class_subset_p): Change
3755         arguments type from enum reg_class to reg_class_t.
3756         (memory_move_secondary_cost): Change arguments type from
3757         enum reg_class to reg_class_t. Change type of saved_flags to
3758         reg_class_t.
3759
3760         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3761         Remove macros.
3762         (mips_cost): Remove.
3763         (struct mips_rtx_cost_data): Moved to mips.c.
3764         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
3765         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
3766         (mips_cost): Make static.
3767         (mips_canonicalize_move_class): Change argument type to reg_class_t.
3768         Change result type to reg_class_t.
3769         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
3770         type from enum reg_class to reg_class_t.
3771         (mips_register_move_cost): Make static. Change arguments
3772         type from enum reg_class to reg_class_t.
3773         (mips_memory_move_cost): New function.
3774         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3775
3776 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
3777
3778         PR rtl-optimization/43358
3779         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
3780         of a single hard register, using simplify_subreg_regno to decide
3781         what that register should be.
3782
3783 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
3784
3785         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
3786         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
3787         (loongson_pmull<V_suffix>): Rename to...
3788         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
3789
3790 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
3791
3792         * configure.ac: Enable -fomit-frame-pointer on darwin
3793         which support dwarf2.
3794         * config/i386/i386.c (override_options): Same.
3795
3796 2010-08-13  Jie Zhang  <jie@codesourcery.com>
3797
3798         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
3799
3800 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
3801
3802         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
3803         -MMD.
3804
3805 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
3806
3807         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
3808         up dot_prod pattern searching if a stmt is outside the loop.
3809
3810 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
3811             Uros Bizjak  <ubizjak@gmail.com>
3812
3813         * config.gcc: Handle --enable-frame-pointer.
3814
3815         * configure.ac: Add --enable-frame-pointer.
3816         * configure: Regenerated.
3817
3818         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
3819         (override_options): If not configured with --enable-frame-pointer,
3820         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
3821         optimizing for size), -fasynchronous-unwind-tables and
3822         -maccumulate-outgoing-args by default.
3823
3824 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
3825
3826         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
3827
3828         PR middle-end/45262
3829         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
3830         -a overflows.  Normalize the range.
3831
3832 2010-08-12  Richard Guenther  <rguenther@suse.de>
3833
3834         PR tree-optimization/45232
3835         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
3836         for types with undefined overflow.
3837         (reassociate_bb): Allow re-associating of bit and min/max
3838         operations for types with undefined overflow.
3839         * tree-ssa-forwprop.c (associate_plusminus): New function.
3840         (tree_ssa_forward_propagate_single_use_vars): Call it.
3841
3842 2010-08-12  Richard Guenther  <rguenther@suse.de>
3843
3844         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
3845         * tree-ssa-alias.c (get_ptr_info): Move ...
3846         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
3847         align and misalign fields conservatively.
3848         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
3849         derive alignment information.
3850         (evaluate_stmt): Derive alignment information from memory
3851         allocation functions.
3852         * tree.h (get_pointer_alignment): Make unsigned.
3853         * builtins.c (get_object_alignment): Use alignment information we
3854         have computed for pointers.
3855         (get_pointer_alignment): Likewise.  Make conservative, return
3856         and unsigned value.
3857         (expand_builtin_strlen): Adjust.
3858         (expand_builtin_memcmp): Likewise.
3859         (expand_builtin_strcmp): Likewise.
3860         (expand_builtin_strncmp): Likewise.
3861         (get_builtin_sync_mem): Use at least mode alignment.
3862         (fold_builtin_memset): Adjust.
3863         (fold_builtin_memory_op): Likewise.
3864         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
3865         information also dump pointer alignment knowledge.
3866         (dump_gimple_stmt): Likewise.
3867
3868 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
3869
3870         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
3871         (EMPTY_FIELD_BOUNDARY): Remove.
3872         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
3873
3874 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
3875
3876         PR debug/45259
3877         * caller-save.c (save_call_clobbered_regs): Only swap notes with
3878         DEBUG_INSNs if n_regs_saved.
3879
3880 2010-08-12  Wei Guozhi  <carrot@google.com>
3881
3882         PR target/44999
3883         * config/arm/arm.md (andsi3): Change to zero extension if possible.
3884         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
3885
3886 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
3887
3888         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
3889
3890         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
3891
3892 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3893
3894         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
3895         the case removed in the previous patch, when the only phi argument
3896         is defined in the same loop as the phi node itself.  Handle it
3897         separately from the invariant case by both propagating it outside
3898         the region and replacing the phi node with an assign.
3899
3900 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3901
3902         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
3903         constant phi nodes with one argument are is_gimple_min_invariant
3904         and SSA_NAME_IS_DEFAULT_DEF.
3905
3906 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3907
3908         * graphite-cloog-util.c (oppose_constraint):
3909         Extend loop counter's value range (CLOOG_ORG).
3910         (cloog_matrix_to_ppl_constraint): Same.
3911         (new_Constraint_System_from_Cloog_matrix): Same.
3912         * graphite-cloog-compat.h (matrix_num_type): New.
3913
3914 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3915
3916         * graphite.c (graphite_initialize): Do not initialize
3917         CLooG and initialize the Parma Polyhedra Library
3918         manually when using CLOOG_ORG.
3919         (graphite_finalize): Do not finalize CLooG and finalize
3920         the Parma Polyhedra Library manually when using CLOOG_ORG.
3921         * graphite-cloog-compat.h (cloog_initialize): Hide function
3922         when using CLOOG_ORG.
3923         (cloog_finalize): Same.
3924
3925 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3926
3927         * graphite-clast-to-gimple.c (free_scattering): Change
3928         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
3929         (CLOOG_ORG).
3930         (build_cloog_prog): Same.
3931         * graphite-cloog-compat.h (cloog_domain): Removed.
3932         (cloog_scattering): New.
3933         (cloog_set_domain): Removed.
3934         (cloog_set_scattering): New.
3935         (cloog_next_domain): Removed.
3936         (cloog_next_scattering): New.
3937         (cloog_set_next_domain): Removed.
3938         (cloog_set_next_scattering): New.
3939         (CloogScatteringList): New.
3940         (CloogScattering): New.
3941         (cloog_scattering_free): New.
3942         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
3943         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
3944         New.
3945
3946 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3947
3948         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
3949         CloogState.
3950         (set_cloog_options): Same.
3951         (print_clast_stmt): Same.
3952         (scop_to_clast): Same.
3953         (print_generated_program): Same.
3954         (gloog): Same.
3955         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
3956         (scop_to_clast): Extend with CloogState.
3957         * graphite-cloog-util.c: Include graphite-cloog-compat.h
3958         (new_Cloog_Domain_from_ppl_Polyhedron):
3959         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
3960         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
3961         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3962         * graphite-cloog-util.h (build_cloog_prog): Same.
3963         * graphite-cloog-copat.h (build_cloog_prog): New.
3964         (CloogState): New.
3965         (cloog_state_malloc): New.
3966         (cloog_state_free): New.
3967         (cloog_loop_malloc): New.
3968         (cloog_options_malloc): New.
3969         (cloog_statement_alloc): New.
3970         (cloog_domain_from_cloog_matrix): New.
3971         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3972         (new_Cloog_Domain_from_ppl_Polyhedron): New.
3973
3974 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3975
3976         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
3977         type of NAME now depends on used CLooG version.
3978         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
3979         (gcc_type_for_clast_expr): Same.
3980         (print_clast_stmt): Replace pprint with clast_pprint.
3981         * graphite-cloog-compat.h: Provide compatibility macros for
3982         CLooG Legacy.
3983         (clast_name_p): New.
3984         (clast_expr_term): New.
3985         (clast_expr_red): New.
3986         (clast_expr_bin): New.
3987         (clast_pprint): New.
3988
3989 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3990
3991         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
3992         compatible to newer CLooG releases (CLOOG_ORG).
3993         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
3994         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
3995         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
3996         (build_cloog_prog) : New.
3997         (cloog_program_extract_scalars): New.
3998         (cloog_program_scatter): New.
3999
4000 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4001
4002         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
4003         conditionally (CLOOG_ORG).
4004         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
4005         (cloog_statement_usr): New.
4006         (cloog_domain): Same.
4007         (cloog_set_domain): Same.
4008         (cloog_next_domain): Same.
4009         (cloog_set_next_domain): Same.
4010         (cloog_program_nb_scattdims): Same.
4011         (cloog_program_set_nb_scattdims): Same.
4012         (cloog_program_names): Same.
4013         (cloog_program_set_names): Same.
4014         (cloog_program_set_context): Same.
4015         (cloog_program_set_loop): Same.
4016         (cloog_program_blocklist): Same.
4017         (cloog_program_set_blocklist): Same.
4018         (cloog_program_scaldims): Same.
4019         (cloog_program_set_scaldims): Same.
4020         (cloog_names_nb_parameters): Same.
4021         (cloog_names_set_nb_parameters): Same.
4022         (cloog_names_parameters): Same.
4023         (cloog_names_set_parameters): Same.
4024         (cloog_names_set_nb_iterators): Same.
4025         (cloog_names_set_iterators): Same.
4026         (cloog_names_set_nb_scattering): Same.
4027         (cloog_names_set_scattering): Same.
4028         (cloog_statement_set_usr): Same.
4029         (cloog_loop_set_next): Same.
4030         (cloog_loop_set_domain): Same.
4031         (cloog_loop_set_block): Same.
4032         (cloog_block_list_next): Same.
4033         (cloog_block_list_set_next):
4034         (cloog_block_list_set_block): Same.
4035
4036 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4037
4038         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
4039         a bool.
4040         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
4041         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
4042         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
4043         when something has been changed.
4044         (rewrite_commutative_reductions_out_of_ssa): Same.
4045
4046 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4047
4048         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
4049         handle the case when def is in the sese region.
4050         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
4051         for invariant expressions.
4052         (rewrite_cross_bb_phi_deps): Removed.
4053         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
4054         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
4055         rewrite_cross_bb_phi_deps.
4056
4057 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4058
4059         * graphite-sese-to-poly.c
4060         (rewrite_commutative_reductions_out_of_ssa_loop): Call
4061         scev_analyzable_p only on is_gimple_reg
4062
4063 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4064
4065         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
4066         (rewrite_close_phi_out_of_ssa): Propagate constant values or
4067         parametric expressions outside the scop region.
4068         (rewrite_cross_bb_scalar_deps): Same.
4069         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
4070
4071 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4072
4073         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
4074         SSA_NAME_DEF_STMT only on SSA_NAMEs.
4075
4076 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4077
4078         * tree-scalar-evolution.c (instantiate_scev_name): Do not
4079         instantiate default definitions.
4080
4081 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
4082             Sebastian Pop  <sebastian.pop@amd.com>
4083
4084         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
4085         (loop_exits_from_bb_p): New.
4086         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
4087         (loop_exits_from_bb_p): Declared.
4088         * graphite-scop-detection.c (scopdet_basic_block_info): Call
4089         loop_exits_to_bb_p.
4090
4091 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4092
4093         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
4094         extra parameter for the region.  Call scev_analyzable_p.
4095         (rewrite_reductions_out_of_ssa): Update call to
4096         rewrite_close_phi_out_of_ssa.
4097         (rewrite_cross_bb_phi_deps): Same.
4098         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
4099         parameter for the region.  Call scev_analyzable_p.
4100         (rewrite_commutative_reductions_out_of_ssa): Update call to
4101         rewrite_commutative_reductions_out_of_ssa_loop.
4102
4103 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4104
4105         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
4106
4107 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4108
4109         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
4110         SSA scalar phi nodes that can be scev_analyzable_p.
4111
4112 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4113
4114         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
4115         handle SSA_NAME_IS_DEFAULT_DEF.
4116
4117 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4118
4119         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
4120
4121 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4122
4123         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
4124         case non close-phi nodes with one argument.
4125
4126 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4127
4128         * sese.h (scev_analyzable_p): Scevs could be expressions without
4129         chrecs and still be scev_analyzable_p.
4130
4131 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4132
4133         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4134
4135 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4136
4137         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
4138         * cfgloop.h (struct loop): Remove single_iv field.
4139         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
4140         (scop_canonicalize_loops): Removed.
4141         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
4142         over all the loop phi nodes in loop->header.
4143         (build_poly_scop): Remove use of scop_canonicalize_loops.
4144
4145 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4146
4147         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
4148         handle GIMPLE_CALL.
4149
4150 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4151
4152         * tree-chrec.c (chrec_apply): Should only apply to the specified
4153         variable.  Also handle multivariate chains of recurrences that
4154         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
4155
4156 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4157
4158         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
4159         (debug_clast_name_indexes_1): Removed.
4160         (debug_clast_name_indexes): Removed.
4161         (pbb_to_depth_to_oldiv): Removed.
4162         (build_iv_mapping): Replace the use of rename_map with iv_map.
4163         (translate_clast_user): Remove uses of rename_map.  Allocate and
4164         free iv_map.
4165         (translate_clast_for_loop): Remove uses of rename_map.
4166         (translate_clast_for): Same.
4167         (translate_clast_guard): Same.
4168         (translate_clast): Same.
4169         (gloog): Same.
4170         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
4171         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
4172         * sese.c (set_rename): Now static.
4173         (rename_variables_in_stmt): Removed.
4174         (rename_uses): New.
4175         (is_parameter): Removed.
4176         (is_iv): Removed.
4177         (expand_scalar_variables_call): Removed.
4178         (expand_scalar_variables_ssa_name): Removed.
4179         (expand_scalar_variables_expr): Removed.
4180         (expand_scalar_variables_stmt): Removed.
4181         (expand_scalar_variables): Removed.
4182         (rename_variables): Removed.
4183         (remove_condition): Removed.
4184         (get_true_edge_from_guard_bb): Removed.
4185         (get_false_edge_from_guard_bb): Removed.
4186         (struct igp): Removed.
4187         (default_before_guard): Removed.
4188         (convert_for_phi_arg): Removed.
4189         (add_guard_exit_phis): Removed.
4190         (insert_guard_phis): Removed.
4191         (graphite_copy_stmts_from_block): Now also uses iv_map and a
4192         region.  Do not copy conditions.  Do not copy induction variables.
4193         Call rename_uses.
4194         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
4195         the translated statement.  Use the iv_map for the induction
4196         variable renaming.
4197         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4198         (set_rename): Removed declaration.
4199         (scev_analyzable_p): ...here.
4200         * tree-chrec.c (chrec_apply_map): New.
4201         * tree-chrec.h (chrec_apply_map): Declared.
4202
4203 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4204
4205         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
4206         insert_loop_close_phis.
4207         * sese.c (name_defined_in_loop_p): Removed.
4208         (expr_defined_in_loop_p): Removed.
4209         (alive_after_loop): Removed.
4210         (close_phi_not_yet_inserted_p): Removed.
4211         (struct alep): Removed.
4212         (add_loop_exit_phis): Removed.
4213         (insert_loop_close_phis): Removed.
4214
4215 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4216
4217         * graphite-cloog-util.c
4218         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
4219         * graphite-poly.c
4220         (psct_scattering_dim_for_loop_depth): Same.
4221
4222 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4223
4224         * graphite-cloog-util.h: Added cloog.h.
4225         * graphite-blocking.c: Removed cloog.h.
4226         * graphite-dependences.c: Same.
4227         * graphite-interchange.c: Same.
4228         * graphite-poly.c: Same.
4229         * graphite-ppl.c: Same.
4230         * graphite-scop-detection.c: Same.
4231         * graphite-sese-to-poly.c:
4232         Removed cloog.h.
4233         Removed graphite-clast-to-gimple.h.
4234         (check_poly_representation): Removed (unused).
4235         * graphite-sese-to-poly.h
4236         (check_poly_representation): Removed (unused).
4237
4238 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4239
4240         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
4241         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
4242         (graphite-cloog-util.o): New.
4243         (graphite-ppl.o): Added graphite-cloog-util.h.
4244         * graphite-clast-to-gimple.c:
4245         Added graphite-cloog-util.h to include statements.
4246         * graphite-cloog-util.c: New.
4247         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
4248         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4249         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4250         (new_C_Polyhedron_from_Cloog_Matrix): Same.
4251         (insert_constraint_into_matrix): Same.
4252         (ppl_Constrain_System_number_of_constraints): Same.
4253         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
4254         (oppose_constraint): Same.
4255         (cloog_matrix_to_ppl_constraint): Same.
4256         (new_Constraint_System_from_Cloog_Matrix): Same.
4257         * graphite-cloog-util.h: New.
4258         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
4259         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4260         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4261         (new_C_Polyhedron_from_Cloog_Matrix): Same.
4262         (insert_constraint_into_matrix): Same.
4263         * graphite-ppl.c:
4264         Added graphite-cloog-util.h to include statements.
4265         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
4266         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4267         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4268         (new_C_Polyhedron_from_Cloog_Matrix): Same.
4269         (insert_constraint_into_matrix): Same.
4270         (ppl_Constrain_System_number_of_constraints): Same.
4271         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
4272         (oppose_constraint): Same.
4273         (cloog_matrix_to_ppl_constraint): Same.
4274         (new_Constraint_System_from_Cloog_Matrix): Same.
4275         * graphite-ppl.h:
4276         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
4277         graphite-cloog-util.h.
4278         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4279         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4280         (new_C_Polyhedron_from_Cloog_Matrix): Same.
4281         (insert_constraint_into_matrix): Same.
4282
4283 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4284
4285         * graphite-clast-to-gimple.c
4286         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
4287         (precision_for_interval): Same.
4288         (gcc_type_for_interval): Same.
4289         (compute_type_for_level): Same.
4290         * graphite-interchange.c
4291         (lst_interchange_profitable_p): Same.
4292         * graphite-poly.c
4293         (psct_scattering_dim_for_loop_depth): Same.
4294         * graphite-ppl.c
4295         (ppl_max_for_le_pointset): Same.
4296         (ppl_min_for_le_pointset): Same.
4297
4298 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4299
4300         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
4301         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
4302
4303 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4304
4305         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
4306         rewrite_close_phi_out_of_ssa.
4307
4308 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4309
4310         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
4311
4312 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4313
4314         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
4315         rename_map.
4316         * sese.c (debug_rename_map): Same.
4317         (get_rename): Same.
4318         (set_rename): Same.
4319         (rename_variables_in_stmt): Same.
4320         (expand_scalar_variables_call): Same.
4321         (expand_scalar_variables_ssa_name): Same.
4322         (expand_scalar_variables_expr): Same.
4323         (expand_scalar_variables_stmt): Same.
4324         (expand_scalar_variables): Same.
4325         (rename_variables): Same.
4326         (graphite_copy_stmts_from_block): Same.
4327         (copy_bb_and_scalar_dependences): Same.
4328
4329 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4330
4331         * graphite-clast-to-gimple.c (copy_renames): Removed.
4332         (translate_clast_for): Do not call copy_renames.
4333         (translate_clast_guard): Same.
4334
4335 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4336
4337         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
4338         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
4339         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
4340         before rewrite_cross_bb_scalar_deps.
4341
4342 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4343
4344         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
4345         Early return in when flag_associative_math is not set.
4346
4347 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4348
4349         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
4350         of SSA copies on edges except for loop->latch.
4351
4352 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4353
4354         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
4355         Split out of rewrite_reductions_out_of_ssa.
4356         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
4357         Declared.
4358         * graphite.c (graphite_transform_loops): Call it.
4359
4360 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4361
4362         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
4363
4364 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
4365
4366         * dbgcnt.def (graphite_scop): New counter.
4367         * graphite.c: Include dbgcnt.h.
4368         (graphite_transform_loops): Use new counter to limit transformations.
4369         * Makefile.in (graphite.o): Depend on DBGCNT_H.
4370
4371 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4372
4373         * passes.c (init_optimization_passes): Add pass_graphite.
4374         Schedule a pass_copy_prop before pass_graphite_transforms.
4375         * timevar.def (TV_GRAPHITE): Declared.
4376         * tree-pass.h (pass_graphite): Declared.
4377         * tree-ssa-loop.c (pass_graphite): New.
4378
4379 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4380
4381         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
4382         Remove calls to rename_nb_iterations and rename_sese_parameters.
4383         * graphite-clast-to-gimple.h (gloog): Update declaration.
4384         * graphite.c (graphite_transform_loops): Update call to gloog.
4385         * sese.c (rename_variables_in_expr): Removed.
4386         (rename_nb_iterations): Removed.
4387         (rename_sese_parameters): Removed.
4388         * sese.h (rename_nb_iterations): Removed.
4389         (rename_sese_parameters): Removed.
4390
4391 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4392
4393         * graphite-clast-to-gimple.c (gloog): Remove call to
4394         sese_adjust_liveout_phis.
4395         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
4396         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
4397         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
4398         rewrite_phi_out_of_ssa.
4399         * sese.c (get_vdef_before_sese): Removed.
4400         (sese_adjust_vphi): Removed.
4401         (sese_adjust_liveout_phis): Removed.
4402         * sese.h (sese_adjust_liveout_phis): Removed.
4403
4404 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4405
4406         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
4407         argument for the place after which to insert the out of SSA copy.
4408         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
4409         (rewrite_phi_out_of_ssa): Same.
4410         (rewrite_cross_bb_scalar_deps): Same.
4411         (insert_copyout): Removed.
4412         (insert_copyin): Removed.
4413         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
4414         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
4415         insert_copyin.
4416
4417 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4418
4419         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
4420         (rewrite_reductions_out_of_ssa): Same.
4421         (rewrite_commutative_reductions_out_of_ssa): Same.
4422         (build_poly_scop): Do not call these functions.
4423         * graphite-sese-to-poly.h (build_poly_scop): Declared.
4424         (rewrite_reductions_out_of_ssa): Declared.
4425         (rewrite_commutative_reductions_out_of_ssa): Declared.
4426         * graphite.c (graphite_transform_loops): Call on every scop
4427         rewrite_commutative_reductions_out_of_ssa before calling
4428         rewrite_reductions_out_of_ssa and build_scop_bbs.
4429
4430 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4431
4432         * graphite-dependences.c (dot_deps): Make system call to dotty run
4433         in background.
4434         (dot_deps_stmt): Same.
4435         * graphite-poly.c (dot_lst): Same.
4436
4437 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4438
4439         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
4440         phi_arg_in_outermost_loop.
4441         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
4442         (remove_invariant_phi): Same.
4443
4444 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
4445
4446         * target.def (output_addr_const_extra): New hook.
4447         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
4448         * doc/tm.texi: Regenerate.
4449         * targhooks.c (default_asm_output_addr_const_extra): New function.
4450         * targhooks.h (default_asm_output_addr_const_extra): Declare.
4451         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
4452         target hook.
4453
4454         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4455         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
4456         * config/i386/i386.h (output_addr_const_extra): Rename to...
4457         (i386_asm_output_addr_const_extra): ...this. Make static.
4458         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4459
4460 2010-08-11  Richard Henderson  <rth@redhat.com>
4461
4462         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
4463
4464 2010-08-11  Nick Clifton  <nickc@redhat.com>
4465
4466         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
4467         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
4468         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4469         stormy16-lib2-cmpsi.c.
4470
4471         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
4472         -O2.
4473
4474 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4475
4476         * opts.h (struct cl_option_handler_func): Make handler take
4477         cl_decoded_option structure as parameter, not individual elements.
4478         (struct cl_option_handlers): Make callbacks take cl_decoded_option
4479         structure as parameter, not individual elements.
4480         (handle_option): Take cl_decoded_option structure as parameter,
4481         not individual elements.
4482         (handle_generated_option): Declare.
4483         * opts-common.c (handle_option): Take cl_decoded_option structure
4484         as parameter, not individual elements.  Update calls to callback
4485         and handler functions.
4486         (handle_generated_option): New.
4487         (read_cmdline_option): Update calls to callback functions and
4488         handle_option.
4489         * opts.c (common_handle_option, complain_wrong_lang,
4490         unknown_option_callback, post_handling_callback,
4491         lang_handle_option, target_handle_option): Take cl_decoded_option
4492         structure as parameter, not individual elements.
4493         (lang_handle_option, target_handle_option, common_handle_option):
4494         Assert option has at most one argument.
4495         (enable_warning_as_error): Call handle_generated_option instead of
4496         handle_option.  Do not pass -Werror argument as argument of
4497         generated option.
4498
4499 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4500
4501         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
4502         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
4503         (SUBWORD_BOOL_CAS): Likewise.
4504         (SUBWORD_SYNC_OP): Likewise.
4505         (SUBWORD_TEST_AND_SET): Likewise.
4506         (FETCH_AND_OP_WORD): Parenthesise INF_OP
4507         (SUBWORD_SYNC_OP): Likewise.
4508         (OP_AND_FETCH_WORD): Likewise.
4509
4510 2010-08-10  Xinliang David Li  <davidxl@google.com>
4511
4512         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
4513         compute max/min offset in address.
4514
4515 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
4516
4517         * ira-live.c: Include sbitmap.h.
4518         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
4519         Compress live ranges even more.
4520
4521 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4522
4523         * coverage.c (ctr_labels): Delete.
4524
4525 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
4526
4527         PR bootstrap/45177
4528         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
4529         test here from arm_gen_load_multiple_1.
4530         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
4531         multiple_operation_profitable_p.
4532
4533 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4534
4535         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
4536         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
4537
4538 2010-08-10  Richard Henderson  <rth@redhat.com>
4539
4540         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
4541         after saving registers.  Assert that SSE registers are only saved
4542         with a sufficiently aligned frame.
4543         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
4544         remove stack_realign_fp handling.
4545         (ix86_expand_prologue): Save int registers before stack_realign_fp,
4546         and do not mark the stack alignment as frame related.
4547         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
4548
4549         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
4550         saves when re-aligning the stack.
4551
4552 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4553
4554         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
4555         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
4556         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
4557
4558 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4559
4560         * dwarf2out.c (struct die_struct): Move die_tag to the end.
4561
4562 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
4563
4564         * config/arm/iterators.md: New file.
4565         * config/arm/arm.md: Include iterators.md.
4566         (QHSI): Move to new file.
4567         (LTUGEU, cnb, optab, ior_xor): Likewise.
4568         * config/arm/iwmmxt.md (VMMX): Move to new file.
4569         (VSHFT, MMX_char): Likewise.
4570         * config/arm/neon.md (VD): Move to new file.
4571         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
4572         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
4573         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
4574         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
4575         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
4576         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
4577         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
4578         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
4579         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
4580         (Is_d_reg, V_mode_nunits): Likewise.
4581         * config/arm/vec-common.md (VALL): Move to new file.
4582         (VALLW, VINT, VINTW): Likewise.
4583
4584 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
4585
4586         PR middle-end/45182
4587         * combine.c (make_compound_operation): Don't try to convert
4588         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
4589
4590 2010-08-10  Richard Guenther  <rguenther@suse.de>
4591
4592         * tree.h (get_object_alignment): Adjust prototype.
4593         * builtins.c (get_object_alignment): Return unsigned int,
4594         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
4595         and TARGET_MEM_REF properly.
4596         (get_pointer_alignment): Adjust.
4597         * emit-rtl.c (get_mem_align_offset): Adjust comment.
4598         (set_mem_attributes_minus_bitpos): Adjust.
4599         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
4600
4601 2010-08-10  Richard Guenther  <rguenther@suse.de>
4602
4603         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
4604         (copy_prop_visit_assignment): Simplify.
4605         (copy_prop_visit_stmt): Also visit assignments from
4606         constants.
4607         (copy_prop_visit_phi_node): Use operand_equal_p.
4608
4609 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4610
4611         * ipa-split.c (find_split_points): Free stack.
4612
4613 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4614
4615         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
4616         * tree.c (tree_node_kind): Delete corresponding entries.
4617
4618 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4619
4620         * alias.c (may_alias_p): Remove unused ret.
4621
4622 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
4623
4624         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
4625         alias_sets_conflict_p.
4626         (walk_mems_1): Moved from alias.c.
4627         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
4628         in alias.c.
4629         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
4630         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
4631         * alias.c (walk_mems_2): Moved to ddg.c.
4632         (walk_mems_1): Ditto.
4633         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
4634         to ddg.c.
4635         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
4636         disambiguation.
4637         *(may_alias_p): New function to check whether two memory expression
4638         may alias or not. Currently used in buidling inter-iteration memory
4639         dependence.
4640         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
4641         (insn_alias_sets_conflict_p): Removed
4642         *rtl.h (may_alias_p): New function prototype.
4643
4644 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4645
4646         * tree.c (nreverse): Assert that we don't have a BLOCK.
4647
4648 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4649
4650         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
4651         * config/arm/arm.c (arm_get_pcs_model): Likewise.
4652         * config/avr/avr.c (init_cumulative_args): Likewise.
4653         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4654         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4655         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
4656         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
4657         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4658         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4659         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
4660         * dwarf2out.c (gen_subprogram_die): Likewise.
4661         * function.c (allocate_struct_function): Likewise.
4662         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
4663         (deserves_ellipsis): Delete.
4664
4665 2010-08-09  Richard Guenther  <rguenther@suse.de>
4666
4667         * tree-ssa-copy.c (cached_last_copy_of): Remove.
4668         (valueize_val): New function.
4669         (get_last_copy_of): Remove.
4670         (set_copy_of_val): Simplify.
4671         (dump_copy_of): Likewise.
4672         (copy_prop_visit_cond_stmt): Use valueize_val.
4673         (copy_prop_visit_phi_node): Properly handle unvisited names.
4674         Drop code managing copy-of chains.
4675         (init_copy_prop): Adjust.
4676         (fini_copy_prop): Likewise.
4677         (execute_copy_prop): Remove obsolete comment.
4678
4679 2010-08-09  Richard Guenther  <rguenther@suse.de>
4680
4681         PR middle-end/44632
4682         * function.c (gimplify_parameters): Do not clear addressable
4683         bit of the original parameter.
4684
4685 2010-08-09  Richard Guenther  <rguenther@suse.de>
4686
4687         PR middle-end/45212
4688         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
4689         alignment from MEM_REF offset only if we took it from the
4690         base object.
4691
4692 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
4693
4694         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
4695
4696 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4697
4698         * c-tree.h (build_arg_info): Declare.
4699         * c-decl.c (build_arg_info): Define.
4700         (get_parm_info): Call it.  Delete initialization code.
4701         * c-parser.c (c_parser_parms_declarator): Likewise.
4702         (c_parser_parms_list_declaractor): Likewise.
4703
4704 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4705
4706         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
4707         (struct c_arg_info): Change type of tags field.
4708         * c-decl.c (grokdeclarator): Update for changed type of tags field.
4709         (get_parm_info): Likewise.
4710         (store_parm_decls_newstyle): Likewise.
4711
4712 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4713
4714         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
4715         (branch_island_list): Delete.
4716         (branch_islands): Declare.
4717         (add_compiler_branch_island): Adjust for branch_islands instead of
4718         branch_island_list.
4719         (macho_branch_islands): Likewise.
4720         (no_previous_def): Likewise.
4721         (get_prev_label): Likewise.
4722
4723 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4724
4725         PR boehm-gc/34544
4726         * gthr-posix.h (__gthread_start): Delete.
4727         (__gthread_active_init): Use pthread_default_stacksize_np instead of
4728         pthread_create to determine if hpux pthreads are active.
4729         * gthr-posix95.h (__gthread_start): Delete.
4730         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
4731
4732 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
4733
4734         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
4735         _WIN64 not expanded.
4736
4737 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
4738             H.J. Lu  <hongjiu.lu@intel.com>
4739
4740         PR target/45213
4741         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
4742         to output 32bit SFmode immediate as 8 byte sign extended value.
4743
4744 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4745
4746         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
4747         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
4748         (SUBWORD_BOOL_CAS): Likewise.
4749         (SUBWORD_SYNC_OP): Likewise.
4750         (SUBWORD_TEST_AND_SET): Likewise.
4751         (FETCH_AND_OP_WORD): Parenthesise INF_OP
4752         (SUBWORD_SYNC_OP): Likewise.
4753         (OP_AND_FETCH_WORD): Likewise.
4754
4755 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4756
4757         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
4758         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
4759         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
4760         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
4761         generic part.
4762         (cortex_a9_sched_adjust_cost): New function.
4763         (xscale_sched_adjust_cost): New function.
4764         * config/arm/arm-protos.h (struct tune_params): New field
4765         sched_adjust_cost.
4766         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
4767
4768 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
4769
4770         PR target/44942
4771         * config/sparc/sparc.c (function_arg_advance): Always take into account
4772         the padding, if any.
4773
4774 2010-08-06  Richard Guenther  <rguenther@suse.de>
4775
4776         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
4777         (dump_lattice_value): Dump it.
4778         (get_default_value): Adjust.
4779         (get_constant_value): Likewise.
4780         (set_value_varying): Likewise.
4781         (set_lattice_value): Make sure to not go up the lattice
4782         with bitwise constant values.
4783         (get_value_for_expr): Handle ADDR_EXPRs.
4784         (value_to_double_int): New function.
4785         (get_value_from_alignment): Likewise.
4786         (do_dbg_cnt): Adjust.
4787         (ccp_lattice_meet): Handle partially constant values.
4788         (bit_value_unop_1): New function.
4789         (bit_value_binop_1): Likewise.
4790         (bit_value_unop): Likewise.
4791         (bit_value_binop): Likewise.
4792         (evaluate_stmt): Track partially constant values if
4793         flag_tree_bit_ccp is set.
4794         (ccp_fold_stmt): Dump if we folded a predicate.
4795         (ccp_visit_stmt): Adjust.
4796         * common.opt (ftree-bit-ccp): New flag.
4797         * doc/invoke.texi (ftree-bit-ccp): Document.
4798         * opts.c (decode_options): Enable bit-CCP at -O1.
4799
4800 2010-08-06  Alan Modra  <amodra@gmail.com>
4801
4802         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
4803         and -mrelocatable-lib description.
4804
4805 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
4806
4807         From Martin Thuresson  <martint@google.com>
4808         * postreload.c (reload_cse_simplify_operands): Use
4809         SET_REGNO_RAW instead of SET_REGNO.
4810         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
4811         SET_REGNO.
4812         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
4813         instead of SET_REGNO.
4814         * rtl.h (SET_REGNO_RAW): New macro.
4815
4816 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
4817
4818         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
4819         computations.  Fix formatting issues.
4820         (num_sign_bit_copies1): Likewise.
4821         (canonicalize_condition): Likewise.
4822
4823 2010-08-05  Richard Henderson  <rth@redhat.com>
4824
4825         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
4826         (floor_log2): Use clz_hwi.
4827         (exact_log2): Use ctz_hwi.
4828         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
4829         * builtins.c (fold_builtin_bitop): Use them.
4830         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4831         * combine.c (get_pos_from_mask): Use ctz_hwi.
4832         * double-int.c (double_int_ctz): Likewise.
4833         * explow.c (force_reg): Likewise.
4834         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
4835
4836 2010-08-05  Richard Henderson  <rth@redhat.com>
4837
4838         PR target/45189
4839         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
4840         the alignment constant is properly sign-extended.
4841
4842 2010-08-05  Richard Guenther  <rguenther@suse.de>
4843
4844         * expr.c (store_expr): Use emit_block_move only if both
4845         source and target are MEMs.  Use store_bit_field if only
4846         the target is a MEM.
4847
4848 2010-08-05  Richard Henderson  <rth@redhat.com>
4849
4850         PR debug/45188
4851         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
4852         (INCOMING_RETURN_ADDR_RTX): Likewise.
4853         (dwarf2out_do_frame): Remove conditional compilation.
4854         (dwarf2out_frame_init): Likewise.
4855
4856 2010-08-05  Nicolas Setton  <setton@adacore.com>
4857
4858         * gcov.c (flag_display_progress): New static variable.
4859         (main): Display progress info on standard output if requested.
4860         (options): Add -d/--display-progress.
4861         (print_usage): Print them.
4862         (process_args): Handle them.
4863         * doc/gcov.texi: Document them.
4864
4865 2010-08-05  Martin Jambor  <mjambor@suse.cz>
4866
4867         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
4868         (ipcp_insert_stage): Redirect only edges not flagged with
4869         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
4870         discovered constants.
4871
4872 2010-08-05  Martin Jambor  <mjambor@suse.cz>
4873
4874         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
4875         (struct ipa_param_descriptor): New fields types and
4876         cannot_devirtualize.
4877         (ipa_param_cannot_devirtualize_p): New function.
4878         (ipa_param_types_vec_empty): Likewise.
4879         (ipa_make_edge_direct_to_target): Declare.
4880         * ipa-cp.c: Fixed first stage driver name in initial comment,
4881         described devirtualization there too.
4882         (ipcp_analyze_node): Call ipa_analyze_params_uses.
4883         (ipcp_print_all_lattices): Print devirtualization info.
4884         (ipa_set_param_cannot_devirtualize): New function.
4885         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
4886         lattice to BOTTOM.
4887         (ipcp_init_stage): Merged into...
4888         (ipcp_generate_summary): ...its caller.
4889         (ipcp_change_tops_to_bottom): Also process type lists.
4890         (ipcp_add_param_type): New function.
4891         (ipcp_copy_types): Likewise.
4892         (ipcp_propagate_types): Likewise.
4893         (ipcp_propagate_stage): Also propagate types.
4894         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
4895         Also return true if propagated types require it.
4896         (ipcp_update_callgraph): Dump redirection info.
4897         (ipcp_process_devirtualization_opportunities): New function.
4898         (ipcp_const_param_count): Include known type information.
4899         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
4900         on new node.  Fixed formatting.
4901         * ipa-prop.c (make_edge_direct_to_target): Renamed to
4902         ipa_make_edge_direct_to_target and changed all callers.  Made
4903         externally visible.
4904         (ipa_node_duplication_hook): Duplicate types vector.
4905         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
4906         redirect outgoing calls for which we can't get a decl from the
4907         statement.  Check that we can get a decl from the call statement.
4908         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
4909         ipa_analyze_params_uses only when ipa-cp is disabled.
4910         * tree-inline.c (get_indirect_callee_fndecl): Removed.
4911         (expand_call_inline): Do not call get_indirect_callee_fndecl.
4912         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
4913         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
4914
4915 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
4916
4917         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
4918         temporary. Emit move from temporary to accum, so REG_EQUAL note will
4919         be attached to this insn in correct mode.
4920
4921 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
4922
4923         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
4924         using REGNO of base_reg directly.
4925
4926 2010-08-05  Jie Zhang  <jie@codesourcery.com>
4927
4928         PR tree-optimization/45144
4929         * tree-sra.c (type_consists_of_records_p): Return false
4930         if the record contains bit-field.
4931
4932 2010-08-04  Richard Henderson  <rth@redhat.com>
4933
4934         * config/i386/i386.c (struct ix86_frame): Remove padding and
4935         to_allocate members.
4936         (ix86_compute_frame_layout): Don't store them.
4937         (ix86_can_use_return_insn_p): Use a more direct and more obviously
4938         correct condition for the position of the stack pointer.
4939         (ix86_expand_prologue): Compute remaining stack allocation based
4940         on the ultimate stack pointer offset.
4941         (ix86_expand_epilogue): Use more obvious expressions testing for
4942         the stack pointer already pointing to the saved registers.
4943
4944         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
4945         duplication deconstructing the frame pointer.  Simplify
4946         deallocation of the local stack frame.
4947
4948         * reg-notes.def (CFA_EXPRESSION): New.
4949         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4950         (dwarf2out_frame_debug_cfa_expression): New.
4951         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
4952
4953         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
4954         * config/i386/i386.c (ix86_expand_prologue): Set it.
4955         (ix86_expand_epilogue): Clear it.
4956         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
4957         context, add REG_CFA_EXPRESSION notes.
4958
4959         * config/i386/i386.h (struct machine_frame_state): Rename from
4960         machine_cfa_state.  Add members tracking SP and FP regardless
4961         of the current CFA register.
4962         (ix86_cfa_state): Remove.
4963         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
4964         and sse_reg_save_offset members.
4965         (ix86_compute_frame_layout): Set them.
4966         (gen_push): Increment sp_offset too.
4967         (choose_baseaddr_len, choose_baseaddr): New.
4968         (ix86_emit_save_reg_using_mov): New.
4969         (ix86_emit_save_regs_using_mov): Use it.
4970         (ix86_emit_save_sse_regs_using_mov): Likewise.
4971         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
4972         compare vs the saved red_zone_offset.
4973         (pro_epilogue_adjust_stack): Adjust sp_offset.
4974         (ix86_adjust_stack_and_probe): Likewise.
4975         (ix86_expand_prologue): Set up, use, and validate the new
4976         frame_state_info members.  Use gen_frame_mem.
4977         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
4978         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
4979         new frame_state_info members.
4980         (ix86_emit_leave): Likewise.
4981         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
4982         out-of-range stack pointer offsets here.
4983         (ix86_emit_restore_sse_regs_using_mov): Likewise.
4984         (ix86_expand_epilogue): Use and validate the new frame_state_info
4985         members.  Break up and simplify the logic selecting the
4986         restore_regs_via_mov code path.  Ensure that there will be no
4987         out-of-range stack pointer offsets.
4988
4989         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
4990
4991         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
4992         argument name to reflect the expected tree; fix indentation.
4993         (ix86_asm_output_function_label): Output the entire 32-bit
4994         ms_hook here as bytes ...
4995         (ix86_expand_prologue): ... not here as insns.  Attach the
4996         unwind info for the ms_hook to a blockage insn.
4997         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
4998         (ix86_ms_bitfield_layout_p): Fix indentation.
4999         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
5000
5001         * config/i386/i386.c (ix86_using_red_zone): New.
5002         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
5003         ix86_expand_prologue, ix86_force_to_memory): Use it.
5004
5005         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
5006         saving the int registers.
5007
5008         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
5009         and DWARF2_UNWIND_INFO conditional compilation.
5010
5011 2010-08-04  Richard Henderson  <rth@redhat.com>
5012
5013         PR debug/45171
5014         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
5015         an is_naming_typedef_decl.
5016
5017 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
5018
5019         PR rtl-optimization/45162
5020         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
5021         * dce.c (word_dce_process_block): Likewise.
5022
5023 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
5024
5025         PR target/44583
5026         * config/ia64/constraints.md (Z): New.
5027         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
5028         (xfreg_or_signed_fp01_operand): New.
5029         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
5030         with fr_reg_or_signed_fp01_operand and constraint G with Z.
5031         (subsf3): Ditto.
5032         (*maddsf4): Ditto.
5033         (*msubsf4): Ditto.
5034         (adddf3): Ditto.
5035         (adddf3_trunc): Ditto.
5036         (subdf3): Ditto.
5037         (*subdf3_trunc): Ditto.
5038         (*madddf4): Ditto.
5039         (*madddf4_trunc): Ditto.
5040         (*msubdf4): Ditto.
5041         (*msubdf4_trunc): Ditto.
5042         (addxf3): Replace xfreg_or_fp01_operand with
5043         xfreg_or_signed_fp01_operand and constraint G with Z.
5044         (*addxf3_truncsf): Ditto.
5045         (*addxf3_truncdf): Ditto.
5046         (subxf3): Ditto.
5047         (*subxf3_truncsf): Ditto.
5048         (*subxf3_truncdf): Ditto.
5049         (*maddxf4): Ditto.
5050         (*maddxf4_truncsf): Ditto.
5051         (*maddxf4_truncdf): Ditto.
5052         (*msubxf4): Ditto.
5053         (*msubxf4_truncsf): Ditto.
5054         (*msubxf4_truncdf): Ditto.
5055
5056 2010-08-04  Richard Guenther  <rguenther@suse.de>
5057
5058         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
5059         if either alias-set is zero.
5060
5061 2010-08-04  Richard Guenther  <rguenther@suse.de>
5062
5063         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
5064         * tree-ssa-ccp.c: ... here.
5065         * tree-ssa-copy.c: ... and here.
5066         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
5067         value_range_t): Move ...
5068         * tree-vrp.c: ... here.
5069         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
5070         (substitute_and_fold): Adjust prototype.
5071         * tree-ssa-propagate.c (replace_uses_in): Adjust.
5072         (replace_phi_args_in): Likewise.
5073         (substitute_and_fold): Take callback to query lattice instead
5074         of pointer to lattice.  Replace SSA name defs with lattice
5075         values first.
5076         * tree-ssa-ccp.c (ccp_finalize): Adjust.
5077         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
5078         (get_value): New function.
5079         (fini_copy_prop): Adjust.
5080         * tree-vrp.c (vrp_finalize): Adjust.
5081
5082 2010-08-04  Richard Guenther  <rguenther@suse.de>
5083
5084         PR middle-end/45176
5085         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
5086         points-to set for original MEM_REF.
5087
5088 2010-08-04  Richard Guenther  <rguenther@suse.de>
5089
5090         * tree-ssa-ccp.c (get_constant_value): New function.
5091         (get_rhs_assign_op_for_ccp): Remove.
5092         (valueize_op): New function.
5093         (ccp_fold): Use get_constant_value and valueize_op.
5094         (fold_const_aggregate_ref): Likewise.
5095         (ccp_fold_stmt): Likewise.
5096         (visit_assignment): Simplify.
5097
5098 2010-08-04  Richard Guenther  <rguenther@suse.de>
5099
5100         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
5101         * double-int.h (double_int_ctz): Declare.
5102         * double-int.c (double_int_ctz): New function.
5103
5104 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
5105
5106         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
5107         Define.
5108         picochip_expand_movmemhi : Expand movmem pattern.
5109         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
5110         Declare.
5111         * config/picochip/picochip.md (movmemhi) : New pattern.
5112
5113 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
5114
5115         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
5116
5117 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
5118
5119         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
5120         NEG as operand of a MULT by merging it with the other operand.
5121         * combine.c (make_compound_operation): Use trunc_int_for_mode when
5122         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
5123         MULT.
5124         * config/arm/constraints.md (M): Examine only 32 bits of a
5125         HOST_WIDE_INT.
5126         * config/arm/predicates.md (power_of_two_operand): Likewise.
5127
5128 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5129
5130         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
5131         non-NOTE insns.
5132
5133 2010-08-03  Jan Hubicka  <jh@suse.cz>
5134
5135         * ipa-split.c (struct split_point): Add split_part_set_retval.
5136         (find_retval): Forward declare.
5137         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
5138         (consider_split): Compute current->split_part_set_retval.
5139         (visit_bb): Do not look into return value.
5140         (split_function): Handle !split_part_set_retval
5141
5142 2010-08-03  Martin Jambor  <mjambor@suse.cz>
5143
5144         * tree-sra.c (completely_scalarize_record): New parameter REF, create
5145         its own access->expr intead of using build_ref_for_offset.
5146
5147 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
5148
5149         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
5150         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
5151         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
5152         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
5153         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
5154         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
5155         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
5156         DEFAULT_SWITCH_TAKES_ARG.
5157         * config/rx/rx.opt (-patch=): Remove option.
5158         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
5159         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
5160         * doc/invoke.texi (RX Options): Remove -patch=.
5161         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
5162         (option_map): Remove --profile-blocks, --quiet and --silent.
5163
5164 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
5165
5166         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
5167         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
5168         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
5169         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
5170         Update calls to ix86_expand_compare and ix86_expand_branch.
5171         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
5172         ix86_expand_compare.
5173         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
5174         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
5175         Make static.
5176         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
5177         and ix86_compare_op1.  Update calls to ix86_expand_compare.
5178         (ix86_expand_int_movcc): Ditto.
5179         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
5180         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
5181         (ix86_expand_setcc): Ditto.
5182         (ix86_expand_compare): Remove prototype.
5183         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
5184         ix86_compare_op0 and ix86_compare_op1.  Update calls
5185         to ix86_expand_branch to directly pass operands[1] and operands[2].
5186         (cbranchxf4): Ditto.
5187         (cbranch<MODEF:mode>4): Ditto.
5188         (cbranchcc4): Ditto.
5189         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
5190         Update calls to ix86_expand_setcc to directly pass operands[2] and
5191         operands[3].
5192         (cstorexf4): Ditto.
5193         (cstore<MODEF:mode>4): Ditto.
5194         (cstorecc4): Ditto.
5195
5196 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
5197
5198         PR target/45063
5199         * caller-save.c (save_call_clobbered_regs): Remove regs from
5200         hard_regs_saved when they are set.
5201
5202 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
5203
5204         PR target/41089
5205         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
5206         as volatile.
5207
5208 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
5209
5210         * common.opt (ftree-loop-distribute-patterns): New.
5211         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
5212         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
5213         at -O3.
5214         * tree-data-ref.c (stores_zero_from_loop): New.
5215         * tree-data-ref.h (stores_zero_from_loop): Declared.
5216         * tree-loop-distribution.c (tree_loop_distribution): Call
5217         stores_zero_from_loop.
5218         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
5219
5220 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
5221
5222         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
5223         into account.
5224
5225         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
5226         * config/arm/arm.c (thumb1_code): New variable.
5227         (arm_override_options): Set it.
5228         (thumb1_final_prescan_insn): Keep track of condition code status.
5229         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
5230         jumps that depend on them.
5231         * config/arm/arm.h (thumb1_code): Declare variable.
5232         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
5233         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
5234         thumb1_cc_mode.
5235         (CC_STATUS_INIT): New macro.
5236         * config/arm/constraints.md (Pd): New constraint.
5237         * config/arm/predicates.md (noov_comparison_operator): New predicate.
5238         * config/arm/arm.md (is_thumb1): New define_attr.
5239         (conds): Set default to "clob" when generating Thumb1 code.
5240         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
5241         code are set.  Use two-operand assembly syntax.
5242         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
5243         pattern.
5244         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
5245         codes are set.  Use two-operand assembly syntax.
5246         (zero_extendhisi splitter): Remove constraints.
5247         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
5248         thumb1_movsf_insn): Set conds attribute as appropriate.
5249         (cbranchsi4_insn): Use condition code status from struct
5250         machine_function to determine whether the comparison can be eliminated.
5251         Discourage the alternative using high registers.
5252         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
5253         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
5254         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
5255         subsi3_cbranch): Delete.
5256         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
5257         one subtract and one cbranch insn.
5258
5259         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
5260         thumb2_movdf_soft_insn): Delete patterns.
5261         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
5262         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
5263         (pool_range, neg_pool_range): Use them to define defaults.
5264         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
5265         and allow for TARGET_32BIT.
5266
5267         PR target/40457
5268         * config/arm/arm.h (arm_regs_in_sequence): Declare.
5269         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
5270         load_multiple_sequence, store_multiple_sequence): Delete
5271         declarations.
5272         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
5273         declarations.
5274         * config/arm/ldmstm.md: New file.
5275         * config/arm/arm.c (arm_regs_in_sequence): New array.
5276         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
5277         CHECK_REGS.  All callers changed.
5278         If SAVED_ORDER is nonnull, copy the computed order into it.
5279         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
5280         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
5281         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
5282         If SAVED_ORDER is nonnull, copy the computed order into it.
5283         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
5284         like REGS.  Handle Thumb mode.
5285         (arm_gen_load_multiple_1): New function, broken out of
5286         arm_gen_load_multiple.
5287         (arm_gen_store_multiple_1): New function, broken out of
5288         arm_gen_store_multiple.
5289         (arm_gen_multiple_op): New function, with code from
5290         arm_gen_load_multiple and arm_gen_store_multiple moved here.
5291         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
5292         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
5293         changed.
5294         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
5295         * config/arm/predicates.md (commutative_binary_operator): New.
5296         (load_multiple_operation, store_multiple_operation): Handle more
5297         variants of these patterns with different starting offsets.  Handle
5298         Thumb-1.
5299         * config/arm/arm.md: Include "ldmstm.md".
5300         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
5301         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
5302         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
5303         peepholes): Delete.
5304         * config/arm/ldmstm.md: New file.
5305         * config/arm/arm-ldmstm.ml: New file.
5306
5307         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
5308         if statement which adds extra costs to frame-related expressions.
5309
5310 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5311
5312         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
5313
5314 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
5315
5316         PR target/45142
5317         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
5318         alternative 2.
5319         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
5320         split V4SI operands.
5321
5322 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
5323
5324         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5325         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
5326         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
5327         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
5328
5329 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
5330
5331         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
5332         LOCAL_INCLUDE_DIR.
5333
5334 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
5335
5336         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
5337         used in the call to optab_for_tree_code.  Fix the second
5338         is_widening_mult_p call.  Check that both unwidened operands
5339         have the same sign.
5340
5341 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
5342
5343         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
5344
5345 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
5346
5347         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5348
5349 2010-07-30  DJ Delorie  <dj@redhat.com>
5350
5351         * config/rx/predicates.md (rx_constshift_operand): New.
5352         * config/rx/rx.md (zs_cond): New.
5353         (cbranchsi4): Remove mode.
5354         (*cbranchsi4_<code>): Likewise.
5355         (*tstbranchsi4_<code>): New.
5356         (*tstbranchsi4r_<code>): New.
5357         (*tstbranchsi4m_eq): New.
5358         (*tstbranchsi4m_ne): New.
5359         (cbranchsf4): Remove mode.
5360         (*cbranchsf4_<code>): Likewise.
5361
5362 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
5363
5364         * rtlanal.c (simplify_subreg_regno): Don't treat
5365         HARD_FRAME_POINTER_REGNUM specially.
5366
5367 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
5368
5369         * common.opt (-G): Don't define option here.
5370         * config/g.opt: New.
5371         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
5372         rs6000/powerpc and score targets.
5373         * opts.c (common_handle_option): Don't handle -G here.
5374         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
5375         * config/frv/frv.c (frv_handle_option): Handle -G.
5376         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
5377         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
5378         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
5379         * config/mips/mips.c (mips_handle_option): Handle -G.
5380         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
5381         * config/score/score.c (score_handle_option): Handle -G.
5382
5383 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
5384
5385         * config/mmix/mmix.c: Include basic-block.h.
5386
5387 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
5388
5389         PR debug/45055
5390         PR rtl-optimization/45137
5391         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
5392         prototypes.
5393         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
5394         New functions.
5395         * combine.c (next_nonnote_nondebug_insn): Removed.
5396         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
5397         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
5398         * sched-deps.c (sched_analyze_insn): Likewise.
5399         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
5400         * rtlanal.c (canonicalize_condition): Likewise.
5401         * postreload.c (reload_combine_recognize_pattern): Likewise.
5402         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
5403
5404 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
5405
5406         * config/i386/i386.md (int_cond): Remove code iterator.
5407         (fp_cond): Ditto.
5408         (cbranch<mode>4): Use ordered_comparison_operator predicate
5409         for operator0.
5410         (cstore<mode>4): Ditto for operator1.
5411         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
5412         (add<mode>cc): ditto.
5413
5414 2010-07-30  Richard Guenther  <rguenther@suse.de>
5415
5416         PR middle-end/45141
5417         * expr.c (expand_expr_real_1): Check for not handled base address.
5418
5419 2010-07-30  Richard Guenther  <rguenther@suse.de>
5420
5421         * ipa-prop.c (ipa_modify_formal_parameters): Use
5422         build_distinct_type_copy.
5423
5424 2010-07-30  Anthony Green  <green@moxielogic.com>
5425
5426         * config/moxie/rtems.h: New file.
5427         * config.gcc: Add moxie-rtems support.
5428
5429 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
5430
5431         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
5432         df flags as in run_fast_df_dce.
5433
5434 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
5435
5436         Revert:
5437         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5438
5439         * rtl.def (NOTE): Swap operands 4 and 5.
5440         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
5441         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
5442         Adjust accordingly.
5443         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
5444
5445 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
5446
5447         PR debug/45110
5448         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
5449         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
5450         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
5451         formal parameters.
5452         (gen_decl_die): Change return type to dw_die_ref, return what
5453         gen_formal_parameter_die returned.
5454
5455 2010-07-29  Martin Jambor  <mjambor@suse.cz>
5456
5457         * dbgcnt.def (eipa_sra): New counter.
5458         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
5459
5460 2010-07-29  Xinliang David Li  <davidxl@google.com>
5461
5462         PR bootstrap/45119
5463         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
5464         in revision 162652.
5465
5466 2010-07-29  Richard Guenther  <rguenther@suse.de>
5467
5468         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
5469         (TV_TREE_STORE_CCP): Likewise.
5470         (TV_TREE_REDPHI): Likewise.
5471
5472 2010-07-29  Richard Guenther  <rguenther@suse.de>
5473
5474         * double-int.h (double_int_and_not): New function.
5475         * combine.c (try_combine): Use it.
5476         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
5477
5478 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
5479
5480         PR rtl-optimization/42575
5481         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
5482         Argument AU removed.  All callers changed.  Ignore artificial refs.
5483         Use return value of df_word_lr_simulate_defs to decide whether an insn
5484         is necessary.
5485         (fast_dce): Rename arg to WORD_LEVEL.
5486         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
5487         static.
5488         (pass_fast_rtl_byte_dce): Delete.
5489         * dce.h (run_word_dce): Declare.
5490         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
5491         All callers changed.  Simplify code to only deal with two-word regs.
5492         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
5493         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
5494         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
5495         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
5496         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
5497         (df_word_lr_mark_ref): Declare.
5498         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
5499         df_word_lr_simulate_uses): Declare or rename from byte variants.
5500         (df_byte_lr_simulate_artificial_refs_at_top,
5501         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
5502         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
5503         declarations.
5504         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
5505         (enum df_mm): Delete.
5506         * df-byte-scan.c: Delete file.
5507         * df-problems.c (df_word_lr_problem_data): Renamed from
5508         df_byte_lr_problem_data, all members deleted except for
5509         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
5510         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
5511         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
5512         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
5513         df_byte_lr_confluence_0): Delete functions.
5514         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
5515         callers changed.
5516         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
5517         Don't initialize members that were deleted, don't try to discover data
5518         about registers.  Ignore hard regs.
5519         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
5520         (df_word_lr_mark_ref): New function.
5521         (df_word_lr_bb_local_compute): Renamed from
5522         df_byte_bb_lr_local_compute; all callers changed.  Use
5523         df_word_lr_mark_ref.  Assert that artificial refs don't include
5524         pseudos.  Ignore hard registers.
5525         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
5526         Assert that exit block uses don't contain pseudos.
5527         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
5528         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
5529         callers changed.  Ignore hard regs.
5530         (df_word_lr_transfer_function): Renamed from
5531         df_byte_lr_transfer_function; all callers changed.
5532         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
5533         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
5534         changed.
5535         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
5536         callers changed.
5537         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
5538         confluence operator 0 set to NULL.
5539         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
5540         callers changed.
5541         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
5542         Return bool, true if bitmap changed or insn otherwise necessary.
5543         All callers changed.  Simplify using df_word_lr_mark_ref.
5544         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
5545         all callers changed.  Simplify using df_word_lr_mark_ref.
5546         * lower-subreg.c: Include "dce.h"
5547         (decompose_multiword_subregs): Call run_word_dce if df available.
5548         * Makefile.in (lower-subreg.o): Adjust dependencies.
5549         (df-byte-scan.o): Delete.
5550         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
5551
5552 2010-07-29  Richard Guenther  <rguenther@suse.de>
5553
5554         * tree.c (build_vector): Assert that the vector constant
5555         has enough elements.
5556         (build_vector_from_ctor): Pad with trailing zeros.
5557
5558 2010-07-29  Richard Guenther  <rguenther@suse.de>
5559
5560         PR tree-optimization/45120
5561         * tree-ssa-structalias.c (get_constraint_for_component_ref):
5562         Handle offset in DEREFs properly.
5563         (get_constraint_for_1): Handle MEM_REF offset properly.
5564
5565 2010-07-29  Richard Guenther  <rguenther@suse.de>
5566
5567         PR middle-end/45034
5568         * convert.c (convert_to_integer): Always use an unsigned
5569         type for narrowed negate and bitwise not.
5570
5571 2010-07-29  Ira Rosen  <irar@il.ibm.com>
5572
5573         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
5574         to outer loop when creating reduction epilogue for double reduction,
5575         and switch back to the inner loop when updating the phi nodes.
5576         Update uses of outer loop exit phi nodes in double reduction (instead
5577         of uses of reduction).
5578
5579 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5580
5581         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
5582         popcount on power7 and parity on power6 systems.
5583         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
5584         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
5585         instructions.
5586
5587         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
5588         (UNSPEC_PARITY): Ditto.
5589         (SFDF): New iterator for SF/DF.
5590         (rreg2): New mode attribute for floating register constraint.
5591         (TARGET_FLOAT): New mode attribute for whether single/double float
5592         is supported.
5593         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
5594         pattern.
5595         (parity<mode>2_cmpb): New insn for parity on power6 and newer
5596         machines.
5597         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
5598         pattern.  Add support for fcpsgn instruction added in power6.
5599         (copysignsf3): Delete.
5600         (copysigndf3): Delete.
5601         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
5602         instead of if_then_else in RTL to avoid problems with -0.
5603
5604         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
5605         of if_then_else to mirror scalar code.
5606         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
5607         rs6000.md.
5608
5609         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
5610         instead of if_then_else.
5611
5612 2010-07-28  Xinliang David Li  <davidxl@google.com>
5613
5614         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
5615         (dump_cand): Dump var_before/after.
5616         (htab_inv_expr_eq): New function.
5617         (htab_inv_expr_hash): New function.
5618         (tree_ssa_iv_optimize_init): Support pseudo invariants.
5619         (add_candidate_1): consider base type precision.
5620         (set_use_iv_cost): New parameter.
5621         (adjust_setup_cost): Use profile information.
5622         (get_address_cost): Do not hard code width in computing address
5623         offset limits.
5624         (compare_aff_trees): New function.
5625         (get_loop_invariant_expr_id): New function.
5626         (get_computation_cost_at): New parameter and use profile information.
5627         (get_computation_cost): New parameter.
5628         (determine_use_iv_cost_generic): Pass new parameter.
5629         (determine_use_iv_cost_address): Ditto.
5630         (determine_use_iv_cost_condition): Ditto.
5631         (autoinc_possible_for_pair): Ditto.
5632         (determine_use_iv_costs): More dumps.
5633         (iv_ca_get_num_inv_exprs): New function.
5634         (iv_ca_recount_cost): Consider loop invariants in register pressure
5635         cost.
5636         (iv_ca_add_use): New parameter.
5637         (iv_ca_dump): Better dumping.
5638         (iv_ca_extend): New parameter.
5639         (try_add_cand_for): Attempt to get better partial solution.
5640         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
5641         (create_new-ivs): More dumps.
5642         (rewrite_use_compare): Ditto.
5643         (free_loop_data): More cleanup.
5644         (treee_ssa_iv_optimize_finalize): Ditto.
5645
5646 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
5647
5648         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
5649         * config/i386/i386.c (ix86_profile_before_prologue): New.
5650         (override_options): Add special handling for -mfentry.
5651         (ix86_function_regparm): Likewise.
5652         (ix86_function_sseregparm): Likewise.
5653         (ix86_frame_pointer_required): Likewise.
5654         (ix86_expand_prologue): Check for ms_hook_prologue.
5655         (x86_function_profiler): Adjust mcount output.
5656         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
5657         * config/i386/i386.opt (mfentry): New.
5658         * doc/invoke.texi (mfentry): Add documentation.
5659         * doc/tm.texi: Regenerated..
5660         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
5661         * final.c (final_start_function): Replace macro
5662         PROFILE_BEFORE_PROLOGUE by target hook.
5663         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5664         * target.def (profile_before_prologue): New hook.
5665         * targhooks.c (default_profile_before_prologue): New.
5666         * targhooks.h (default_profile_before_prologue): New.
5667
5668 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
5669
5670         PR debug/45105
5671         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
5672
5673         PR debug/45103
5674         * dwarf2out.c (dwarf2out_var_location): Always consider
5675         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
5676
5677 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
5678
5679         PR rtl-optimization/45107
5680         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
5681
5682 2010-07-28  Richard Guenther  <rguenther@suse.de>
5683
5684         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
5685         (set_lattice_value): Do not query an old default value.
5686         (get_value_for_expr): New function.  Properly canonicalize
5687         float values.
5688         (ccp_visit_phi_node): Use it.
5689
5690 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
5691
5692         * config/arm/arm.c (arm_pcs_default): Remove static.
5693         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
5694         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
5695         (arm_pcs_default): Declare.
5696
5697 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
5698
5699         * config/rs6000/rs6000.c (rs6000_override_options):
5700         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
5701         ... to darwin_rs6000_override_options.
5702         (rs6000_return_in_memory): Update preceding comment for darwin
5703         64 bit ABI.  Use TARGET_MACHO inline.
5704         (rs6000_darwin64_struct_check_p): New.
5705         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
5706         (function_arg): Likewise.
5707         (rs6000_arg_partial_bytes): Likewise.
5708         (rs6000_function_value): Likewise.
5709
5710 2010-07-28  Andi Kleen <ak@linux.intel.com>
5711
5712         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
5713
5714 2010-07-28  Richard Guenther  <rguenther@suse.de>
5715
5716         PR middle-end/44903
5717         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
5718         targets try harder to not generate unaligned accesses.
5719
5720 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
5721
5722         PR rtl-optimization/45101
5723         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
5724         for gcse-las.
5725
5726 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
5727
5728         PR tree-optimization/44885
5729         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
5730         with non-aliased component.
5731
5732 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
5733
5734         * config/darwin-driver.c (SWITCH_TAKES_ARG,
5735         WORD_SWITCH_TAKES_ARG): Remove.
5736         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5737         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
5738         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
5739         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
5740         definitions from gcc.c.
5741         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
5742         defaults.h.
5743         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
5744         Move to defaults.h.
5745         * opts-common.c: Include tm.h.
5746         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
5747         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
5748         Handle more than one argument.  Set canonical_option_num_elements.
5749         (decode_cmdline_options_to_array): Set
5750         canonical_option_num_elements and trailing elements of
5751         canonical_option.
5752         * opts.h (struct cl_decoded_option): Allow four elements in
5753         canonical_option.  Add field canonical_option_num_elements.
5754         * Makefile.in (opts-common.o): Update dependencies.
5755
5756 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
5757
5758         PR middle-end/44790
5759         PR middle-end/44993
5760         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
5761         sure the base has address_mode before adding the offset.
5762
5763 2010-07-27  Xinliang David Li <davidxl@google.com>
5764
5765         * tree-flow.h (create_mem_ref): Add one new parameter.
5766         * tree-ssa-address.c (create_mem_ref): New parameter.
5767         (addr_to_parts): Ditto.
5768         (move_variant_to_index): New function.
5769         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
5770
5771 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5772
5773         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
5774         4 and 5.
5775         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
5776         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
5777         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
5778         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
5779         CODE_LABELs and NOTEs.
5780         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
5781         * combine.c (try_combine): Likewise.
5782         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5783         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
5784
5785 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5786
5787         * coretypes.h (struct cl_option_handlers): Declare.
5788         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
5789         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
5790         * langhooks-def.h (lhd_handle_option): Declare.
5791         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
5792         * langhooks.c (lhd_handle_option): New.
5793         * langhooks.h (struct lang_hooks): Update prototype and return
5794         value type of handle_option hook.
5795         * optc-gen.awk: Generate target_flags_explicit definition for the
5796         driver.
5797         * opts-common.c: Include diagnostic.h.
5798         (handle_option): Move from opts.c.  Update prototype and return
5799         value type.  Use handlers structure.
5800         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
5801         handlers structure.
5802         (set_option): Move from opts.c.
5803         * opts.c (common_handle_option): Update prototype and return value
5804         type.  Update calls to handle_option and enable_warning_as_error.
5805         (unknown_option_callback, post_handling_callback,
5806         lang_handle_option, target_handle_option): New.
5807         (handle_option, read_cmdline_option): Move to opts-common.c.
5808         (read_cmdline_options): Update prototype.  Update call to
5809         read_cmdline_option.
5810         (decode_options): Initialize and use handlers structure.
5811         (set_option): Move to opts-common.c.
5812         (enable_warning_as_error): Update prototype.  Update call to
5813         handle_option.
5814         * opts.h (struct cl_option_handler_func, struct
5815         cl_option_handlers): New.
5816         (handle_option, enable_warning_as_error): Update prototypes.
5817         (read_cmdline_option): Declare.
5818         * Makefile.in (opts-common.o): Update dependencies.
5819
5820 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5821
5822         * config/arm/arm.c (params.h): Include.
5823         (arm_override_options): Tune gcse-unrestricted-cost.
5824         * config/arm/t-arm (arm.o): Define dependencies.
5825
5826 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5827
5828         PR target/42495
5829         PR middle-end/42574
5830         * basic-block.h (get_dominated_to_depth): Declare.
5831         * dominance.c (get_dominated_to_depth): New function, use
5832         get_all_dominated_blocks as a base.
5833         (get_all_dominated_blocks): Use get_dominated_to_depth.
5834
5835         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
5836         (hoist_exprs): Remove.
5837         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
5838         (compute_code_hoist_vbeinout): Add debug print outs.
5839         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
5840
5841         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
5842         quadratic behavior.
5843         * params.h (MAX_HOIST_DEPTH): New macro.
5844         * doc/invoke.texi (max-hoist-depth): Document.
5845
5846 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5847
5848         PR rtl-optimization/40956
5849         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
5850         constants.
5851
5852 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5853
5854         PR target/42495
5855         PR middle-end/42574
5856         * config/arm/arm.c (legitimize_pic_address): Use
5857         gen_calculate_pic_address pattern to emit calculation of PIC address.
5858         (will_be_in_index_register): New function.
5859         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
5860         (thumb1_legitimate_address_p): Use it provided !strict_p.
5861         * config/arm/arm.md (calculate_pic_address): New expand and split.
5862
5863 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5864
5865         PR target/42495
5866         PR middle-end/42574
5867         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
5868         * config/arm/arm.md (define_split "J", define_split "K"): Make
5869         IRA/reload friendly.
5870
5871 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5872
5873         * gcse.c (insert_insn_end_basic_block): Update signature, remove
5874         unused checks.
5875         (pre_edge_insert, hoist_code): Update.
5876
5877 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5878
5879         PR target/42495
5880         PR middle-end/42574
5881         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
5882
5883 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5884
5885         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
5886
5887 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5888
5889         PR rtl-optimization/40956
5890         PR target/42495
5891         PR middle-end/42574
5892         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
5893         for hoisting.
5894         (hoist_code): Count occurences in current block too.
5895
5896 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5897
5898         * gcse.c (struct expr:max_distance): New field.
5899         (doing_code_hoisting_p): New static variable.
5900         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
5901         simple expressions, don't change behavior for PRE.  Set max_distance.
5902         (insert_expr_in_table): Set new max_distance field.
5903         (hash_scan_set): Update.
5904         (hoist_expr_reaches_here_p): Stop search after max_distance
5905         instructions.
5906         (find_occr_in_bb): New static function.  Use it in ...
5907         (hoist_code): Calculate sizes of basic block before any changes are
5908         done.  Pass max_distance to hoist_expr_reaches_here_p.
5909         (one_code_hoisting_pass): Set doing_code_hoisting_p.
5910
5911         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
5912         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
5913         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
5914         macros.
5915         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
5916         Document.
5917
5918 2010-07-27  Jeff Law  <law@redhat.com>
5919             Maxim Kuvyrkov  <maxim@codesourcery.com>
5920
5921         * gcse.c (compute_transpout, transpout): Remove, move logic
5922         to prune_expressions.
5923         (compute_pre_data): Move pruning of trapping expressions ...
5924         (prune_expressions): ... here.  New static function.
5925         (compute_code_hoist_data): Use it.
5926         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
5927
5928 2010-07-27  Xinliang David Li  <davidxl@google.com>
5929
5930         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
5931         (rewrite_use_address): Adjust iv update position when needed.
5932
5933 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5934
5935         * dbgcnt.def (hoist_insn): New debug counter.
5936         * gcse.c (hoist_code): Use it.
5937
5938 2010-07-27  Xinliang David Li  <davidxl@google.com>
5939
5940         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
5941         (niter_for_single_dom_exit): Passes additional parameter.
5942         (iv_period): Fix comments.
5943         (may_eliminate_iv): Handles multiple exit loops properly.
5944         (free_tree_niter_desc): New function.
5945         (free_loop_data): Frees up loop iteration descriptors.
5946
5947 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5948
5949         PR target/44542
5950         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
5951         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
5952         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
5953         (expand_one_var): Don't consider DECL_ALIGN for variables for
5954         which expand_one_stack_var_at has been already called.
5955
5956         PR testsuite/44701
5957         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
5958         constraints on IA-64.
5959
5960 2010-07-27  Jie Zhang  <jie@codesourcery.com>
5961
5962         PR target/44290
5963         Revert:
5964         2010-07-23  Jie Zhang  <jie@codesourcery.com>
5965
5966         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
5967         false if ! tree_versionable_function_p.
5968
5969 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5970
5971         * dwarf2out.c (add_data_member_location_attribute): Use
5972         add_AT_unsigned instead of add_AT_int if offset is non-negative.
5973
5974 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5975
5976         * postreload.c (try_replace_in_use): New static function.
5977         (reload_combine_recognize_const_pattern): Use it here.  Allow
5978         substituting into a final add insn, and substituting into a memory
5979         reference in an insn that sets the reg.
5980
5981 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5982
5983         * common.opt (o): Add MissingArgError.
5984         * doc/options.texi (MissingArgError): Document.
5985         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
5986         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
5987         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5988         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
5989         * langhooks.h (struct lang_hooks): Remove missing_argument.
5990         * optc-gen.awk: Handle MissingArgError and output new structure
5991         field initializers.
5992         * opts.c (read_cmdline_option): Use missing_argument_error field
5993         instead of missing_argument langhook.
5994         * opts.h (struct cl_option): Add missing_argument_error field.
5995         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
5996
5997 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
5998
5999         PR target/29090
6000         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
6001         Darwin64 ABI, for zero-sized objects.
6002
6003 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
6004
6005         PR target/35491
6006         PR target/29090
6007
6008         Merge from Apple local 4.2.1.
6009         2005-05-11  Stan Shebs  <shebs@apple.com>
6010         Fix 64-bit varargs for Darwin (Radar 4028089).
6011         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
6012         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6013         Add argument, add case for 8-byte register half-filled with a float.
6014         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
6015         single-precision floats specially.
6016
6017 2010-07-27  Ira Rosen  <irar@il.ibm.com>
6018
6019         PR tree-optimization/44152
6020         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
6021         complex numbers for further check.
6022         (vect_supported_load_permutation_p): Check nodes with
6023         complex numbers.
6024
6025 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
6026
6027         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
6028         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
6029         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
6030         (LANG_HOOKS_INITIALIZER): Add new hooks.
6031         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
6032         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
6033         and complain_wrong_lang_p.  Update init_options prototype.
6034         * c-objc-common.c (c_initialize_diagnostics): First call
6035         c_common_initialize_diagnostics.
6036         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
6037         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
6038         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
6039         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
6040         (hook_uint_void_0): New.
6041         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
6042         (hook_uint_void_0): New.
6043         * opts-common.c (decode_cmdline_option,
6044         decode_cmdline_options_to_array): Also fill in canonical_option field.
6045         * opts.c (complain_wrong_lang): Use langhook to determine whether
6046         to complain instead of special-casing LTO.
6047         (decode_options): Separate lang_mask determination with
6048         option_lang_mask hook from call of init_options hook.
6049         * opts.h (struct cl_decoded_option): Add canonical_option.
6050
6051 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
6052
6053         PR tree-optimization/45083
6054         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
6055
6056 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
6057
6058         * postreload.c (reload_combine_recognize_const_pattern): Move test
6059         for limiting the insn movement to the right scope.
6060
6061         PR rtl-optimization/45051
6062         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
6063         than reg_mentioned_p.
6064
6065 2010-07-26  Richard Henderson  <rth@redhat.com>
6066
6067         PR target/44132
6068         * tree-emutls.c: New file.
6069         * Makefile.in (OBJS-common): Add it.
6070         * tree-pass.h (pass_ipa_lower_emutls): Declare.
6071         * passes.c (init_optimization_passes): Add it.
6072
6073         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
6074         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
6075         * expr.c (emutls_var_address): Delete.
6076         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
6077         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
6078         (emutls_finish): Delete.
6079         * toplev.c (compile_file): Don't call it.
6080         * tree.h (emutls_decl): Delete.
6081         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
6082         (emutls_finish, emutls_finalize_control_var): Delete.
6083         (emutls_object_type): Move to tree-emutls.c.
6084         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
6085         default_emutls_var_fields, get_emutls_object_type,
6086         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
6087         default_emutls_var_init): Likewise.
6088         (get_variable_section): Don't special case emutls.
6089         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
6090         default_elf_select_section, default_unique_section,
6091         default_encode_section_info): Likewise.
6092         * varpool.c (decide_is_variable_needed): Likewise.
6093         * gimple-iterator.c (update_call_edge_frequencies): New
6094         (gsi_insert_on_edge_immediate): Use it.
6095         (gsi_insert_seq_on_edge_immediate): Likewise.
6096         (gsi_commit_one_edge_insert): Likewise.
6097
6098         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
6099         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
6100         (x86_64_elf_unique_section): Likewise.
6101
6102 2010-07-26  Jan Hubicka  <jh@suse.cz>
6103
6104         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
6105         GTY((skip)).
6106
6107 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
6108
6109         * target.def (output_source_filename): New hook.
6110         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
6111         * doc/tm.texi: Regenerate.
6112         * toplev.c (output_file_directive) Remove function.
6113         * toplev.h (output_file_directive) Remove.
6114         * output.h (default_asm_output_source_filename,
6115         output_file_directive): Declare.
6116         * varasm.h (default_asm_output_source_filename,
6117         output_file_directive): New functions.
6118
6119         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
6120         * config/mips/mips-protos.h (mips_output_filename): Remove.
6121         * config/mips/mips.c (mips_output_filename): Make Static.
6122         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
6123
6124 2010-07-26  Richard Guenther  <rguenther@suse.de>
6125
6126         PR tree-optimization/43784
6127         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
6128         if the destination is used by the call.
6129
6130 2010-07-26  Richard Guenther  <rguenther@suse.de>
6131
6132         PR middle-end/45073
6133         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
6134         SSA updating on being in SSA form.
6135
6136 2010-07-26  Richard Guenther  <rguenther@suse.de>
6137
6138         PR middle-end/45056
6139         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
6140
6141 2010-07-26  Richard Guenther  <rguenther@suse.de>
6142
6143         PR tree-optimization/45071
6144         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
6145         adjust op->opcode.
6146
6147 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
6148
6149         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
6150         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
6151         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
6152         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
6153         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
6154         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
6155         save_r31, return_r31, save_interrupt, return_interrupt,
6156         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
6157         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
6158         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
6159         new ABI requirements.
6160         (save_r6_r9, L_callt_save_r6_r9): Remove.
6161         * config/v850/predicates.md (even_reg_operand, disp23_operand,
6162         const_float_1_operand const_float_0_operand): New Predicates.
6163         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
6164         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
6165         * config/v850/t-v850: Update multilibs for new target variants.
6166         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
6167         * config/v850/t-v850e: Likewise.
6168         * config/v850/v850.c (v850_issue_rate): New.
6169         (v850_strict_argument_naming): New.
6170         (function_arg): Modify to generate a different ABI.
6171         (print_operand): Update case 'z' to support float modes.
6172         (output_move_single): Modify to generate appropriate and better
6173         assembly.
6174         (v850_float_z_comparison_operator, v850_select_cc_mode,
6175         v850_float_nz_comparison_operator,  v850_gen_float_compare,
6176         v850_gen_compare): New functions to support comparison of float values.
6177         (ep_memory_offset): Add support for V850E2 targets.
6178         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
6179         (INTERRUPT_REGPARM_NUM): Remove.
6180         (compute_register_save_size): Add extra case to save/restore long call.
6181         (use_prolog_function): New function to support prologue.
6182         (expand_prologue): Add support for V850E2 targets and modified
6183         as per the current ABI requirements.
6184         (expand_epilogue): Likewise.
6185         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
6186         (construct_save_jarl): Likewise.
6187         (construct_dispose_instruction): Update as per the current ABI
6188         requirements.
6189         (construct_prepare_instruction): Likewise.
6190         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
6191         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
6192         (CPP_SPEC): Updated to support v850e2 targets.
6193         (STRICT_ALIGNMENT): Modified.
6194         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
6195         (FIXED_REGISTERS): Likewise.
6196         (CALL_USED_REGISTERS): Likewise.
6197         (CONDITIONAL_REGISTER_USAGE): Updated.
6198         (HARD_REGNO_MODE_OK): Updated.
6199         (reg_class): Updated to add even registers.
6200         (REG_CLASS_NAMES): Likewise.
6201         (REG_CLASS_CONTENTS): Likewise.
6202         (REGNO_REG_CLASS): Updated for CC registers.
6203         (REG_CLASS_FROM_LETTER): Added support for even registers.
6204         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
6205         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
6206         ARG_POINTER_REGNUM): Updated.
6207         (FUNCTION_ARG_ADVANCE): Define.
6208         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
6209         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
6210         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
6211         (GO_IF_LEGITIMATE_ADDRESS): Updated.
6212         (SELECT_CC_MODE): Define.
6213         (REGISTER_NAMES): Updated to add psw and fcc registers.
6214         (ADDITIONAL_REGISTER_NAMES): Updated.
6215         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
6216         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
6217         * config/v850/v850.md (define_constants): Define new constants.
6218         (type): Update store,bit1,macc,div,fpu and single attributes.
6219         (cpu): New attribute.
6220         (cc): Add set_z attribute.
6221         (unsign23byte_load, sign23byte_load, unsign23hword_load,
6222         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
6223         23word_store): New instructions for 23-bit displacement load and store.
6224         (movqi_internal, movhi_internal): Update the attributes.
6225         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
6226         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
6227         the attributes.
6228         (v850_tst1): Modified using CC_REGNUM.
6229         (tstsi): Remove.
6230         (cmpsi): Modified as define_expand from define_insn.
6231         (cmpsi_insn, cmpsf, cmpdf): New instructions.
6232         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
6233         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
6234         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
6235         one_cmplsi2): Clobber the CC_REGNUM register.
6236         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
6237         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
6238         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
6239         (setf_insn, set_z_insn, set_nz_insn): New instructions for
6240         v850e2v3 target.
6241         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
6242         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
6243         targets.
6244         (sasf_1, sasf_2): Remove.
6245         (sasf): New instruction.
6246         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
6247         targets. CC_REGNUM register is clobbered and attributes are
6248         updated.
6249         (branch_z_normal, branch_z_invert, branch_nz_normal,
6250         branch_nz_invert): New branch related instructions.
6251         (jump): Updated the attributes.
6252         (switch): Update to support new targets. CC_REGNUM register is
6253         clobbered and attributes are updated.
6254         (call_internal_short, call_internal_long, call_value_internal_short,
6255         call_value_internal_long): Updated the attributes.
6256         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
6257         clobbered and attributes are updated.
6258         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
6259         Update to support new targets. CC_REGNUM register is clobbered.
6260         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
6261         instructions.
6262         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
6263         are updated.
6264         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
6265         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
6266         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
6267         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
6268         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
6269         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
6270         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
6271         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
6272         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
6273         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
6274         point instructions defined for V850e2v3 target.
6275         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
6276         Add support for V850E2 targets and CC_REGNUM register is clobbered.
6277         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
6278         support for new targets.
6279         * config/v850/v850-modes.def: New file.
6280         * config/v850/v850.opt(mstrict-align): Remove.
6281         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
6282         mv850e2v3): New command line options for V850.
6283         * config.gcc: Update the newly added files.
6284         * doc/invoke.texi: Update the newly added command line options for
6285         V850 target.
6286
6287 2010-07-26  Richard Guenther  <rguenther@suse.de>
6288
6289         PR tree-optimization/45052
6290         * ipa-pure-const.c (check_stmt): Check volatileness.
6291
6292 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6293
6294         PR target/44707
6295         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
6296         * config/sparc/sparc.c: Include reload.h.
6297         (legitimize_tls_address): Rename into...
6298         (sparc_legitimize_tls_address): ...this.
6299         (legitimize_pic_address): Rename into...
6300         (sparc_legitimize_pic_address): ...this.
6301         (sparc_expand_move): Adjust to above renaming.
6302         (sparc_tls_referenced_p): Likewise.
6303         (sparc_legitimize_tls_address): Likewise.
6304         (sparc_legitimize_pic_address): Likewise.
6305         (sparc_legitimize_address): Likewise.
6306         (sparc_output_mi_thunk): Likewise.
6307         (sparc_legitimize_reload_address): New global function.  Recognize
6308         (lo_sum (high ...) ...) patterns generated by earlier passes.
6309         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
6310
6311 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6312
6313         PR target/44484
6314         * config/sparc/predicates.md (memory_reg_operand): Delete.
6315         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
6316         (*sync_compare_and_swap): Encode the address form in the pattern.
6317         (*sync_compare_and_swapdi_v8plus): Likewise.
6318
6319 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
6320
6321         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
6322         Streamline paragraph on compatibility with the system compiler.
6323
6324 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
6325
6326         PR middle-end/45035
6327         * alias.c (true_dependence_1): Fix thinko in merge of old
6328         true_dependence and canon_true_dependence.
6329
6330 2010-07-23  Jan Hubicka  <jh@suse.cz>
6331
6332         * lto-streamer-out.c (write_symbol): Fix visibilities of external
6333         references.
6334
6335 2010-07-23  Le-Chun Wu  <lcwu@google.com>
6336
6337         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
6338         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
6339         and an unnecessary assignment.
6340         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
6341         self-assign warning.
6342         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
6343         unnecessary self-init.
6344
6345 2010-07-23  Richard Guenther  <rguenther@suse.de>
6346
6347         PR lto/43071
6348         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
6349         for -flto and -fwhopr.
6350
6351 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
6352
6353         PR target/41943
6354         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
6355         (stmp-int-hdrs): Prefix/postfix headers by include_next.
6356         * config.gcc (user_headers_inc_next_pre): New.
6357         (user_headers_inc_next_post): Likewise.
6358         (*-w64-mingw*): Use for float.h post-fixing, and for
6359         stddef.h/stdarg.h pre-fixing by include_next.
6360         * configure.ac (user_headers_inc_next_post): New.
6361         (user_headers_inc_next_pre): New.
6362         * configure: Regenerated.
6363
6364 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6365
6366         * configure.ac: Don't disable TLS on Solaris 8/9 by default
6367         Set tga_func for Solaris 2/x86 resp. SPARC.
6368         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
6369         (LIB_THREAD_LDFLAGS_SPEC): Define.
6370         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
6371         * configure: Regenerate.
6372         * config.in: Regenerate.
6373         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
6374         -pthread, -threads, LIB_TLS_SPEC with -pthread.
6375         * doc/install.texi (Specific, *-*-solaris2*): Document use of
6376         alternate thread libraries on Solaris 8.
6377         Document TLS patch requirements.
6378         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
6379         Document tls.
6380
6381         PR target/18788
6382         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
6383         -shared.
6384
6385 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
6386
6387         * tree.h (struct tree_base): Add nameless_flag bitfield.
6388         (TYPE_NAMELESS, DECL_NAMELESS): Define.
6389         * omp-low.c (create_omp_child_function, scan_omp_parallel,
6390         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
6391         DECL_ARTIFICIAL where needed.
6392         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
6393         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
6394         has DECL_NAMELESS set.
6395
6396 2010-07-23  Martin Jambor  <mjambor@suse.cz>
6397
6398         PR tree-optimization/44915
6399         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
6400         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
6401         (analyze_function): Likewise.
6402
6403 2010-07-23  Martin Jambor  <mjambor@suse.cz>
6404
6405         PR tree-optimization/44914
6406         * tree-sra.c (sra_modify_function_body): Return true if CFG was
6407         changed, add purging dead eh edges.
6408         (ipa_sra_modify_function_body): Return true if CFG was changed,
6409         simplify purging dead eh edges.
6410         (modify_function): Return true if CFG was changed.
6411         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
6412         was changed.
6413         (ipa_early_sra): Likewise.
6414
6415 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6416
6417         PR target/44290
6418         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
6419         if "naked".
6420         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
6421         false if ! tree_versionable_function_p.
6422
6423 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
6424
6425         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
6426         * ipa-pure-const.c (special_builtlin_state): Remove
6427         BUILT_IN_ARGS_INFO case.
6428         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6429         * builtins.c (expand_builtin): Likewise.
6430         (expand_builtin_args_info): Remove.
6431         * doc/tm.texi (__builtin_args_info): Remove.
6432         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
6433         * doc/tm.text.in: Likewise.
6434
6435 2010-07-23  Richard Guenther  <rguenther@suse.de>
6436
6437         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
6438         (lto_symtab_merge_decls_2): Likewise.
6439         * tree-ssa.c (useless_type_conversion_p): Likewise.
6440         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6441         * gimple.c (gtc_visited2, gtc_ob2): Remove.
6442         (struct type_pair_d): Make same_p an array indexed by mode.
6443         Update comment.
6444         (lookup_type_pair): Update initialization.
6445         (struct sccs): Adjust same_p type.
6446         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
6447         Adjust.
6448         (print_gimple_types_stats): Likewise.
6449         * gimple.h (enum gtc_mode): New.
6450         (gimple_types_compatible_p): Adjust prototype.
6451
6452 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
6453
6454         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
6455         again after processing insn.
6456
6457 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6458
6459         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
6460         proper words when !tree_versionable_function_p.
6461
6462 2010-07-23  Richard Guenther  <rguenther@suse.de>
6463
6464         PR tree-optimization/45037
6465         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
6466
6467 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6468
6469         * doc/extend.texi: Remove IP2K from the description of naked attribute.
6470         Add MCORE instead.
6471
6472 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6473
6474         PR lto/44992
6475         * lto-opts.c (lto_write_options): Add NULL file_data argument to
6476         lto_get_section_name.
6477         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6478         * lto-streamer-out.c (produce_asm): Likewise.
6479         (copy_function): Likewise.
6480         (produce_symtab): Likewise.
6481         (produce_asm_for_decls): Likewise.
6482         * lto-streamer.c (lto_get_section_name): Add file_data argument.
6483         Rewrite to add random postfix to LTO sections.
6484         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
6485         (lto_get_section_name): Add file_data argument to prototype.
6486
6487 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6488
6489         * lto-section-in.c (lto_section_name): Synchronize names
6490         with lto_get_section_name.
6491
6492 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6493
6494         * lto-opts.c (lto_read_file_options): Check for missing section.
6495
6496 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6497
6498         * ira.c (check_allocation): Correctly handle the case where an allocno
6499         with two objects was allocated to a single reg.
6500
6501 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
6502
6503         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
6504         (is_widening_mult_p): Likewise.
6505         (convert_to_widen): Use them.
6506         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
6507         well as integer ones.
6508
6509 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
6510
6511         * alias.c (true_dependence_1): New function, merged version of
6512         true_dependence and canon_true_dependence.
6513         (true_dependence): Simplify.
6514         (canon_true_dependence): Simplify.
6515
6516 2010-07-22  Richard Henderson  <rth@redhat.com>
6517
6518         PR target/45027
6519         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
6520         of V4SFmode for the SSE saves; increase stack alignment if needed.
6521         (ix86_gimplify_va_arg): Don't increase stack alignment here.
6522
6523 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
6524
6525         PR bootstrap/45028
6526         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
6527         call cprop_find_used_regs again via note_uses.
6528
6529 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
6530
6531         * alias.c (get_alias_set): Fix formatting issues.
6532
6533 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
6534
6535         PR middle-end/44878
6536         * stmt.c (expand_value_return):  Call promote_function_mode with
6537         a for_return argument of 2 when returning by reference.
6538
6539 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
6540
6541         PR debug/45024
6542         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
6543         unit DIE if we can find the scope DIE.
6544
6545 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6546
6547         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
6548         changed.  Initialize OBJECT_SUBWORD.
6549         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
6550         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
6551         all callers changed.
6552         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
6553         (finish_allocno): Likewise.
6554         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
6555         (remove_low_level_allocnos): Likewise.
6556         (update_bad_spill_attribute): Likewise.
6557         (setup_min_max_allocno_live_range_point): Likewise.
6558         (sort_conflict_id_map): Likewise.
6559         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
6560         (ior_hard_reg_conflicts): New function.
6561         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
6562         (compress_conflict_vecs): Iterate over objects, not allocnos.
6563         (ira_add_live_range_to_object): New function.
6564         (object_range_compare_func): Renamed from allocno_range_compare_func.
6565         All callers changed.
6566         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
6567         subobjects, widen the min/max range of the lowest-order object to
6568         potentially include all other such low-order objects.
6569         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
6570         (check_allocation): Likewise.  Use more fine-grained tests for register
6571         conflicts.
6572         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
6573         allocno subobjects.
6574         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
6575         choices about which bits to set in each set.  Don't use
6576         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
6577         using the multiple sets we computed.
6578         (push_allocno_to_stack): Iterate over allocno subobjects.
6579         (all_conflicting_hard_regs_coalesced): New static function.
6580         (setup_allocno_available_regs_num): Use it.
6581         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
6582         subobjects.
6583         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
6584         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6585         by ALLOCNO_NUM_OBJECTS.
6586         (calculate_spill_cost): Likewise.
6587         (color_pass): Express if statement in a more normal way.
6588         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
6589         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
6590         (setup_slot_coalesced_allocno_live_ranges): Likewise.
6591         (allocno_reload_assign): Likewise.
6592         (ira_reassign_pseudos): Likewise.
6593         (fast_allocation): Likewise.
6594         * ira-conflicts.c (build_conflict_bit_table): Likewise.
6595         (print_allocno_conflicts): Likewise.
6596         (ira_build_conflicts): Likewise.
6597         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
6598         callers changed.  Test subword 0 of each allocno for conflicts.
6599         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
6600         callers changed.  Iterate over allocno subobjects.
6601         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
6602         * ira-int.h (struct ira_allocno): New member: num_objects.
6603         Rename object to objects and change it into an array.
6604         (ALLOCNO_OBJECT): Add new argument N.
6605         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
6606         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
6607         (ior_hard_reg_conflicts): Declare.
6608         (ira_add_live_range_to_object): Declare.
6609         (ira_allocno_object_iterator): New.
6610         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
6611         (FOR_EACH_ALLOCNO_OBJECT): New macro.
6612         * ira-lives.c (objects_live): Renamed from allocnos_live; all
6613         uses changed.
6614         (allocnos_processed): New sparseset.
6615         (make_object_born): Renamed from make_allocno_born; take an
6616         ira_object_t argument.  All callers changed.
6617         (make_object_dead): Renamed from make_allocno_dead; take an
6618         ira_object_t argument.  All callers changed.
6619         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
6620         All callers changed.
6621         (mark_pseudo_regno_live): Iterate over allocno subobjects.
6622         (mark_pseudo_regno_dead): Likewise.
6623         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
6624         functions.
6625         (mark_ref_live): Detect subword accesses and call
6626         mark_pseudo_regno_subword_live as appropriate.
6627         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
6628         (process_bb_nodes_live): Deal with object-related updates first; set
6629         and test bits in allocnos_processed to avoid computing allocno
6630         statistics more than once.
6631         (create_start_finish_chains): Iterate over objects, not allocnos.
6632         (print_object_live_ranges): New function.
6633         (print_allocno_live_ranges): Use it.
6634         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
6635         and objects_live.
6636
6637 2010-07-22  Richard Guenther  <rguenther@suse.de>
6638
6639         PR lto/42451
6640         * gimple.c (gtc_next_dfs_num): New global.
6641         (struct sccs): Make value a union, add integer same_p member.
6642         (gtc_visit): New function.
6643         (gimple_types_compatible_p_1): New function, split out from ...
6644         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
6645         (iterative_hash_gimple_type): Adjust for sccs change.
6646
6647 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6648
6649         PR tree-optimization/44891
6650         * tree-sra.c: Include gimple-pretty-print.h.
6651         (replace_uses_with_default_def_ssa_name): Renamed to
6652         get_repl_default_def_ssa_name, return the new SSA name instead of
6653         replacing the old one.
6654         (sra_modify_assign): Dump a message when removing a load, if the LHS
6655         is an SSA_NAME, do not do any propagation, just set the RHS to a
6656         default definition SSA NAME, type convert if necessary.
6657         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
6658
6659 2010-07-22  Richard Guenther  <rguenther@suse.de>
6660
6661         PR tree-optimization/45017
6662         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
6663         TYPE_PRECISION of integral types in addition to size.
6664
6665 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
6666
6667         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
6668         when no C library is specified.
6669
6670 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6671
6672         * ipa-prop.h (struct ipa_node_params): Updated comment.
6673         (struct ipa_edge_args): Likewise.
6674         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
6675
6676 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6677
6678         * cgraphunit.c (verify_edge_count_and_frequency): New function.
6679         (verify_cgraph_node): Verify frequencies of indirect edges.
6680         * tree-inline.c (tree_function_versioning): Update frequencies of
6681         indirect edges.
6682
6683 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6684
6685         PR target/43698
6686         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
6687         Set *arm_rev to be predicable.
6688
6689 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
6690
6691         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
6692         (LINK_COMMAND_SPEC_A): New.
6693         (DSYMUTIL): New.
6694         (DSYMUTIL_SPEC): New.
6695         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
6696         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
6697
6698 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
6699
6700         * calls.c (load_register_parameters): Move check for zero
6701         sized items so that only the call to
6702         mem_overlaps_already_clobbered_arg_p () is protected.
6703
6704 2010-07-22  Jan Hubicka  <jh@suse.cz>
6705
6706         * ipa-pure-const.c (varying_state): Break out from ...
6707         (get_function_state): ... here; always return varying_state
6708         when state would be NULL otherwise.
6709         (remove_node_data): Do not free varying state.
6710
6711 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6712
6713         PR bootstrap/44970
6714         PR middle-end/45009
6715         * postreload.c: Include "target.h".
6716         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
6717         into account.
6718         (fixup_debug_insns): Don't copy the rtx.
6719         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
6720         Don't copy when replacing.  Call fixup_debug_insns in the case where
6721         we merged one add with another.
6722         (reload_combine_recognize_pattern): Fail if there aren't any uses.
6723         Try harder to determine whether we're picking a valid index register.
6724         Don't set store_ruid for an insn we're going to scan in the
6725         next iteration.
6726         (reload_combine): Remove unused code.
6727         (reload_combine_note_use): When updating use information for
6728         an old insn, ignore a use that occurs after store_ruid.
6729         * Makefile.in (postreload.o): Update dependencies.
6730
6731         * function.c (record_hard_reg_sets): Restrict the previous change
6732         to cases where the incoming nominal mode is the same as the
6733         incoming promoted mode and everything happens in MODE_INT.
6734
6735 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
6736
6737         PR debug/45015
6738         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
6739         ASM_OPERANDS_OUTPUT_IDX.
6740         (adjust_insn): For inline asm with multiple sets ensure first
6741         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
6742         the insn.
6743
6744 2010-07-21  Richard Henderson  <rth@redhat.com>
6745
6746         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
6747         comparison for avoiding xmm register saves.  Emit the xmm register
6748         saves explicitly.
6749         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
6750         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
6751         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
6752         Remove patterns and the associated splitters.
6753
6754 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
6755
6756         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
6757         and imagine parts of a complex, so that they can have the same
6758         base and fall into the same group.
6759
6760 2010-07-21  Richard Guenther  <rguenther@suse.de>
6761
6762         PR lto/45018
6763         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
6764         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
6765         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
6766
6767 2010-07-21  Martin Jambor  <mjambor@suse.cz>
6768
6769         PR tree-optimization/44900
6770         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
6771         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
6772
6773 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
6774
6775         PR middle-end/44738
6776         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
6777
6778 2010-07-21  Richard Guenther  <rguenther@suse.de>
6779
6780         PR middle-end/45013
6781         * tree-ssa.c (useless_type_conversion_p): Dispatch to
6782         gimple_types_compatible_p only when in lto.
6783         * gimple.c (gimple_types_compatible_p): Use canonical types
6784         to speed up comparison.
6785
6786 2010-07-21  Richard Guenther  <rguenther@suse.de>
6787
6788         * tree-flow.h (referenced_var): Move define ...
6789         * tree-flow-inline.h (referenced_var): ... here as an inline
6790         function.  Assert here ...
6791         * tree-dfa.c (referenced_var_lookup): ... instead of here.
6792         * tree-ssa.c (maybe_optimize_var): Check if the variable
6793         is in referenced vars.
6794         (execute_update_addresses_taken): Remove old broken check.
6795         * gimple-pretty-print.c (pp_points_to_solution): Use
6796         referenced_var_lookup.
6797         * tree-into-ssa.c (dump_decl_set): Likewise.
6798
6799 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
6800
6801         PR debug/45003
6802         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
6803         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
6804         ZERO_EXTEND here.
6805
6806 2010-07-20  Richard Henderson  <rth@redhat.com>
6807
6808         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
6809
6810 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6811
6812         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
6813         computing the sum of the stack pointer and a large constant.
6814         * config/arm/constraints.md (M): Remove superfluous parentheses.
6815         (Pc): New constraint.
6816
6817 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
6818
6819         PR debug/45006
6820         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
6821         operand's type if exp is tcc_unary class tree.
6822
6823 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
6824
6825         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
6826         Reverse sense of if_then_else condition.
6827
6828 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
6829
6830         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
6831         * config/rs6000/rs6000.c (rs6000_override_options): Set
6832         rs6000_block_move_inline_limit appropriately.
6833         (expand_block_move): Use rs6000_block_move_inline_limit.
6834         * doc/invoke.texi (mblock-move-inline-limit): Document.
6835
6836 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6837
6838         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
6839         FROM and TO.  All callers changed.  Don't look for tracked uses,
6840         just scan the RTL for DEBUG_INSNs and substitute.
6841         (reload_combine_recognize_pattern): Call fixup_debug_insns.
6842         (reload_combine): Ignore DEBUG_INSNs.
6843
6844 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
6845
6846         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
6847         depth to 8 from 5.
6848
6849         PR debug/45003
6850         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
6851         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
6852         instead of the result's type.
6853
6854 2010-07-20  Richard Guenther  <rguenther@suse.de>
6855
6856         PR tree-optimization/44977
6857         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
6858         SSA form.
6859
6860 2010-07-20  Richard Guenther  <rguenther@suse.de>
6861
6862         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
6863         (lto_symtab_merge_decls_2): Likewise.
6864         * gimple.h (gimple_types_compatible_p): Declare.
6865         * gimple.c (gimple_queue_type_fixup): Remove.
6866         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
6867         (gimple_compatible_complete_and_incomplete_type_p): New function.
6868         (gimple_types_compatible_p): Adjust.
6869         (gimple_register_type): Remove type fixup code.
6870         (print_gimple_types_stats): Adjust.
6871         (free_gimple_type_tables): Likewise.
6872         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
6873         * tree-ssa.c (useless_type_conversion_p): Likewise.
6874
6875 2010-07-20  Richard Guenther  <rguenther@suse.de>
6876
6877         PR middle-end/44971
6878         PR middle-end/44988
6879         * tree-ssa.c (maybe_optimize_var): New function split out from ...
6880         (execute_update_addresses_taken): ... here.
6881         (non_rewritable_mem_ref_base): Likewise.
6882         (execute_update_addresses_taken): Do not iterate over all referenced
6883         vars but just all local decls and parms.
6884         Properly check call and asm arguments and rewrite call arguments.
6885
6886 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
6887
6888         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
6889         to top level.
6890         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
6891         definitions ...
6892         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
6893         New macro.
6894         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
6895
6896 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6897
6898         * gengtype.c (start_root_entry): New function, split out from
6899         write_root.  Check whether V is null and raise an error if so.
6900         (write_field_root): Check for V being null.  Don't raise an error here;
6901         set V to null instead.
6902         (write_root): Update comment above function.  Use start_root_entry.
6903
6904 2010-07-19  Xinliang David Li  <davidxl@google.com>
6905
6906         PR testsuite/44932
6907         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
6908         def edges.
6909         (find_uninit_use): Add dump.
6910         (is_use_properly_guarded): Ditto.
6911         (warn_uninitialized_phi): Ditto.
6912         (execute_late_warn_uninitialized): Ditto.
6913
6914 2010-07-19  Richard Guenther  <rguenther@suse.de>
6915
6916         PR middle-end/44941
6917         * expr.c (emit_block_move_hints): Move zero size check first.
6918         Move asserts to more useful places.
6919         * calls.c (load_register_parameters): Check for zero size.
6920
6921 2010-07-19  Richard Henderson  <rth@redhat.com>
6922
6923         * tree-optimize.c (execute_all_early_local_passes): New.  Change
6924         cgraph_state here ...
6925         (execute_early_local_optimizations): ... not here.  Remove.
6926         (pass_early_local_passes, pass_all_early_optimizations): Update.
6927
6928 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
6929
6930         * postreload.c (reload_combine_closest_single_use): Ignore the
6931         number of uses for DEBUG_INSNs.
6932         (fixup_debug_insns): New static function.
6933         (reload_combine_recognize_const_pattern): Use it.  Don't let the
6934         main loop be affected by DEBUG_INSNs.
6935         Really disallow moving adds past a jump insn.
6936         (reload_combine_recognize_pattern): Don't update use_ruid here.
6937         (reload_combine_note_use): Do it here.
6938         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
6939
6940 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
6941
6942         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
6943         of a loop.
6944         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
6945
6946 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
6947
6948         * config/i386/darwin.h: Define darwin_emit_branch_islands.
6949         (TARGET_MACHO_BRANCH_ISLANDS): New.
6950         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
6951         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
6952         default value.
6953         * config/i386/i386.c (output_pic_addr_const): Do not emit
6954         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
6955         (x86_output_mi_thunk): Adjust symbol creation.
6956         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
6957         Remove out of date comment.
6958         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
6959         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
6960         (DARWIN_GENERATE_ISLANDS): Ditto.
6961         (output_call):  Do not emit branch islands unless
6962         darwin_emit_branch_islands is set.
6963         * config/darwin.c: Declare darwin_emit_branch_islands.
6964         (machopic_indirect_data_reference): Do not emit unless
6965         darwin_emit_branch_islands is set.
6966         (darwin_override_options): Set darwin_emit_branch_islands
6967         where it is needed.
6968         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
6969
6970 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6971
6972         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6973         sse_runtime, sse2_runtime.
6974
6975 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
6976
6977         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
6978         low half of a single-register SCmode return value before ORing
6979         it with the high half.
6980         * config/mips/mips16.S (MERGE_GPRf): Likewise.
6981
6982 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6983
6984         PR target/44805
6985         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
6986         on all targets.
6987
6988 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
6989
6990         PR target/42235
6991         * postreload.c (reload_cse_move2add): Return bool, true if anything.
6992         changed.  All callers changed.
6993         (move2add_use_add2_insn): Likewise.
6994         (move2add_use_add3_insn): Likewise.
6995         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
6996         reload_combine.
6997         (RELOAD_COMBINE_MAX_USES): Bump to 16.
6998         (last_jump_ruid): New static variable.
6999         (struct reg_use): New members CONTAINING_MEM and RUID.
7000         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
7001         (reload_combine_split_one_ruid, reload_combine_split_ruids,
7002         reload_combine_purge_insn_uses, reload_combine_closest_single_use
7003         reload_combine_purge_reg_uses_after_ruid,
7004         reload_combine_recognize_const_pattern): New static functions.
7005         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
7006         is true for our reg and that we have available index regs.
7007         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
7008         callers changed.  Use them to initialize fields in struct reg_use.
7009         (reload_combine): Initialize last_jump_ruid.  Be careful when to
7010         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
7011         Call reload_combine_recognize_const_pattern.
7012         (reload_combine_note_store): Update REAL_STORE_RUID field.
7013
7014 2010-07-16  Jason Merrill  <jason@redhat.com>
7015
7016         * Makefile.in (opts-common.o): Depend on options.h.
7017
7018 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
7019
7020         * tree.c (build_common_builtin_nodes): Use build_function_type_list
7021         instead of build_function_type.
7022         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
7023         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
7024
7025 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
7026
7027         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
7028         do all the work.
7029         (rs6000_emit_int_cmove): Use function pointers for insn generation.
7030         Don't force values into registers unnecessarily.
7031         (output_isel): Assert that we're not given conditions we can't handle.
7032         Delete corresponding code.
7033         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
7034         scc_comparison_operator constraint.  Permit 0 for the consequent
7035         operand.  Permit any GPR for the alternative operand.
7036         (isel_unsigned_<mode>): Likewise.
7037
7038 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
7039
7040         PR target/44942
7041         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
7042         argument to const_tree.
7043         * config/i386/i386.c (function_arg_advance): If padding needs to be
7044         inserted before argument, increment cum->words by number of padding
7045         words as well.
7046         (contains_aligned_value_p): Change argument to const_tree.
7047         (ix86_function_arg_boundary): Change second argument to const_tree.
7048
7049 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
7050
7051         PR target/42235
7052         * function.c (record_hard_reg_sets): New static function.
7053         (assign_parm_setup_reg): If an optab for extending exists and the
7054         generated code clobbbers no hard regs, emit the insn directly and
7055         create a REG_EQUIV note.
7056
7057 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
7058
7059         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
7060         TREE_CHAIN.
7061         * c-typeck.c (push_init_level): Likewise.
7062         (process_init_element): Likewise.
7063
7064 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
7065
7066         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
7067         (integer_three_node): Add.
7068         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
7069         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
7070         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
7071         of call build_int_cst.
7072         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
7073         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
7074         (find_interesting_uses_address): Ditto.
7075         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
7076         * tree-eh.c (lower_eh_constructs_2): Ditto.
7077         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
7078         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
7079         * expmed.c (expand_divmod): Ditto.
7080         * tree-mudflap.c (mx_register_decls): Ditto.
7081         * varasm.c (array_size_for_constructor): Ditto.
7082         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
7083         * c-parser.c (c_parser_postfix_expression): Ditto.
7084
7085 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
7086
7087         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
7088         New static variables.
7089         (reload_combine_recognize_pattern): New static function, broken out
7090         of reload_combine.
7091         (reload_combine): Use it.  Only initialize first_index_reg and
7092         last_index_reg once.
7093
7094 2010-07-15  Richard Henderson  <rth@redhat.com>
7095
7096         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
7097         when done.
7098
7099 2010-07-15  Jan Hubicka  <jh@suse.cz>
7100
7101         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
7102         comdats for broken gold.
7103         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
7104
7105 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
7106
7107         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
7108
7109 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
7110
7111         * tree.h (DECL_CHAIN): Define.
7112         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7113         * c-decl.c: Likewise.
7114         * c-parser.c: Likewise.
7115         * c-typeck.c: Likewise.
7116         * cfgexpand.c: Likewise.
7117         * cgraph.c: Likewise.
7118         * cgraphunit.c: Likewise.
7119         * combine.c: Likewise.
7120         * config/alpha/alpha.c: Likewise.
7121         * config/arm/arm.c: Likewise.
7122         * config/frv/frv.c: Likewise.
7123         * config/i386/i386.c: Likewise.
7124         * config/i386/winnt-cxx.c: Likewise.
7125         * config/ia64/ia64.c: Likewise.
7126         * config/iq2000/iq2000.c: Likewise.
7127         * config/mep/mep.c: Likewise.
7128         * config/mips/mips.c: Likewise.
7129         * config/pa/som.h: Likewise.
7130         * config/rs6000/rs6000.c: Likewise.
7131         * config/s390/s390.c: Likewise.
7132         * config/sh/sh.c: Likewise.
7133         * config/sh/symbian-cxx.c: Likewise.
7134         * config/sparc/sparc.c: Likewise.
7135         * config/spu/spu.c: Likewise.
7136         * config/stormy16/stormy16.c: Likewise.
7137         * config/vxworks.c: Likewise.
7138         * config/xtensa/xtensa.c: Likewise.
7139         * coverage.c: Likewise.
7140         * dbxout.c: Likewise.
7141         * dwarf2out.c: Likewise.
7142         * emit-rtl.c: Likewise.
7143         * expr.c: Likewise.
7144         * function.c: Likewise.
7145         * gimple-low.c: Likewise.
7146         * gimple-pretty-print.c: Likewise.
7147         * gimplify.c: Likewise.
7148         * integrate.c: Likewise.
7149         * ipa-inline.c: Likewise.
7150         * ipa-prop.c: Likewise.
7151         * ipa-split.c: Likewise.
7152         * ipa-struct-reorg.c: Likewise.
7153         * ipa-type-escape.c: Likewise.
7154         * langhooks.c: Likewise.
7155         * lto-cgraph.c: Likewise.
7156         * omp-low.c: Likewise.
7157         * stor-layout.c: Likewise.
7158         * tree-cfg.c: Likewise.
7159         * tree-complex.c: Likewise.
7160         * tree-dfa.c: Likewise.
7161         * tree-dump.c: Likewise.
7162         * tree-inline.c: Likewise.
7163         * tree-mudflap.c: Likewise.
7164         * tree-nested.c: Likewise.
7165         * tree-object-size.c: Likewise.
7166         * tree-pretty-print.c: Likewise.
7167         * tree-sra.c: Likewise.
7168         * tree-ssa-live.c: Likewise.
7169         * tree-ssa-loop-niter.c: Likewise.
7170         * tree-ssa-math-opts.c: Likewise.
7171         * tree-ssa-reassoc.c: Likewise.
7172         * tree-ssa-sccvn.c: Likewise.
7173         * tree-ssa-structalias.c: Likewise.
7174         * tree-tailcall.c: Likewise.
7175         * tree-vrp.c: Likewise.
7176         * tree.c: Likewise.
7177         * var-tracking.c: Likewise.
7178         * varasm.c: Likewise.
7179
7180 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7181
7182         PR target/44877
7183         * config/spu/spu.c (spu_expand_builtin_1): Allow references
7184         (as well as pointers) as argument to mask_for_load builtins.
7185
7186 2010-07-15  Richard Guenther  <rguenther@suse.de>
7187
7188         PR tree-optimization/44946
7189         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
7190         with accessing only padding properly.
7191
7192 2010-07-15  Jan Hubicka  <jh@suse.cz>
7193
7194         * ipa.c (function_and_variable_visibility): Variables marked as used
7195         should not be localized.
7196
7197 2010-07-15  Jan Hubicka  <jh@suse.cz>
7198
7199         * cgraph.c: Include lto-streamer.h
7200         (change_decl_assembler_name): Work when assembler name hash is at place.
7201         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
7202         be sure to rename it to avoid name clash.
7203         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
7204         Localize hidden symbols only when locally defined.
7205
7206 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
7207
7208         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
7209
7210 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
7211             Kevin F. Quinn  <kevquinn@gentoo.org>
7212
7213         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
7214         * common.opt: Add -Wtrampolines.
7215         * doc/invoke.texi: Add -Wtrampolines.
7216
7217 2010-07-15  Jie Zhang  <jie@codesourcery.com>
7218
7219         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
7220         cortex_a8_issue_ls.
7221
7222 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
7223
7224         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
7225         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
7226
7227 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7228
7229         * config/spu/spu.c (reg_names): Remove prototype.
7230         (call_used_regs): Likewise.
7231
7232 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
7233
7234         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
7235         "unused" with attribute "used".
7236         (__JCR_END__): Likewise.
7237         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
7238         "used" attribute.
7239         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
7240
7241 2010-07-14  Richard Guenther  <rguenther@suse.de>
7242
7243         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
7244         (maybe_fixup_decls): Likewise.
7245         (input_gimple_stmt): Do not fixup anything.
7246         * lto-streamer-out.c (output_gimple_stmt): Make sure all
7247         non-automatic variable uses are wrapped inside a MEM_REF.
7248
7249 2010-07-14  Richard Henderson  <rth@redhat.com>
7250
7251         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
7252         for functions.
7253         * varasm.c (assemble_variable): Remove early exit for functions;
7254         assert that we're given a variable.
7255
7256 2010-07-14  Jie Zhang  <jie@codesourcery.com>
7257
7258         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
7259         cortex_a8_default when neon_type is not none.
7260
7261 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7262
7263         * lower-subreg.c (subreg_context): New static bitmap.
7264         (decompose_multiword_subregs): Allocate and free it.
7265         (find_decomposable_subregs): Set a bit in it for a register that
7266         occurs in a subreg that changes mode but not size.
7267         (can_decompose_p): Test it instead of non_decomposable_context.
7268
7269 2010-07-14  Richard Guenther  <rguenther@suse.de>
7270
7271         PR tree-optimization/44824
7272         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
7273         is_gimple_mem_ref_addr.
7274         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
7275         non-decl_address_invariant_p addresses.
7276
7277 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7278
7279         * reload.c (find_reloads): Revert code to penalize small register
7280         classes that was brought in with the IRA merge.
7281
7282 2010-07-14  Richard Guenther  <rguenther@suse.de>
7283
7284         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
7285         as base of ARRAY_REFs.
7286
7287 2010-07-14  Richard Guenther  <rguenther@suse.de>
7288
7289         PR middle-end/44930
7290         * tree-pretty-print.c (do_niy): Do not print a newline.
7291
7292 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7293
7294         * ira-int.h (struct ira_object): New.
7295         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
7296         (struct ira_allocno): Remove members min, max,
7297         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
7298         conflict_allocnos_num and conflict_vec_p.  Add new member object.
7299         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
7300         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
7301         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
7302         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
7303         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
7304         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
7305         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
7306         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
7307         an ira_object_t rather than ira_allocno_t.  All uses changed.
7308         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
7309         contains a vector of ira_object_t; all uses changed.
7310         (ira_objects_num): Declare variable.
7311         (ira_create_allocno_object): Declare function.
7312         (ira_conflict_vector_profitable_p): Adjust prototype.
7313         (ira_allocate_conflict_vec): Renamed from
7314         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
7315         (ira_allocate_object_conflicts): Renamed from
7316         ira_allocate_allocno_conflicts; first arg now ira_object_t.
7317         (struct ira_object_iterator): New.
7318         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
7319         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
7320         to conflict_vec_p.  All uses changed.
7321         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
7322         Changed to take into account that conflicts are now tracked for
7323         objects.
7324         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
7325         Args changed to accept ira_object_t.  All uses changed.
7326         (allocnos_conflict_p): New static function.
7327         (collected_conflict_objects): Renamed from collected_allocno_objects;
7328         now a vector of ira_object_t.  All uses changed.
7329         (build_conflict_bit_table): Changed to take into account that
7330         conflicts are now tracked for objects.
7331         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
7332         (print_allocno_conflicts, ira_build_conflicts): Likewise.
7333         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
7334         setup_allocno_left_conflicts_size, allocno_reload_assign,
7335         fast_allocation): Likewise.
7336         * ira-lives.c (make_hard_regno_born, make_allocno_born)
7337         process_single_reg_class_operands, process_bb_node_lives): Likewise.
7338         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
7339         Likewise.
7340         * ira-build.c (ira_objects_num): New variable.
7341         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
7342         contains a vector of ira_object_t; all uses changed.
7343         (ira_object_id_map_vec): Corresponding change.
7344         (object_pool): New static variable.
7345         (initiate_allocnos): Initialize it.
7346         (finish_allocnos): Free it.
7347         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
7348         New functions.
7349         (ira_create_allocno): Don't set members that were removed.
7350         (ira_set_allocno_cover_class): Don't change conflict hard regs.
7351         (merge_hard_reg_conflicts): Changed to take into account that
7352         conflicts are now tracked for objects.
7353         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
7354         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
7355         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
7356         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
7357         setup_min_max_conflict_allocno_ids, ):  Likewise.
7358         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
7359         to ira_object_t; all callers changed.
7360         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
7361         to ira_object_t, all callers changed.
7362         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
7363         to ira_object_t, all callers changed.
7364         (conflict_check, curr_conflict_check_tick): Renamed from
7365         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
7366         changed.
7367         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
7368         arg changed to ira_object_t, all callers changed.
7369         (create_cap_allocno): Call ira_create_allocno_object.
7370         (finish_allocno): Free the corresponding object.
7371         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
7372         callers changed.  Adjusted for dealing with objects.
7373         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
7374         dealing with objects.
7375         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
7376
7377         * ira-int.h (struct live_range): Rename allocno member to object
7378         and change type to ira_object_t.
7379         (struct ira_object): New member live_ranges.
7380         (struct ira_allocno): Remove member live_ranges.
7381         (ALLOCNO_LIVE_RANGES): Remove.
7382         (OBJECT_LIVE_RANGES): New macro.
7383         (ira_create_live_range, ira_copy_live_range_list,
7384         ira_merge_live_range_list, ira_live_ranges_intersect_p,
7385         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
7386         * ira-build.c (ira_create_object): Initialize live ranges here.
7387         (ira_create_allocno): Not here.
7388         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
7389         changed to ira_object_t, all callers changed.
7390         (copy_live_range): Rename from copy_allocno_live_range, all callers
7391         changed.
7392         (ira_copy_live_range_list): Rename from
7393         ira_copy_allocno_live_range_list, all callers changed.
7394         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
7395         all callers changed.
7396         (ira_live_ranges_intersect_p): Rename from
7397         ira_allocno_live_ranges_intersect_p, all callers changed.
7398         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
7399         callers changed.
7400         (ira_finish_live_range_list): Rename from
7401         ira_finish_allocno_live_range_list, all callers changed.
7402         (change_object_in_range_list): Rename from change_allocno_in_range_list,
7403         last arg changed to ira_object_t, all callers changed.
7404         (finish_allocno): Changed to expect live ranges in the allocno's object.
7405         (move_allocno_live_ranges, copy_allocno_live_ranges,
7406         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
7407         ira_flattening, ira_build): Likewise.
7408         * ira-color.c (allocnos_have_intersected_live_ranges_p,
7409         slot_coalesced_allocno_live_ranges_intersect,
7410         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
7411         * ira-conflicts.c (build_conflict_bit_table): Likewise.
7412         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
7413         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
7414         make_allocno_dead, create_start_finish_chains,
7415         remove_some_program_points_and_update_live_ranges,
7416         ira_debug_live_range_list): Likewise.
7417
7418         * ira-int.h (ira_object_conflict_iterator): Rename from
7419         ira_allocno_conflict_iterator.
7420         (ira_object_conflict_iter_init): Rename from
7421         ira_allocno_conflict_iter_init, second arg changed to
7422         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
7423         FOR_EACH_ALLOCNO_CONFLICT.
7424         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
7425         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
7426         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
7427         * ira-conflicts.c (print_allocno_conflicts): Likewise.
7428
7429 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
7430
7431         PR other/44874
7432         * tree-dump.c (dump_options): Add enumerate_locals entry.
7433         Add TDF_NOID exclusion to all entry.
7434         * tree-dump.h (dump_enumerated_decls): Declare.
7435         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
7436         Don't display type uid.
7437         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
7438         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
7439         * tree-ssa-live.c: Include gimple.h.
7440         (numbered_tree_d): New struct.
7441         (numbered_tree): New typedef.
7442         (DEF_VEC_O (numbered_tree): New.
7443         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
7444         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
7445         (dump_enumerated_decls): Likewise.
7446         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
7447         debug info and flag_dump_final_insns, call dump_enumerated_decls.
7448         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
7449         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
7450
7451 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
7452
7453         * expmed.h (MAX_BITS_PER_WORD): Move to...
7454         * defaults.h (MAX_BITS_PER_WORD): ...here.
7455
7456 2010-07-13  DJ Delorie  <dj@redhat.com>
7457
7458         * config/h8300/h8300.c (h8300_init_once): Default to
7459         -fstrict_volatile_bitfields.
7460
7461         * config/sh/sh.c (sh_override_options): Default to
7462         -fstrict_volatile_bitfields.
7463
7464         * config/rx/rx.c (rx_option_override): New.
7465
7466         * config/m32c/m32c.c (m32c_override_options): Default to
7467         -fstrict_volatile_bitfields.
7468
7469 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
7470
7471         * tree.h (build_function_call_expr): Delete.
7472         (build_call_expr_loc_array): New function.
7473         (build_call_expr_loc_vec): New function.
7474         * tree-flow.h (struct omp_region): Change type of ws_args field
7475         to a VEC.
7476         * builtins.c (build_function_call_expr): Delete.
7477         (build_call_expr_loc_array): New function.
7478         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
7479         (build_call_expr): Likewise.
7480         (build_call_expr_loc_vec): New function.
7481         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
7482         build_function_call_expr.
7483         * expr.c (emutls_var_address): Likewise.
7484         * varasm.c (emutls_common_1): Likewise.
7485         * omp-low.c (expand_omp_atomic_mutex): Likewise.
7486         (expand_omp_taskreg): Adjust for new type of region->ws_args.
7487         (get_ws_args_for): Return a VEC instead of a tree.
7488         (expand_parallel_call): Call build_call_expr_loc_vec instead of
7489         build_function_call_expr.
7490         * stor-layout.c (self_referential_size): Likewise.
7491
7492 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
7493
7494         PR testsuite/44701
7495         * recog.c (constrain_operands): Allow side-effects in memory
7496         operands if either < or > constraint is used, rather than if
7497         both < and > is used.
7498
7499 2010-07-13  Richard Guenther  <rguenther@suse.de>
7500
7501         PR middle-end/44911
7502         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
7503         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
7504         without name.
7505
7506 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7507
7508         PR target/44761
7509         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
7510         to variable emited.
7511         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
7512         * config/sh/sh.md (symGOT_load): Likewise.
7513         (symDTPOFF2reg): Likewise.
7514         (symTPOFF2reg): Likewise.
7515
7516 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7517
7518         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
7519         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
7520
7521 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7522
7523         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
7524         explanation.
7525         Find ucontext_t * on Solaris 11.
7526         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
7527         Handle new Solaris 11 __sighndlr patterns.
7528
7529 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
7530
7531         PR debug/44901
7532         * vec.h (VEC_block_remove): Fix comment.
7533         * tree-ssa-live.c (remove_unused_locals): Don't use
7534         VEC_unordered_remove on local_decls, instead replace a single
7535         vector element in each iteration if at least one element had
7536         to be removed and VEC_truncate at the end.
7537         * omp-low.c (expand_omp_taskreg): Likewise.
7538
7539 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7540
7541         * c-decl.c (finish_function): Fix typo in comment.
7542
7543 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
7544
7545         PR bootstrap/44921
7546         * postreload.c (move2add_use_add3_insn): Silence gcc warning
7547         on min_regno.
7548
7549 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
7550
7551         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
7552         (simplify_stmt_using_ranges): Use it.
7553
7554 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7555
7556         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
7557         member.  Do not mark as GTY(()).
7558         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
7559         (spu_builtin_decls): New static variable.
7560         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
7561         (spu_init_builtins): Likewise.
7562         (spu_builtin_mul_widen_even): Likewise.
7563         (spu_builtin_mul_widen_odd): Likewise.
7564         (spu_builtin_mask_for_load): Likewise.
7565         (spu_builtin_vec_perm): Likewise.
7566         * config/spu/spu-c.c: Include "target.h".
7567         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
7568         of using spu_builtins[].fndecl.
7569
7570 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7571
7572         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
7573         imply -minterlink-mips16.
7574
7575 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7576
7577         * config/mips/mips.h (mips16_globals): Declare.
7578         (SWITCHABLE_TARGET): Define.
7579         * config/mips/mips.c: Include target-globals.h.
7580         (mips16_globals): New variable.
7581         (mips_set_mips16_mode): Use save_target_globals and
7582         restore_target_globals instead of target_reinit.
7583
7584 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7585
7586         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
7587         to say that the function can be called more than once.
7588         * target-globals.c (save_target_globals): Call init_reg_sets.
7589
7590 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7591
7592         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
7593         * bb-reorder.h: New file.
7594         * bb-reorder.c (default_target_bb_reorder): New variable.
7595         (this_target_bb_reorder): New conditional variable.
7596         (uncond_jump_length): Redefine as a macro.
7597         * target-globals.h (this_target_bb_reorder): Declare.
7598         (target_globals): Add a bb_reorder field.
7599         (restore_target_globals): Copy the bb_reorder field to
7600         this_target_bb-reorder.
7601         * target-globals.c: Include bb-reorder.h.
7602         (default_target_globals): Initialize the bb_reorder field.
7603         (save_target_globals): Likewise.
7604
7605 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7606
7607         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
7608         * gcse.h: New file.
7609         * gcse.c: Include gcse.h.
7610         (default_target_gcse): New variable.
7611         (this_target_gcse): New conditional variable.
7612         (can_copy): Redefine as a macro.
7613         (can_copy_init_p): New macro.
7614         (can_copy_p): Remove can_copy_init_p.
7615         * target-globals.h (this_target_gcse): Declare.
7616         (target_globals): Add a gcse field.
7617         (restore_target_globals): Copy the gcse field to this_target_gcse.
7618         * target-globals.c: Include gcse.h.
7619         (default_target_globals): Initialize the gcse field.
7620         (save_target_globals): Likewise.
7621
7622 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7623
7624         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
7625         and x_ira_prohibited_mode_move_regs_initialized_p.
7626         (ira_prohibited_mode_move_regs): Redefine as a macro.
7627         * ira.c (ira_prohibited_mode_move_regs): Delete.
7628         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
7629
7630 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7631
7632         * reload.h (target_reload): Add x_cached_reg_save_code and
7633         x_cached_reg_restore_code.
7634         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
7635         Redefine as macros.
7636
7637 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7638
7639         * Makefile.in (target-globals.o): Depend on builtins.h.
7640         * builtins.h: New file.
7641         * builtins.c: Include builtins.h.
7642         (default_target_builtins): New variable.
7643         (this_target_builtins): New conditional variable.
7644         (apply_args_mode, apply_result_mode): Redefine as macros.
7645         * target-globals.h (this_target_builtins): Declare.
7646         (target_globals): Add a builtins field.
7647         (restore_target_globals): Copy the builtins field to
7648         this_target_builtins.
7649         * target-globals.c: Include builtins.h.
7650         (default_target_globals): Initialize the builtins field.
7651         (save_target_globals): Likewise.
7652
7653 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7654
7655         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
7656         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
7657         from expmed.c.
7658         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
7659         (alg_hash, alg_hash_used_p): New macros.
7660         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
7661         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
7662         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
7663
7664 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7665
7666         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
7667         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
7668         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
7669         (this_op_costs, costs_classes): Redefine as macros.
7670         (record_reg_classes): Don't take op_costs as a parameter.
7671         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
7672         (scan_one_insn): Update call to record_operand_costs.
7673
7674 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7675
7676         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
7677         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
7678         (target_ira_int): New structure.
7679         (default_target_ira_int): Declare.
7680         (this_target_ira_int): Declare as a variable or define as a macro.
7681         (ira_reg_mode_hard_regset, ira_register_move_cost)
7682         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
7683         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
7684         (prohibited_class_mode_regs, ira_important_classes_num)
7685         (ira_important_classes, ira_reg_class_intersect)
7686         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
7687         (ira_reg_class_union): Redefine as macros.
7688         * ira.h (target_ira): New structure.
7689         (default_target_ira): Declare.
7690         (this_target_ira): Declare as a variable or define as a macro.
7691         (ira_available_class_regs, ira_hard_regno_cover_class)
7692         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
7693         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
7694         (ira_class_hard_regs_num): Redefine as macros.
7695         * ira.c (default_target_ira, default_target_ira_int): New variables.
7696         (this_target_ira, this_target_ira_int): New conditional variables.
7697         (ira_reg_mode_hard_regset, ira_memory_move_cost)
7698         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
7699         (ira_class_subset_p): Delete.
7700         (no_unit_alloc_regs): Redefine as a macro.
7701         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
7702         (ira_class_hard_regs_num, ira_class_hard_reg_index)
7703         (ira_available_class_regs): Delete.
7704         (alloc_reg_class_subclasses): Redefine as a macro.
7705         (ira_reg_class_cover_size, ira_reg_class_cover)
7706         (ira_important_classes_num, ira_important_classes)
7707         (ira_important_class_nums, ira_class_translate): Delete.
7708         (cover_class_order): Document the variable's lifetime.
7709         (reorder_important_classes): Don't set ira_important_class_nums.
7710         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
7711         (ira_reg_class_super_classes, ira_reg_class_union)
7712         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
7713         Delete.
7714         (setup_reg_class_nregs): Don't set ira_max_regs.
7715         (prohibited_class_mode_regs): Delete.
7716         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
7717         (target_globals): Add ira and ira_int fields.
7718         (restore_target_globals): Copy the ira field to this_target_ira
7719         and the ira_int field to this_target_ira_int.
7720         * target-globals.c: Include ira-int.h.
7721         (default_target_globals): Initialize the ira and ira_int fields.
7722         (save_target_globals): Likewise.
7723
7724 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7725
7726         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
7727         * cfgloop.h (target_cfgloop): New structure.
7728         (default_target_cfgloop): Declare.
7729         (this_target_cfgloop): Declare as a variable or define as a macro.
7730         (target_avail_regs, target_clobbered_regs, target_res_regs)
7731         (target_reg_cost, target_spill_cost): Redefine as macros.
7732         * cfgloopanal.c (default_target_cfgloop): New variable.
7733         (this_target_cfgloop): New conditional variable.
7734         (target_avail_regs, target_clobbered_regs, target_res_regs)
7735         (target_reg_cost, target_spill_cost): Delete.
7736         * target-globals.h (this_target_cfgloop): Declare.
7737         (target_globals): Add a cfgloop field.
7738         (restore_target_globals): Copy the cfgloop field to
7739         this_target_cfgloop.
7740         * target-globals.c: Include cfgloop.h.
7741         (default_target_globals): Initialize the cfgloop field.
7742         (save_target_globals): Likewise.
7743
7744 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7745
7746         * regs.h (target_regs): Add x_direct_load, x_direct_store and
7747         x_float_extend_from_mem.
7748         (direct_load, direct_store, float_extend_from_mem): New macros.
7749         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
7750
7751 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7752
7753         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
7754         (target-globals.o): Depend on $(LIBFUNCS_H).
7755         * libfuncs.h: Include hashtab.h.
7756         (libfunc_entry): Moved from optabs.c.
7757         (target_libfuncs): New structure.
7758         (default_target_libfuncs): Declare.
7759         (this_target_libfuncs): Declare as a variable or define as a macro.
7760         (libfunc_table): Redefine as a macro.
7761         * optabs.c (default_target_libfuncs): New variable.
7762         (this_target_libfuncs): New conditional variable.
7763         (libfunc_table): Delete.
7764         (libfunc_entry): Moved to optabs.h.
7765         (libfunc_hash): Redefine as a macro.
7766         (hash_libfunc, eq_libfunc): Fix comments.
7767         (init_optabs): Use libfunc_hash to detect cases where the function
7768         has already been called.  Clear the hash table instead of
7769         recreating it.
7770         * target-globals.h (this_target_libfuncs): Declare.
7771         (target_globals): Add a libfuncs field.
7772         (restore_target_globals): Copy the libfuncs field to
7773         this_target_libfuncs.
7774         * target-globals.c: Include libfuncs.h.
7775         (default_target_globals): Initialize the libfuncs field.
7776         (save_target_globals): Likewise.
7777
7778 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7779
7780         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
7781         in all dependency lists.
7782
7783 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7784
7785         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
7786         * optabs.h (target_optabs): New structure.
7787         (default_target_optabs): Declare.
7788         (this_target_optabs): Declare as a variable or define as a macro.
7789         (optab_table, convert_optab_table, direct_optab_table): Redefine
7790         as macros.
7791         * optabs.c (default_target_optabs): New variable.
7792         (this_target_optabs): New conditional variable.
7793         (optab_table, convert_optab_table, direct_optab_table): Delete.
7794         * target-globals.h (this_target_optabs): Declare.
7795         (target_globals): Add a optabs field.
7796         (restore_target_globals): Copy the optabs field to
7797         this_target_optabs.
7798         * target-globals.c: Include expr.h and optabs.h.
7799         (default_target_globals): Initialize the optabs field.
7800         (save_target_globals): Likewise.
7801
7802 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7803
7804         * flags.h (target_flagstate): Add x_flag_excess_precision.
7805         (flag_excess_precision): Redefine as a macro.
7806         * toplev.c (flag_excess_precision): Delete.
7807
7808 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7809
7810         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
7811         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
7812         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
7813         (no_caller_save_reg_set): Redefine as a macro.
7814         * reload.h (target_reload): Add x_caller_save_initialized_p and
7815         x_regno_save_mode.
7816         (caller_save_initialized_p): Redefine as a macro.
7817         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
7818         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
7819         (regno_save_mode): Redefine as a macro.
7820
7821 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7822
7823         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
7824         * expmed.h: New file.
7825         * expmed.c (default_target_costs): New variable.
7826         (this_target_costs): New conditional variable.
7827         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
7828         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
7829         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
7830         * target-globals.h (this_target_expmed): Declare.
7831         (target_globals): Add a expmed field.
7832         (restore_target_globals): Copy the expmed field to
7833         this_target_expmed.
7834         * target-globals.c: Include expmed.h.
7835         (default_target_globals): Initialize the expmed field.
7836         (save_target_globals): Likewise.
7837
7838 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7839
7840         * Makefile.in (target-globals.o): Depend on reload.h.
7841         * reload.h (target_reload): New structure.
7842         (default_target_reload): Declare.
7843         (this_target_reload): Declare as a variable or define as a macro.
7844         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
7845         * reload1.c (default_target_reload): New variable
7846         (this_target_reload): New conditional variable.
7847         (indirect_symref_ok, double_reg_address_ok): Delete.
7848         (spill_indirect_levels): Redefine as a macro.
7849         * target-globals.h (this_target_reload): Declare.
7850         (target_globals): Add a reload field.
7851         (restore_target_globals): Copy the reload field to
7852         this_target_reload.
7853         * target-globals.c: Include hard-reg-set.h.
7854         (default_target_globals): Initialize the reload field.
7855         (save_target_globals): Likewise.
7856
7857 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7858
7859         * rtl.h (target_rtl): Add x_static_reg_base_value.
7860         * alias.c (static_reg_base_value): Redefine as a macro.
7861
7862 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7863
7864         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
7865         (GTFILES): Remove reginfo.c.
7866         * rtl.h (target_rtl): Add x_top_of_stack.
7867         (top_of_stack): New macro.
7868         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
7869         (top_of_stack): Delete.
7870
7871 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7872
7873         * regs.h (target_regs): Add x_hard_regs_of_mode,
7874         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
7875         x_may_move_out_cost and x_last_mode_for_init_move_cost.
7876         (have_regs_of_mode, contains_reg_of_mode, move_cost)
7877         (may_move_in_cost, may_move_out_cost): Redefine as macros.
7878         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
7879         (may_move_in_cost, may_move_out_cost): Delete.
7880         (last_mode_for_init_move_cost): Redefine as a macro.
7881
7882 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7883
7884         * hard-reg-set.h (target_hard_regs): New structure.
7885         (default_target_hard_regs): Declare.
7886         (this_target_hard_regs): Declare as a variable or define as a macro.
7887         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
7888         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
7889         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
7890         (reg_class_size, reg_class_subclasses, reg_class_subunion)
7891         (reg_class_superunion, reg_names): Redefine as macros.
7892         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
7893         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
7894         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
7895         (reg_class_contents, reg_class_size, reg_class_subclasses)
7896         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
7897         (default_target_hard_regs): New variable
7898         (this_target_hard_regs, initial_call_really_used_regs)
7899         (initial_reg_alloc_order): New conditional variables.
7900         (initial_reg_names): New variable.
7901         (init_reg_sets): Assert that initial_call_really_used_regs,
7902         initial_reg_alloc_order and initial_reg_names
7903         are all the same size as their variable counterparts.  Use them to
7904         initialize those counterparts.
7905         * target-globals.h (this_target_hard_regs): Declare.
7906         (target_globals): Add a hard_regs field.
7907         (restore_target_globals): Copy the hard_regs field to
7908         this_target_hard_regs.
7909         * target-globals.c: Include hard-reg-set.h.
7910         (default_target_globals): Initialize the hard_regs field.
7911         (save_target_globals): Likewise.
7912
7913 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7914
7915         * Makefile.in (target-globals.o): Depend on $(RTL_H).
7916         * rtl.h (target_rtl): New structure.
7917         (default_target_rtl): Declare.
7918         (this_target_rtl): Declare as a variable or define as a macro.
7919         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
7920         Redefine as macros.
7921         * emit-rtl.c (default_target_rtl): New variable.
7922         (this_target_rtl): New conditional variable.
7923         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
7924         (return_address_pointer_rtx): Delete.
7925         (initial_regno_reg_rtx): New macro.
7926         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
7927         (init_emit_regs): Likewise.
7928         * target-globals.h (this_target_rtl): Declare.
7929         (target_globals): Add a rtl field.
7930         (restore_target_globals): Copy the rtl field to this_target_rtl.
7931         * target-globals.c: Include rtl.h.
7932         (default_target_globals): Initialize the rtl field.
7933         (save_target_globals): Likewise.
7934
7935 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7936
7937         * Makefile.in (target-globals.o): Depend on $(REGS_H).
7938         * regs.h (target_reg_modes): New structure.
7939         (default_target_reg_modes): Declare.
7940         (this_target_reg_modes): Declare as a variable or define as a macro.
7941         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
7942         * reginfo.c (default_target_reg_modes): New variable.
7943         (this_target_reg_modes): New conditional variable.
7944         (hard_regno_nregs, reg_raw_mode): Delete.
7945         * target-globals.h (this_target_regs): Declare.
7946         (target_globals): Add a regs field.
7947         (restore_target_globals): Copy the regs field to this_target_regs.
7948         * target-globals.c: Include regs.h.
7949         (default_target_globals): Initialize the regs field.
7950         (save_target_globals): Likewise.
7951
7952 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7953
7954         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
7955         * doc/tm.texi: Regenerate.
7956         * Makefile.in (OBJS-common): Add target-globals.o.
7957         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
7958         and target-globals.h.
7959         (target-globals.o): New rule.
7960         (GTFILES): Include $(srcdir)/target-globals.h.
7961         * defaults.h (SWITCHABLE_TARGET): Define.
7962         * gengtype.c (open_base_files): Add target-globals.h to the
7963         list of includes.
7964         * target-globals.h: New file.
7965         * target-globals.c: Likewise.
7966
7967         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
7968         * flags.h (target_flag_state): New structure.
7969         (default_target_flag_state): Declare.
7970         (this_target_flag_state): Declare as a variable or define as a macro.
7971         (align_loops_log): Redefine as a macro.
7972         (align_loops_max_skip, align_jumps_log): Likewise.
7973         (align_jumps_max_skip, align_labels_log): Likewise.
7974         (align_labels_max_skip, align_functions_log): Likewise.
7975         * toplev.c (default_target_flag_state): New variable.
7976         (this_target_flag_state): New conditional variable.
7977         (align_loops_log): Delete.
7978         (align_loops_max_skip, align_jumps_log): Likewise.
7979         (align_jumps_max_skip, align_labels_log): Likewise.
7980         (align_labels_max_skip, align_functions_log): Likewise.
7981         * target-globals.h (this_target_flag_state): Declare.
7982         (target_globals): Add a flag_state field.
7983         (restore_target_globals): Copy the flag_state field to
7984         this_target_flag_state.
7985         * target-globals.c: Include flags.h.
7986         (default_target_globals): Initialize the flag_state field.
7987         (save_target_globals): Likewise.
7988
7989 2010-07-12  Jie Zhang  <jie@codesourcery.com>
7990
7991         * postreload.c (reg_symbol_ref[]): New.
7992         (move2add_use_add2_insn): New.
7993         (move2add_use_add3_insn): New.
7994         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
7995         (move2add_note_store): Likewise.
7996
7997 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
7998
7999         PR rtl-optimization/44752
8000         * genautomata.c (main): Don't emit an empty file even if there
8001         is no automaton.
8002
8003 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8004
8005         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
8006         ix86_solaris_return_in_memory.
8007         * config/i386-protos.h: Reflect this.
8008         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
8009         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
8010         Move ...
8011         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
8012
8013 2010-07-12  Jie Zhang  <jie@codesourcery.com>
8014
8015         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
8016         align the stack when it's going to be saved.
8017
8018 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8019
8020         PR pch/14940
8021         * config/host-solaris.c (mmap_fixed): New function.
8022         (sol_gt_pch_get_address): Use it.
8023         (sol_gt_pch_use_address): Likewise.
8024
8025 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8026
8027         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8028         pentiumpro on Solaris 8 and 9/x86.
8029         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
8030         Document SSE/SSE2 support.
8031         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
8032
8033 2010-07-12  Andi Kleen  <ak@linux.intel.com>
8034
8035         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
8036         instead of gcc_assert to print better error message for multiple
8037         prevailing defs.
8038
8039 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
8040
8041         * config/i386/i386.c (ix86_asm_output_function_label): Change format
8042         string placeholder from 0x%x to %#x.
8043         (ix86_code_end): Use putc to output '\n'.
8044         (ix86_print_operand) <case ';'>: Use putc to output ';'.
8045
8046 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
8047
8048         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
8049         in directive -export.
8050
8051 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
8052
8053         * reginfo.h (reg_classes_intersect_p): Change arguments type to
8054         reg_class_t.
8055         * rtl.h (reg_classes_intersect_p): Adjust prototype.
8056
8057         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8058         Remove macros.
8059         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
8060         rs6000_memory_move_cost): Remove
8061         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
8062         TARGET_MEMORY_MOVE_COST): Define.
8063         (rs6000_register_move_cost): Make static. Change arguments type from
8064         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
8065         (rs6000_memory_move_cost): Make static. Change arguments type from
8066         'enum reg_class' to reg_class_t.
8067
8068 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
8069
8070         PR middle-end/42505
8071         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
8072         lookup code into....
8073         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
8074         new functions.
8075         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
8076         * cfgloopanal.c (target_clobbered_regs): Define.
8077         (init_set_costs): Initialize target_clobbered_regs.
8078         (estimate_reg_pressure_cost): Add call_p argument.  When true,
8079         adjust the number of available registers to exclude the
8080         call-clobbered registers.
8081         * cfgloop.h (target_clobbered_regs): Declare.
8082         (estimate_reg_pressure_cost): Adjust declaration.
8083         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
8084         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
8085         (determine_set_costs): Dump target_clobbered_regs.
8086         (loop_body_includes_call): New function.
8087         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
8088         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
8089         call_p flag through.
8090         (best_gain_for_invariant): Likewise.
8091         (find_invariants_to_move): Likewise.
8092         (move_single_loop_invariants): Likewise, using already-computed
8093         has_call field.
8094
8095 2010-07-10  Richard Guenther  <rguenther@suse.de>
8096             Joern Rennecke  <joern.rennecke@embecosm.com>
8097
8098         PR debug/44832
8099         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
8100         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
8101         unless they have DECL_IGNORED_P set.
8102
8103 2010-07-10  Richard Guenther  <rguenther@suse.de>
8104
8105         PR lto/44889
8106         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
8107         helper function.
8108         (gimple_types_compatible_p): Similar to pointed-to
8109         types allow and merge a mix of complete and incomplete aggregate.
8110         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
8111         (iterative_hash_gimple_type): Adjust for that.
8112
8113 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
8114
8115         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
8116
8117 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
8118
8119         PR objc/44140
8120         * config/darwin.c (output_objc_section_asm_op): Save and restore
8121         section when outputting ObjC section list.
8122
8123 2010-07-09  Jan Hubicka  <jh@suse.cz>
8124
8125         * lto-streamer-out.c (produce_symtab): Do not write alias
8126         cgraph/varpool nodes.
8127
8128 2010-07-09  Jan Hubicka  <jh@suse.cz>
8129
8130         * tree-inline.c (declare_return_variable): Fix ICE while
8131         inlining DECL_BY_VALUE function not in SSA form
8132
8133 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
8134
8135         PR tree-optimization/44576
8136         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
8137         New.  Pull out from is_loop_prefetching_profitable to implement
8138         the trip count to ahead ratio heuristic.
8139         (mem_ref_count_reasonable_p): New.  Pull out from
8140         is_loop_prefetching_profitable to implement the instruction to
8141         memory reference ratio heuristic.  Also consider not reasonable if
8142         the memory reference count is above a threshold (to avoid
8143         explosive compilation time.
8144         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
8145         is_loop_prefetching_profitable to implement the instruction to
8146         prefetch ratio heuristic.
8147         (is_loop_prefetching_profitable): Removed.
8148         (loop_prefetch_arrays): Distribute the cost analysis across the
8149         function to allow early exit of the prefetch analysis.
8150         is_loop_prefetching_profitable is splitted into three functions,
8151         with each one called as early as possible.
8152         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
8153         number of memory references in a loop is considered too many.
8154
8155 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
8156
8157         * reload.c (find_reloads): Don't clear badop if we have a winreg
8158         alternative, but not win, and the class only has fixed regs.
8159         * hard-reg-set.h (class_only_fixed_regs): Declare.
8160         * reginfo.c (class_only_fixed_regs): New array.
8161         (init_reg_sets_1): Initialize it.
8162         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
8163         discourage alternatives using the stack pointer.
8164
8165         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
8166
8167         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
8168
8169         * config/arm/arm.md (cbranchqi4): Fix array size.
8170         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
8171         calculating length.
8172
8173 2010-07-09  Richard Guenther  <rguenther@suse.de>
8174
8175         * gimple.c (struct type_fixup_s): New struct and VEC type.
8176         (gimple_register_type_fixups): New static global.
8177         (gimple_queue_type_fixup): New function.
8178         (gimple_types_compatible_p): Queue type fixups instead of
8179         applying them here.
8180         (gimple_register_type): Apply queued fixups for the
8181         canonical type.  Empty the type fixup queue.
8182
8183 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
8184
8185         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
8186         * configure: Regenerate.
8187         * config.in: Ditto.
8188
8189 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
8190             Denys Vlasenko  <dvlasenk@redhat.com>
8191             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8192
8193         PR tree-optimization/28632
8194         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
8195         (extract_range_from_binary_expr): Further optimize
8196         BIT_AND_EXPR and BIT_IOR_EXPR.
8197
8198 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
8199
8200         * tree-if-conv.c (fold_or_predicates): New.
8201         (add_to_predicate_list): Call it.
8202
8203 2010-07-09  Richard Guenther  <rguenther@suse.de>
8204
8205         PR middle-end/44890
8206         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
8207         if base is a pointer.
8208         * tree-cfg.c (verify_expr): Update MEM_REF checking.
8209
8210 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
8211
8212         PR target/44877
8213         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
8214         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
8215         builtin mask for load/store builtins.
8216
8217 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
8218
8219         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
8220         for "lock addl".
8221         * configure: Regenerate.
8222         * config/i386/i386.c (ix86_print_operand) <case ';'>:
8223         Remove TARGET_MACHO.
8224
8225 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
8226
8227         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
8228         default ISA flags.
8229         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
8230
8231 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
8232
8233         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
8234
8235 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
8236
8237         * config/picochip/picochip.md (commsTestPort): Emit more
8238         efficient sequence for tstport instruction.
8239
8240 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
8241
8242         * config/i386/i386.c (ix86_veclib_handler): Make static.
8243
8244 2010-07-09  Richard Guenther  <rguenther@suse.de>
8245
8246         PR tree-optimization/44852
8247         * tree-ssa-alias.c: Include toplev.h for exact_log2.
8248         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
8249         in MEM_REF.
8250         (indirect_refs_may_alias_p): Likewise.
8251         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
8252
8253 2010-07-09  Richard Guenther  <rguenther@suse.de>
8254
8255         PR tree-optimization/44882
8256         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
8257         sets do conflict.
8258         (vectorizable_load): Likewise.
8259
8260 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
8261
8262         PR target/40657
8263         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
8264         All callers changed.
8265         Handle the case when we're called for the epilogue.
8266         (thumb_unexpanded_epilogue): Use it.
8267         (thumb1_expand_epilogue): Likewise.
8268
8269 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
8270
8271         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
8272         both ranges are range_int_cst_p with non-negative minimum,
8273         try harder to derive smaller range.
8274
8275 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8276
8277         * genrecog.c: Include diagnostic-core.h before toplev.h.
8278         * genoutput.c: Likewise.
8279         * genextract.c: Likewise.
8280         * genautomata.c: Likewise.
8281         * genemit.c: Likewise.
8282         * genpeep.c: Likewise.
8283         * genattrtab.c: Likewise.
8284         * genconditions.c: Likewise.
8285         * genpreds.c: Likewise.
8286
8287 2010-07-08  Andi Kleen  <ak@linux.intel.com>
8288
8289         * lto-section-in.c (lto_section_name): Add missing comma.
8290
8291 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
8292
8293         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
8294         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
8295         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
8296         (ia64_override_options): Rename to...
8297         (ia64_option_override): ... this one. Make static.
8298
8299 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8300
8301         PR middle-end/44843
8302         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
8303         pointed-to type of the offset in a MEM_REF to compute the alignment.
8304
8305 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
8306
8307         * final.c (final_scan_insn): Replace
8308         TARGET_UNWIND_INFO macro check by unwind_emit
8309         hook NULL check.
8310         * targhooks.c (default_unwind_emit): Removed.
8311         * targhooks.h (default_unwind_emit): Likewise.
8312         * target.def (unwind_emit): Set default value to NULL.
8313
8314         * config/i386/i386-protos.h (ix86_asm_output_function_label):
8315         New prototype.
8316         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
8317         for NULL fntype argument and allow 64-bit targets.
8318         (ix86_asm_output_function_label): New function.
8319         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
8320         (ix86_handle_fndecl_attribute): Likewise.
8321         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
8322         * doc/doc/tm.texi: Regenerated.
8323         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
8324         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
8325         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
8326         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
8327         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
8328         * config/elfos.h: Likewise.
8329         * config/i386/cygming.h: Likewise.
8330         * config/netbsd-aout.h: Likewise.
8331         * config/openbsd.h: Likewise.
8332         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
8333         by ix86_asm_output_function_label function call.
8334         * varasm.c (assemble_start_function): Use
8335         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
8336
8337 2010-07-08  Jan Hubicka  <jh@suse.cz>
8338
8339         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
8340         New function.
8341         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
8342         Declare.
8343         * ipa-cp.c (ipcp_estimate_growth): Use it.
8344         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
8345         Likewise.
8346
8347 2010-07-08  Jan Hubicka  <jh@suse.cz>
8348
8349         * tree-inline.c (declare_return_variable): Allocate annotation for new
8350         temporary.
8351
8352 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
8353
8354         PR tree-optimization/44710
8355         * tree-if-conv.c (parse_predicate): New.
8356         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
8357         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
8358
8359 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
8360
8361         * common.opt (ftree-loop-if-convert): New flag.
8362         * doc/invoke.texi (ftree-loop-if-convert): Documented.
8363         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
8364         when flag_tree_loop_if_convert is set.
8365
8366 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
8367
8368         * config/i386/i386.c: Use short syntax for function calls
8369         through function pointers.
8370         * config/i386/i386.md: Ditto.
8371
8372 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8373
8374         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
8375
8376 2010-07-08  Richard Guenther  <rguenther@suse.de>
8377
8378         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
8379         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
8380
8381 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
8382
8383         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
8384         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
8385         (loc_list_from_tree): Likewise.
8386         (output_loc_operands): Handle outputting DW_OP_const[48]u
8387         with loc->dtprel set.
8388         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
8389
8390 2010-07-08  Jan Hubicka  <jh@suse.cz>
8391
8392         * ipa.c: Include pointer-set.h
8393         (cgraph_externally_visible_p): New attribute ALIASED;
8394         when in LTO, hidden symbols are local unless they are aliased.
8395         (function_and_variable_visibility): Compute aliased nodes;
8396         handle LTO and hidden symbol on functions and vars.
8397         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
8398         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
8399
8400 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8401
8402         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8403         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8404         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8405         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8406         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8407         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
8408         (ix86_gen_probe_stack_range): Likewise.
8409         (override_options): Set them.
8410         (ix86_target_stack_probe): New function.
8411         (ix86_compute_frame_layout): Force use of push instructions to
8412         save registers if stack checking with probes is enabled.
8413         (get_scratch_register_on_entry): New function.
8414         (release_scratch_register_on_entry): Likewise.
8415         (ix86_adjust_stack_and_probe): Likewise.
8416         (output_adjust_stack_and_probe): Likewise.
8417         (ix86_emit_probe_stack_range): Likewise.
8418         (output_probe_stack_range): Likewise.
8419         (ix86_expand_prologue): Emit stack checking code if static built-in
8420         stack checking is enabled.
8421         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
8422         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
8423         (output_adjust_stack_and_probe): Likewise.
8424         (output_probe_stack_range): Likewise.
8425         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8426         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
8427         TARGET_STACK_PROBE.
8428         (allocate_stack_worker_64): Likewise.
8429         (allocate_stack): Likewise.
8430         (adjust_stack_and_probe): New insn.
8431         (probe_stack_range): Likewise.
8432
8433 2010-07-08  Richard Guenther  <rguenther@suse.de>
8434
8435         PR tree-optimization/44831
8436         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
8437         a MEM_REF preserving TBAA info of the original dereference.
8438         Dereference the original pointer if the address is not invariant.
8439         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
8440         at least one invariant address that we are going to dereference.
8441
8442 2010-07-08  Richard Guenther  <rguenther@suse.de>
8443
8444         PR tree-optimization/44861
8445         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
8446         information when building MEM_REFs.
8447         (vectorizable_load): Likewise.
8448         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
8449
8450 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8451
8452         * config/sol2-c.c: Do not include diagnostic-core.h.
8453
8454 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8455
8456         PR bootstrap/44768
8457         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
8458         with respect to current_function_decl. Pass decl of the function.
8459         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
8460         * ipa-inline.c (compute_inline_parameters): Pass decl to
8461         estimated_stack_frame_size.
8462
8463 2010-07-08  Richard Guenther  <rguenther@suse.de>
8464
8465         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8466         New function.
8467         (valueize_refs): Call it.
8468
8469 2010-07-08  Richard Guenther  <rguenther@suse.de>
8470
8471         PR rtl-optimization/44838
8472         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
8473         SSA form do not use pointer equivalence.
8474
8475 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8476
8477         * dwarf2out.c (AT_linkage_name): Delete.
8478         (add_linkage_attr): New function.
8479         (add_linkage_name): Call it to emit the linkage attribute.
8480         (dwarf2out_finish): Likewise.
8481         (move_linkage_attr): Explicitly accept both attribute variants.
8482
8483 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8484
8485         * toplev.h: Do not include diagnostic-core.h.
8486         Include diagnostic-core.h in every file that includes toplev.h.
8487         * c-tree.h: Do not include toplev.h.
8488         * pretty-print.h: Update comment.
8489         * Makefile.in: Update dependencies.
8490         * alias.c: Include diagnostic-core.h in every file that includes
8491         toplev.h.
8492         * attribs.c: Likewise.
8493         * auto-inc-dec.c: Likewise.
8494         * bb-reorder.c: Likewise.
8495         * bt-load.c: Likewise.
8496         * caller-save.c: Likewise.
8497         * calls.c: Likewise.
8498         * cfg.c: Likewise.
8499         * cfganal.c: Likewise.
8500         * cfgbuild.c: Likewise.
8501         * cfgcleanup.c: Likewise.
8502         * cfghooks.c: Likewise.
8503         * cfgloop.c: Likewise.
8504         * combine.c: Likewise.
8505         * config/alpha/alpha.c: Likewise.
8506         * config/arc/arc.c: Likewise.
8507         * config/arm/arm.c: Likewise.
8508         * config/arm/pe.c: Likewise.
8509         * config/avr/avr.c: Likewise.
8510         * config/bfin/bfin.c: Likewise.
8511         * config/cris/cris.c: Likewise.
8512         * config/crx/crx.c: Likewise.
8513         * config/darwin-c.c: Likewise.
8514         * config/darwin.c: Likewise.
8515         * config/fr30/fr30.c: Likewise.
8516         * config/frv/frv.c: Likewise.
8517         * config/h8300/h8300.c: Likewise.
8518         * config/host-darwin.c: Likewise.
8519         * config/i386/i386.c: Likewise.
8520         * config/i386/netware.c: Likewise.
8521         * config/i386/nwld.c: Likewise.
8522         * config/i386/winnt-cxx.c: Likewise.
8523         * config/i386/winnt-stubs.c: Likewise.
8524         * config/i386/winnt.c: Likewise.
8525         * config/ia64/ia64-c.c: Likewise.
8526         * config/ia64/ia64.c: Likewise.
8527         * config/iq2000/iq2000.c: Likewise.
8528         * config/lm32/lm32.c: Likewise.
8529         * config/m32c/m32c-pragma.c: Likewise.
8530         * config/m32c/m32c.c: Likewise.
8531         * config/m32r/m32r.c: Likewise.
8532         * config/m68hc11/m68hc11.c: Likewise.
8533         * config/m68k/m68k.c: Likewise.
8534         * config/mcore/mcore.c: Likewise.
8535         * config/mep/mep-pragma.c: Likewise.
8536         * config/mep/mep.c: Likewise.
8537         * config/mmix/mmix.c: Likewise.
8538         * config/mn10300/mn10300.c: Likewise.
8539         * config/moxie/moxie.c: Likewise.
8540         * config/pa/pa.c: Likewise.
8541         * config/pdp11/pdp11.c: Likewise.
8542         * config/picochip/picochip.c: Likewise.
8543         * config/rs6000/rs6000-c.c: Likewise.
8544         * config/rs6000/rs6000.c: Likewise.
8545         * config/rx/rx.c: Likewise.
8546         * config/s390/s390.c: Likewise.
8547         * config/score/score.c: Likewise.
8548         * config/score/score3.c: Likewise.
8549         * config/score/score7.c: Likewise.
8550         * config/sh/sh.c: Likewise.
8551         * config/sh/symbian-base.c: Likewise.
8552         * config/sh/symbian-c.c: Likewise.
8553         * config/sh/symbian-cxx.c: Likewise.
8554         * config/sol2-c.c: Likewise.
8555         * config/sol2.c: Likewise.
8556         * config/sparc/sparc.c: Likewise.
8557         * config/spu/spu.c: Likewise.
8558         * config/stormy16/stormy16.c: Likewise.
8559         * config/v850/v850-c.c: Likewise.
8560         * config/v850/v850.c: Likewise.
8561         * config/vax/vax.c: Likewise.
8562         * config/vxworks.c: Likewise.
8563         * config/xtensa/xtensa.c: Likewise.
8564         * convert.c: Likewise.
8565         * cse.c: Likewise.
8566         * cselib.c: Likewise.
8567         * dbgcnt.c: Likewise.
8568         * dbxout.c: Likewise.
8569         * ddg.c: Likewise.
8570         * dominance.c: Likewise.
8571         * emit-rtl.c: Likewise.
8572         * explow.c: Likewise.
8573         * expmed.c: Likewise.
8574         * fixed-value.c: Likewise.
8575         * fold-const.c: Likewise.
8576         * fwprop.c: Likewise.
8577         * gcse.c: Likewise.
8578         * ggc-common.c: Likewise.
8579         * ggc-page.c: Likewise.
8580         * ggc-zone.c: Likewise.
8581         * gimple-low.c: Likewise.
8582         * gimplify.c: Likewise.
8583         * graph.c: Likewise.
8584         * haifa-sched.c: Likewise.
8585         * ifcvt.c: Likewise.
8586         * implicit-zee.c: Likewise.
8587         * integrate.c: Likewise.
8588         * ira-build.c: Likewise.
8589         * ira-color.c: Likewise.
8590         * ira-conflicts.c: Likewise.
8591         * ira-costs.c: Likewise.
8592         * ira-lives.c: Likewise.
8593         * ira.c: Likewise.
8594         * lists.c: Likewise.
8595         * loop-doloop.c: Likewise.
8596         * loop-iv.c: Likewise.
8597         * lto-opts.c: Likewise.
8598         * lto-symtab.c: Likewise.
8599         * main.c: Likewise.
8600         * modulo-sched.c: Likewise.
8601         * optabs.c: Likewise.
8602         * params.c: Likewise.
8603         * plugin.c: Likewise.
8604         * postreload-gcse.c: Likewise.
8605         * postreload.c: Likewise.
8606         * predict.c: Likewise.
8607         * profile.c: Likewise.
8608         * real.c: Likewise.
8609         * regcprop.c: Likewise.
8610         * reginfo.c: Likewise.
8611         * regmove.c: Likewise.
8612         * reorg.c: Likewise.
8613         * resource.c: Likewise.
8614         * rtl.c: Likewise.
8615         * rtlanal.c: Likewise.
8616         * sched-deps.c: Likewise.
8617         * sched-ebb.c: Likewise.
8618         * sched-rgn.c: Likewise.
8619         * sdbout.c: Likewise.
8620         * sel-sched-dump.c: Likewise.
8621         * sel-sched-ir.c: Likewise.
8622         * simplify-rtx.c: Likewise.
8623         * stmt.c: Likewise.
8624         * stor-layout.c: Likewise.
8625         * store-motion.c: Likewise.
8626         * targhooks.c: Likewise.
8627         * tree-cfg.c: Likewise.
8628         * tree-cfgcleanup.c: Likewise.
8629         * tree-dump.c: Likewise.
8630         * tree-eh.c: Likewise.
8631         * tree-inline.c: Likewise.
8632         * tree-nomudflap.c: Likewise.
8633         * tree-object-size.c: Likewise.
8634         * tree-optimize.c: Likewise.
8635         * tree-outof-ssa.c: Likewise.
8636         * tree-phinodes.c: Likewise.
8637         * tree-profile.c: Likewise.
8638         * tree-ssa-ccp.c: Likewise.
8639         * tree-ssa-coalesce.c: Likewise.
8640         * tree-ssa-live.c: Likewise.
8641         * tree-ssa-loop-niter.c: Likewise.
8642         * tree-ssa-loop-prefetch.c: Likewise.
8643         * tree-ssa-loop.c: Likewise.
8644         * tree-ssa-structalias.c: Likewise.
8645         * tree-ssa-uninit.c: Likewise.
8646         * tree-ssa.c: Likewise.
8647         * tree-vect-data-refs.c: Likewise.
8648         * tree-vect-loop-manip.c: Likewise.
8649         * tree-vect-loop.c: Likewise.
8650         * tree-vect-patterns.c: Likewise.
8651         * tree-vect-stmts.c: Likewise.
8652         * tree-vrp.c: Likewise.
8653         * varasm.c: Likewise.
8654         * vec.c: Likewise.
8655         * web.c: Likewise.
8656         * xcoffout.c: Likewise.
8657
8658 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
8659
8660         * gengtype.c (write_field_root): New function.
8661         (write_root): Use it.
8662
8663 2010-07-07  Wei Guozhi  <carrot@google.com>
8664
8665         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
8666         of lowest bits to lshift/compare): Add a missing line.
8667
8668 2010-07-07  Wei Guozhi  <carrot@google.com>
8669
8670         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
8671         of lowest bits to lshift/compare): New.
8672
8673 2010-07-07  Tom Tromey  <tromey@redhat.com>
8674
8675         * doc/tm.texi: Update.
8676         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
8677         Add @hook.
8678         * target.def (want_debug_pub_sections): New hook.
8679         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
8680         * dwarf2out.c (add_pubname_string): Check
8681         targetm.want_debug_pub_sections.
8682         (add_pubname): Likewise.
8683         (add_pubtype): Likewise.
8684
8685 2010-07-07  Jie Zhang  <jie@codesourcery.com>
8686
8687         * genautomata.c (output_automata_list_min_issue_delay_code):
8688         Correctly decompress min_issue_delay.
8689
8690 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8691
8692         PR rtl-optimization/44404
8693         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
8694         possible, use reg_overlap_mentioned_p instead.
8695
8696 2010-07-07  Duncan Sands  <baldrick@free.fr>
8697
8698         PR middle-end/41355
8699         * tree.c (build_function_type_skip_args): Copy the original type using
8700         build_distinct_type_copy rather than copy_node.
8701
8702 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8703
8704         PR target/44850
8705         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
8706         revision 161876.
8707         (ix86_expand_prologue): Likewise.
8708         (ix86_handle_fndecl_attribute): Likewise.
8709         (ix86_asm_declare_function_name): Likewise.
8710         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8711         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8712         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
8713         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
8714         * doc/extend.texi: Likewise.
8715
8716 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8717
8718         PR target/44844
8719         * config/i386/i386.md (rdrand<mode>): Changed to expand to
8720         retry if the carry flag isn't valid.
8721         (rdrand<mode>_1): New.
8722
8723 2010-07-07  Richard Guenther  <rguenther@suse.de>
8724
8725         PR middle-end/44790
8726         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
8727         for expanding the constant offset for MEM_REFs.
8728
8729 2010-07-07  Richard Guenther  <rguenther@suse.de>
8730
8731         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
8732         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
8733         * gimple.h (is_gimple_operand): Remove.
8734         * gimple.c (is_gimple_operand): Likewise.
8735         (walk_gimple_op): Fix wi->val_only setting for calls.
8736         * tree-cfg.c (verify_gimple_call): Fix argument validation.
8737         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
8738         invalid gimple calls.
8739
8740 2010-07-06  Jan Hubicka  <jh@suse.cz>
8741
8742         * lto-cgraph.c (output_cgraph): Add missing declaration.
8743
8744 2010-07-06  Jan Hubicka  <jh@suse.cz>
8745
8746         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
8747         partition.
8748
8749 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
8750
8751         * doc/gimple.texi (GIMPLE_DEBUG): Document.
8752         * doc/rtl.texi (Debug Information): New node.
8753         (NOTE_INSN_VAR_LOCATION): Document.
8754         (debug_insn): Likewise.
8755         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
8756
8757 2010-07-07  Jan Hubicka  <jh@suse.cz>
8758
8759         With parts by Richard Guenther.
8760
8761         PR middle-end/44813
8762         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
8763         for functions passed by reference.
8764         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
8765         in memory when passed by reference.
8766         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
8767         beggining.
8768         * ipa-split.c (split_function): Cleanup way return value is passed;
8769         handle SSA DECL_BY_REFERENCE retvals.
8770         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
8771         DECL_BY_REFERENCE is set.
8772         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
8773         find_what_p_points_to): Handle RESULT_DECL.
8774         * tree-inline.c (declare_return_variable): Get new entry_block argument;
8775         when passing by reference ensure that RESULT_DECL is gimple_val.
8776         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
8777         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
8778
8779 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8780
8781         PR rtl-optimization/44787
8782         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
8783         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
8784
8785 2010-07-06  Jan Hubicka  <jh@suse.cz>
8786
8787         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
8788         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
8789         with body can prevail.
8790         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
8791         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
8792         * cgraph.c (cgraph_get_node_or_alias): New function.
8793         * cgraph.h (cgraph_get_node_or_alias): Declare.
8794
8795 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
8796
8797         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
8798         support.
8799         (ix86_expand_prologue): Likewise.
8800         (ix86_handle_fndecl_attribute): Likewise.
8801         (ix86_asm_declare_function_name): New function for
8802         ASM_DECLARE_FUNCTION_NAME.
8803         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
8804         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
8805         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
8806         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
8807         * doc/extend.texi: Adjust documentation about ms_hook_prologue
8808         attribute.
8809
8810 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8811
8812         * config/i386/i386.md (immediate_operand): New mode attribute.
8813
8814         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
8815         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
8816         using P mode iterator.
8817         (pro_epilogue_adjust_stack_di_2): Rename from
8818         pro_epilogue_adjust_stack_rex64_2.
8819
8820         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
8821
8822 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8823
8824         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
8825         through gen_mov_insv_1 function pointer.
8826         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
8827         gen_truncxf<mode>2 through gen_truncxf function pointer.
8828         (remainder<mode>3): Ditto.
8829         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
8830         (allocate_stack): Call gen_allocate_stack_worker_64 or
8831         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
8832         function pointer.
8833         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
8834         function pointer.
8835
8836 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8837
8838         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
8839         operand constraint instead of <r><i>m.
8840
8841 2010-07-06  Richard Guenther  <rguenther@suse.de>
8842
8843         PR middle-end/44828
8844         * convert.c (convert_to_integer): Watch out for overflowing
8845         MULT_EXPR as well.
8846
8847 2010-07-05  Jan Hubicka  <jh@suse.cz>
8848
8849         * lto-streamer.c (write_symbol_vec): Rename to ...
8850         (write_symbol) ... this one; write only symbol given and when
8851         present in cache. Sanity check that what is defined is present
8852         in cgraph/varpool with body/finalized decl.
8853         (write_symbols_of_kind): Remove.
8854         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
8855         pairs to produce symtab.
8856         (produce_asm_for_decls): Update call of produce_symtab; don't do so
8857         when doing WPA streaming.
8858
8859 2010-07-05  Jan Hubicka  <jh@suse.cz>
8860
8861         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
8862         function is still available to fold into.
8863
8864 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8865
8866         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
8867         * function.h (struct_function): Change type of local_decls field
8868         to a VEC.
8869         (add_local_decl): New function.
8870         (FOR_EACH_LOCAL_DECL): New macro.
8871         * cfgexpand.c (init_vars_expansion): Adjust for new type of
8872         cfun->local_decls.
8873         (estimated_stack_frame_size): Likewise.
8874         (expand_used_vars): Likewise.
8875         * cgraphbuild.c (build_cgraph_edges): Likewise.
8876         * function.c (instantiate_decls_1): Likewise.
8877         * ipa-struct-reorg.c (build_data_structure): Likewise.
8878         * ipa-type-escape.c (analyze_function): Likewise.
8879         * lto-streamer-in.c (input_function): Likewise.
8880         * lto-streamer-out.c (output_function): Likewise.
8881         * tree-ssa-live.c (remove_unused_locals): Likewise.
8882         * tree.c (free_lang_data_in_decl): Likewise.
8883         (find_decls_types_in_node): Likewise.
8884         * omp-low.c (remove_exit_barrier): Likewise.
8885         (expand_omp_taskreg): Likewise.
8886         (list2chain): Rename to...
8887         (vec2chain): ...this.  Adjust.
8888         * cgraphunit.c (assemble_thunk): Call add_local_decl.
8889         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
8890         * gimple-low.c (record_vars_into): Likewise.
8891         * tree-inline.c (remap_decls): Likewise.
8892         (declare_return_variable): Likewise.
8893         (declare_inline_vars): Likewise.
8894         (copy_forbidden): Adjust for new type of cfun->local_decls.
8895         (add_local_variables): New function.
8896         (expand_call_inline): Call it.
8897         (tree_function_versioning): Likewise.
8898
8899 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8900
8901         AVX Programming Reference (June, 2010)
8902         * config/i386/cpuid.h (bit_F16C): New.
8903         (bit_RDRND): Likewise.
8904         (bit_FSGSBASE): Likewise.
8905
8906         * config/i386/i386-builtin-types.def: Add
8907         "DEF_FUNCTION_TYPE (UINT16)", function types for
8908         float16 <-> float conversions and
8909         "DEF_FUNCTION_TYPE (VOID, UINT64)".
8910
8911         * config/i386/i386-c.c (ix86_target_macros_internal): Support
8912         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
8913         OPTION_MASK_ISA_F16C.
8914
8915         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
8916         (OPTION_MASK_ISA_RDRND_SET): Likewise.
8917         (OPTION_MASK_ISA_F16C_SET): Likewise.
8918         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
8919         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
8920         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
8921         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
8922         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
8923         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
8924         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
8925         (override_options): Handle them.
8926         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
8927         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
8928         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
8929         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
8930         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
8931         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
8932         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
8933         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
8934         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
8935         (bdesc_args): Likewise.
8936         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
8937         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
8938         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
8939         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
8940         Handle non-memory store.
8941
8942         * config/i386/i386.h (TARGET_FSGSBASE): New.
8943         (TARGET_RDRND): Likewise.
8944         (TARGET_F12C): Likewise.
8945
8946         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
8947         (UNSPEC_VCVTPS2PH): Likewise.
8948         (UNSPECV_RDFSBASE): Likewise.
8949         (UNSPECV_RDGSBASE): Likewise.
8950         (UNSPECV_WRFSBASE): Likewise.
8951         (UNSPECV_WRGSBASE): Likewise.
8952         (UNSPECV_RDRAND): Likewise.
8953         (rdfsbase<mode>): Likewise.
8954         (rdgsbase<mode>): Likewise.
8955         (wrfsbase<mode>): Likewise.
8956         (wrgsbase<mode>): Likewise.
8957         (rdrand<mode>): Likewise.
8958
8959         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
8960
8961         * config/i386/immintrin.h (_rdrand_u16): New.
8962         (_rdrand_u32): Likewise.
8963         (_readfsbase_u32): Likewise.
8964         (_readfsbase_u64): Likewise.
8965         (_readgsbase_u32): Likewise.
8966         (_readgsbase_u64): Likewise.
8967         (_writefsbase_u32): Likewise.
8968         (_writefsbase_u64): Likewise.
8969         (_writegsbase_u32): Likewise.
8970         (_writegsbase_u64): Likewise.
8971         (_rdrand_u64): Likewise.
8972         (_cvtsh_ss): Likewise.
8973         (_mm_cvtph_ps): Likewise.
8974         (_mm256_cvtph_ps): Likewise.
8975         (_cvtss_sh): Likewise.
8976         (_mm_cvtps_ph): Likewise.
8977         (_mm256_cvtps_ph): Likewise.
8978
8979         * config/i386/sse.md (vcvtph2ps): New.
8980         (*vcvtph2ps_load): Likewise.
8981         (vcvtph2ps256): Likewise.
8982         (vcvtps2ph): Likewise.
8983         (*vcvtps2ph): Likewise.
8984         (*vcvtps2ph_store): Likewise.
8985         (vcvtps2ph256): Likewise.
8986
8987         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
8988
8989         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
8990
8991 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
8992
8993         PR bootstrap/44512
8994         * genenums.c (main): Output include of insn-constants.h
8995         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
8996
8997 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
8998
8999         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
9000         (override_options): Initialize it.
9001         (ix86_expand_prologue): Use it.
9002
9003 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
9004
9005         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
9006
9007 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
9008
9009         * double-int.h (fit_double_type): Remove declaration.
9010         * double-int.c (fit_double_type): Remove function.
9011         * tree.h (int_fits_type_p): Adjust prototype.
9012         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
9013         instead of fit_double_type.
9014         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
9015         instead of fit_double_type and build_int_cst_wide.
9016         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
9017         instead of fit_double_type and build_int_cst_wide.
9018         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
9019         of fit_double_type.
9020
9021 2010-07-05  Jan Hubicka  <jh@suse.cz>
9022
9023         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
9024         in_other_partition.
9025         * lto-cgraph.c (referenced_from_other_partition_p,
9026         reachable_from_other_partition_p): Use in_other_partition flags.
9027         (output_node, output_varpool_node): COMDAT nodes always have private
9028         copies and thus are never used from other partition.
9029
9030 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
9031
9032         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
9033         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
9034         * config/ia64/ia64.c Include reload.h.
9035         (ia64_memory_move_cost): New function.
9036         (TARGET_MEMORY_MOVE_COST): Define.
9037         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
9038         memory_move_cost.
9039
9040 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
9041
9042         PR middle-end/42505
9043         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
9044         comments about cost model.
9045         (try_add_cand_for):  Add second strategy for choosing initial set
9046         based on original IVs, controlled by ORIGINALP argument.
9047         (get_initial_solution): Add ORIGINALP argument.
9048         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
9049         (find_optimal_iv_set): Try two different strategies for choosing
9050         the IV set, and return the one with lower cost.
9051
9052 2010-07-05  Richard Guenther  <rguenther@suse.de>
9053
9054         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
9055
9056 2010-07-05  Richard Guenther  <rguenther@suse.de>
9057
9058         * tree.c (reference_alias_ptr_type): New function.
9059         * tree.h (reference_alias_ptr_type): Declare.
9060         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
9061         allow non-TARGET_MEM_REF new refs.
9062         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
9063         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
9064         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
9065         (create_mem_ref): Get alias pointer type.  Adjust calls to
9066         create_mem_ref_raw.
9067         (maybe_fold_tmr): Likewise.
9068         * tree-flow.h (create_mem_ref): Adjust prototype.
9069
9070 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
9071
9072         PR c++/44808
9073         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
9074         *from_p is VAR_DECL.
9075
9076 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
9077
9078         * tree.h (build_call_list): Remove.
9079         * tree.c (build_call_list): Remove.
9080
9081 2010-07-05  Richard Guenther  <rguenther@suse.de>
9082
9083         * double-int.h (double_int_sub): Declare.
9084         * double-int.c (double_int_sub): New function.
9085         * dwarf2out.c (field_byte_offset): Use it.
9086         * fixed-value.c (do_fixed_add): Likewise.
9087         (do_fixed_multiply): Likewise.
9088         (do_fixed_divide): Likewise.
9089         * tree-predcom.c (add_ref_to_chain): Likewise.
9090         (determine_roots_comp): Likewise.
9091         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
9092
9093 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
9094
9095         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
9096         implementations.
9097
9098 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
9099
9100         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
9101         * arm-modes.def (CC_NOTB): Don't define.
9102         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
9103         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
9104         (LTUGEU): New code_iterator.
9105         (cnb, optab): New corresponding code_attrs.
9106         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
9107         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
9108         using LTUGEU.
9109         (addsi3_carryin_shift_<optab>): Likewise.
9110         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
9111         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
9112         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
9113         (subsi3_compare): Renamed from subsi3_compare0_c.
9114         Change CC_NOTB to CC.
9115         (arm_subsi3_insn): Allow constants for operand 0.
9116         (compare_scc peephole for eq case): New.
9117         (compare_scc splitters): Change CC_NOTB to CC.
9118
9119 2010-07-05  Richard Guenther  <rguenther@suse.de>
9120
9121         * tree-ssa-loop-im.c (for_each_index): Do not handle
9122         ALIGN_INDIRECT_REF.
9123         (gen_lsm_tmp_name): Likewise.
9124         * tree-dump.c (dequeue_and_dump): Likewise.
9125         * tree-pretty-print.c (dump_generic_node): Likewise.
9126         (op_code_prio): Likewise.
9127         (op_symbol_code): Likewise.
9128         * tree.c (staticp): Likewise.
9129         (build1_stat): Likewise.
9130         * tree.h (INDIRECT_REF_P): Likewise.
9131         * fold-const.c (maybe_lvalue_p): Likewise.
9132         (operand_equal_p): Likewise.
9133         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9134         (ao_ref_init_from_vn_reference): Likewise.
9135         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
9136         (find_interesting_uses_address): Likewise.
9137         * dwarf2out.c (loc_list_from_tree): Likewise.
9138         * gimplify.c (gimplify_expr): Likewise.
9139         * tree-eh.c (tree_could_trap_p): Likewise.
9140         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9141         * cfgexpand.c (expand_debug_expr): Likewise.
9142         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9143         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
9144         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
9145         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
9146         * tree-ssa-operands.c (get_expr_operands): Likewise.
9147         * expr.c (safe_from_p): Likewise.
9148         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
9149         * tree-vect-data-refs.c (vect_setup_realignment): Build
9150         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
9151         * tree-vect-stmts.c (vectorizable_load): Likewise.
9152         * tree.def (ALIGN_INDIRECT_REF): Remove.
9153
9154 2010-07-05  Richard Guenther  <rguenther@suse.de>
9155
9156         PR tree-optimization/44784
9157         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
9158         for inserted stmts.
9159         (find_or_generate_expression): Fix SCCVN insertion check.
9160
9161 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
9162
9163         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
9164         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
9165         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
9166         directives.
9167
9168 2010-07-05  Ira Rosen  <irar@il.ibm.com>
9169
9170         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
9171         statements that are not vectorized.
9172         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
9173         in INSIDE_COST.
9174
9175 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
9176
9177         PR bootstrap/44820
9178         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
9179
9180 2010-07-05  Richard Guenther  <rguenther@suse.de>
9181
9182         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
9183         RESULT_DECLs properly.
9184
9185 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
9186
9187         PR rtl-optimization/44695
9188         * config/i386/i386.md (extract_code): Removed.
9189         (<u>divmodqi4): Likewise.
9190         (divmodqi4): New.
9191         (udivmodqi4): Likewise.
9192         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
9193         (udivmodhiqi3): Likewise.
9194
9195 2010-07-04  Jan Hubicka  <jh@suse.cz>
9196
9197         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
9198
9199 2010-07-04  Jan Hubicka  <jh@suse.cz>
9200
9201         * cgraphunit.c (init_cgraph): Only initialize dump file if it
9202         is not already initialized.
9203
9204 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
9205
9206         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
9207         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
9208         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
9209         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
9210         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
9211         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
9212         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
9213         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
9214         (sync_new_nand_optab): Redefine as macros.
9215         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
9216         Delete.
9217         (direct_optab_index): New enum.
9218         (direct_optab_d): New structure.
9219         (direct_optab): New typedef.
9220         (direct_optab_table): Declare.
9221         (direct_optab_handler, set_direct_optab_handler): New functions.
9222         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
9223         (sync_lock_release_optab): New macros.
9224         * optabs.c (direct_optab_table): New variable.
9225         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
9226         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
9227         cmpstr_optab and cmpstrn_optab.
9228         (emit_conditional_move): Likewise for movcc_optab.
9229         (can_conditionally_move_p): Likewise for movcc_gen_code.
9230         (init_insn_codes): Clear direct_optab_table.
9231         (init_optabs): Don't initialize the new "direct optabs" here.
9232         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
9233         vcond_gen_code.
9234         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
9235         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
9236         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
9237         (expand_sync_operation): Likewise other sync_*_optabs.
9238         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
9239         to sync_compare_and_swap_optab.
9240         (expand_sync_lock_test_and_set): Use direct_optab_handler for
9241         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
9242         to the names of both.
9243         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
9244         cmpstr_optab and cmpstrn_optab.
9245         (expand_builtin_lock_release): Likewise sync_lock_release.
9246         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
9247         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
9248         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
9249         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
9250         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
9251         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
9252         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
9253         (sync_lock_test_and_set, sync_lock_release): Delete.
9254         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
9255         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
9256         * genopinit.c (optabs): Use set_direct_optab_handler for the new
9257         macro optabs.
9258         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
9259         the "optab" local variable.  Use direct_optab_handler for optab and
9260         sync_compare_and_swap_optab.
9261         * reload1.c (reload_in_optab, reload_out_optab): Delete.
9262         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
9263         reload_in_optab and reload_out_optab.
9264         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
9265         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
9266         * config/pa/pa.c (pa_secondary_reload): Likewise.
9267         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
9268         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
9269         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
9270         (VMSupportsCS8_builtin): Likewise.
9271
9272 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
9273
9274         * optabs.h (optab_handlers): Change type of insn_code to int.
9275         (optab_handler, set_optab_handler, convert_optab_handler)
9276         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
9277         CODE_FOR_nothing".
9278         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
9279         (init_insn_codes): Zero both the above arrays.
9280         (init_optabs): Never call init_insn_codes first time around.
9281
9282 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
9283
9284         * optabs.h (optab_handler, convert_optab_handler): Turn into
9285         inline functions that return an insn code.
9286         (set_optab_handler, set_convert_optab_handler): New functions.
9287         * builtins.c: Replace optab_handler(X)->insn_code with
9288         optab_handler or set_optab_handler thoughout.  Likewise
9289         convert_optab_handler(X)->insn_code with convert_optab_handler
9290         and set_convert_optab_handler.
9291         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
9292         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
9293         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
9294         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
9295         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
9296         config/spu/spu.c: Likewise.
9297
9298 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9299
9300         PR target/44531
9301         * config.gcc (sh*-*-*): Use regular expressions instead of
9302         the 'i' modifier for sed substitutions.
9303
9304 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
9305
9306         * gimple.c (gimple_body): Comments added.
9307
9308 2010-07-04  Richard Guenther  <rguenther@suse.de>
9309
9310         PR middle-end/44809
9311         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
9312         of an INDIRECT_REF.
9313
9314 2010-07-04  Richard Guenther  <rguenther@suse.de>
9315
9316         PR tree-optimization/44479
9317         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
9318         extra SSA name copy statements which preserves points-to
9319         information.
9320         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9321         Copy points-to information for all pointers.  Properly handle
9322         MEM_REFs.
9323         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
9324         copy statements.
9325         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
9326         dependency.
9327
9328 2010-07-04  Richard Guenther  <rguenther@suse.de>
9329
9330         PR middle-end/44785
9331         * tree-inline.c (initialize_inlined_parameters): Do not
9332         re-use pointer-map slot over remap_type call.
9333
9334 2010-07-04  Richard Guenther  <rguenther@suse.de>
9335
9336         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
9337
9338 2010-07-04  Richard Guenther  <rguenther@suse.de>
9339
9340         PR tree-optimization/44656
9341         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
9342         again after value-replacing in the defintions lhs.
9343
9344 2010-07-04  Ira Rosen  <irar@il.ibm.com>
9345             Revital Eres  <eres@il.ibm.com>
9346
9347         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
9348         Document new arguments.
9349         * doc/tm.texi: Regenerate.
9350         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
9351         Handle unaligned store.
9352         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
9353         * target.def (builtin_vectorization_cost): Add new arguments.
9354         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
9355         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
9356         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
9357         (vect_vfa_segment_size): Fix indentation.
9358         * tree-vectorizer.h (struct _vect_peel_info): New.
9359         (struct _vect_peel_extended_info): New.
9360         (struct _loop_vec_info): Add new field for peeling hash table and a
9361         macro for its access.
9362         (VECT_MAX_COST): Define.
9363         (vect_get_load_cost): Declare.
9364         (vect_get_store_cost, vect_get_known_peeling_cost,
9365         vect_get_single_scalar_iteraion_cost): Likewise.
9366         (vect_supportable_dr_alignment): Add new argument.
9367         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
9368         field.
9369         (destroy_loop_vec_info): Free peeling hash table.
9370         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
9371         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
9372         vect_analyze_slp. Fix indentation.
9373         (vect_get_single_scalar_iteraion_cost): New function.
9374         (vect_get_known_peeling_cost): Likewise.
9375         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
9376         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
9377         statement. Move outside cost calculation inside unknown peeling case.
9378         Call vect_get_known_peeling_cost for known amount of peeling.
9379         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
9380         reference to the print message of forced alignment.
9381         (vect_verify_datarefs_alignment): Update call to
9382         vect_supportable_dr_alignment.
9383         (vect_get_data_access_cost): New function.
9384         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
9385         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
9386         vect_peeling_hash_choose_best_peeling): Likewise.
9387         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
9388         to store all the accesses in the loop and find best possible access to
9389         align using peeling for known alignment case. For unknown alignment
9390         check if stores are preferred or if peeling is worthy.
9391         (vect_find_same_alignment_drs): Analyze pairs of loads too.
9392         (vect_supportable_dr_alignment): Add new argument and check aligned
9393         accesses according to it.
9394         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
9395         (cost_for_stmt): Call vect_get_stmt_cost.
9396         (vect_model_simple_cost): Likewise.
9397         (vect_model_store_cost): Call vect_get_stmt_cost. Call
9398         vect_get_store_cost to calculate the cost of the statement.
9399         (vect_get_store_cost): New function.
9400         (vect_model_load_cost): Call vect_get_stmt_cost. Call
9401         vect_get_load_cost to calculate the cost of the statement.
9402         (vect_get_load_cost): New function.
9403         (vectorizable_store): Update call to vect_supportable_dr_alignment.
9404         (vectorizable_load): Likewise.
9405         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
9406         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
9407         arguments. Handle unaligned store.
9408         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
9409         (rs6000_builtin_support_vector_misalignment): Return true for word and
9410         double word alignments for VSX.
9411         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
9412         vect_supportable_dr_alignment and builtin_vectorization_cost.
9413
9414 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9415
9416         PR target/44597
9417         * config/pa/predicates.md (prefetch_cc_operand): Remove.
9418         (prefetch_nocc_operand): Likewise.
9419         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
9420         (prefetch_20): New insn.
9421         (prefetch_cc): Remove.
9422         (prefetch_nocc): Likewise.
9423
9424 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9425
9426         * expr.c (vector_mode_valid_p): Move to c-common.c.
9427         * expr.h (vector_mode_valid_p): Do not declare here.
9428         * system.h: Poison GCC_EXPR_H in front-ends.
9429         * Makefile.in: Update dependencies.
9430
9431 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9432
9433         PR target/44705
9434         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
9435
9436 2010-07-03  Jan Hubicka  <jh@suse.cz>
9437
9438         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
9439         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
9440         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
9441         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
9442         Likewise.
9443
9444         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
9445         Update timevars.V
9446         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
9447         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
9448         TV_IPA_LTO_DECL_OUT): New.
9449         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
9450
9451 2010-07-03  Jan Hubicka  <jh@suse.cz>
9452
9453         * ipa-inline.c (update_edge_key): Break out from ...
9454         update_callers_keys): ... here;
9455         (update_callee_keys): Update only the edges from caller to callee.
9456         (update_all_calle_keys): Do what update_calle_keys did.
9457         (decide_inlining_of_small_functions): Avoid recomputing of all
9458         callees when badness increase.
9459
9460 2010-07-03  Jie Zhang  <jie@codesourcery.com>
9461
9462         * config/arm/arm.c (arm_attr_length_move_neon): New.
9463         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
9464         * config/arm/neon.md (define_mode_attr V_slen): Remove.
9465         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
9466         to compute length attribute.
9467
9468 2010-07-03  Jie Zhang  <jie@codesourcery.com>
9469
9470         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
9471         as predicate for operand 1 and remove its constraint.
9472         * config/arm/predicates.md (vfp_register_operand): New.
9473         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
9474         (*push_fp_multi): Likewise.
9475
9476 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
9477
9478         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
9479
9480 2010-07-03  Jan Hubicka  <jh@suse.cz>
9481
9482         * config/i386/i386.c (override_options): Revert accidental commit.
9483
9484 2010-07-02  Le-Chun Wu  <lcwu@google.com>
9485
9486         PR c++/44128
9487         * doc/invoke.texi: Update documentation of -Wshadow.
9488
9489 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
9490             Julian Brown  <julian@codesourcery.com>
9491             Sandra Loosemore <sandra@codesourcery.com>
9492
9493         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
9494         comparisons.  Adjust to take both operands.
9495         (arm_select_cc_mode): Handle DImode comparisons.
9496         (arm_gen_compare_reg): Generate a scratch register for DImode
9497         comparisons which require one.  Use xor for Thumb equality checks.
9498         (arm_const_double_by_immediates): New.
9499         (arm_print_operand): Allow 'Q' and 'R' for constants.
9500         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
9501         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
9502         arm_canonicalize_comparison.
9503         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
9504         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9505         prototype.
9506         (arm_const_double_by_immediates): Declare.
9507         * config/arm/constraints.md (Di): New constraint.
9508         * config/arm/predicates.md (arm_immediate_di_operand)
9509         (arm_di_operand, cmpdi_operand): New.
9510         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
9511         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
9512         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
9513         (cstoredi4): Handle non-Cirrus also.
9514
9515 2010-07-02  Julian Brown  <julian@codesourcery.com>
9516             Sandra Loosemore <sandra@codesourcery.com>
9517
9518         PR target/43703
9519         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
9520         (smax<mode>3): Disable for NEON float modes when
9521         flag_unsafe_math_optimizations is false.
9522         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
9523         (*mul<mode>3_neon)
9524         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
9525         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
9526         for NEON float modes when flag_unsafe_math_optimizations is false.
9527         (quad_halves_<code>v4sf): Only enable if
9528         flag_unsafe_math_optimizations is true.
9529         * doc/invoke.texi (ARM Options): Add note about floating point
9530         vectorization requiring -funsafe-math-optimizations.
9531
9532 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9533             Julian Brown  <julian@codesourcery.com>
9534
9535         * config/arm/neon.md (UNSPEC_VABA): Delete.
9536         (UNSPEC_VABAL): Delete.
9537         (UNSPEC_VABS): Delete.
9538         (UNSPEC_VMUL_N): Delete.
9539         (adddi3_neon): New.
9540         (subdi3_neon): New.
9541         (mul<mode>3add<mode>_neon): Make the pattern named.
9542         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
9543         (neon_vadd<mode>): Replace with define_expand, and move the remaining
9544         unspec parts...
9545         (neon_vadd<mode>_unspec): ...to this.
9546         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
9547         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
9548         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
9549         (neon_vaba<mode>): Rewrite in terms of vabd.
9550         (neon_vabal<mode>): Rewrite in terms of vabdl.
9551         (neon_vabs<mode>): Rewrite without unspec.
9552         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
9553         (*arm_subdi3): Likewise.
9554         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
9555         No_op attribute to disable assembly output checks.
9556         * config/arm/arm_neon.h: Regenerated.
9557         * doc/arm-neon-intrinsics.texi: Regenerated.
9558
9559 2010-07-02  Jan Hubicka  <jh@suse.cz>
9560
9561         * ipa-split.c (split_function): For aggregate values, set the return
9562         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
9563         *<retval> = fncall.part ().
9564         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
9565
9566 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9567
9568         * config/arm/neon.md (UNSPEC_VAND): Delete.
9569         (UNSPEC_VBIC): Delete.
9570         (UNSPEC_VCLZ): Delete.
9571         (UNSPEC_VCNT): Delete.
9572         (UNSPEC_VEOR): Delete.
9573         (UNSPEC_VORN): Delete.
9574         (UNSPEC_VORR): Delete.
9575         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
9576         core registers too.
9577         (anddi3_neon): Likewise.
9578         (orndi3_neon): Likewise.
9579         (bicdi3_neon): Likewise.
9580         (xordi3_neon): Likewise.
9581         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
9582         rid of unspec and handle unused operand.
9583         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
9584         * config/arm/predicates.md (imm_for_neon_logic_operand):
9585         Require TARGET_NEON.
9586         (imm_for_neon_inv_logic_operand): Likewise.
9587         * config/arm/arm.md (define_split for logical_binary_operator):
9588         Disable for NEON registers.
9589         (anddi3): Add new define_expand, and rename the insn.  Disable
9590         this insn for NEON, where anddi3_neon now applies.
9591         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
9592         (iordi3): As for anddi3.
9593         (xordi3): Likewise.
9594         * config/arm/neon.ml (Vand): Split DImode variants and mark them
9595         as No_op to disable testing for exact instruction match.
9596         (Vorr): Likewise.
9597         (Veor): Likewise.
9598         (Vbic): Likewise.
9599         (Vorn): Likewise.
9600         * config/arm/arm_neon.h: Regenerated.
9601         * doc/arm-neon-intrinsics.texi: Regenerated.
9602
9603 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9604
9605         * expr.h (emit_stack_probe): Declare.
9606         * explow.c (emit_stack_probe): Make global.
9607         (anti_adjust_stack_and_probe): Fix comments.
9608         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9609         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9610         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9611         * config/sparc/sparc.c: Include except.h.
9612         (sparc_emit_probe_stack_range): New function.
9613         (output_probe_stack_range): Likewise.
9614         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
9615         built-in stack checking is enabled.
9616         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
9617         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9618         (probe_stack_range): New insn.
9619
9620 2010-07-02  Richard Guenther  <rguenther@suse.de>
9621
9622         PR target/43958
9623         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
9624         for argument alignment.
9625
9626 2010-07-02  Jan Hubicka  <jh@suse.cz>
9627
9628         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
9629         walk backwards from entry_bb to check only those basic block of header
9630         that might lead to execution of split part.
9631         (consider_split) ... here.
9632         (find_return_bb): Allow assignment in return BB.
9633         (find_retval): New.
9634         (split_function): Fix name of cloned function; take care of updating
9635         return value in return_bb containing move.
9636
9637 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
9638
9639         PR target/44771
9640         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
9641         used variable insn.
9642
9643 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9644
9645         * implicit-zee.c (combine_reaching_defs): Fix long lines.
9646         (is_set_with_extension_DI): Delete.
9647         (struct zero_extend_info): New structure.
9648         (add_removable_zero_extend): New function.
9649         (find_removable_zero_extends): Use note_stores to find SETs.
9650         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
9651
9652 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
9653
9654         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
9655         is_miss_rate_acceptable. Pull total_positions computation
9656         out of the loops.  Early return if miss_positions exceeds
9657         the acceptable threshold.
9658         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
9659         is_miss_rate_acceptable after renaming of compute_miss_rate.
9660
9661 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
9662
9663         PR middle-end/44576
9664         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
9665         of 1000) for miss rate if the address diference is greater than or
9666         equal to the cache line size (the two reference will never hit the
9667         same cache line).
9668
9669 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
9670
9671         PR target/42835
9672         * config/arm/arm-modes.def (CC_NOTB): New mode.
9673         * config/arm/arm.c (get_arm_condition_code): Handle it.
9674         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
9675         * config/arm/arm.md (subsi3_compare0_c): New pattern.
9676         (compare_scc): Now a define_and_split.  Add a number of extra
9677         splitters before it.
9678
9679         PR target/42172
9680         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
9681         and ZERO_EXTEND.
9682         (arm_rtx_costs_1): Likewise.
9683         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
9684         * config/arm/arm.md (is_arch6): New attribute.
9685         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
9686         extendqisi2): Tighten the code somewhat, avoiding invalid
9687         RTL to occur in the expander patterns.
9688         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
9689         (thumb1_zero_extendhisi2_v6): Delete.
9690         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
9691         (thumb1_extendhisi2_v6): Delete.
9692         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
9693         (thumb1_extendqisi2_v6): Delete.
9694         (zero_extendhisi2 for register input splitter): New.
9695         (zero_extendqisi2 for register input splitter): New.
9696         (thumb1_extendhisi2 for register input splitter): New.
9697         (extendhisi2 for register input splitter): New.
9698         (extendqisi2 for register input splitter): New.
9699         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
9700         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
9701         and add support for a register alternative requiring a split.
9702         (thumb1_zero_extendqisi2): Likewise.
9703         (arm_zero_extendqisi2): Likewise.
9704         (arm_extendhisi2): Likewise.
9705         (arm_extendqisi2): Likewise.
9706
9707 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9708
9709         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
9710         instead of an unspec.
9711         (neon_expand_vector_init): Likewise.
9712         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
9713         (UNSPEC_VDUP_LANE): Delete.
9714         (UNSPEC VDUP_N): Delete.
9715         (UNSPEC_VGET_HIGH): Delete.
9716         (UNSPEC_VGET_LANE): Delete.
9717         (UNSPEC_VGET_LOW): Delete.
9718         (UNSPEC_VMVN): Delete.
9719         (UNSPEC_VSET_LANE): Delete.
9720         (V_double_vector_mode): New.
9721         (vec_set<mode>_internal): Make code emitted match that for the
9722         corresponding intrinsics.
9723         (vec_setv2di_internal): Likewise.
9724         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
9725         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
9726         (neon_vset_lane<mode>): Combine double and quad patterns and
9727         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
9728         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
9729         (neon_vdup_n<mode>): Rewrite RTL without unspec.
9730         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
9731         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
9732         with neon_vdup_lanev2di, adjusting the pattern from the latter
9733         to be predicable for consistency.
9734         (neon_vdup_lane<mode>_internal): New.
9735         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
9736         to avoid using an unspec.
9737         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
9738         (neon_vdup_lanev2di): Turn into a define_expand.
9739         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
9740         (neon_vget_high<mode>): Replace with....
9741         (neon_vget_highv16qi): New pattern using canonical RTL.
9742         (neon_vget_highv8hi): Likewise.
9743         (neon_vget_highv4si): Likewise.
9744         (neon_vget_highv4sf): Likewise.
9745         (neon_vget_highv2di): Likewise.
9746         (neon_vget_low<mode>): Replace with....
9747         (neon_vget_lowv16qi): New pattern using canonical RTL.
9748         (neon_vget_lowv8hi): Likewise.
9749         (neon_vget_lowv4si): Likewise.
9750         (neon_vget_lowv4sf): Likewise.
9751         (neon_vget_lowv2di): Likewise.
9752
9753         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
9754         test for this emitting vmov.
9755         (Vset_lane): Likewise.
9756         (Vdup_n): Likewise.
9757         (Vmov_n): Likewise.
9758
9759         * doc/arm-neon-intrinsics.texi: Regenerated.
9760
9761 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9762
9763         * config/arm/neon.md (vec_extractv2di): Correct error in register
9764         numbering to reconcile with neon_vget_lanev2di.
9765
9766 2010-07-02  Richard Guenther  <rguenther@suse.de>
9767
9768         * tree-ssa-structalias.c (pt_solution_set_var): New function.
9769         * tree-ssa-alias.h (pt_solution_set_var): Declare.
9770         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
9771         points-to information.
9772
9773 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
9774
9775         * config/s390/s390.c (override_options): Adopt prefetching
9776         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
9777
9778 2010-07-02  Jan Hubicka  <jh@suse.cz>
9779
9780         * df-problems.c (df_kill_notes): Do not collect dead  notes.
9781         (df_set_note): Just call add_reg_note.
9782         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
9783         df_create_unused_note): Do not deal with lists of old notes.
9784         (df_note_bb_compute): Likewise.
9785
9786 2010-07-02  Richard Guenther  <rguenther@suse.de>
9787
9788         * tree-ssa-structalias.c (find_func_aliases): Handle
9789         pointer alignment via BIT_AND_EXPR.
9790         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
9791
9792 2010-07-02  Richard Guenther  <rguenther@suse.de>
9793
9794         * tree-data-ref.c (initialize_data_dependence_relation): Handle
9795         mismatching number of dimensions properly.
9796
9797 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9798
9799         PR target/44707
9800         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
9801         (lo_sum (high ...) ...) patterns generated by earlier passes.
9802
9803 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9804
9805         * doc/install.texi (Prerequisites): Document Perl requirement on
9806         Solaris 2.
9807         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
9808
9809 2010-07-02  Richard Guenther  <rguenther@suse.de>
9810
9811         PR middle-end/44777
9812         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
9813
9814 2010-07-02  Jan Hubicka  <jh@suse.cz>
9815
9816         PR middle-end/44706
9817         * predict.c (predict_paths_for_bb): Handle case when control dependence
9818         BB has only abnormal edges.
9819
9820 2010-07-02  Richard Guenther  <rguenther@suse.de>
9821
9822         PR tree-optimization/44748
9823         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
9824         the embedded conversion in MEM_REFs.
9825
9826 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
9827
9828         * reload.c: Include toplev.h.
9829         * recog.c:  Likewise.
9830         * Makefile.in: Adjust dependencies.
9831
9832 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
9833
9834         PR debug/44694
9835         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
9836         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
9837
9838 2010-07-01  Richard Guenther  <rguenther@suse.de>
9839
9840         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
9841         types for offsets.
9842
9843 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
9844
9845         PR target/44732
9846         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
9847         Fix argument types.
9848
9849 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
9850
9851         PR target/44727
9852         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9853         Make sure operand 0 dies.
9854
9855 2010-07-01  Richard Guenther  <rguenther@suse.de>
9856
9857         PR middle-end/42834
9858         PR middle-end/44468
9859         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
9860         * doc/generic.texi (References to storage): Document MEM_REF.
9861         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
9862         (print_call_name): Likewise.
9863         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
9864         (build_simple_mem_ref_loc): New function.
9865         (mem_ref_offset): Likewise.
9866         * tree.h (build_simple_mem_ref_loc): Declare.
9867         (build_simple_mem_ref): Define.
9868         (mem_ref_offset): Declare.
9869         * fold-const.c: Include tree-flow.h.
9870         (operand_equal_p): Handle MEM_REF.
9871         (build_fold_addr_expr_with_type_loc): Likewise.
9872         (fold_comparison): Likewise.
9873         (fold_unary_loc): Fold
9874         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
9875         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
9876         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
9877         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
9878         (ptr_deref_may_alias_ref_p_1): Likewise.
9879         (ao_ref_base_alias_set): Properly differentiate base object for
9880         offset and TBAA.
9881         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
9882         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
9883         (indirect_refs_may_alias_p): Likewise.
9884         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
9885         chasing code.
9886         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
9887         (call_may_clobber_ref_p_1): Likewise.
9888         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
9889         * expr.c (expand_assignment): Handle MEM_REF.
9890         (store_expr): Handle MEM_REFs from STRING_CSTs.
9891         (store_field): If expanding a MEM_REF of a non-addressable
9892         decl use bitfield operations.
9893         (get_inner_reference): Handle MEM_REF.
9894         (expand_expr_addr_expr_1): Likewise.
9895         (expand_expr_real_1): Likewise.
9896         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
9897         * alias.c (ao_ref_from_mem): Handle MEM_REF.
9898         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
9899         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
9900         (dr_analyze_indices): Likewise.
9901         (dr_analyze_alias): Likewise.
9902         (object_address_invariant_in_loop_p): Likewise.
9903         * gimplify.c (mark_addressable): Handle MEM_REF.
9904         (gimplify_cond_expr): Build MEM_REFs.
9905         (gimplify_modify_expr_to_memcpy): Likewise.
9906         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
9907         (gimple_fold_indirect_ref): Adjust.
9908         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
9909         * tree.def (MEM_REF): New tree code.
9910         * tree-dfa.c: Include toplev.h.
9911         (get_ref_base_and_extent): Handle MEM_REF.
9912         (get_addr_base_and_unit_offset): New function.
9913         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
9914         * gimple-fold.c (may_propagate_address_into_dereference): Handle
9915         MEM_REF.
9916         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
9917         accesses if the array has just one dimension.  Remove always true
9918         parameter.  Do not require type compatibility here.
9919         (maybe_fold_offset_to_component_ref): Remove.
9920         (maybe_fold_stmt_indirect): Remove.
9921         (maybe_fold_reference): Remove INDIRECT_REF handling.
9922         Fold back to non-MEM_REF.
9923         (maybe_fold_offset_to_address): Simplify.  Deal with type
9924         mismatches here.
9925         (maybe_fold_reference): Likewise.
9926         (maybe_fold_stmt_addition): Likewise.  Also handle
9927         &ARRAY + I in addition to &ARRAY[0] + I.
9928         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
9929         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
9930         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
9931         * tree-ssa.c (useless_type_conversion_p): Make most pointer
9932         conversions useless.
9933         (warn_uninitialized_var): Handle MEM_REF.
9934         (maybe_rewrite_mem_ref_base): New function.
9935         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
9936         to SSA form.
9937         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
9938         INDIRECT_REF handling.
9939         (copy_tree_body_r): Handle MEM_REF.
9940         * gimple.c (is_gimple_addressable): Adjust.
9941         (is_gimple_address): Likewise.
9942         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
9943         invariant base are invariant.
9944         (is_gimple_min_lval): Adjust.
9945         (is_gimple_mem_ref_addr): New function.
9946         (get_base_address): Handle MEM_REF.
9947         (count_ptr_derefs): Likewise.
9948         (get_base_loadstore): Likewise.
9949         * gimple.h (is_gimple_mem_ref_addr): Declare.
9950         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
9951         * tree-cfg.c (verify_address): New function, split out from ...
9952         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
9953         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
9954         INDIRECT_REFs.
9955         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
9956         INDIRECT_REF.  Allow conversions.
9957         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
9958         a register does not change its size.
9959         (verify_types_in_gimple_reference): Verify MEM_REF.
9960         (verify_gimple_assign_single): Disallow INDIRECT_REF.
9961         Handle MEM_REF.
9962         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
9963         New.
9964         (mark_address_taken): Handle MEM_REF.
9965         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
9966         (get_asm_expr_operands): Pass opf_not_non_addressable.
9967         (get_expr_operands): Handle opf_[not_]non_addressable.
9968         Handle MEM_REF.  Remove INDIRECT_REF handling.
9969         * tree-vrp.c (check_array_ref): Handle MEM_REF.
9970         (search_for_addr_array): Likewise.
9971         (check_array_bounds): Likewise.
9972         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
9973         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
9974         (ref_always_accessed_p): Likewise.
9975         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
9976         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
9977         Handle MEM_REF.
9978         * cgraphbuild.c (mark_load): Properly check for NULL result
9979         from get_base_address.
9980         (mark_store): Likewise.
9981         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
9982         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
9983         handling for MEM_REF.
9984         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
9985         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
9986         * builtins.c (stabilize_va_list_loc): Use the function ABI
9987         valist type if we couldn't canonicalize the argument type.
9988         Always dereference with the canonical va-list type.
9989         (maybe_emit_free_warning): Handle MEM_REF.
9990         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
9991         memmove to memcpy.
9992         * builtins.c (fold_builtin_memory_op): Use ref-all types
9993         for all memcpy foldings.
9994         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
9995         (build_outer_var_ref): Likewise.
9996         (scan_omp_1_op): Likewise.
9997         (lower_rec_input_clauses): Likewise.
9998         (lower_lastprivate_clauses): Likewise.
9999         (lower_reduction_clauses): Likewise.
10000         (lower_copyprivate_clauses): Likewise.
10001         (expand_omp_atomic_pipeline): Likewise.
10002         (expand_omp_atomic_mutex): Likewise.
10003         (create_task_copyfn): Likewise.
10004         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
10005         Remove old union trick.  Initialize constant offsets.
10006         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
10007         INDIRECT_REF.  Init base_alias_set properly.
10008         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
10009         (vn_reference_fold_indirect): Adjust for MEM_REFs.
10010         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
10011         for ARRAY_REFs.
10012         (may_insert): Remove.
10013         (visit_reference_op_load): Do not test may_insert.
10014         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
10015         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
10016         a field to store the constant offset this op applies.
10017         (run_scc_vn): Adjust prototype.
10018         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
10019         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
10020         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
10021         bother about volatile qualifiers on pointers.
10022         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
10023         * tree-ssa-loop-ivopts.c
10024         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
10025         (strip_offset_1): Likewise.
10026         (find_interesting_uses_address): Replace INDIRECT_REF handling with
10027         MEM_REF handling.
10028         (get_computation_cost_at): Likewise.
10029         * ipa-pure-const.c (check_op): Handle MEM_REF.
10030         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
10031         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
10032         and constants.
10033         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
10034         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
10035         (eliminate_local_variables_1): Likewise.
10036         (create_call_for_reduction_1): Likewise.
10037         (create_loads_for_reductions): Likewise.
10038         (create_loads_and_stores_for_name): Likewise.
10039         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
10040         (ssa_accessed_in_tree): Handle MEM_REF.
10041         (ssa_accessed_in_assign_rhs): Likewise.
10042         (update_type_size): Likewise.
10043         (analyze_accesses_for_call_stmt): Likewise.
10044         (analyze_accesses_for_assign_stmt): Likewise.
10045         (transform_access_sites): Likewise.
10046         (transform_allocation_sites): Likewise.
10047         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
10048         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10049         not handle INDIRECT_REF.
10050         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
10051         (cond_store_replacement): Likewise.
10052         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
10053         MEM_REF, no not handle INDIRECT_REFs.
10054         (insert_into_preds_of_block): Properly initialize avail.
10055         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
10056         for ARRAY_REFs.  Properly handle reference lookups that
10057         require a bit re-interpretation.
10058         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
10059         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
10060         (build_ref_for_offset_1): Remove.
10061         (build_ref_for_offset): Build MEM_REFs.
10062         (gate_intra_sra): Disable for now.
10063         (sra_ipa_modify_expr): Handle MEM_REF.
10064         (ipa_early_sra_gate): Disable for now.
10065         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
10066         MEM_REF handling.
10067         (disqualify_base_of_expr): Likewise.
10068         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
10069         MEM_REF handling.
10070         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
10071         Use mem_ref_offset.  Remove bogus folding.
10072         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
10073         (make_fancy_name_1): Add support for MEM_REF.
10074         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
10075         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
10076         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
10077         (compute_complex_ancestor_jump_func): Likewise.
10078         (ipa_analyze_virtual_call_uses): Likewise.
10079         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
10080         INDIRECT_REF folding with more generalized MEM_REF folding.
10081         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
10082         (forward_propagate_addr_into_variable_array_index): Also handle
10083         &ARRAY + I in addition to &ARRAY[0] + I.
10084         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
10085         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
10086         creates assignments with overlap.
10087         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
10088         (get_frame_field): Likewise.
10089         (get_nonlocal_debug_decl): Likewise.
10090         (convert_nonlocal_reference_op): Likewise.
10091         (struct nesting_info): Add mem_refs pointer-set.
10092         (create_nesting_tree): Allocate it.
10093         (convert_local_reference_op): Insert to be folded mem-refs.
10094         (fold_mem_refs): New function.
10095         (finalize_nesting_tree_1): Perform defered folding of mem-refs
10096         (free_nesting_tree): Free the pointer-set.
10097         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
10098         (vectorizable_load): Likewise.
10099         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
10100         (propagate_with_phi): Likewise.
10101         * tree-object-size.c (addr_object_size): Handle MEM_REFs
10102         instead of INDIRECT_REFs.
10103         (compute_object_offset): Handle MEM_REF.
10104         (plus_stmt_object_size): Handle MEM_REF.
10105         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
10106         for &MEM_REF.
10107         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
10108         (symbol_marked_for_renaming): Likewise.
10109         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
10110         (fold-const.o): Add $(TREE_FLOW_H).
10111         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
10112         (find_func_clobbers): Likewise.
10113         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
10114         (decompose_access): Likewise.
10115         (replace_field_acc): Likewise.
10116         (replace_field_access_stmt): Likewise.
10117         (insert_new_var_in_stmt): Likewise.
10118         (get_stmt_accesses): Likewise.
10119         (reorg_structs_drive): Disable.
10120         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
10121         (ix86_canonical_va_list_type): Likewise.
10122
10123 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
10124
10125         PR other/44566
10126         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
10127         * target.def (struct gcc_target): Replace enum reg_class with
10128         reg_class_t in hook argument / return types.
10129         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
10130         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
10131         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10132         * targhooks.h (default_branch_target_register_class): Likewise.
10133         (default_ira_cover_classes, default_secondary_reload): Likewise.
10134         (default_memory_move_cost, default_register_move_cost): Likewise.
10135         * targhooks.c (default_branch_target_register_class): Likewise.
10136         (default_ira_cover_classes, default_secondary_reload): Likewise.
10137         (default_memory_move_cost, default_register_move_cost): Likewise.
10138         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
10139         * bt-load.c (branch_target_load_optimize): Likewise.
10140         * ira.c (setup_cover_and_important_classes): Likewise.
10141         * ira-costs.c (copy_cost): Likewise.
10142         * reload1.c (emit_input_reload_insns): Likewise.
10143         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
10144         * config/frv/frv.c (frv_secondary_reload): Likewise.
10145         * config/s390/s390.c (s390_secondary_reload): Likewise.
10146         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
10147         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
10148         (ix86_register_move_cost): Likewise.
10149         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
10150         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
10151         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
10152         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
10153         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
10154         (rs6000_ira_cover_classes): Likewise.
10155         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
10156         * config/picochip/picochip-protos.h (picochip_secondary_reload):
10157         Likewise.
10158         * config/pa/pa.c (pa_secondary_reload): Likewise.
10159         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
10160         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
10161         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
10162         * doc/tm.texi: Regenerate.
10163
10164 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
10165
10166         PR bootstrrap/44726
10167         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
10168         use.
10169         (build_alias_set_optimal_p): Likewise.
10170         (build_base_obj_set_for_drs): Likewise.
10171
10172 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
10173
10174         * target.def: Remove comment about licensing problems of function
10175         declarations.
10176
10177         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
10178         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
10179         * doc/tm.texi: Regenerate.
10180
10181         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
10182         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
10183
10184         * target.def (enum_va_list_p): Use DEFHOOK.
10185         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
10186         Rename ptype to ptree.
10187         * doc/tm.texi: Regenerate.
10188
10189         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
10190         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
10191         * doc/tm.texi: Regenerate.
10192
10193         * target.def (memory_move_cost): Use DEFHOOK.
10194         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
10195         Rename regclass AKA class to rclass.
10196         * doc/tm.texi: Regenerate.
10197
10198         * target.def (pragma_parse): Use DEFHOOK.
10199         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
10200         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
10201         * doc/tm.texi: Regenerate.
10202
10203         * target.def (pass_by_reference): Use DEFHOOK.
10204         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
10205         * doc/tm.texi: Regenerate.
10206
10207         * target.def (resolve_overloaded_builtin): Rename params to arglist.
10208         Use DEFHOOK.
10209         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
10210         * doc/tm.texi: Regenerate.
10211
10212         * target.def (return_pops_args): Use DEFHOOK.
10213         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
10214         Rename stack-size to size.
10215         * doc/tm.texi: Regenerate.
10216
10217         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
10218         last-sched_cycle to last_clock, cur_cycle to clock.
10219         * doc/tm.texi.in: Use @hook.
10220         * doc/tm.texi: Regenerate.
10221
10222         * target.def (print_operand, print_operand_address): Update comment.
10223         (print_operand_punct_valid_p): Likewise.
10224
10225 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10226
10227         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
10228         to rtl.h.
10229         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
10230         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
10231         * rtl-error.h: New.
10232         * regrename.c: Do not include toplev.h. Include rtl-error.h.
10233         * rtl-error.c: Likewise.
10234         * reload.c: Likewise.
10235         * recog.c:  Likewise.
10236         * sel-sched.c: Likewise.
10237         * function.c: Likewise.
10238         * reg-stack.c: Likewise.
10239         * cfgrtl.c: Likewise.
10240         * reload1.c: Likewise.
10241         * final.c: Include rtl-error.
10242         * Makefile.in: Adjust dependencies.
10243
10244 2010-06-30  Jan Hubicka  <jh@suse.cz>
10245
10246         PR middle-end/PR44706
10247         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
10248         to return the value.
10249
10250 2010-06-30  Michael Matz  <matz@suse.de>
10251
10252         PR bootstrap/44699
10253         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
10254         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
10255         a gimple reg, attach the original VDEF to the last store in the
10256         sequence.
10257
10258 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
10259
10260         PR other/44034
10261         * config/darwin.c (darwin_override_options): Use renamed
10262         targetm.asm_out.emit_unwind_label.
10263
10264 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
10265
10266         PR tree-optimization/39799
10267         * tree-inline.c (remap_ssa_name): Initialize variable only if
10268         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
10269
10270 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
10271
10272         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
10273
10274 2010-06-30  Richard Guenther  <rguenther@suse.de>
10275
10276         PR target/44722
10277         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
10278         against oscillation with reverse peephole2.
10279
10280 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
10281
10282         PR target/44721
10283         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
10284         Fix last commit.
10285
10286 2010-06-30  Nick Clifton  <nickc@redhat.com>
10287
10288         * config/rx/rx-modes.def: New file.
10289         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
10290         (CC_REGNUM): Define.
10291         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
10292         register.
10293         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
10294         (SELECT_CC_MODE): Define.
10295         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
10296         (reg:CC CC_REG) instead of (cc0).
10297         (attr "cc"): Delete.
10298         (cbranchsi4): Do not split compare and branch here. Instead move
10299         it to...
10300         (cbranchsi4_<code>): ... here.  New patterns.
10301         (cmpsi): Call rx-compare_redundant to find out if it is necessary
10302         to emit the compare instruction.
10303         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
10304         cc_status flags.
10305         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
10306         FIRST_PSEUDO_REGNUM.
10307         (rx_expand_prologue, rx_expand_epilogue): Likewise.
10308         (rx_notice_update_cc): Delete.
10309         (rx_cc_modes_compatible): New function.
10310         (flags_needed_for_conditional): New function.
10311         (flags_from_mode): New function.
10312         (rx_compare_redundant): New function - scans backwards through
10313         insn list to find out if condition flags are already set correctly.
10314         (TARGET_CC_MODES_COMPATIBLE): Define.
10315         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
10316
10317         * config/rx/rx.h (BRANCH_COST): Define.
10318         (REGISTER_MOVE_COST): Define.
10319         * config/rx/predicates (rx_source_operand): Allow all constant types.
10320         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
10321         (tstsi4): New pattern.
10322         * config/rx/rx.c (rx_memory_move_cost): Define.
10323         (TARGET_MEMORY_MOVE_COST): Define.
10324
10325 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10326
10327         * tree.h (block_may_fallthru): Declare here.
10328         * tree-flow.h (block_may_fallthru): Do not declare here.
10329         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
10330         bitmap.h
10331         * Makefile.in (c-typeck.o): Update dependencies.
10332
10333 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
10334
10335         PR debug/44694
10336         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
10337         * cselib.c (cfa_base_preserved_regno): New static variable.
10338         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
10339         of REGNO (cfa_base_preserved_val->locs->loc).
10340         (cselib_preserve_cfa_base_value): Add regno argument, set
10341         cfa_base_preserved_regno to it.
10342         (cselib_invalidate_regno): Allow removal of registers other than
10343         cfa_base_preserved_regno from cfa_base_preserved_val.
10344         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
10345         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
10346         of MEM addresses, if not on LHS.
10347         (reverse_op): Don't add reverse ops for cfa_base_rtx.
10348         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
10349
10350 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
10351
10352         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
10353         static variables.
10354         (peep2_buf_position): New static function.
10355         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
10356         peephole2_optimize): Use it.
10357         (peep2_attempt, peep2_update_life): New static functions, broken out
10358         of peephole2_optimize.
10359         (peep2_fill_buffer): New static function.
10360         (peephole2_optimize): Change the main loop to try to fill the buffer
10361         with the maximum number of insns before matching them against
10362         peepholes.  Use a forward scan.  Remove special case for targets with
10363         conditional execution.
10364         * genrecog.c (change_state): Delete dead code.
10365         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
10366         Rewrite so as not to expect the second insn to have had a peephole
10367         applied yet.
10368
10369 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10370
10371         * genhooks.c (emit_findices): Cast field precision to int.
10372         (emit_documentation): Likewise.
10373
10374 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
10375
10376         PR tree-optimization/43801
10377         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
10378         if old_decl was DECL_ONE_ONLY.
10379
10380         PR debug/44668
10381         * dwarf2out.c (add_accessibility_attribute): New function.
10382         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
10383         instead of adding DW_AT_accessibility manually.
10384         (gen_enumeration_type_die, gen_struct_or_union_type_die,
10385         gen_typedef_die): Use it.
10386
10387 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10388
10389         * vmsdbgout.c (full_name): Just output the file name if not native.
10390
10391 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10392
10393         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
10394         (funcnam_table): New static table.
10395         (funcnum_table): New static table.
10396         (write_rtnbeg): Write value saved in funcnum_table.
10397         (write_rtnend): Write value saved in funcnum_table.
10398         (vmsdbgout_begin_function): Save current function info in
10399         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
10400         (vmsdbgout_finish): Iterate over funcnum_table.
10401
10402 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10403
10404         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
10405         (vmsdbgout_type_decl): Declare
10406         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
10407         (FUNC_EPILOGUE_LABEL): New macro
10408         (vmsdbgout_begin_epilogue): New function.
10409         (vmsdbgout_type_decl): New function.
10410
10411 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10412
10413         * vmsdbg.h: Update copyright.
10414
10415 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10416
10417         * vmsdbg.h (DST_K_TBG): New DST constant.
10418         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
10419         (write_modbeg): Cast module_language to avoid warning.
10420         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
10421
10422 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
10423
10424         PR other/44034
10425         * target.def, doc/tm.texi.in, genhooks.c: New files.
10426         * target.h: Instead of defining individual hook members,
10427         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
10428         include target.def.
10429         * target-def.h: Instead of defining individual hook initializers,
10430         include target-hooks-def.h.
10431         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
10432         targetm.live_on_entry -> targetm.extra_live_on_entry
10433         targetm.sched.md_finish ->targetm.sched.finish
10434         targetm.sched.md_init -> targetm.sched.init
10435         targetm.sched.md_init_global -> targetm.sched.init_global
10436         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
10437         targetm.asm_out.except_table_label ->
10438           targetm.asm_out.emit_except_table_label
10439         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
10440         targetm.target_help -> targetm.help
10441         targetm.vectorize.builtin_support_vector_misalignment ->
10442           targetm.vectorize.support_vector_misalignment
10443         targetm.file_start_app_off -> targetm.asm_file_start_app_off
10444         targetm.file_start_file_directive ->
10445          targetm.asm_file_start_file_directive
10446         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
10447         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
10448         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
10449         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
10450           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
10451         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
10452           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
10453         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
10454         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
10455         * Makefile.in (TARGET_H): Depend on target.def.
10456         (TARGET_DEF_H): Depend on target-hooks-def.h.
10457         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
10458         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
10459         * doc/tm.texi: Regenerate.
10460
10461         * Makefile.in (s-tm-texi): Remove stray tab / rule.
10462
10463         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
10464         (targetm.sched.init): Likewise.
10465
10466 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10467
10468         PR bootstrap/44713
10469         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
10470         (function_arg_advance_32): Const-ify TYPE parameter.
10471         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
10472         (ix86_function_arg_advance): Change type of NAMED to bool.
10473         (function_arg_32): Const-ify CUM and TYPE parameters.
10474         (function_arg_64): Likewise.  Change type of NAMED to bool.
10475         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
10476         to bool.
10477         (ix86_function_arg): Change type of NAMED to bool.
10478         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
10479         last argument as a bool.
10480
10481 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
10482
10483         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
10484         (OVERRIDE_OPTIONS): Add note of obsolescence.
10485         Replace references with references to TARGET_OPTION_OVERRIDE.
10486         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
10487          the macro).
10488         * targhooks.c (default_target_option_override): New function.
10489         * targhooks.h (default_target_option_override): Declare.
10490         * target.h (struct gcc_target): Add override member to
10491         target_option member.
10492         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
10493         targetm.target_option.override call.
10494         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
10495         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
10496
10497 2010-06-29  Jan Hubicka  <jh@suse.cz>
10498
10499         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
10500
10501 2010-06-29  Jan Hubicka  <jh@suse.cz>
10502
10503         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
10504         unreachable.
10505         (rebuild_frequencies): New function.
10506         * predict.h (rebuild_frequencies): Declare.
10507         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
10508         entry block and edge reaching new_entry.
10509         (tree_function_versioning): When doing partial cloning, rebuild
10510         frequencies when done.
10511         * passes.c (execute_function_todo): Use rebild_frequencies.
10512
10513 2010-06-29  Richard Guenther  <rguenther@suse.de>
10514
10515         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
10516         * tree-flow.h (enum noalias_state): Remove.
10517         (struct var_ann_d): Remove noalias_state member.
10518
10519 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
10520
10521         PR target/43902
10522         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
10523         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
10524         (maddhidi4): Likewise.
10525
10526         Revert parts of the change for PR25130.
10527         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10528         MEM_ALIAS_SET.
10529
10530 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10531
10532         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
10533         targetm.calls.function_incoming_arg, and
10534         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
10535         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
10536         * target.h (struct gcc_target): Add function_arg_advance,
10537         function_arg, and function_incoming_arg fields.
10538         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
10539         (TARGET_FUNCTION_INCOMING_ARG): Define.
10540         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
10541         and TARGET_FUNCTION_INCOMING_ARG.
10542         * targhooks.h (default_function_arg_advance): Declare.
10543         (default_function_arg, default_function_incoming_arg): Declare.
10544         * targhooks.c (default_function_arg_advance): New function.
10545         (default_function_arg, default_function_incoming_arg): New function.
10546         * config/i386/i386.c (function_arg_advance): Rename to...
10547         (ix86_function_arg_advance): ...this.  Make static.
10548         (function_arg): Rename to...
10549         (ix86_function_arg): ...this.  Make static.
10550         (TARGET_FUNCTION_ARG_ADVANCE): Define.
10551         (TARGET_FUNCTION_ARG): Define.
10552         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
10553         (FUNCTION_ARG): Delete.
10554         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
10555         (function_arg): Delete prototype.
10556
10557 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10558
10559         * reginfo.c (init_reg_sets_1): Adjust comments.
10560         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
10561         * calls.c (prepare_call_address): Likewise.
10562         (emit_call_1): Use targetm.calls.return_pops_args.
10563         (expand_call): Likewise.
10564         * function.c (assign_parms): Likewise.
10565         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
10566         * target.h (struct gcc_target) [struct calls]: Add
10567         return_pops_args field.
10568         * targhooks.h (default_return_pops_args): Declare.
10569         * targhooks.c (default_return_pops_args): Define.
10570         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
10571         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
10572         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
10573         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
10574         documentation.
10575         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
10576         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
10577         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
10578         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
10579         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
10580         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
10581         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
10582         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
10583         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
10584         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
10585         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
10586         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
10587         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
10588         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
10589         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
10590         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
10591         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
10592         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
10593         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
10594         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
10595         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
10596         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
10597         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
10598         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
10599         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
10600         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
10601         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
10602         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
10603         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
10604         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
10605         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
10606         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
10607         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
10608         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
10609         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
10610         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
10611         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
10612         * config/i386/i386.c (ix86_return_pops_args): Make static.
10613         Constify arguments.
10614         (TARGET_RETURN_POPS_ARGS): Define.
10615         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
10616         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
10617         (TARGET_RETURN_POPS_ARGS): Define.
10618         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
10619         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
10620         (TARGET_RETURN_POPS_ARGS): Define.
10621
10622 2010-06-29  Richard Guenther  <rguenther@suse.de>
10623
10624         PR middle-end/44667
10625         * tree-inline.c (initialize_inlined_parameters): Make sure
10626         to remap the inlined parameter variable substitutions types.
10627
10628 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10629
10630         PR rtl-optimization/44659
10631         * combine.c (make_compound_operation) <SUBREG>: Do not return the
10632         result of force_to_mode if it partially re-expanded the compound.
10633
10634 2010-06-28  Jan Hubicka  <jh@suse.cz>
10635
10636         PR middle-end/44671
10637         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
10638         RESULT_DECL.
10639
10640 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
10641
10642         * double-int.h (force_fit_type_double): Remove declaration.
10643         * double-int.c (force_fit_type_double): Move to tree.c.
10644         * tree.h (force_fit_type_double): Declare.
10645         * tree.h (force_fit_type_double): Moved from double-int.c. Use
10646         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
10647         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
10648         * convert.c (convert_to_pointer): Adjust call to
10649         force_fit_type_double.
10650         * tree-vrp.c (extract_range_from_assert,
10651         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
10652         * fold-const.c: Update comment.
10653         (int_const_binop, fold_convert_const_int_from_int,
10654         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
10655         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
10656         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
10657         round_up_loc): Adjust call to force_fit_type_double.
10658
10659 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
10660
10661         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
10662
10663 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10664
10665         * tree-sra.c (convert_callers): New parameter, change fndecls of
10666         recursive calls.
10667         (modify_function): Pass the old decl to convert_callers.
10668
10669 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10670
10671         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
10672         ipa_check_create_node_params and ipa_initialize_node_params with
10673         checking asserts they are not necessary.
10674
10675 2010-06-28  Jan Hubicka  <jh@suse.cz>
10676
10677         PR tree-optimization/44687
10678         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
10679
10680 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10681
10682         PR c++/44535
10683         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
10684         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
10685         instead of BINFO_BASE_BINFO.
10686
10687 2010-06-28  Michael Matz  <matz@suse.de>
10688
10689         PR middle-end/44592
10690         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
10691         proper VDEF chain for intermediate stores in the sequence.
10692
10693 2010-06-28  Jan Hubicka  <jh@suse.cz>
10694
10695         PR tree-optimization/44357
10696         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
10697         uninlinable functions.
10698
10699 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
10700
10701         * config.gcc (powerpc*-*-*): Handle titan.
10702         * config/rs6000/rs6000.c (titan_cost): New costs.
10703         (rs6000_override_options): Add "titan" to processor_target_table.
10704         Add Titan to branch alignment logic.
10705         Correctly set rs6000_cost for titan.
10706         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
10707         * config/rs6000/titan.md: New file.
10708         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
10709
10710 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
10711
10712         * tree-browser.c (TB_history_stack): Convert to a VEC.
10713         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
10714         (TB_history_prev): Likewise.
10715
10716 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
10717
10718         * vec.h (vec_heap_free): Add parentheses around free.
10719
10720 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
10721
10722         * system.h: Poison GCC_EXCEPT_H for front-end files.
10723
10724         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
10725         langhook.
10726         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
10727         Define to NULL by default.
10728         * except.h: Define GCC_EXCEPT_H.
10729         (doing_eh): Remove prototype.
10730         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
10731         (lang_protect_cleanup_actions): Remove.
10732         * except.c (lang_protect_cleanup_actions): Remove.
10733         (doing_eh): Remove.
10734         (gen_eh_region): Don't check doing_eh here.
10735         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
10736         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
10737         instead of lang_protect_cleanup_actions.
10738         * omp-low.c (maybe_catch_exception): Likewise.
10739         * Makefile.in: Update dependencies.
10740
10741 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
10742
10743         * cgraph.h (struct varpool_node): new used_from_object_file flag.
10744         (struct cgraph_local_info): new used_from_object_file flag.
10745         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
10746         (cgraph_clone_node): initialize used_from_object_file.
10747         (cgraph_create_virtual_clone): initialize used_from_object_file.
10748         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
10749         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
10750         when compiling with -fwhole-program.
10751         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
10752         internal resolver.
10753         * ipa.c (function_and_variable_visibility): Set externally_visible
10754         flag of varpool_node if used_from_object_file flag is set.
10755         (cgraph_externally_visible_p): check used_from_object_file flag.
10756         * doc/invoke.texi (-fwhole-program option): Change description of
10757         externally_visible attribute accordingly.
10758         * doc/extend.texi (externally_visible): Ditto.
10759
10760 2010-06-27  Jan Hubicka  <jh@suse.cz>
10761
10762         * params.def (max-inline-insns-auto): Default to 40.
10763         * doc/invoke.texi (max-inline-insns-auto): Document the change.
10764
10765 2010-06-27  Jan Hubicka  <jh@suse.cz>
10766
10767         PR middle-end/44671
10768         PR middle-end/44686
10769         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
10770         signature change.
10771         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
10772         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
10773
10774 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
10775
10776         * target.h (struct gcc_target): Add register_move_cost field.
10777         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
10778         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
10779         * targhooks.c (default_register_move_cost): New function.
10780         * targhooks.h (default_register_move_cost): Declare function.
10781         * defaults.h (REGISTER_MOVE_COST): Delete.
10782         * ira-int.h (ira_register_move_cost): Update comment.
10783         * ira.c (ira_register_move_cost): Update comment.
10784         * reload.h (register_move_cost): Declare.
10785         * reginfo.c (register_move_cost): New function.
10786         (move_cost): Update comment.
10787         (init_move_cost, memory_move_secondary_cost): Replace
10788         REGISTER_MOVE_COST with register_move_cost.
10789         * postreload.c (reload_cse_simplify_set): (Ditto.).
10790         * reload.c (find_valid_class, find_reloads): (Ditto.).
10791         * reload1.c (choose_reload_regs): (Ditto.).
10792         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
10793         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
10794         * doc/md.texi (can_create_pseudo_p): Update documentation.
10795
10796         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10797         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10798         * config/i386/i386.h (ix86_memory_move_cost): Make static.
10799         (TARGET_MEMORY_MOVE_COST): Define.
10800
10801         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
10802         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
10803         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
10804         (TARGET_MEMORY_MOVE_COST): Define.
10805
10806 2010-06-27  Richard Guenther  <rguenther@suse.de>
10807
10808         PR tree-optimization/44683
10809         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
10810         false edge from the inverted condition.
10811
10812 2010-06-27  Richard Guenther  <rguenther@suse.de>
10813
10814         PR middle-end/44684
10815         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
10816         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
10817         for register LHS.  Or non-store assignments.
10818
10819 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
10820
10821         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
10822         (sparc_emit_set_const64): Likewise.  Remove disabled code.
10823         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
10824         (sparc_emit_set_const64): Likewise.
10825
10826 2010-06-26  Catherine Moore  <clm@codesourcery.com>
10827
10828         * config/mips/mips.md (alu_type): New attribute.
10829         (type): Infer type from alu_type.
10830         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
10831         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
10832         *subsi3_extended, negsi2, negdi2, *low<mode>,
10833         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
10834         xor<mode>3, *nor<mode>3,
10835         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
10836         *zero_extendhi_truncqi):  Set alu_type instead of type.
10837
10838 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
10839
10840         * config/alpha/alpha.c (alpha_need_linkage): Adjust
10841         splay_tree_new_ggc call.
10842         (alpha_use_linkage): Likewise.
10843
10844 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
10845
10846         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
10847         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
10848         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
10849         (static_specs): Remove switches_need_spaces.
10850         (process_command, do_self_spec): Hardcode handling "-o" instead of
10851         checking switches_need_spaces.
10852         * system.h (SWITCHES_NEED_SPACES): Poison.
10853
10854 2010-06-26  Richard Guenther  <rguenther@suse.de>
10855
10856         PR tree-optimization/44393
10857         * tree-loop-distribution.c (generate_loops_for_partition): Fix
10858         stmt removal and VOP renaming.
10859         (generate_memset_zero): Remove redundant stmt updating.
10860         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
10861         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
10862
10863 2010-06-26  Jan Hubicka  <jh@suse.cz>
10864
10865         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
10866         edges comming from header are equivalent.
10867         (visit_bb): Handle PHIs correctly.
10868         * tree-inline.c (copy_phis_for_bb): Be able to copy
10869         PHI from entry edge.
10870         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
10871
10872 2010-06-26  Richard Guenther  <rguenther@suse.de>
10873
10874         PR middle-end/44674
10875         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
10876         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
10877
10878 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
10879
10880         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
10881         add_infile, alloc_switch): New.
10882         (process_command): Remove variable lang_n_infiles.  Process
10883         options in a single pass.  Use new functions for allocating
10884         infiles and switches arrays.  Properly skip operands of
10885         -Xpreprocessor and -Xassembler.
10886
10887 2010-06-26  Jan Hubicka  <jh@suse.cz>
10888
10889         PR middle-end/44671
10890         * cgraphunit.c (cgraph_function_versioning): Remove wrong
10891         cgraph_make_decl_local call; fix typo copying RTL data.
10892
10893 2010-06-25  DJ Delorie  <dj@redhat.com>
10894
10895         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
10896         (m32c_output_aligned_common): Likewise.
10897         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
10898         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
10899         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
10900         (m32c_register_pragmas): Register it.
10901         * config/m32c/m32c.c (m32c_get_pragma_address): New.
10902         (m32c_insert_attributes): Set #pragma address decls volatile.
10903         (pragma_entry_eq): New.
10904         (pragma_entry_hash): New.
10905         (m32c_note_pragma_address): New.
10906         (m32c_get_pragma_address): New.
10907         (m32c_output_aligned_common): New.
10908         * doc/extend.texi: Document the new pragma.
10909
10910         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
10911         also.
10912         * config/m32c/predicates.md (m32c_any_operand): Check the code
10913         instead of memory_operand so as to allow matching volatile MEMs.
10914         (m32c_nonimmediate_operand): Likewise.
10915         (mra_operand): Allow volatiles.
10916
10917 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
10918
10919         PR debug/44610
10920         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
10921         address if the offset is unknown.
10922
10923 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
10924
10925         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
10926         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
10927         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
10928         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
10929         to ia64_start_function. Invoke it.
10930         * config/ia64/ia64.c (ia64_start_function): Call new function
10931         dwarf2out_vms_debug_main_pointer.
10932
10933 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10934
10935         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
10936         statements computing the true predicate.
10937
10938 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10939
10940         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
10941         to boolean_true_node.
10942         (reset_bb_predicate): New.
10943         (predicate_bbs): Call reset_bb_predicate.
10944
10945 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10946
10947         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
10948         (tree_if_conversion): Returns true when something has been changed.
10949         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
10950         changed something.
10951
10952 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10953
10954         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
10955         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
10956         * tree-if-conv.c: Include dbgcnt.h.
10957         (tree_if_conversion): Use if_conversion_tree to count the number of
10958         if-convertible loops.
10959
10960 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
10961
10962         * common.opt (fprefetch-loop-arrays): Re-define
10963         -fprefetch-loop-arrays as a tri-state option with the initial
10964         value of -1.
10965         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
10966         pass only when flag_prefetch_loop_arrays > 0.
10967         * toplev.c (process_options): Note that, with tri-states,
10968         flag_prefetch_loop_arrays>0 means prefetching is enabled.
10969         * config/i386/i386.c (override_options): Enable prefetching at -O3
10970         for a set of CPUs that sw prefetching is helpful.
10971         (software_prefetching_beneficial_p): New.  Return TRUE if software
10972         prefetching is beneficial for the given CPU.
10973
10974 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10975
10976         PR rtl-optimization/44326
10977         * implicit-zee.c (find_removable_zero_extends): Replace
10978         INSN_P with NONDEBUG_INSN_P.
10979
10980 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10981
10982         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
10983         (struct ipa_node_params): Removed the modification_analysis_done flag.
10984         (ipa_is_param_modified): Removed.
10985         (ipa_analyze_node): Declare.
10986         (ipa_compute_jump_functions): Remove declaration.
10987         (ipa_count_arguments): Likewise.
10988         (ipa_detect_param_modifications): Likewise.
10989         (ipa_analyze_params_uses): Likewise.
10990         * ipa-prop.c (struct param_analysis_info): New type.
10991         (visit_store_addr_for_mod_analysis): Removed.
10992         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
10993         moved down in the file.
10994         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
10995         (ipa_count_arguments): Made static.
10996         (mark_modified): New function.
10997         (is_parm_modified_before_call): New function.
10998         (compute_pass_through_member_ptrs): New parameter parms_info, call
10999         is_parm_modified_before_call instead of ipa_is_param_modified.
11000         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
11001         it to compute_pass_through_member_ptrs.
11002         (ipa_compute_jump_functions): New parameter parms_info, pass it to
11003         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
11004         on the callee if it is analyzed.  Made static.
11005         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
11006         is_parm_modified_before_call instead of ipa_is_param_modified.
11007         (ipa_analyze_call_uses): New parameter parms_info, pass it to
11008         ipa_analyze_indirect_call_uses.
11009         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
11010         ipa_analyze_call_uses.
11011         (ipa_analyze_params_uses): New parameter parms_info, pass it to
11012         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
11013         (ipa_analyze_node): New function.
11014         (ipa_print_node_params): Do not dump the modified flag.
11015         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
11016         it.  Do not stream the modified parameter flag.
11017         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
11018         it.  Do not stream the modified parameter flag.
11019         * ipa-cp.c (ipcp_analyze_node): Removed.
11020         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
11021         with only a call to ipa_analyze_node.
11022         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
11023         node with only a call to ipa_analyze_node.
11024
11025 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11026
11027         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
11028
11029 2010-06-25  Jan Hubicka  <jh@suse.cz>
11030
11031         * tree-pass.h (pass_split_functions): Declare.
11032         * opts.c (decode_options): Enable function splitting at -O2
11033         * timevar.def (TV_IPA_FNSPLIT): New macro.
11034         * ipa-split.c: New file.
11035         * common.opt (-fpartial-inlining): New flag.
11036         * Makefile.in (ipa-split.o): New object file.
11037         * passes.c (init_optimization_passes): Add ipa-split.
11038         * params.def (partial-inlining-entry-probability): New parameters.
11039         * doc/invoke.texi (-fpartial-inlining): New.
11040
11041 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11042
11043         PR 44665
11044         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
11045         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
11046         (gimplify_expr): Likewise.
11047
11048 2010-06-25  Martin Jambor  <mjambor@suse.cz>
11049
11050         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
11051         statements instead of bailing out on them.
11052         (ipa_analyze_indirect_call_uses): Do not require that loads from the
11053         parameter are in the same BB as the condition.  Update comments.
11054
11055 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
11056
11057         PR middle-end/43866
11058         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
11059         true or always false, return NULL_TREE.
11060         (tree_unswitch_single_loop): Optimize conditions even when reaching
11061         max-unswitch-level parameter.  If num > 0, optimize first all conditions
11062         using entry checks, then do still reachable block discovery and consider
11063         only conditions in still reachable basic blocks in the loop.
11064
11065         PR tree-optimization/44539
11066         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
11067         the call doesn't have LHS, but has VDEF.
11068
11069 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
11070
11071         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
11072         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
11073         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
11074         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
11075         * system.h (MODIFY_TARGET_NAME): Poison.
11076
11077 2010-06-25  Alan Modra  <amodra@gmail.com>
11078
11079         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
11080         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
11081         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11082         CMODEL_LARGE as default.
11083         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
11084         (offsettable_ok_by_alignment): Delete.
11085         (rs6000_emit_move): Remove mcmodel=medium optimization.
11086
11087 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
11088
11089         With large parts from Jim Wilson:
11090         PR target/43902
11091         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
11092         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
11093         * optabs.c (optab_for_tree_code): Likewise.
11094         (expand_widen_pattern_expr): Likewise.
11095         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
11096         out of execute_optimize_widening_mul.
11097         (convert_plusminus_to_widen): New function.
11098         (execute_optimize_widening_mul): Use the two new functions.
11099         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
11100         Remove code to generate widening multiply-accumulate.  Add support
11101         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
11102         * gimple-pretty-print.c (dump_ternary_rhs): New function.
11103         (dump_gimple_assign): Call it when appropriate.
11104         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
11105         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
11106         (expand_gimple_stmt_1): Likewise.
11107         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
11108         WIDEN_MULT_MINUS_EXPR.
11109         * tree-ssa-operands.c (get_expr_operands): Likewise.
11110         * tree-inline.c (estimate_operator_cost): Likewise.
11111         * gimple.c (extract_ops_from_tree_1): Renamed from
11112         extract_ops_from_tree.  Add new arg for a third operand; fill it.
11113         (gimple_build_assign_stat): Support operations with three operands.
11114         (gimple_build_assign_with_ops_stat): Likewise.
11115         (gimple_assign_set_rhs_from_tree): Likewise.
11116         (gimple_assign_set_rhs_with_ops_1): Renamed from
11117         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
11118         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
11119         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
11120         WIDEN_MULT_MINUS_EXPR.
11121         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
11122         (extract_ops_from_tree_1): Adjust declaration.
11123         (gimple_assign_set_rhs_with_ops_1): Likewise.
11124         (gimple_build_assign_with_ops): Pass NULL for last operand.
11125         (gimple_build_assign_with_ops3): New macro.
11126         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
11127         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
11128         functions.
11129         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
11130         (verify_gimple_assign): Call it.
11131         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
11132         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
11133         functions for dealing with three-operand statements.
11134         * tree.c (commutative_ternary_tree_code): New function.
11135         * tree.h (commutative_ternary_tree_code): Declare it.
11136         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
11137         ternary statements.
11138         (gimple_assign_nonzero_warnv_p): Likewise.
11139         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
11140         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
11141         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
11142         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
11143         (struct hashtable_expr): New member ternary in the union.
11144         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
11145         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
11146         (iterative_hash_hashable_expr): Likewise.
11147         (print_expr_hash_elt): Handle EXPR_TERNARY.
11148         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
11149         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
11150         statements.  Handle GIMPLE_TERNARY_RHS.
11151
11152 2010-06-25  Jan Hubicka  <jh@suse.cz>
11153
11154         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
11155
11156 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
11157
11158         PR c/44517
11159         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
11160         parameters are not good.
11161         (c_parser_parameter_declaration): Error unknown type name if the type
11162         name can't start declaration specifiers.
11163
11164 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
11165
11166         * gcc.c (translate_options): Don't mention +e in comment.
11167         (process_command): Don't handle +e specially.
11168
11169 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
11170
11171         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
11172
11173         * ira-build.c (merge_hard_reg_conflicts): New function.
11174         (create_cap_allocno, copy_info_to_removed_store_destinations,
11175         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
11176         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
11177         (remove_unnecessary_allocnos, remove_low_level_allocnos)
11178         copy_nifo_to_removed_store_destination): Use them.
11179         * ira-lives.c (make_hard_regno_born): New function, split out of
11180         make_regno_born.
11181         (make_allocno_born): Likewise.
11182         (make_hard_regno_dead): New function, split out of make_regno_dead.
11183         (make_allocno_dead): Likewise.
11184         (inc_register_pressure): New function, split out of set_allocno_live.
11185         (dec_register_pressure): New function, split out of clear_allocno_live.
11186         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
11187         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
11188         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
11189         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
11190         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
11191         mark_pseudo_regno_live.
11192         (process_bb_node_lives): Use mark_pseudo_regno_live,
11193         make_hard_regno_born and make_allocno_dead.
11194         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
11195         set_allocno_live, clear_allocno_live): Delete functions.
11196
11197         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
11198         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
11199         functions.
11200         (ira_flattening): Use ira_parent_allocno.
11201         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
11202         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
11203
11204         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
11205         statement.
11206
11207         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
11208         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
11209         minmax_set_iter_cond, minmax_set_iter_next,
11210         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
11211         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
11212         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
11213         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
11214         uses changed.
11215
11216         * ira-int.h (struct live_range, live_range_t): Renamed from struct
11217         ira_allocno_live_range and allocno_live_range_t; all uses changed.
11218         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
11219         All uses changed.
11220
11221 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
11222
11223         * thumb2.md (thumb2_tlobits_cbranch): Delete.
11224         (peephole2 to convert zero_extract/compare of single bit to
11225          lshift/compare): New.
11226
11227 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
11228
11229         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
11230         recursive call and call to 'int_const_binop'.
11231         (build_range_check, fold_cond_expr_with_comparison, unextend,
11232         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
11233         multiple_of_p): Adjust call to const_binop.
11234
11235 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
11236
11237         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
11238         determine size of XFmode operand.
11239         (XFmode extended DFmode push splitter): Ditto.
11240         (XFmode extended SFmode push splitter): Ditto.
11241
11242 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11243
11244         PR target/44588
11245         * config/i386/i386.md (extract_code): New.
11246         (<u>divmodqi4): Likewise.
11247         (divmodhiqi3): Likewise.
11248         (udivmodhiqi3): Likewise.
11249         (<u>divqi3): Remvoved.
11250
11251 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
11252
11253         PR middle-end/44492
11254         * recog.h (struct recog_data): Add is_asm field.
11255         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
11256         present in constraints of inline-asm operand and memory operand
11257         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
11258         (extract_insn): Initialize recog_data.is_asm.
11259         * doc/md.texi (Constraints): Document operand side-effect rules.
11260
11261 2010-06-24  Andi Kleen  <ak@linux.intel.com>
11262
11263         * c-parser.c (c_parser_conditional_expression): Call
11264         warn_for_omitted_condop.
11265         * doc/invoke.texi: Document omitted condop warning.
11266
11267 2010-06-24  Nick Clifton<nickc@redhat.com>
11268
11269         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
11270         insn in the sequence is a jump insn before setting its label.
11271
11272 2010-06-24  Alan Modra  <amodra@gmail.com>
11273
11274         * collect2.c (main): Match exactly --version and --help.
11275
11276 2010-06-24  DJ Delorie  <dj@redhat.com>
11277
11278         * config/m32c/m32c-pragma.c: Don't include rtl.h.
11279
11280 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
11281
11282         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
11283         using X87MODEF mode iterator.
11284         (pushsf splitter): Macroize splitter using P mode iterator.
11285         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
11286         mode iterator.
11287
11288         (*movxf_internal): Rename from *movxf_integer.
11289         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
11290         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
11291         (*movdf_internal): Rename from *movdf_integer.
11292         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
11293         (*movsf_internal): Rename from *movdf_1.
11294
11295 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
11296
11297         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
11298         (const_gimple_seq_node): Removed typedefs.
11299
11300         * gimple.h (gimple_seq_node_d, gimple_seq_node)
11301         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
11302
11303 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11304
11305         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
11306         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
11307         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
11308         and CODE_FOR_vec_extract_lo_v4df.
11309
11310         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
11311         Changed to define_insn_and_split.
11312         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
11313         (vec_extract_lo_v16hi): Likewise.
11314         (vec_extract_lo_v32qi): Likewise.
11315         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
11316         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
11317
11318 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
11319
11320         PR target/44640
11321         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
11322         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
11323         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
11324         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
11325         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
11326
11327         PR target/44640
11328         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
11329
11330         PR other/44644
11331         * df-core.c (struct df): Rename to df_d.
11332         * df.h (struct df): Likewise.
11333         * dse.h (struct df): Remove forward declaration.
11334         * recog.h (struct insn_data): Rename to:
11335         (struct_insn_data_d).  Adjusted all users.
11336
11337 2010-06-23  Arnaud Charlet  <charlet@adacore.com
11338
11339         PR ada/22220
11340         * doc/install.texi: Update requirements to build GNAT.
11341
11342 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
11343
11344         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
11345         enum type.
11346         (m68k_sched_attr_opx_type): Remove unreachable return.
11347         (m68k_sched_attr_opy_type): Likewise.
11348         (m68k_sched_attr_size): Likewise.
11349         (sched_get_opxy_mem_type): Likewise.
11350         (m68k_sched_attr_op_mem): Likewise.
11351
11352 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
11353
11354         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
11355         new statement and adjust VDEF only if necessary.  Remove superfluous
11356         call to maybe_clean_or_replace_eh_stmt.
11357         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
11358         copy the flags.
11359         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
11360         * tree-inline.c (copy_bb): ...and not there.
11361
11362 2010-06-22  Cary Coutant  <ccoutant@google.com>
11363
11364         * dwarf2out.c (is_nested_in_subprogram): New function.
11365         (should_move_die_to_comdat): Use it.
11366         (copy_ancestor_tree): Don't mark DIEs here.
11367         (copy_decls_walk): Start walk from root of newly-added tree;
11368         mark DIEs here instead.
11369
11370 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11371
11372         * config/i386/i386.md (unit): Also check sseishft1.
11373
11374 2010-06-22  Jan Hubicka  <jh@suse.cz>
11375
11376         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
11377         enabled.
11378
11379 2010-06-22  Jan Hubicka  <jh@suse.cz>
11380
11381         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
11382         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
11383         Return true if something changed.
11384         * df.h (df_confluence_function_n): Return bool.
11385         * df-core.c (df_worklist_propagate_forward,
11386         df_worklist_propagate_backward): Track changes and ages.
11387         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
11388         track ages.
11389         * dse.c (dse_confluence_n): Return always true.
11390
11391 2010-06-22  Jan Hubicka  <jh@suse.cz>
11392
11393         * bitmap.c (bitmap_clear_bit): Micro optimize.
11394
11395 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
11396
11397         * config/i386/i386.md (SWI1248x): New mode iterator.
11398         (SWI48x): Ditto.
11399         (SWI12): Ditto.
11400         (SWI24): Ditto.
11401
11402         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
11403         SWI1248x mode iterator.
11404         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
11405         using SWI124 mode iterator.
11406         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
11407         mode iterator.
11408         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
11409         *pushdi2_prologue_rex64 using P mode iterator.
11410         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
11411         using SWI48 mode iterator.
11412         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
11413         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
11414         using SWI1248x mode iterator.
11415         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
11416         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
11417         SWI48 mode iterator.
11418         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
11419         iterator.
11420         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
11421         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
11422         SWI12 mode iterator.
11423         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
11424         SWI12 mode iterator.
11425         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
11426         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
11427         SWI24 mode iterator.
11428         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
11429         SWI48 mode iterator.
11430         (mov<mode>_insn_1): New expander.
11431         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
11432         using SWI48x mode iterator.
11433
11434         (*movoi_internal_avx): Rename from *movoi_internal.
11435         (*movti_internal_rex64): Rename from *movti_rex64.
11436         (*movti_internal_sse): Rename from *movti_sse.
11437         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
11438         (*movdi_internal): Rename from *movdi_2.
11439         (*movsi_internal): Rename from *movsi_1.
11440         (*movhi_internal): Rename from *movhi_1.
11441         (*movqi_internal): Rename from *movqi_1.
11442
11443         (insv): Update the call to gen_movsi_insv_1 for rename.
11444         * config/i386/i386.c (promote_duplicated_reg): Ditto.
11445
11446 2010-06-22  Jan Hubicka  <jh@suse.cz>
11447
11448         * passes.c (execute_function_todo): Move call of statistics_fini_pass
11449         to ...
11450         (execute_todo) ... this one.
11451
11452 2010-06-22  Alan Modra  <amodra@gmail.com>
11453
11454         PR target/44364
11455         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11456         * caller-save.c (insert_restore, insert_save): Use non-validate
11457         form of adjust_address.
11458
11459 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11460
11461         PR target/39690
11462         * config/pa/pa.c (override_options): Disable
11463         -freorder-blocks-and-partition.
11464
11465 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11466
11467         PR target/44615
11468         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
11469
11470         * config/i386/i386.md (type): Add sseishft1
11471
11472         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
11473         (ppro_insn_load): Likewise.
11474         (ppro_insn_store): Likewise.
11475         (ppro_insn_both): Likewise.
11476
11477         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
11478         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
11479         for type.
11480         (*vec_extractv2di_1_avx): Likewise.
11481         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
11482         type.  Remove atom_unit.
11483         (*vec_extractv2di_1_sse2): Likewise.
11484
11485 2010-06-21  DJ Delorie  <dj@redhat.com>
11486
11487         * diagnostic.h (diagnostic_classification_change_t): New.
11488         (diagnostic_context): Add history and push/pop list.
11489         (diagnostic_push_diagnostics): Declare.
11490         (diagnostic_pop_diagnostics): Declare.
11491         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
11492         from pragmas in a history chain instead of the global table.
11493         (diagnostic_push_diagnostics): New.
11494         (diagnostic_pop_diagnostics): New.
11495         (diagnostic_report_diagnostic): Scan history chain to find state
11496         of diagnostics as of the diagnostic location.
11497         * opts.c (set_option): Pass UNKNOWN_LOCATION to
11498         diagnostic_classify_diagnostic.
11499         (enable_warning_as_error): Likewise.
11500         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
11501         use in the history chain.
11502         * doc/extend.texi: Document pragma GCC diagnostic changes.
11503
11504 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
11505
11506         * dwarf2out.c (add_linkage_name): New function.  Don't add
11507         anything to DW_TAG_member DIEs.
11508         (add_name_and_src_coords_attributes): Use it.
11509         (gen_variable_die): Call it for C++ static data members if
11510         specification is DW_TAG_member.
11511
11512         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
11513         C++ char16_t and char32_t.
11514
11515         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
11516         * genattrtab.c: Include vecprim.h.
11517         (cached_attrs, cached_attr_count, attrs_seen_once,
11518         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
11519         attrs_cached_after): New variables.
11520         (find_attrs_to_cache): New function.
11521         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
11522         (write_test_expr): Add attrs_cached argument, return it too,
11523         attempt to cache non-const attributes used more than once in
11524         a single case handling.
11525         (write_attr_get): Use find_attrs_to_cache, for caching candidates
11526         emit cached_* variables.  Adjust write_attr_set callers.
11527         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
11528         to find attributes that should be cached in this block.  Adjust
11529         write_test_expr callers.
11530         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
11531         callers.
11532         (make_automaton_attrs): Adjust write_test_expr caller.
11533
11534         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
11535         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
11536         (make_automaton_attrs): If find_tune_attr returns non-NULL,
11537         write separate internal_dfa_insn_code_* and insn_default_latency_*
11538         functions for each attribute's value and emit init_sched_attrs
11539         function and function pointers.
11540         * genattr.c (const_attrs, reservations): New variables.
11541         (gen_attr): Add const attributes to const_attrs vector.
11542         (check_tune_attr, find_tune_attr): New functions.
11543         (main): Add reservations to reservations vector.  If find_tune_attr
11544         returns true, add prototype for init_sched_attrs and make
11545         internal_dfa_insn_code and insn_default_latency function pointers,
11546         otherwise define init_sched_attrs as dummy macro.
11547         * cfgexpand.c: Include insn-attr.h.
11548         (gimple_expand_cfg): Call init_sched_attrs.
11549
11550         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
11551
11552         PR target/44575
11553         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
11554         va_arg from a set of register save slots into a temporary,
11555         if the container is bigger than type size, do the copying
11556         using smaller mode or using memcpy.
11557
11558         PR bootstrap/44426
11559         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
11560         prototype.
11561         (sel_print_to_dot): Remove macro.
11562         (sel_print): Likewise.  New prototype.
11563         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
11564         (sel_print): New function.
11565
11566 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11567
11568         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
11569         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
11570
11571 2010-06-21  Nick Clifton  <nickc@redhat.com>
11572
11573         * config/rx/rx.h (PTRDIFF_TYPE): Define.
11574         (SMALL_REGISTER_CLASS): Define (to zero).
11575         (PRINT_OPERAND): Delete.
11576         (PRINT_OPERAND_ADDRESS): Delete.
11577         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
11578         (rx_print_operand_address): Delete prototype.
11579         * config/rx/rx.c (rx_print_operand): Make static.
11580         Allow %H and %L to handle CONST_DOUBLEs.
11581         (rx_print_operand_address): Make static.
11582         (rx_gen_move_template): Rename local variable 'template' to
11583         out_template.
11584         (rx_function_arg): Do not pass unknown sized objects in registers.
11585         (TARGET_PRINT_OPERAND): Define.
11586         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11587
11588 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11589
11590         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
11591
11592 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
11593
11594         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
11595         stack-alignment for simple leaf-functions.
11596
11597 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
11598
11599         * doc/install.texi: Document bootstrap-lto.
11600
11601 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
11602
11603         PR debug/44248
11604         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
11605         (input_function): Drop them here, if VTA is disabled.
11606
11607 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
11608
11609         PR target/44546
11610         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
11611         New predicate.
11612         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
11613         ix86_swapped_fp_comparsion_operator instead of
11614         ix86_fp_comparison_operator.
11615
11616         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
11617         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
11618         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
11619         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
11620         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
11621         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
11622
11623 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
11624
11625         PR other/32998
11626         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
11627         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
11628         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
11629         (decode_cmdline_option): Update for this return value.  Set
11630         orig_option_with_args_text field.  Set arg field for unknown
11631         options.  Make static.
11632         (decode_cmdline_options_to_array): New.
11633         (prune_options): Update handling of find_opt return value.
11634         * opts.c (read_cmdline_option): Take decoded option.  Return void.
11635         (read_cmdline_options): Take decoded options.
11636         (decode_options): Add parameters for decoded options.  Use
11637         decode_cmdline_options_to_array.  Use decoded options for -O
11638         scan.  Use integral_argument for -O parameters.  Update call to
11639         read_cmdline_options.
11640         (enable_warning_as_error): Update handling of find_opt return value.
11641         * opts.h: Update comment on unknown options.
11642         (struct cl_decoded_option): Update comments on opt_index and arg.
11643         Add orig_option_with_args_text.
11644         (decode_cmdline_option): Remove.
11645         (decode_cmdline_options_to_array): Declare.
11646         (decode_options): Update prototype.
11647         * toplev.c (save_argv): Remove.
11648         (save_decoded_options, save_decoded_options_count): New.
11649         (read_integral_parameter): Remove.
11650         (print_switch_values): Use decoded options.
11651         (toplev_main): Don't set save_argv.  Update call to decode_options.
11652         * toplev.h (read_integral_parameter): Remove.
11653         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
11654
11655 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
11656
11657         PR target/44072
11658         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
11659         immediate.
11660         * constraints.md (Pw, Px): New constraints.
11661         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
11662
11663 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
11664
11665         * config/i386/sse.md (fma4modesuffixf4): Removed.
11666         (ssemodesuffixf2s): Likewise.
11667         (ssemodesuffixf4): Likewise.
11668         (ssemodesuffixf2c): Likewise.
11669         (ssescalarmodesuffix2s): Likewise.
11670         (avxmodesuffixf2c): Likewise.
11671         (ssemodesuffix): New.
11672         (ssescalarmodesuffix): Likewise.
11673         Update patterns with ssemodesuffix and ssescalarmodesuffix.
11674
11675 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
11676
11677         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
11678
11679 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11680
11681         * stor-layout.c (debug_rli): Remove unused local variables.
11682
11683 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
11684
11685         PR rtl-optimization/40900
11686         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
11687         original expression for later reuse.
11688         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
11689         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
11690
11691 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
11692
11693         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
11694         double_int_fits_in_uhwi_p): Implement as static inline.
11695         (double_int_xor): New inline function.
11696         (double_int_lrotate, double_int_rrotate, double_int_max,
11697         double_int_umax, double_int_smax, double_int_min, double_int_umin,
11698         double_int_smin): Declare.
11699         (lrotate_double, rrotate_double): Remove declaration.
11700         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
11701         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
11702         (double_int_lrotate, double_int_rrotate, double_int_max,
11703         double_int_umax, double_int_smax, double_int_min, double_int_umin,
11704         double_int_smin): New function.
11705         * fold-const.c (int_const_binop): Clean up, use double_int_*
11706         functions.
11707         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
11708         double_int_* and immed_double_int_const functions.
11709
11710 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
11711
11712         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
11713         * function.c (types_used_by_cur_var_decl): Likewise.
11714         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
11715
11716 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
11717
11718         * tree.h (record_layout_info): Change type of pending_statics field
11719         to a VEC.
11720         * stor-layout.c (start_record_layout): Store NULL into
11721         pending_statics.
11722         (debug_rli): Call debug_vec_tree instead of debug_tree.
11723         (place_field): Likewise.
11724         (finish_record_layout): Likewise.
11725
11726 2010-06-18  Alan Modra  <amodra@gmail.com>
11727
11728         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
11729
11730 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11731
11732         PR target/43740
11733         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
11734         for SET source operand from SET destination operand.
11735
11736 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
11737
11738         PR rtl-optimization/39871
11739         * reload1.c (init_eliminable_invariants): For flag_pic, disable
11740         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
11741         (function_invariant_p): Rule out a plus of frame or arg pointer with
11742         a SYMBOL_REF.
11743         * ira.c (find_reg_equiv_invariant_const): Likewise.
11744
11745 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
11746
11747         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
11748         print_operand_address and puts to output the operand for CONST.
11749
11750 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
11751
11752         PR debug/44572
11753         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
11754         hook.
11755
11756 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11757
11758         * v850-protos.h (print_operand): Delete.
11759         (print_operand_address): Delete.
11760         * v850.h (PRINT_OPERAND): Delete.
11761         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11762         (PRINT_OPERAND_ADDRESS): Delete.
11763         * v850.c (print_operand_address): Rename to...
11764         (v850_print_operand_address): ...this.  Make static. Call
11765         v850_print_operand.
11766         (print_operand): Rename to...
11767         (v850_print_operand): ...this.  Make static.  Call
11768         v850_print_operand_address.
11769         (v850_print_operand_punct_valid_p): New function.
11770         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11771         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11772
11773 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11774
11775         * config/sh/sh-protos.h (print_operand): Delete.
11776         (print_operand_address): Delete.
11777         * config/sh/sh.h (PRINT_OPERAND): Delete.
11778         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11779         (PRINT_OPERAND_ADDRESS): Delete.
11780         * config/sh/sh.c (sh_print_operand_address): Make static.
11781         (sh_print_operand): Make static.  Call sh_print_operand_address
11782         and sh_print_operand.
11783         (sh_print_operand_punct_valid_p): New function.
11784         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11785         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11786
11787 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11788
11789         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
11790         (mcore_print_operand_address): Delete.
11791         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
11792         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11793         (PRINT_OPERAND_ADDRESS): Delete.
11794         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
11795         (mcore_print_operand): Make static.
11796         (mcore_print_operand_punct_valid_p): New function.
11797         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
11798         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11799
11800 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11801
11802         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
11803         (print_operand_address): Delete.
11804         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
11805         (PRINT_OPERAND_ADDRESS): Delete.
11806         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
11807         static.
11808         (m68hc11_print_operand): Make static.
11809         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11810
11811 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11812
11813         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
11814         (m32r_print_operand_address): Delete.
11815         * config/m32r/m32r.h (m32r_punct_chars): Delete.
11816         (PRINT_OPERAND): Delete.
11817         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11818         (PRINT_OPERAND_ADDRESS): Delete.
11819         * config/m32r/m32r.c (m32r_punct_chars): Make static.
11820         (m32r_print_operand_address): Make static.
11821         (m32r_print_operand): Make static.
11822         (m32r_print_operand_punct_valid_p): New function.
11823         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11824         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11825
11826 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11827
11828         * config/iq2000/iq2000-protos.h (print_operand): Delete.
11829         (print_operand_address): Delete.
11830         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
11831         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11832         (PRINT_OPERAND_ADDRESS): Delete.
11833         (iq2000_print_operand_punct): Delete.
11834         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
11835         (iq2000_print_operand_address): Make static.
11836         (iq2000_print_operand): Make static.
11837         (iq2000_print_operand_punct_valid_p): New function.
11838         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11839         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11840
11841 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11842
11843         * config/frv/frv-protos.h (frv_print_operand): Delete.
11844         (frv_print_operand_address): Delete.
11845         * config/frv/frv.h (PRINT_OPERAND): Delete.
11846         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11847         (PRINT_OPERAND_ADDRESS): Delete.
11848         * config/frv/frv.c (frv_print_operand_address): Make static.
11849         (frv_print_operand): Make static.
11850         (frv_print_operand_punct_valid_p): New function.
11851         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11852         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11853
11854 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11855
11856         * tree.h (vec_member): Declare.
11857         * tree.c (vec_member): Define.
11858
11859 2010-06-17  Richard Guenther  <rguenther@suse.de>
11860
11861         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
11862         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
11863
11864 2010-06-17  Richard Guenther  <rguenther@suse.de>
11865
11866         * tree-inline.c (declare_return_variable): Remove bogus code.
11867
11868 2010-06-17  Richard Guenther  <rguenther@suse.de>
11869
11870         * gimplify.c (gimplify_bind_expr): Always promote complex
11871         and vector variables to registers if possible.
11872
11873 2010-06-17  Richard Guenther  <rguenther@suse.de>
11874
11875         * expr.c (get_inner_reference): Use double_int for bit_offset
11876         calculation.
11877
11878 2010-06-16  DJ Delorie  <dj@redhat.com>
11879
11880         * common.opt (-fstrict-volatile-bitfields): new.
11881         * doc/invoke.texi: Document it.
11882         * fold-const.c (optimize_bit_field_compare): For volatile
11883         bitfields, use the field's type to determine the mode, not the
11884         field's size.
11885         * expr.c (expand_assignment): Likewise.
11886         (get_inner_reference): Likewise.
11887         (expand_expr_real_1): Likewise.
11888         * expmed.c (store_fixed_bit_field): Likewise.
11889         (extract_bit_field_1): Likewise.
11890         (extract_fixed_bit_field): Likewise.
11891
11892 2010-06-16  Richard Guenther  <rguenther@suse.de>
11893
11894         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
11895
11896 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
11897
11898         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
11899         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
11900         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
11901         * debug.c: Likewise.
11902         * sdbout.c: Likewise.
11903         * vmsdbgout.c: Likewise.
11904         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
11905         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
11906         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
11907         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
11908         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
11909         * dwarf2out.c (dw_fde_struct): New fields
11910         dw_fde_vms_{end,begin}_prologue.
11911         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
11912         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
11913         (dwarf2out_vms_end_prologue): New function.
11914         (dwarf2out_vms_begin_epilogue): New function.
11915         (dw_val_struct): New value dw_val_class_vms_delta.
11916         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
11917         begin_epilogue for VMS.
11918         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
11919         new static functions.
11920         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
11921         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
11922         static functions.
11923         (print_die): New case dw_val_class_vms_delta.
11924         (attr_checksum): Likewise.
11925         (same_dw_val_p: Likewise.
11926         (size_of_die): Likewise.
11927         (value_format): Likewise.
11928         (output_die): Likewise.
11929         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
11930         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
11931         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
11932         dwarf2out_cfi_begin_epilogue
11933         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
11934
11935 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
11936
11937         * config/cris/cris-protos.h (cris_print_operand): Delete.
11938         (cris_print_operand_address): Delete.
11939         * config/cris/cris.h (PRINT_OPERAND): Delete.
11940         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11941         (PRINT_OPERAND_ADDRESS): Delete.
11942         * config/cris/cris.c (cris_print_operand_address): Make static.
11943         (cris_print_operand): Make static.
11944         (cris_print_operand_punct_valid_p): New function.
11945         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11946         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11947
11948 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
11949
11950         * config/arm/arm-protos.h (arm_print_operand): Delete.
11951         (arm_print_operand_address): Delete.
11952         * config/arm/arm.h (PRINT_OPERAND): Delete.
11953         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11954         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
11955         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
11956         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
11957         (arm_print_operand): Make static.
11958         (arm_print_operand_punct_valid_p): New function.
11959         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11960         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11961
11962 2010-06-16  Nick Clifton  <nickc@redhat.com>
11963
11964         * config/rx/constraints.md (NEGint4): New constraint.
11965         * config/rx/rx.md (attr cc): Add set_zsc.
11966         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
11967         initialised.
11968         (cmpsf): Likewise.
11969         (call_internal): Clobber the cc0 register.
11970         (call_value_internal): Likewise.
11971         (cstoresi4): Likewise.
11972         (movsieq): Likewise.
11973         (movsine): Likewise.
11974         (addsi3): Add alternative to handle small negative constants.
11975         (sunsi3): Likewise.
11976         (addsi3): Do not set the O bit in the cc0 register.
11977         (adddi3): Likewise.
11978         (subsi3): Likewise.
11979         (subdi3): Likewise.
11980         (andsi3): Reorder alternatives to prefer shorter forms.
11981         (mulsi3): Likewise.
11982         (iorsi3): Likewise.
11983         (negsi2): Note that the cc0 flags are set.
11984         (rotlsi3): Note that only the Z and S bits are set in cc0.
11985         (lshrsi3): Likewise.
11986         (ashlsi3): Likewise.
11987         (subsf3): Use %Q for the MEM operand.
11988         (fix_truncsfsi2): Likewise.
11989         (floatsisf2): Likewise.
11990         (bitset): Remove early clobber from destination.
11991         (bitset_in_memory): Likewise.
11992         (lrintsf2): Clobber the cc0 register.
11993         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
11994         (rx_print_operand): Handle %N.
11995
11996 2010-06-16  Jan Hubicka  <jh@suse.cz>
11997
11998         * df-core.c (df_compact_blocks): Free problem_temps vector.
11999
12000 2010-06-16  Martin Jambor  <mjambor@suse.cz>
12001
12002         PR tree-optimization/43905
12003         * tree-sra.c: Include tree-inline.h.
12004         (create_abstract_origin): Removed.
12005         (modify_function): Version the call graph node instead of creating
12006         abstract origins and dealing with same_body aliases.
12007         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
12008         function is versionable.
12009         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
12010
12011 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
12012
12013         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
12014         (CHOOSE_DYNAMIC_LINKER): Update.
12015
12016 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
12017
12018         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
12019         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
12020         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
12021         *prefetch_3dnow_rex.
12022
12023 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
12024
12025         * target.h (struct asm_out):Add declare_constant_name field.
12026         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
12027         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
12028         * output.h (default_asm_declare_constant_name): Declare.
12029         (assemble_label): Update prototype.
12030         * varasm.c (assemble_constant_contents): Use
12031         targetm.asm_out.declare_constant_name target hook.
12032         (assemble_label): Add 'file' argument.
12033         (default_asm_declare_constant_name): New function.
12034         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
12035         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
12036         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
12037
12038         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
12039         * config/darwin.c (darwin_asm_declare_constant_name): New function.
12040         (machopic_output_indirection): Update assemble_label argument list.
12041         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
12042         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
12043
12044 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
12045
12046         PR middle-end/44391
12047         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
12048         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
12049
12050 2010-06-15  Richard Guenther  <rguenther@suse.de>
12051
12052         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
12053
12054 2010-06-15  Paul Brook  <paul@codesourcery.com>
12055
12056         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
12057         hard-float ABI.
12058
12059 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
12060
12061         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
12062         don't get a vector type for output.
12063
12064 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
12065
12066         PR fortran/44536
12067         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
12068         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
12069         (LANG_HOOKS_DECLS): Add it.
12070         * gimplify.c (omp_notice_variable): Call
12071         lang_hooks.decls.omp_report_decl.
12072
12073 2010-06-15  Martin Jambor  <mjambor@suse.cz>
12074
12075         PR lto/44464
12076         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
12077         on the newly dead SSA name.
12078
12079 2010-06-15  Alan Modra  <amodra@gmail.com>
12080
12081         * doc/invoke.texi: Add mcmodel to powerpc options.
12082         * configure.ac: Add HAVE_LD_LARGE_TOC test.
12083         * configure: Regenerate.
12084         * config.in: Regenerate.
12085         * config/rs6000/linux64.opt (mcmodel): New.
12086         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
12087         (TARGET_CMODEL, SET_CMODEL): Define.
12088         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
12089         select CMODEL_MEDIUM default.
12090         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
12091         (TARGET_CMODEL): Define default.
12092         * config/rs6000/rs6000.c (cmodel): New variable.
12093         (rs6000_explicit_options): Add cmodel field.
12094         (rs6000_handle_option): Handle -mcmodel.
12095         (create_TOC_reference): Add largetoc_reg param.  Generate high,
12096         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
12097         (rs6000_delegitimize_address): Recognise new toc reference rtl
12098         and minimal-toc rtl.
12099         (rs6000_legitimize_reload_address): Handle new toc references.
12100         (print_operand_address): Handle legitimate_constant_pool_address_p
12101         match before lo_sum.
12102         (rs6000_eliminate_indexed_memrefs): Tidy.
12103         (rs6000_emit_move): Tweak threshold for inlining constants.
12104         Keep rs6000_emit_allocate_stack large stack frame offsets
12105         loaded into r0 inline.
12106         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
12107         (tocrel_base, tocrel_offset): New variables.
12108         (toc_relative_expr_p): Set them here.
12109         (print_operand_address): Skip over any offset on constant pool address.
12110         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
12111         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
12112         (offsettable_ok_by_alignment): New function.
12113         (rs6000_emit_move): Address suitably aligned local symbol_refs
12114         relative to the toc pointer for -mcmodel=medium.
12115         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
12116         strict param.  Allow lo_sum version of addressing.  Verify reg
12117         used for -mminimal-toc and -mcmodel != small.  Update all callers.
12118         * config/rs6000/constraints.md: Update for above change.
12119         * config/rs6000/predicates.md: Likewise.
12120         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
12121         code.
12122         (tls_gd): Split for -mcmodel=medium/large.
12123         (tls_gd_high, tls_gd_low): New.
12124         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
12125         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
12126         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
12127         (largetoc_high, largetoc_low): New.
12128         (cmptf_internal2): Add clobber.
12129         * config/rs6000/rs6000-protos.h: Update.
12130
12131 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
12132
12133         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
12134         true if no prefetch is going to be generated for a given group.
12135         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
12136         estimate the prefetch_count.
12137         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
12138         prefetch count by considering the unroll_factor and prefetch_mod
12139         for is_loop_prefetching_profitable.
12140
12141 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
12142
12143         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
12144         anything if the argument is not a MEM.
12145
12146 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
12147
12148         PR debug/43650
12149         PR debug/44181
12150         PR debug/44247
12151         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
12152         debug stmts.
12153         (canonicalize_loop_ivs): Likewise.
12154
12155 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
12156
12157         PR debug/43656
12158         * haifa-sched.c (setup_insn_reg_pressure_info,
12159         update_register_pressure): Reject debug insns.
12160         (ready_sort): Don't setup reg pressure for debug insns.
12161         (schedule_insn): Don't update reg pressure for debug insns.
12162
12163 2010-06-14  Richard Guenther  <rguenther@suse.de>
12164
12165         * lto-streamer.c (cached_bp): Remove.
12166         (bitpack_delete): Likewise.
12167         (bitpack_create): Likewise.
12168         (bp_get_next_word): Likewise.
12169         (bp_pack_value, bp_unpack_value): Move ...
12170         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
12171         Re-implement.
12172         (struct bitpack_d): Likewise.
12173         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
12174         New inline functions.
12175         * lto-streamer-out.c (lto_output_bitpack): Remove.
12176         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
12177         (pack_value_fields): Adjust.
12178         (lto_write_tree): Likewise.
12179         (output_gimple_stmt): Likewise.
12180         (output_function): Likewise.
12181         * lto-streamer-in.c (input_gimple_stmt): Adjust.
12182         (input_function): Likewise.
12183         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
12184         (lto_input_bitpack): Remove.
12185         (lto_materialize_tree): Adjust.
12186         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
12187         * lto-cgraph.c (lto_output_edge): Adjust.
12188         (lto_output_node): Likewise.
12189         (lto_output_varpool_node): Likewise.
12190         (lto_output_ref): Likewise.
12191         (input_node): Likewise.
12192         (input_varpool_node): Likewise.
12193         (input_ref): Likewise.
12194         (input_edge): Likewise.
12195         (output_node_opt_summary): Likewise.
12196         (input_node_opt_summary): Likewise.
12197         * ipa-pure-const.c (pure_const_write_summary): Likewise.
12198         (pure_const_read_summary): Likewise.
12199         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
12200         (ipa_read_indirect_edge_info): Likewise.
12201         (ipa_write_node_info): Likewise.
12202         (ipa_read_node_info): Likewise.
12203
12204 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12205
12206         PR target/44534
12207         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
12208         (vec_extract_lo_v16hi): Likewise.
12209         (vec_extract_lo_v32qi): Likewise.
12210
12211 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
12212
12213         PR bootstrap/44426
12214         * tree.h (build_call_expr): Don't define as vararg macro, instead
12215         add a prototype.
12216         * builtins.c (build_call_nofold): Remove.
12217         (expand_builtin_int_roundingfn, expand_builtin_pow,
12218         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
12219         expand_builtin_memset_args, expand_builtin_strcmp,
12220         expand_builtin_strncmp, expand_builtin_memory_chk): Use
12221         build_call_nofold_loc instead of build_call_nofold.
12222         (build_call_expr): New function.
12223
12224         PR tree-optimization/44508
12225         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
12226         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
12227         don't eliminate trivially dead stmts.
12228         * tree-vrp.c (vrp_finalize): Pass false as last argument
12229         to substitute_and_fold.
12230         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
12231         to substitute_and_fold.
12232         * tree-ssa-ccp.c (ccp_finalize): Likewise.
12233
12234         PR bootstrap/44509
12235         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
12236
12237 2010-06-14  Ira Rosen  <irar@il.ibm.com>
12238
12239         PR tree-optimization/44507
12240         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
12241         to build initial vector for BIT_AND_EXPR.
12242         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
12243
12244 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
12245
12246         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
12247         adjust z10prop set_attr.
12248
12249 2010-06-13  Jan Hubicka  <jh@suse.cz>
12250
12251         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
12252         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
12253         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
12254         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
12255         datastructure checks into checking asserts.
12256         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
12257         * tree-ssa-sccvn.c (VN_INFO): Likewise.
12258         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
12259         df_ref_create_structure): Likewise.
12260         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
12261         pool_free): Use gcc_checking_assert.
12262         * alias.c (get_alias_set): Likewise.
12263         * var-tracking.c (variable_htab_free, shared_hash_copy,
12264         canonicalize_values_mark, variable_merge_over_cur): Likewise.
12265         * lto-streamer.c (bp_unpack_value): Likewise.
12266
12267 2010-06-13  Richard Guenther  <rguenther@suse.de>
12268
12269         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
12270         Do not stream but initialize TYPE_CANONICAL to NULL.
12271         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
12272         * gimple.c (gimple_types_compatible_p): Disregard
12273         TYPE_STRUCTURAL_EQUALITY_P.
12274         (gimple_register_type): Use TYPE_CANONICAL as cache.
12275         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
12276         before registering common types.
12277         * config/i386/i386.c (ix86_function_arg_boundary): Do not
12278         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
12279         * tree.h (TYPE_CANONICAL): Clarify documentation.
12280
12281 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
12282
12283         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12284         LIBCALL_VALUE): Remove macros.
12285         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
12286         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12287         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12288         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
12289         (ia64_function_value): Make static. Handle receiving the function
12290         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
12291
12292 2010-06-12  Jan Hubicka  <jh@suse.cz>
12293
12294         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
12295         at correct place.
12296
12297 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
12298
12299         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
12300
12301 2010-06-12  Jan Hubicka  <jh@suse.cz>
12302
12303         * df-core.c (df_clear_bb_info): New function.
12304         (df_set_blocks): bb_info is always allocated.
12305         (df_get_bb_info): Use block_info_elt_size.
12306         (df_set_bb_info): Likewise.
12307         (df_compact_blocks): Update for new block_info.
12308         (grow_bb_info): New function.
12309         * df-problems.c (df_grow_bb_info): Move to df-core.c
12310         (df_rd_set_bb_info): Remove.
12311         (df_rd_free_bb_info): Do not free block pool.
12312         (df_rd_alloc): Do not create pool, use check for
12313         obstack presence instead of NULL pointer for new blocks.
12314         (df_rd_free): DO not free alloc pool; clear block_info.
12315         (problem_RD): Add size of block info structure.
12316         (df_lr_set_bb_info): Remove.
12317         (df_lr_free_bb_info): Do not free block pool.
12318         (df_lr_alloc): Do not create pool, use check for
12319         obstack presence instead of NULL pointer for new blocks.
12320         (df_lr_free): DO not free alloc pool; clear block_info.
12321         (problem_LR): Add size of block info structure.
12322         (df_live_set_bb_info): Remove.
12323         (df_live_free_bb_info): Do not free block pool.
12324         (df_live_alloc): Do not create pool, use check for
12325         obstack presence instead of NULL pointer for new blocks.
12326         (df_live_free): DO not free alloc pool; clear block_info.
12327         (problem_LIVE): Add size of block info structure.
12328         (problem_CHAIN): Add size of block info structure.
12329         (df_byte_lr_set_bb_info): Remove.
12330         (df_byte_lr_free_bb_info): Do not free block pool.
12331         (df_byte_lr_alloc): Do not create pool, use check for
12332         obstack presence instead of NULL pointer for new blocks.
12333         (df_byte_lr_free): DO not free alloc pool; clear block_info.
12334         (problem_BYTE_LR): Add size of block info structure.
12335         (problem_NOTE): Add size of block info structure.
12336         (df_byte_MD_set_bb_info): Remove.
12337         (df_byte_MD_free_bb_info): Do not free block pool.
12338         (df_byte_MD_alloc): Do not create pool, use check for
12339         obstack presence instead of NULL pointer for new blocks.
12340         (df_byte_MD_free): DO not free alloc pool; clear block_info.
12341         (problem_BD): Add size of block info structure.
12342         * df-scan.c (df_scan_free_internal): Free block pool.
12343         (df_scan_set_bb_info): Remove.
12344         (df_scan_free_bb_info): Check for artificial_defs instead
12345         of bb_info being non-NULL.
12346         (df_scan_alloc): DO not create df_scan_block pool.
12347         (problem_SCAN): Set size of block info.
12348         (df_bb_refs_record): Do not allocate bb_info.
12349         * df.h (df_problem): Add block_info_elt_size.
12350         (struct dataflow): Change block_info to void *.
12351         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
12352         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
12353         in-line structures.
12354
12355 2010-06-12  Jan Hubicka  <jh@suse.cz>
12356
12357         PR tree-optimize/44485
12358         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
12359         containing use of return value of noreturn function.
12360
12361 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
12362
12363         * targhooks.c (default_function_value): Don't use
12364         FUNCTION_OUTGOING_VALUE.
12365         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
12366         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
12367
12368 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
12369
12370         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
12371         Add crtfastmath.o to extra_parts.
12372         * config/mips/crtfastmath.c: New.
12373         * config/mips/linux.h (ENDFILE_SPEC): New.
12374
12375 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
12376
12377         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
12378         old_type in parameter.
12379         (gcc_type_for_value): Update call to gcc_type_for_interval.
12380         (compute_type_for_level_1): Renamed compute_type_for_level.
12381         Update call to gcc_type_for_interval.
12382
12383 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
12384
12385         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
12386         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
12387
12388 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
12389
12390         * opts-common.c: Include options.h.
12391         (integral_argument): Move from opts.c.
12392         (decode_cmdline_option): New.  Based on read_cmdline_option.
12393         * opts.c (integral_argument): Move to opts-common.c.
12394         (read_cmdline_option): Move most contents to
12395         decode_cmdline_option.  Use %qs in diagnostics.
12396         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
12397         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
12398         decode_cmdline_option): New.
12399
12400 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12401
12402         PR target/44481
12403         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
12404         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
12405         (partiysi2_cmp): Ditto.
12406         (*partiyhi2_cmp): Ditto.
12407         (*parityqi2_cmp): Remove.
12408
12409 2010-06-11  Jan Hubicka  <jh@suse.cz>
12410
12411         * bitmap.h (bmp_iter_next_bit): New.
12412         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
12413
12414 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
12415             Eric Botcazou  <ebotcazou@adacore.com>
12416
12417         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
12418         computed cost.
12419
12420 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12421
12422         * config/i386/i386.md (unspec): New define_c_enum.
12423         (unspecv): Ditto.
12424
12425 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
12426
12427         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
12428
12429 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
12430
12431         PR middle-end/44483
12432         * tree-if-conv.c (bb_predicate_s): New struct.
12433         (bb_predicate_p): New.
12434         (bb_has_predicate): New.
12435         (bb_predicate): New.
12436         (set_bb_predicate): New.
12437         (bb_predicate_gimplified_stmts): New.
12438         (set_bb_predicate_gimplified_stmts): New.
12439         (add_bb_predicate_gimplified_stmts): New.
12440         (init_bb_predicate): New.
12441         (free_bb_predicate): New.
12442         (is_predicated): Use bb_predicate.
12443         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
12444         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
12445         before processing their successors.
12446         (clean_predicate_lists): Removed.
12447         (find_phi_replacement_condition): Use bb_predicate.
12448         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
12449         computations.
12450         (insert_gimplified_predicates): New.
12451         (combine_blocks): Call insert_gimplified_predicates.
12452         (tree_if_conversion): Call free_bb_predicate instead of
12453         clean_predicate_lists.
12454
12455 2010-10-11  Paul Brook  <paul@codesourcery.com>
12456
12457         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
12458         * config/arm/arm.c (all_architectures): Change v7e-m default to
12459         cortexm4.
12460         * config/arm/arm-cores.def: Add cortex-m4.
12461         * config/arm/arm-tune.md: Regenerate.
12462
12463 2010-06-11  Jan Hubicka  <jh@suse.cz>
12464
12465         * ipa-pure-const.c (special_builtlin_state): New function.
12466         (check_call): Use it instead of special casign BUILT_IN_RETURN.
12467         (propagate_pure_const): Use it.
12468
12469 2010-06-11  Jan Hubicka  <jh@suse.cz>
12470
12471         * df-problems.c (df_live_scratch): Convert to bitmap_head.
12472         (df_live_alloc): Initialize df_live_scratch when initializing
12473         problem_data.
12474         (df_live_transfer_function): Update uses of df_live_scratch.
12475         (df_live_free): Free problem_data; clear df_live_scratch before
12476         releasing the obstack.
12477         (df_md_free): Free problem data.
12478
12479 2010-06-11  Jan Hubicka  <jh@suse.cz>
12480
12481         * doc/invoke.texi (Wsuggest-attribute): Document.
12482         (Wmissing-noreturn): Remove.
12483         * ipa-pure-const.c (warn_function_noreturn): New function.
12484         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
12485         warn_missing_noreturn.
12486         * common.opt (Wsuggest-attribute=noreturn): New.
12487         * tree-flow.h (warn_function_noreturn): Declare.
12488         * tree-cfg.c (execute_warn_function_noreturn): Use
12489         warn_function_noreturn.
12490         (gate_warn_function_noreturn): New.
12491         (pass_warn_function_noreturn): Update.
12492
12493 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12494
12495         * c-typeck.c (handle_warn_cast_qual): Add loc
12496         parameter. Improve warning message.
12497         (build_c_cast): Pass location to handle_warn_cast_qual.
12498
12499 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12500
12501         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
12502         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
12503         insn mnemonic.
12504         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
12505
12506 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
12507
12508         Fix bootstap on mips
12509         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
12510         be naming typedefs.
12511
12512 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
12513
12514         * system.h (helper_const_non_const_cast): New inline for
12515         gcc version <= 4.0.
12516         (CONST_CAST2): For gcc version <= 4.0 use
12517         new helper to do const/non-const casting.
12518
12519 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12520
12521         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
12522         * Makefile.in (OBJS-common): Include insn-enums.o.
12523         (insn-enums.o): New rule.
12524         (simple_generated_c): Add insn-enums.c.
12525         (build/genenums.o): New rule.
12526         (genprogmd): Add "enums".
12527         * genconstants.c (print_enum_type): Declare a C string array
12528         for each enum.
12529         * genenums.c: New file.
12530         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
12531         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
12532         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
12533
12534 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12535
12536         * doc/md.texi (define_enum_attr): Document.
12537         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
12538         * read-md.h (lookup_enum_type): Declare.
12539         * read-md.c (lookup_enum_type): New function.
12540         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
12541         * genattrtab.c (attr_desc): Add an enum_name field.
12542         (evaluate_eq_attr): Take the associated attribute as argument.
12543         Get the enum prefix from the enum_name field, if defined.
12544         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
12545         (simplify_test_exp): Pass attr to evaluate_eq_attr.
12546         (add_attr_value): New function, split out from...
12547         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
12548         (write_test_expr): Pass attr to evaluate_eq_attr.
12549         (write_attr_get): Use the enum_name as the enum tag, if defined.
12550         (write_attr_valueq): Use the enum_name as a prefix, if defined.
12551         (find_attr): Initialize enum_name.
12552         (main): Handle DEFINE_ENUM_ATTR.
12553         * gensupport.c (process_rtx): Likewise.
12554         * config/mips/mips.h (mips_tune_attr): Delete.
12555         * config/mips/mips.md (cpu): Use define_attr_enum.
12556
12557 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12558
12559         * doc/md.texi (define_c_enum, define_enum): Document.
12560         * read-md.h (md_constant): Add a parent_enum field.
12561         (enum_value, enum_type): New structures.
12562         (upcase_string, traverse_enum_types): Declare.
12563         * read-md.c (enum_types): New variable.
12564         (upcase_string, add_constant): New functions.
12565         (handle_constants): Don't create the hash table here.
12566         Use add_constant.
12567         (traverse_md_constants): Don't check for a null md_constants.
12568         (decimal_string, handle_enum, traverse_enum_types): New functions.
12569         (read_md_files): Initialize md_constants and md_enums.
12570         * genconstants.c (print_md_constant): Ignore info argument.
12571         Only print constants that belong to no enum.
12572         (print_enum_type): New function.
12573         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
12574         for each defined enum type.
12575         * config/mips/mips.md (processor): New define_enum.
12576         (unspec): New define_c_enum.
12577         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
12578         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
12579         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
12580         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
12581         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
12582         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
12583         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
12584         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
12585         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
12586         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
12587         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
12588         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
12589         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
12590         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
12591         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
12592         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
12593         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
12594         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
12595         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
12596         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
12597         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
12598         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
12599         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
12600         (UNSPEC_RDDSP): Move to mips-dsp.md.
12601         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
12602         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
12603         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
12604         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
12605         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
12606         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
12607         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
12608         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
12609         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
12610         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
12611         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
12612         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
12613         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
12614         Moved to mips-dspr2.md.
12615         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
12616         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
12617         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
12618         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
12619         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
12620         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
12621         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
12622         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
12623         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
12624         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
12625         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
12626         UNSPEC_LOONGSON_PSADBH)
12627         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
12628         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
12629         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
12630         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12631         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12632         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12633         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
12634         (cpu): Update comment.
12635         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
12636         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
12637         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
12638         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
12639         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
12640         UNSPEC_LOONGSON_PCMPEQ)
12641         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
12642         UNSPEC_LOONGSON_PINSR_0)
12643         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
12644         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
12645         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
12646         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
12647         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
12648         UNSPEC_LOONGSON_PSADBH)
12649         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
12650         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
12651         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
12652         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12653         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12654         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12655         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
12656         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
12657         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
12658         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
12659         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
12660         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
12661         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
12662         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
12663         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
12664         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
12665         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
12666         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
12667         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
12668         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
12669         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
12670         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
12671         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
12672         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
12673         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
12674         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
12675         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
12676         (UNSPEC_RDDSP): Moved from mips.md.
12677         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
12678         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
12679         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
12680         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
12681         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
12682         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
12683         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
12684         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
12685         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
12686         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
12687         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
12688         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
12689         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
12690         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
12691         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
12692         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
12693         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
12694         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
12695         (UNSPEC_SCC): Moved from mips.md.
12696         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
12697         "processor_type" to "processor".
12698         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
12699         * config/mips/mips.h (processor_type): Delete.
12700         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
12701         "processor_type" to "processor".
12702
12703 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12704
12705         * configure.ac (tm_include_list): Add insn-constants.h.
12706         * configure: Regenerate.
12707         * Makefile.in (GTM_H): Move insn-constants.h here from...
12708         (TM_H): ...here.
12709         * mkconfig.sh: Remove special handling for insn-constants.h.
12710
12711 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12712
12713         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
12714         (BUILD_MD): ...this new variable.
12715         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
12716         that include the old contents of simple_generated_h and
12717         simple_generated_c.
12718         (simple_generated_h, simple_generated_c): Include them.  Add
12719         insn-constants.h.
12720         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
12721         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
12722         Remove these dependencies from the main rule and include
12723         insn-conditions.md in the command line only if it appears
12724         in the dependency list.
12725         (insn-constants.h, s-constants): Delete.
12726         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
12727         or gensupport.h.
12728         (build/genmddeps.o): Likewise.
12729         (genprogrtl): New variable that contains everything from genprogmd
12730         except mddeps and constants.
12731         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
12732         depend on $(BUILD_MD)
12733         (genprog): New variable.  Make these programs depend on
12734         $(BUILD_ERRORS).
12735         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
12736         (main): Use read_md_files instead of init_rtx_reader_args.
12737         * genconstants.c: As for genmddeps.c.
12738         * read-md.h (read_skip_construct): Declare.
12739         * read-md.c (read_skip_construct): New function.
12740         (handle_file): Allow a null handle_directive, skipping the
12741         construct if so.
12742         (parse_include): Update the comment accordingly.
12743
12744 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12745
12746         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
12747         * genmddeps.c: Include read-md.h.
12748         (main): Call init_rtx_reader_args instead of init_md_reader_args.
12749         * genattr.c (main): Likewise.
12750         * genattrtab.c (main): Likewise.
12751         * genautomata.c (main): Likewise.
12752         * gencodes.c (main): Likewise.
12753         * genconditions.c (main): Likewise.
12754         * genconfig.c (main): Likewise.
12755         * genconstants.c (main): Likewise.
12756         * genemit.c (main): Likewise.
12757         * genextract.c (main): Likewise.
12758         * genflags.c (main): Likewise.
12759         * genopinit.c (main): Likewise.
12760         * genoutput.c (main): Likewise.
12761         * genpeep.c (main): Likewise.
12762         * genrecog.c (main): Likewise.
12763         * genpreds.c (main): Likewise.
12764         * gensupport.h (in_fname): Move to read-md.h.
12765         (init_md_reader_args_cb): Rename to...
12766         (init_rtx_reader_args_cb): ...this and return a bool.
12767         (init_md_reader_args): Rename to...
12768         (init_rtx_reader_args): ...this and return a bool.
12769         (include_callback): Move to read-md.h.
12770         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
12771         (file_name_list, first_dir_md_include): Move to read-md.c
12772         (first_bracket_include): Delete unused variable.
12773         (last_dir_md_include): Move to read-md.c.
12774         (process_include): Delete, moving code to read-md.c:handle_include.
12775         (process_rtx): Don't handle INCLUDE.
12776         (save_string): Delete.
12777         (rtx_handle_directive): New function.
12778         (init_md_reader_args_cb): Rename to...
12779         (init_rtx_reader_args_cb): ...this and return a boolean success value.
12780         Use read_md_args.
12781         (init_md_reader_args): Rename to...
12782         (init_rtx_reader_args): ...this and return a boolean success value.
12783         * rtl.def (INCLUDE): Delete.
12784         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
12785         argument.
12786         * read-rtl.c (read_conditions): Don't gobble ')' here.
12787         (read_mapping): Likewise.
12788         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
12789         Handle top-level non-rtx constructs here rather than in read_rtx_1.
12790         Store the whole queue in *X.  Remove call to init_md_reader.
12791         (read_rtx_1): Rename to...
12792         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
12793         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
12794         here.
12795         (read_nested_rtx): New function.  Handle (nil) here rather than
12796         in read_rtx_code.
12797         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
12798         gobble ')' here.
12799         * read-md.h (directive_handler_t): New type.
12800         (in_fname, include_callback): Moved from read-md.h.
12801         (read_constants, init_md_reader): Delete.
12802         (read_md_files): Declare.
12803         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
12804         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
12805         from gensupport.c.
12806         (read_constants): Rename to...
12807         (handle_constants): ...this.  Don't gobble ')' here.
12808         (handle_include, handle_file, handle_toplevel_file)
12809         (parse_include): New functions, mostly taken from gensupport.c.
12810         (init_md_reader): Subsume into...
12811         (read_md_files): ...this new function.
12812
12813 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12814
12815         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
12816         (unread_char): Decrement read_md_lineno after putting back '\n'.
12817         * read-md.c (fatal_with_file_and_line): Push back any characters
12818         that we decide not to add to the context.
12819         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
12820         fatal_expected_char in cases where '/' ends a line (for example).
12821         (read_name): Don't increment read_md_lineno here.
12822         (read_escape): Likewise.
12823         (read_quoted_string): Likewise.
12824         (read_braced_string): Likewise.
12825
12826 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12827
12828         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
12829         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
12830         * genconstants.c: Include read-md.h.
12831         * read-rtl.c (md_constants): Move to read-md.c.
12832         (md_name): Move to read-md.h.
12833         (initialize_iterators): Use leading_string_hash instead of def_hash
12834         and leading_string_eq_p instead of def_name_eq_p.
12835         (read_name): Move to read-md.c.
12836         (def_hash, def_name_eq_p): Delete.
12837         (read_constants, traverse_md_constants): Move to read-md.c.
12838         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
12839         * read-md.h: Include hashtab.h.
12840         (md_name): Moved from read-rtl.c.
12841         (md_constant): Moved from read-md.h.
12842         (leading_string_hash, leading_string_eq_p, read_name)
12843         (read_constants, traverse_md_constants): Declare.
12844         * read-md.c (md_constants): Moved from read-rtl.c.
12845         (leading_string_hash, leading_string_eq_p): New functions.
12846         (read_name, read_constants, traverse_md_constants): Moved from
12847         read-rtl.c.
12848
12849 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12850
12851         * read-rtl.c (md_name): New structure.
12852         (read_name): Take an md_name instead of a buffer pointer.
12853         Use the "string" field instead of strcpy when expanding constants.
12854         (read_constants): Remove the tmp_char argument.  Update the calls
12855         to read_name, using two local name buffers instead of the tmp_char
12856         argument.  Merge the constant-creation code.
12857         (read_conditions): Remove the tmp_char argument.  Update the calls
12858         to read_name, using a local name buffer instead of the tmp_char
12859         argument.
12860         (read_mapping): Replace tmp_char variable with a local name buffer.
12861         Update the calls to read_name.
12862         (read_rtx_1): Likewise.  Update the calls to read_constants and
12863         read_conditions.
12864
12865 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12866
12867         * Makefile.in (build/read-md.o): Depend on errors.h.
12868         * read-md.h (error_with_line): Declare.
12869         * read-md.c: Include errors.h.
12870         (message_with_line_1): New function, extracted from...
12871         (message_with_line): ...here.
12872         (error_with_line): New function.
12873         * genattrtab.c: If a call to message_with_line is followed by
12874         "have_error = 1;", replace both statements with a call to
12875         error_with_line.
12876         * genoutput.c: Likewise.
12877         * genpreds.c: Likewise.
12878         * genrecog.c: If a call to message_with_line is followed by
12879         "error_count++;", replace both statements with a call to
12880         error_with_line.
12881         (errorcount): Delete.
12882         (main): Don't check it.
12883         * gensupport.c: If a call to message_with_line is followed by
12884         "errors = 1;", replace both statements with a call to error_with_line.
12885         (errors): Delete.
12886         (process_define_cond_exec): Check have_error instead of errors.
12887         (init_md_reader_args_cb): Likewise.  Don't set errors.
12888
12889 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12890
12891         * read-md.h (read_md_file): Declare.
12892         (read_char, unread_char): New functions.
12893         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
12894         (read_quoted_string, read_string): Remove FILE * argument.
12895         * read-md.c (read_md_file): New variable.
12896         (read_md_filename, read_md_lineno): Update comments and remove
12897         unnecessary initialization.
12898         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
12899         (read_escape, read_quoted_string, read_braced_string, read_string):
12900         Remove FILE * argument.  Update calls accordingly, using read_char
12901         and unread_char instead of getc and ungetc.
12902         * rtl.h (read_rtx): Remove FILE * argument.
12903         * read-rtl.c (iterator_group): Remove FILE * argument from
12904         "find_builtin".
12905         (iterator_traverse_data): Remove "infile" field.
12906         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
12907         (add_mapping, read_name, read_constants, read_conditions)
12908         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
12909         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
12910         Remove file arguments from all calls, using read_char and unread_char
12911         instead of getc and ungetc.
12912         * gensupport.c (process_include): Preserve read_md_file around
12913         the include.  Set read_md_file to the handle of the included file.
12914         Update call to read_rtx.
12915         (init_md_reader_args_cb): Set read_md_file to the handle of the file
12916         and remove local FILE *.  Update calls to read_rtx.
12917
12918 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12919
12920         * read-md.h (read_rtx_lineno): Rename to...
12921         (read_md_lineno): ...this.
12922         (read_rtx_filename): Rename to...
12923         (read_md_filename): ...this.
12924         (copy_rtx_ptr_loc): Rename to...
12925         (copy_md_ptr_loc): ...this.
12926         (print_rtx_ptr_loc): Rename to...
12927         (print_md_ptr_loc): ...this.
12928         * read-md.c: Likewise.  Update references after renaming.
12929         (string_obstack): Replace RTL with MD in comment.
12930         (set_rtx_ptr_loc): Rename to...
12931         (set_md_ptr_loc): ...this.
12932         (get_rtx_ptr_loc): Rename to...
12933         (get_md_ptr_loc): ...this.
12934         * genconditions.c: Update references after renaming.
12935         * genemit.c: Likewise.
12936         * genoutput.c: Likewise.
12937         * genpreds.c: Likewise.
12938         * gensupport.c: Likewise.
12939         * read-rtl.c: Likewise.
12940
12941 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12942
12943         * Makefile.in (READ_MD_H): New variable.
12944         (BUILD_RTL): Add build/read-md.o.
12945         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
12946         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
12947         (build/genattrtab.o, build/genconditions.o build/genemit.o)
12948         (build/genextract.o, build/genflags.o, build/genoutput.o)
12949         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
12950         (build/read-md.o): New rule.
12951         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
12952         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
12953         * coretypes.h: ...here.
12954         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
12955         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
12956         * genattr.c: Include read-md.h.
12957         * genattrtab.c: Likewise.
12958         * genconditions.c: Likewise.
12959         * genemit.c: Likewise.
12960         * genextract.c: Likewise.
12961         * genflags.c: Likewise.
12962         * genoutput.c: Likewise.
12963         * genpreds.c: Likewise.
12964         * genrecog.c: Likewise.
12965         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
12966         (join_c_conditions, print_c_condition, read_rtx_filename)
12967         (read_rtx_lineno): Move to read-md.h.
12968         * read-rtl.c: Include read-md.h.
12969         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
12970         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
12971         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
12972         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
12973         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
12974         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
12975         (read_braced_string, read_string): Move to read-md.c.
12976         (read_rtx): Move some initialization to init_md_reader and call
12977         init_md_reader here.
12978         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
12979         Move to read-md.h.
12980         * gensupport.c: Include read-md.h.
12981         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
12982         * read-md.h, read-md.c: New files.
12983
12984 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
12985
12986         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12987         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12988         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
12989         * config/moxie/moxie.c (moxie_function_value): Make static.
12990         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
12991         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12992
12993 2010-06-10  Martin Jambor  <mjambor@suse.cz>
12994
12995         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
12996         * dbgcnt.def (tree_sra): New counter.
12997         * tree-sra.c: Include dbgcnt.h.
12998         (gate_intra_sra): Check tree_sra debug counter.
12999
13000 2010-06-10  Martin Jambor  <mjambor@suse.cz>
13001
13002         PR tree-optimization/44258
13003         * tree-sra.c (build_access_subtree): Return false iff there is a
13004         partial overlap.
13005         (build_access_trees): Likewise.
13006         (analyze_all_variable_accesses): Disqualify candidates if
13007         build_access_trees returns true for them.
13008
13009 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
13010
13011         PR debug/41371
13012         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
13013         tail-recurse into canonical node.  Fast-forward over
13014         non-canonical VALUEs.
13015
13016 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
13017
13018         PR boostrap/44470
13019         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
13020         (*addsi_1_zext) <TYPE_LEA>: Likewise.
13021         (add lea splitter): Likewise.
13022         (add_zext lea splitter): Likewise.
13023
13024 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
13025
13026         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
13027
13028 2010-06-10  Jan Hubicka  <jh@suse.cz>
13029
13030         * df-problems.c (df_live_problem_data): Add live_bitmaps.
13031         (df_live_alloc): Initialize problem data and live_osbtacks.
13032         (df_live_finalize): Remove obstack, problem data; do not
13033         clear all bitmaps.
13034         (df_live_top_dump, df_live_bottom_dump): Do not dump old
13035         data when not allocated.
13036         (df_live_verify_solution_start): Do not allocate problem data.
13037         (df_live_verify_solution_end): Check if out is allocated.
13038         (struct df_md_problem_data): New structure.
13039         (df_md_alloc): Allocate problem data.
13040         (df_md_free): Free problem data; do not clear bitmaps.
13041
13042 2010-06-10  Jan Beulich  <jbeulich@novell.com>
13043
13044         PR bootstrap/37304
13045         * configure.ac: Replace $() with ${} when intending to expand
13046         variables rather than invoking commands.
13047         * configure: Re-generate.
13048
13049 2010-06-10  Jan Hubicka  <jh@suse.cz>
13050
13051         PR rtl-optimization/44460
13052         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
13053         TYPE_NEEDS_CONSTRUCTING sanity check.
13054
13055 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13056
13057         * doc/include/fdl.texi: Move to GFDL version 1.3.
13058
13059         * doc/cpp.texi: Move to GFDL version 1.3.
13060         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
13061         * doc/gccint.texi: Move to GFDL version 1.3.
13062         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
13063         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
13064         * doc/invoke.texi: Move to GFDL version 1.3.
13065
13066 2010-06-09  Jan Hubicka  <jh@suse.cz>
13067
13068         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
13069         Break out from ...
13070         (propagate) ... here; swap the order.
13071
13072 2010-06-09  Jan Hubicka  <jh@suse.cz>
13073
13074         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
13075         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
13076         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
13077         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
13078
13079 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
13080
13081         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
13082         Do not the gather memory reference in the outer loop if the step
13083         is not a constant.
13084
13085 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
13086
13087         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
13088         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
13089         8 to 4.  Minor change of the related comments.
13090
13091 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13092
13093         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
13094         the scev analysis when the variable is not used outside the loop
13095         in a close phi node: call compute_overall_effect_of_inner_loop.
13096
13097 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13098
13099         * graphite-sese-to-poly.c (single_pred_cond): Renamed
13100         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
13101         (build_sese_conditions_before): Renamed call to single_pred_cond.
13102         (build_sese_conditions_after): Same.
13103
13104 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13105
13106         * graphite-poly.h: Fix comments and indentation.
13107         * graphite-sese-to-poly.c: Same.
13108         (build_sese_conditions_before): Compute stmt and gbb only when needed.
13109         * tree-chrec.c: Fix comments and indentation.
13110         (tree-ssa-loop-niter.c): Same.
13111
13112 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
13113
13114         PR rtl-optimization/42461
13115         * dce.c (deletable_insn_p): Return true for const or pure calls again.
13116         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
13117
13118 2010-06-09  Jan Hubicka  <jh@suse.cz>
13119
13120         * bitmap.c (bitmap_and): Walk array forward.
13121         (bitmap_and_compl_into): Likewise.
13122         (bitmap_xor): Likewise.
13123         (bitmap_xor_into):  Likewise.
13124         (bitmap_equal_p): Likewise.
13125         (bitmap_intersect_p): Likewise.
13126         (bitmap_intersect_compl_p): Likewise.
13127         (bitmap_ior_and_into): Likewise.
13128         (bitmap_elt_copy): Likewise.
13129         (bitmap_and_compl): Likewise.
13130         (bitmap_elt_ior): Likewise.
13131
13132 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
13133
13134         * opts-common.c (prune_options): Ensure replacement argv array
13135         is correctly terminated by a NULL entry.
13136
13137 2010-06-09  Jan Hubicka  <jh@suse.cz>
13138
13139         * cgraph.h (varpool_first_static_initializer,
13140         varpool_next_static_initializer): Make checking only when
13141         checking enabled.
13142         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
13143         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
13144         gcc_assert to gcc_checking_assert.
13145         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
13146         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
13147         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
13148         op_iter_init_phiuse, op_iter_init_phidef,
13149         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
13150         gcc_checking_assert.
13151         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
13152         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
13153         partition_is_global, live_on_entry, live_on_exit,
13154         live_merge_and_clear): Likewise.
13155         * system.h (gcc_checking_assert): New macro.
13156         * gimple.h (set_bb_seq): Use gcc_checking_assert.
13157
13158 2010-06-09  Jason Merrill  <jason@redhat.com>
13159
13160         * Makefile.in (TAGS): Collect tags info from c-family.
13161
13162 2010-06-09  Jan Hubicka  <jh@suse.cz>
13163
13164         * gimple.h (gcc_gimple_checking_assert): New macro.
13165         (gimple_set_def_ops, gimple_set_use_ops,
13166         gimple_set_vuse, gimple_set_vdef,
13167         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
13168         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
13169         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
13170         gimple_asm_output_op, gimple_asm_output_op_ptr,
13171         gimple_asm_set_output_op, gimple_asm_clobber_op,
13172         gimple_asm_set_clobber_op, gimple_asm_label_op,
13173         gimple_asm_set_label_op, gimple_try_set_kind,
13174         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
13175         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
13176         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
13177         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
13178         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
13179         gimple_omp_for_set_initial, gimple_omp_for_final,
13180         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
13181         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
13182         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
13183         conditional with ENABLE_GIMPLE_CHECKING.
13184         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
13185
13186 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
13187
13188         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
13189         (get_computation_cost_at): Use it.
13190         (determine_use_iv_cost_condition): Likewise.
13191         (determine_iv_cost): Likewise.
13192
13193 2010-06-09  Richard Guenther  <rguenther@suse.de>
13194
13195         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
13196         replace constants.
13197
13198 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
13199
13200         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
13201
13202 2010-06-09  Martin Jambor  <mjambor@suse.cz>
13203
13204         PR tree-optimization/44423
13205         * tree-sra.c (dump_access): Dump also grp_assignment_read.
13206         (analyze_access_subtree): Pass negative allow_replacements to children
13207         if the current type is scalar.
13208
13209 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
13210
13211         PR testsuite/42843
13212         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
13213         * doc/plugins.texi (Plugin license check): Update information
13214         on type of plugin_is_GPL_compatible.
13215         * Makefile.in (PLUGINCC): Define as $(COMPILER).
13216         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
13217
13218 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
13219
13220         * config/arm/arm.c (thumb2_reorg): New function.
13221         (arm_reorg): Call it.
13222         * config/arm/thumb2.md (define_peephole2 for flag clobbering
13223         arithmetic operations): Delete.
13224
13225 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
13226
13227         PR target/44067
13228         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
13229         e500v2 target.
13230
13231 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
13232
13233         PR plugins/44459
13234         * gcc-plugin.h: Encapsulate all declarations in extern "C".
13235
13236 2010-06-08  Jan Hubicka  <jh@suse.cz>
13237
13238         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
13239         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
13240
13241 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
13242
13243         PR tree-optimization/39874
13244         PR middle-end/28685
13245         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
13246         Declare.
13247         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
13248         same_bool_result_p): New.
13249         (and_var_with_comparison, and_var_with_comparison_1,
13250         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
13251         (or_var_with_comparison, or_var_with_comparison_1,
13252         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
13253         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
13254         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
13255         of combine_comparisons.
13256         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
13257
13258 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
13259
13260         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13261         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13262         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
13263         pdp11_function_value_regno_p): New functions.
13264         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13265         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13266
13267 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
13268
13269         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
13270         Thumb-2 in the MINUS case.
13271
13272 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13273
13274         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
13275
13276         * doc/gty.texi (GTY Options): Document typed GC allocation and
13277         variable_size GTY option.
13278
13279         * ggc-internal.h: New.
13280
13281         * ggc.h: Update copyright year.
13282         (digit_string): Move to stringpool.c.
13283         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
13284         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
13285         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
13286         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
13287         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
13288         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
13289         (ggc_force_collect, ggc_get_size, ggc_statistics)
13290         (ggc_print_common_statistics): Move to ggc-internal.h.
13291         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
13292         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
13293         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
13294         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
13295         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
13296         (ggc_alloc_zone_pass_stat): Remove.
13297         (ggc_internal_alloc_stat, ggc_internal_alloc)
13298         (ggc_internal_cleared_alloc_stat): New.
13299         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
13300         (ggc_internal_vec_alloc_stat)
13301         (ggc_internal_cleared_vec_alloc_stat)
13302         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
13303         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
13304         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
13305         (ggc_cleared_alloc_ptr_array_two_args): New.
13306         (htab_create_ggc, splay_tree_new_ggc): Redefine.
13307         (ggc_splay_alloc): Change the type of the first argument to
13308         enum gt_types_enum.
13309         (ggc_alloc_string): Make macro.
13310         (ggc_alloc_string_stat): New.
13311         (ggc_strdup): Redefine.
13312         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
13313         (ggc_alloc_rtvec_sized): New.
13314         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
13315         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
13316         (ggc_internal_cleared_alloc_zone_stat)
13317         (ggc_internal_zone_alloc_stat)
13318         (ggc_internal_zone_cleared_alloc_stat)
13319         (ggc_internal_zone_vec_alloc_stat)
13320         (ggc_alloc_zone_rtx_def_stat)
13321         (ggc_alloc_zone_tree_node_stat)
13322         (ggc_alloc_zone_cleared_tree_node_stat)
13323         (ggc_alloc_cleared_gimple_statement_d_stat): New.
13324
13325         * ggc-common.c: Include ggc-internal.h.
13326         (ggc_internal_cleared_alloc_stat): Rename from
13327         ggc_alloc_cleared_stat.
13328         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
13329         (ggc_calloc): Remove.
13330         (ggc_cleared_alloc_htab_ignore_args): New.
13331         (ggc_cleared_alloc_ptr_array_two_args): New.
13332         (ggc_splay_alloc): Add obj_type parameter.
13333         (init_ggc_heuristics): Formatting fixes.
13334
13335         * ggc-none.c: Update copyright year.
13336         (ggc_alloc_stat): Rename to ggc_alloc_stat.
13337         (ggc_alloc_cleared_stat): Rename to
13338         ggc_internal_cleared_alloc_stat.
13339         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
13340
13341         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
13342         Remove references to ggc_alloc in comments.
13343         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
13344         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
13345         (new_ggc_zone, destroy_ggc_zone): Remove.
13346         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
13347
13348         * ggc-zone.c: Include ggc-internal.h.  Remove references to
13349         ggc_alloc in comments.
13350         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
13351         (ggc_internal_alloc_zone_pass_stat): New.
13352         (ggc_internal_cleared_alloc_zone_stat): New.
13353         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
13354         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
13355         (new_ggc_zone, destroy_ggc_zone): Remove.
13356
13357         * stringpool.c: Update copyright year.  Include ggc-internal.h
13358         (digit_vector): Make static.
13359         (digit_string): Moved from ggc.h.
13360         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
13361         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
13362
13363         * Makefile.in (GGC_INTERNAL_H): New.
13364         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
13365         $(GGC_INTERNAL_H) to dependencies.
13366
13367         * gentype.c: Update copyright year.
13368         (walk_type): Accept variable_size GTY option.
13369         (USED_BY_TYPED_GC_P): New macro.
13370         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
13371         whitespace at the end of strings.
13372         (get_type_specifier, variable_size_p): New functions.
13373         (alloc_quantity, alloc_zone): New enums.
13374         (write_typed_alloc_def): New function.
13375         (write_typed_struct_alloc_def): Likewise.
13376         (write_typed_typed_typedef_alloc_def): Likewise.
13377         (write_typed_alloc_defns): Likewise.
13378         (output_typename, write_splay_tree_allocator_def): Likewise.
13379         (write_splay_tree_allocators): Likewise.
13380         (main): Call write_typed_alloc_defns and
13381         write_splay_tree_allocators.
13382
13383         * lto-streamer.h (lto_file_decl_data_ptr): New.
13384
13385         * passes.c (order): Define using cgraph_node_ptr.
13386
13387         * strinpool.c (struct string_pool_data): Declare nested_ptr using
13388         ht_identifier_ptr.
13389
13390         * gimple.h (union gimple_statement_d): Likewise.
13391
13392         * rtl.h (struct rtx_def): Likewise.
13393         (struct rtvec_def): Likewise.
13394
13395         * tree.h (union tree_node): Likewise.
13396
13397         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
13398
13399         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
13400
13401         * tree-scalar-evolution.c (scev_initialize): Likewise.
13402
13403         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
13404
13405         * dwarf2asm.c (dw2_force_const_mem): Likewise.
13406
13407         * omp-low.c (lower_omp_critical): Likewise.
13408
13409         * bitmap.h (struct bitmap_head_def): Update comment to not
13410         reference ggc_alloc.
13411
13412         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
13413
13414         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
13415
13416         * ipa-prop.c (duplicate_ggc_array): Rename to
13417         duplicate_ipa_jump_func_array.  Use typed GC allocation.
13418         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
13419
13420         * gimple.c (gimple_alloc_stat): Use
13421         ggc_alloc_cleared_gimple_statement_d_stat.
13422
13423         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
13424
13425         * tree.c (make_node_stat): Use
13426         ggc_alloc_zone_cleared_tree_node_stat.
13427         (make_tree_vec_stat): Likewise.
13428         (build_vl_exp_stat): Likewise.
13429         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
13430         (make_tree_binfo_stat): Likewise.
13431         (tree_cons_stat): Likewise.
13432
13433         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
13434         (shallow_copy_rtx_stat): Likewise.
13435         (make_node_stat): Likewise.
13436
13437         * lto-symtab.c: Fix comment.
13438
13439         * tree-cfg.c (create_bb): Update comment to not reference
13440         ggc_alloc_cleared.
13441         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
13442
13443         * varpool.c (varpool_node): Use typed GC allocation.
13444         (varpool_extra_name_alias): Likewise.
13445
13446         * varasm.c (emutls_decl): Likewise.
13447         (get_unnamed_section): Likewise.
13448         (get_noswitch_section): Likewise.
13449         (get_section): Likewise.
13450         (get_block_for_section): Likewise.
13451         (build_constant_desc): Likewise.
13452         (create_constant_pool): Likewise.
13453         (force_const_mem): Likewise.
13454
13455         * tree.c (build_vl_exp_stat): Likewise.
13456         (build_real): Likewise.
13457         (build_string): Likewise.
13458         (decl_debug_expr_insert): Likewise.
13459         (decl_value_expr_insert): Likewise.
13460         (type_hash_add): Likewise.
13461         (build_omp_clause): Likewise.
13462
13463         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
13464
13465         * tree-ssa.c (init_tree_ssa): Likewise.
13466
13467         * tree-ssa-structalias.c (heapvar_insert): Likewise.
13468
13469         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
13470
13471         * tree-ssa-loop-niter.c (record_estimate): Likewise.
13472
13473         * tree-ssa-alias.c (get_ptr_info): Likewise.
13474
13475         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
13476
13477         * tree-phinodes.c (allocate_phi_node): Likewise.
13478
13479         * tree-iterator.c (tsi_link_before): Likewise.
13480         (tsi_link_after): Likewise.
13481
13482         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
13483
13484         * tree-dfa.c (create_var_ann): Likewise.
13485
13486         * tree-cfg.c (create_bb): Likewise.
13487
13488         * toplev.c (alloc_for_identifier_to_locale): Likewise.
13489         (general_init): Likewise.
13490
13491         * stringpool.c (stringpool_ggc_alloc): Likewise.
13492         (gt_pch_save_stringpool): Likewise.
13493
13494         * sese.c (if_region_set_false_region): Likewise.
13495
13496         * passes.c (do_per_function_toporder): Likewise.
13497
13498         * optabs.c (set_optab_libfunc): Likewise.
13499         (set_conv_libfunc): Likewise.
13500
13501         * lto-symtab.c (lto_symtab_register_decl): Likewise.
13502
13503         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
13504         (input_eh_region): Likewise.
13505         (input_eh_lp): Likewise.
13506         (make_new_block): Likewise.
13507         (unpack_ts_real_cst_value_fields): Likewise.
13508
13509         * lto-section-in.c (lto_new_in_decl_state): Likewise.
13510
13511         * lto-cgraph.c (input_node_opt_summary): Likewise.
13512
13513         * loop-init.c (loop_optimizer_init): Likewise.
13514
13515         * lambda.h (lambda_vector_new): Likewise.
13516
13517         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
13518
13519         * ira.c (update_equiv_regs): Likewise.
13520
13521         * ipa.c (cgraph_node_set_new): Likewise.
13522         (cgraph_node_set_add): Likewise.
13523         (varpool_node_set_new): Likewise.
13524         (varpool_node_set_add): Likewise.
13525
13526         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
13527         (duplicate_ipa_jump_func_array): Likewise.
13528         (ipa_read_node_info): Likewise.
13529
13530         * ipa-cp.c (ipcp_create_replace_map): Likewise.
13531
13532         * integrate.c (get_hard_reg_initial_val): Likewise.
13533
13534         * gimple.c (gimple_alloc_stat): Likewise.
13535         (gimple_build_omp_for): Likewise.
13536         (gimple_seq_alloc): Likewise.
13537         (gimple_copy): Likewise.
13538
13539         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
13540         (gsi_insert_after_without_update): Likewise.
13541
13542         * function.c (add_frame_space): Likewise.
13543         (insert_temp_slot_address): Likewise.
13544         (assign_stack_temp_for_type): Likewise.
13545         (allocate_struct_function): Likewise.
13546         (types_used_by_var_decl_insert): Likewise.
13547
13548         * except.c (init_eh_for_function): Likewise.
13549         (gen_eh_region): Likewise.
13550         (gen_eh_region_catch): Likewise.
13551         (gen_eh_landing_pad): Likewise.
13552         (add_call_site): Likewise.
13553
13554         * emit-rtl.c (get_mem_attrs): Likewise.
13555         (get_reg_attrs): Likewise.
13556         (start_sequence): Likewise.
13557         (init_emit): Likewise.
13558
13559         * dwarf2out.c (new_cfi): Likewise.
13560         (queue_reg_save): Likewise.
13561         (dwarf2out_frame_init): Likewise.
13562         (new_loc_descr): Likewise.
13563         (find_AT_string): Likewise.
13564         (new_die): Likewise.
13565         (add_var_loc_to_decl): Likewise.
13566         (clone_die): Likewise.
13567         (clone_as_declaration): Likewise.
13568         (break_out_comdat_types): Likewise.
13569         (new_loc_list): Likewise.
13570         (loc_descriptor): Likewise.
13571         (add_loc_descr_to_each): Likewise.
13572         (add_const_value_attribute): Likewise.
13573         (tree_add_const_value_attribute): Likewise.
13574         (add_comp_dir_attribute): Likewise.
13575         (add_name_and_src_coords_attributes): Likewise.
13576         (lookup_filename): Likewise.
13577         (store_vcall_insn): Likewise.
13578         (dwarf2out_init): Likewise.
13579
13580         * dbxout.c (dbxout_init): Likewise.
13581
13582         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
13583
13584         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
13585
13586         * config/score/score7.c (score7_output_external): Likewise.
13587
13588         * config/score/score3.c (score3_output_external): Likewise.
13589
13590         * config/s390/s390.c (s390_init_machine_status): Likewise.
13591
13592         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
13593         (rs6000_init_machine_status): Likewise.
13594         (output_toc): Likewise.
13595
13596         * config/pa/pa.c (pa_init_machine_status): Likewise.
13597         (get_deferred_plabel): Likewise.
13598
13599         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
13600
13601         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
13602
13603         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
13604
13605         * config/mep/mep.c (mep_init_machine_status): Likewise.
13606         (mep_note_pragma_flag): Likewise.
13607
13608         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
13609
13610         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
13611
13612         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
13613
13614         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
13615         (i386_pe_maybe_record_exported_symbol): Likewise.
13616
13617         * config/i386/i386.c (get_dllimport_decl): Likewise.
13618         (ix86_init_machine_status): Likewise.
13619         (assign_386_stack_local): Likewise.
13620
13621         * config/frv/frv.c (frv_init_machine_status): Likewise.
13622
13623         * config/darwin.c (machopic_indirection_name): Likewise.
13624
13625         * config/cris/cris.c (cris_init_machine_status): Likewise.
13626
13627         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
13628
13629         * config/avr/avr.c (avr_init_machine_status): Likewise.
13630
13631         * config/arm/arm.c (arm_init_machine_status): Likewise.
13632
13633         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
13634         (alpha_need_linkage): Likewise.
13635         (alpha_use_linkage): Likewise.
13636
13637         * cgraph.c (cgraph_allocate_node): Likewise.
13638         (cgraph_create_edge_1): Likewise.
13639         (cgraph_create_indirect_edge): Likewise.
13640         (cgraph_add_asm_node): Likewise.
13641
13642         * cfgrtl.c (init_rtl_bb_info): Likewise.
13643
13644         * cfgloop.c (alloc_loop): Likewise.
13645         (rescan_loop_exit): Likewise.
13646
13647         * cfg.c (init_flow): Likewise.
13648         (alloc_block): Likewise.
13649         (unchecked_make_edge): Likewise.
13650
13651         * c-parser.c (c_parse_init): Likewise.
13652         (c_parse_file): Likewise.
13653
13654         * c-decl.c (bind): Likewise.
13655         (record_inline_static): Likewise.
13656         (push_scope): Likewise.
13657         (make_label): Likewise.
13658         (lookup_label_for_goto): Likewise.
13659         (finish_struct): Likewise.
13660         (finish_enum): Likewise.
13661         (c_push_function_context): Likewise.
13662
13663         * bitmap.c (bitmap_element_allocate): Likewise.
13664         (bitmap_gc_alloc_stat): Likewise.
13665
13666         * alias.c (record_alias_subset): Likewise.
13667         (init_alias_analysis): Likewise.
13668
13669 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
13670
13671         * fold-const.c (fold_comparison): Remove redundant parenthesis.
13672         * tree-inline.c (expand_call_inline): Pass translated return value of
13673         cgraph_inline_failed_string to diagnostic function.
13674
13675 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
13676             Shujing Zhao  <pearly.zhao@oracle.com>
13677
13678         PR c/37724
13679         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
13680         implicit bad conversions is initialization.
13681         (error_init): Use gmsgid instead of msgid for argument name and change
13682         the call for error.
13683         (pedwarn_init): Use gmsgid instead of msgid for argument name and
13684         change the call for pedwarn.
13685         (warning_init): Use gmsgid instead of msgid for argument name and
13686         change the call for warning.
13687
13688 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
13689
13690         * config/mips/mips-protos.h (mips_print_operand): Delete.
13691         (mips_print_operand_address): Delete.
13692         * config/mips/mips.h (mips_print_operand_punct): Delete.
13693         (PRINT_OPERAND): Delete.
13694         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13695         (PRINT_OPERAND_ADDRESS): Delete.
13696         * config/mips/mips.c (mips_print_operand_punct): Make static.
13697         (mips_print_operand_address): Make static.
13698         (mips_print_operand): Make static.  Call
13699         mips_print_operand_punct_valid_p.
13700         (mips_print_operand_punct_valid_p): New function.
13701         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13702         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13703
13704 2010-06-07  Jan Hubicka  <jh@suse.cz>
13705
13706         PR middle-end/44454
13707         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
13708         are allocated.
13709
13710 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13711
13712         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
13713         name of RECORD.
13714
13715 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13716
13717         * doc/sourcebuild.texi (Effective-Target Keywords, Other
13718         attributes): Document gas.
13719
13720 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
13721
13722         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
13723         <TYPE_LEA>: Split instruction.
13724         <default>: Remove alternative 2 handling.
13725         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
13726         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
13727         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
13728
13729         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
13730         (ashift_zext lea splitter): Use DImode for multiplication.
13731
13732         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
13733         to generate addition.
13734
13735 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * common.opt (fira-verbose): Use Var.
13738         (fpcc-struct-return): Use Init instead of VarExists.
13739         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
13740         toplev.c.
13741         * flags.h (flag_signed_char, flag_short_enums,
13742         flag_pcc_struct_return, flag_ira_verbose,
13743         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
13744         * toplev.c (flag_detailed_statistics, flag_signed_char,
13745         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
13746         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
13747         * toplev.h (flag_crossjumping, flag_if_conversion,
13748         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
13749         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
13750         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
13751         flag_cprop_registers, time_report, flag_ira_loop_pressure,
13752         flag_ira_coalesce, flag_ira_move_spills,
13753         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
13754
13755 2010-06-07  Jan Hubicka  <jh@suse.cz>
13756
13757         * df-core.c (df_analyze_problem): Do verification after allocation.
13758
13759         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
13760         (df_lr_alloc): Initialize problem data; move bitmaps to
13761         lr_bitmaps obstack.
13762         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
13763         (df_lr_verify_solution_start): Do not initialize problem data;
13764         allocate bitmaps in lr_bitmaps.
13765         (df_lr_verify_solution_end): Do not free problem data.
13766
13767 2010-06-07  Jan Hubicka  <jh@suse.cz>
13768
13769         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
13770         if caller is noreturn.
13771         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
13772         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
13773         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
13774         * ipa-pure-const.c (check_decl): Add IPA parameter.
13775         (state_from_flags): New function.
13776         (better_state, worse_state): New functions.
13777         (check_call): When in IPA mode, do not care about callees.
13778         (check_load, check_store): Update.
13779         (check_ipa_load, check_ipa_store): New.
13780         (check_stmt): When in IPA mode, use IPA checkers.
13781         (analyze_function): Use state_from_flags.
13782         (propagate): Check indirect edges and references.
13783
13784 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
13785
13786         PR rtl-optimization/44404
13787         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
13788         of count_occurrences to see if it's safe to modify mem_insn.
13789
13790 2010-06-07  Richard Guenther  <rguenther@suse.de>
13791
13792         * gimplify.c (gimplify_cleanup_point_expr): For empty body
13793         and EH-only cleanup drop the cleanup instead of inserting it
13794         unconditionally.
13795
13796 2010-06-07  Ira Rosen  <irar@il.ibm.com>
13797
13798         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
13799         documentation.
13800         * targhooks.c (default_builtin_vectorization_cost): New function.
13801         * targhooks.h (default_builtin_vectorization_cost): Declare.
13802         * target.h (enum vect_cost_for_stmt): Define.
13803         (builtin_vectorization_cost): Change argument and comment.
13804         * tree-vectorizer.h: Remove cost model macros.
13805         * tree-vect-loop.c: Include target.h.
13806         (vect_get_cost): New function.
13807         (vect_estimate_min_profitable_iters): Replace cost model macros with
13808         calls to vect_get_cost.
13809         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
13810         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
13811         default implementation.
13812         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
13813         calls to target hook builtin_vectorization_cost.
13814         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
13815         Likewise.
13816         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
13817         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
13818         implementation to return costs.
13819         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
13820         * config/spu/spu.h: Remove vectorizer cost model macros.
13821         * config/i386/i386.h: Likewise.
13822         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
13823         a call to target hook builtin_vectorization_cost.
13824
13825 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
13826
13827         PR target/44319
13828         * config/i386/i386.c (override_options): Turn zee pass on for level 2
13829         and above and defer till target is known.
13830         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
13831         turn off otherwise.
13832
13833 2010-05-25  Jan Hubicka  <jh@suse.cz>
13834
13835         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
13836         (df_compact_blocks): Likewise.
13837         * df.h (struct df): Turn hardware_regs_used,
13838         regular_block_artificial_uses, eh_block_artificial_uses,
13839         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
13840         bitmap_head.
13841         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
13842         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
13843         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
13844         df_scan_blocks, df_insn_delete, df_insn_rescan,
13845         df_insn_rescan_debug_internal, df_insn_rescan_all,
13846         df_process_deferred_rescans, df_process_deferred_rescans,
13847         df_notes_rescan, df_get_call_refs, df_get_call_refs,
13848         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
13849         df_record_entry_block_defs, df_record_exit_block_uses,
13850         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
13851         df_scan_verify): Update.
13852
13853 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
13854
13855         PR c++/44188
13856         * c-common.c (is_typedef_decl): Move this definition ...
13857         * tree.c (is_typedef_decl): ... here.
13858         (typdef_variant_p): Move definition here from cp/tree.c.
13859         * c-common.h (is_typedef_decl): Move this declaration ...
13860         * tree.h (is_typedef_decl): ... here.
13861         (typedef_variant_p): Move declaration here from cp/cp-tree.h
13862         * dwarf2out.c (is_naming_typedef_decl): New function.
13863         (gen_tagged_type_die): Split out of ...
13864         (gen_type_die_with_usage): ... this function. When an anonymous
13865         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
13866         is emitted for the typedef.
13867         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
13868         anonymous tagged types.
13869
13870 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13871
13872         PR c/20000
13873         * c-decl.c (grokdeclarator): Delete warning.
13874
13875 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13876
13877         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
13878         newly built CALL_EXPR.
13879         * tree-profile.c (tree_profiling): Don't profile functions produced
13880         for built-in stuff.
13881
13882 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
13883
13884         PR bootstrap/44427
13885         PR bootstrap/44428
13886         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
13887         endianness-independent.
13888
13889 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
13890
13891         * c-common.c: Move to c-family/.
13892         * c-common.def: Likewise.
13893         * c-common.h: Likewise.
13894         * c-cppbuiltin.c: Likewise.
13895         * c-dump.c: Likewise.
13896         * c-format.c: Likewise.
13897         * c-format.h : Likewise.
13898         * c-gimplify.c: Likewise.
13899         * c-lex.c: Likewise.
13900         * c-omp.c: Likewise.
13901         * c.opt: Likewise.
13902         * c-opts.c: Likewise.
13903         * c-pch.c: Likewise.
13904         * c-ppoutput.c: Likewise.
13905         * c-pragma.c: Likewise.
13906         * c-pragma.h: Likewise.
13907         * c-pretty-print.c: Likewise.
13908         * c-pretty-print.h: Likewise.
13909         * c-semantics.c: Likewise.
13910         * stub-objc.c: Likewise.
13911
13912         * gengtype.c (get_file_langdir): Special-case files in c-family/.
13913         (get_output_file_with_visibility): Fix name for c-common.h.
13914         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
13915
13916         * c-tree.h: Update include path for moved files.
13917         * c-lang.c: Likewise.
13918         * c-lang.h: Likewise.
13919         * c-parser.c: Likewise.
13920         * c-convert.c: Likewise.
13921         * c-decl.c: Likewise.
13922         * c-objc-common.c: Likewise.
13923         * configure.ac: Make sure c-family/ exists in the build directory.
13924         * configure: Regenerate.
13925         * Makefile.in: Update paths for moved files.  Regroup files per
13926         location and update dependencies.  Move generated_files down after
13927         ALL_GTFILES_H.
13928
13929         * config/spu/spu-c.c: Update paths for moved files.
13930         * config/mep/mep-pragma.c: Likewise.
13931         * config/darwin-c.c: Likewise.
13932         * config/i386/msformat-c.c: Likewise.
13933         * config/i386/i386-c.c: Likewise.
13934         * config/avr/avr-c.c: Likewise.
13935         * config/sol2-c.c: Likewise.
13936         * config/ia64/ia64-c.c: Likewise.
13937         * config/rs6000/rs6000-c.c: Likewise.
13938         * config/arm/arm.c: Likewise.
13939         * config/arm/arm-c.c: Likewise.
13940         * config/h8300/h8300.c: Likewise.
13941         * config/v850/v850-c.c: Likewise.
13942
13943         * config/t-darwin: Fix dependencies for moved files.
13944         * config/t-sol2: Fix dependencies for moved files.
13945         * config/mep/t-mep: Fix dependencies for moved files.
13946         * config/ia64/t-ia64: Fix dependencies for moved files.
13947         * config/rs6000/t-rs6000: Fix dependencies for moved files.
13948         * config/v850/t-v850: Fix dependencies for moved files.
13949         * config/v850/t-v850e: Fix dependencies for moved files.
13950
13951         * config/m32c/m32c-pragma.c
13952
13953         * po/exgettext: Look in c-family/ also.
13954
13955 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13956
13957         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
13958         (mark_control_dependent_edges_necessary): Call it instead of marking
13959         the last statement manually.
13960         (propagate_necessity): Likewise.
13961
13962 2010-06-05  Jan Hubicka  <jh@suse.cz>
13963
13964         * basic-block.h (compute_dominance_frontiers): Updated.
13965         (compute_idf): Likewise.
13966
13967         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
13968         for dominance frontiers.
13969         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
13970         (insert_updated_phi_nodes_for): Likewise.
13971         (update_ssa): Likewise.
13972         * cfganal.c (compute_dominance_frontiers_1): Likewise.
13973         (compute_dominance_frontiers): Likewise.
13974         (compute_idf): Likewise.
13975         * df-problems.c (df_md_local_compute): Likewise.
13976
13977 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
13978
13979         * target.h (struct gcc_target): Add memory_move_cost field.
13980         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
13981         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
13982         * targhooks.c (default_memory_move_cost): New function.
13983         * targhooks.h (default_memory_move_cost): Declare function.
13984         * reload.h (memory_move_cost): Declare.
13985         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13986         * reginfo.c (memory_move_cost): New function.
13987         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13988         * ira.h (ira_memory_move_cost): Update comment.
13989         * ira.c (ira_memory_move_cost): Update comment.
13990         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
13991         with memory_move_cost.
13992         * postreload.c (reload_cse_simplify_set): (Ditto.).
13993         * reload1.c (choose_reload_regs): (Ditto.).
13994         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
13995         (MEMORY_MOVE_COST):  Revise documentation.
13996
13997         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13998         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13999         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
14000         type of 'in' argument to bool.
14001         (TARGET_MEMORY_MOVE_COST): Define.
14002
14003 2010-06-05  Jan Hubicka  <jh@suse.cz>
14004
14005         * ipa-pure-const.c (propagate): Fix typo in handling of functions
14006         that cannot return.  Be more careful when merging the results with
14007         previously known ones.
14008
14009 2010-06-05  Matthias Klose  <doko@ubuntu.com>
14010
14011         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
14012         function to add the -iplugindir option.
14013         (find_plugindir_spec_function): Add new declaration and function.
14014         (static_spec_func): Use it for "find-plugindir".
14015
14016 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
14017
14018         PR c++/44361
14019         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
14020         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
14021         statement expression.
14022
14023 2010-06-05  Jan Hubicka  <jh@suse.cz>
14024
14025         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
14026         (df_rd_problem_data): Convert sparse_invalidated_by_call,
14027         dense_invalidated_by_call to bitmap head.
14028         (df_rd_alloc, df_rd_bb_local_compute_process_def,
14029         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
14030         df_rd_start_dump, df_lr_verify_transfer_functions,
14031         df_live_verify_transfer_functions, df_chain_create_bb,
14032         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
14033         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
14034         df_simulate_one_insn_forwards, df_md_alloc,
14035         df_md_bb_local_compute_process_def,
14036         df_md_bb_local_compute_process_def, df_md_local_compute,
14037         df_md_transfer_function df_md_free): Update.
14038
14039 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
14040
14041         PR c/44322
14042         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
14043         target type for ADDR_EXPR; require no changes to qualifiers except
14044         for function types.
14045         * c-tree.h (c_build_type_variant): Remove.
14046
14047 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
14048
14049         * genautomata.c (get_excl_set): Do work per element, not per char.
14050         (check_presence_pattern_sets): Similar.
14051         (check_absence_pattern_sets): Similar.
14052
14053 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
14054
14055         * genautomata.c (curr_state_pass_num): Delete.
14056         (min_issue_delay_pass_states): Delete.
14057         (min_issue_delay): Delete.
14058         (initiate_min_issue_delay_pass_states): Delete.
14059         (output_min_issue_delay_table): Compute min_issue_delay_vect
14060         using a breadth-first search variant.
14061         (output_tables): Don't call initiate_min_issue_delay_pass_states.
14062
14063 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
14064
14065         PR boostrap/44421
14066         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
14067         (df_byte_lr_bb_local_compute): Likewise.
14068
14069 2010-06-03  Jason Merrill  <jason@redhat.com>
14070
14071         Implement noexcept operator (5.3.7)
14072         * c-common.c (c_common_reswords): Add noexcept.
14073         * c-common.h (enum rid): Add RID_NOEXCEPT.
14074
14075 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
14076
14077         * config/darwin-driver.c (darwin_default_min_version): Use
14078         GCC-specific formats in diagnostics.
14079         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
14080         diagnostics.
14081         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
14082         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
14083         eval_spec_function, handle_braces, process_brace_body, main,
14084         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
14085         getenv_spec_function, compare_version_strings,
14086         version_compare_spec_function): Use GCC-specific formats in
14087         diagnostics.
14088
14089 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
14090
14091         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
14092         that operand 0 and operand 1 are equal.
14093         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
14094         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
14095         and operand 1 are equal.
14096         <default>: Ditto.  Remove ??? comment.
14097         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
14098         and operand 1 are equal.
14099         <default>: Ditto.  Remove ??? comment.
14100         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
14101         are equal.
14102         (*add<mode>_4) <default>: Ditto.
14103         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
14104
14105 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
14106
14107         * config/i386/i386-protos.h (ix86_print_operand): Declare.
14108         * config/i386/i386.c (ix86_print_operand): Make non-static.
14109         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
14110         * output.h (output_operand): Declare.
14111         * final.c (output_operand): Make non-static.
14112
14113 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
14114
14115         PR rtl-optimization/44013
14116         * sched-deps.c (add_dependence_list_and_free): Don't free lists
14117         when processing debug insns.
14118
14119         PR debug/41371
14120         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
14121         recursing.  Check that recursion is bounded.  Rename inner var
14122         to avoid hiding incoming argument.
14123
14124 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
14125
14126         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
14127         operands[2] == 255.
14128         (*addqi_3): Ditto.
14129         (*addqi_4): Ditto.
14130         (*addqi_5): Ditto.
14131         (*addqi_ext_1_rex64): Ditto.
14132         (*addqi_ext_1): Ditto.
14133
14134         (*addqi_4): Check for incdec_operand in QImode.
14135
14136         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
14137         using SWI mode iterator.
14138         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
14139         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
14140         mode iterator.
14141         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
14142         using SWI mode iterator.
14143
14144 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14145
14146         PR c/25880
14147         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
14148         * c-format.c (gcc_diag_flag_specs): Add hash.
14149         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
14150         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
14151         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
14152         pp_c_cv_qualifiers. Handle qualifiers spelling here.
14153         (pp_c_type_qualifier_list): Call the function above.
14154         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
14155         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
14156         (WARN_FOR_QUALIFIERS): New macro.
14157         (convert_for_assignment): Use it.
14158
14159 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
14160
14161         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
14162
14163 2010-06-04  Jan Hubicka  <jh@suse.cz>
14164
14165         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
14166         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
14167         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
14168         DF_BYTE_LR_OUT): Update for embedded bitmaps.
14169         * fwprop.c (single_def_use_enter_block): Likewise.
14170         * ddg.c (create_ddg_dep_from_intra_loop_link,
14171         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
14172         * loop-iv.c (latch_dominating_def): Likewise.
14173         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
14174         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
14175         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
14176         df_rd_transfer_function, df_rd_top_dump,
14177         df_rd_bottom_dump): Update.
14178         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
14179         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
14180         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
14181         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
14182         df_lr_verify_solution_start, df_lr_verify_solution_end,
14183         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
14184         df_live_free_bb_info, df_live_alloc, df_live_reset,
14185         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
14186         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
14187         df_live_verify_solution_start, df_live_verify_solution_end,
14188         df_live_verify_transfer_functions, df_chain_create_bb,
14189         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
14190         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
14191         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
14192         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
14193         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
14194         df_byte_lr_transfer_function, df_byte_lr_top_dump,
14195         df_byte_lr_bottom_dump, df_create_unused_note,
14196         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
14197         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
14198         df_md_transfer_function, df_md_init, df_md_confluence_0,
14199         df_md_confluence_n,
14200         df_md_top_dump, df_md_bottom_dump): Update.
14201         (struct df_lr_problem_data): Embedd bitmap headers.
14202
14203 2010-06-04  Jan Hubicka  <jh@suse.cz>
14204
14205         * dce.c (dce_process_block): Do not re-scan already marked
14206         instructions.
14207
14208 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
14209
14210         PR rtl-optimization/39871
14211         PR rtl-optimization/40615
14212         PR rtl-optimization/42500
14213         PR rtl-optimization/42502
14214         * ira.c (init_reg_equiv_memory_loc: New function.
14215         (ira): Call it twice.
14216         * reload.h (calculate_elim_costs_all_insns): Declare.
14217         * ira-costs.c: Include "reload.h".
14218         (regno_equiv_gains): New static variable.
14219         (init_costs): Allocate it.
14220         (finish_costs): Free it.
14221         (ira_costs): Call calculate_elim_costs_all_insns.
14222         (find_costs_and_classes): Take estimated elimination costs
14223         into account.
14224         (ira_adjust_equiv_reg_cost): New function.
14225         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
14226         * reload1.c (init_eliminable_invariants, free_reg_equiv,
14227         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
14228         (elim_bb): New static variable.
14229         (reload): Move code out of here into init_eliminable_invariants and
14230         free_reg_equiv.  Call them.
14231         (calculate_elim_costs_all_insns): New function.
14232         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
14233         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
14234         but call note_reg_elim_costly if we turned a valid memory address
14235         into an invalid one.
14236         * Makefile.in (ira-costs.o): Depend on reload.h.
14237
14238 2010-06-04  Julian Brown  <julian@codesourcery.com>
14239
14240         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
14241         for pool ranges.
14242
14243 2010-06-04  Richard Guenther  <rguenther@suse.de>
14244
14245         PR lto/41584
14246         * cgraph.h (struct varpool_node): Add lto_file_data field.
14247         * lto-cgraph.c (input_varpool_node): Initialize it.
14248
14249 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
14250
14251         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
14252         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
14253         predicate in "type" attribute calculation.
14254         (*addsi_1_zext): Ditto.
14255         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
14256         (*addsi_2_zext): Ditto.
14257         (*add<mode>_3): Ditto.
14258         (*addsi_3_zext): Ditto.
14259         (*add<mode>_5): Ditto.
14260
14261 2010-06-03  Jan Hubicka  <jh@suse.cz>
14262
14263         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
14264         of bitmap_bit_p.
14265         * cfganal.c (compute_dominance_frontiers_1): Likewise.
14266
14267 2010-06-03  Jan Hubicka  <jh@suse.cz>
14268
14269         * df-problems.c (df_create_unused_note, df_note_bb_compute):
14270         micro-optimize the checks when to add new note.
14271
14272 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
14273
14274         * final.c (output_asm_insn): Call
14275         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
14276         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
14277         (output_address): Call targetm.asm_out.print_operand_address.
14278         Update comments.
14279         * target.h (struct gcc_target): Add print_operand,
14280         print_operand_address, and print_operand_punct_valid_p fields.
14281         * targhooks.h (default_print_operand): Declare.
14282         (default_print_operand_address): Declare.
14283         (default_print_operand_punct_valid_p): Declare.
14284         * targhooks.c (default_print_operand): Define.
14285         (default_print_operand_address): Define.
14286         (default_print_operand_punct_valid_p): Define.
14287         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
14288         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
14289         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
14290         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
14291         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
14292         * vmsdbgout.c (addr_const_to_string): Update comment.
14293         * config/i386/i386.c (print_operand): Rename to...
14294         (ix86_print_operand): ...this.  Make static.
14295         (print_operand_address): Rename to...
14296         (ix86_print_operand_address): ...this.  Make static.  Call
14297         ix86_print_operand instead of PRINT_OPERAND.
14298         (ix86_print_operand_punct_valid_p): New function.
14299         (TARGET_PRINT_OPERAND): Define.
14300         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14301         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14302         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
14303         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14304         (PRINT_OPERAND): Delete.
14305         (PRINT_OPERAND_ADDRESS): Delete.
14306         * config/i386/i386-protos.h (print_operand): Delete prototype.
14307         (print_operand_address): Delete prototype.
14308
14309 2010-06-03  Richard Guenther  <rguenther@suse.de>
14310
14311         PR tree-optimization/44403
14312         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
14313         Preserve pointer qualifiers.
14314         (vect_create_data_ref_ptr): Likewise.
14315
14316 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
14317
14318         PR c++/44294
14319         * defaults.h (MAX_FIXED_MODE_SIZE): New.
14320
14321         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
14322
14323 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
14324
14325         PR debug/44375
14326         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
14327         return false if merging the bbs would lead to goto_locus
14328         location being lost from the IL.
14329
14330 2010-06-03  Jan Hubicka  <jh@suse.cz>
14331             Jakub Jelinek  <jakub@redhat.com>
14332
14333         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
14334         set->regs[i] is NULL or has just one entry.
14335
14336 2010-06-03  Jan Hubicka  <jh@suse.cz>
14337
14338         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
14339         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
14340
14341 2010-06-03  Paul Brook  <paul@codesourcery.com>
14342
14343         * config/arm/arm.c (FL_TUNE): Define.
14344         (arm_default_cpu, arm_cpu_select): Remove.
14345         (all_cores): Populate core field.
14346         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
14347         (arm_find_cpu): New function.
14348         (arm_handle_option): Lookup cpu/architecture names.
14349         (arm_override_options): Cleanup mcpu/march/mtune handling.
14350         (arm_file_start): Ditto.
14351
14352 2010-06-03  Alan Modra  <amodra@gmail.com>
14353
14354         PR target/44169
14355         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
14356         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
14357         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
14358         (rs6000_emit_load_toc_table): Likewise.
14359
14360 2010-06-02  Jan Hubicka  <jh@suse.cz>
14361
14362         * passes.c (init_optimization_passes): Put ipa reference
14363         after ipa pure-const.
14364
14365 2010-06-02  Jan Hubicka  <jh@suse.cz>
14366
14367         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
14368         calls_read_all and calls_write_all.
14369         (get_reference_optimization_summary): Fix formatting.
14370         (is_proper_for_analysis): Check that decl is not readonly.
14371         (propagate_bits): Check CONST/PURE/noreturn flags.
14372         (ipa_init): Move all_module_statics to optimization_summary_obstack.
14373         (analyze_function): Ignore indirect edges.
14374         (copy_global_bitmap): For all module statics, do nothing.
14375         (generate_summary): Do not print calls_read_all/calls_write_all.
14376         (read_write_all_from_decl): Take node as argument; check
14377         cgraph_node_cannot_return.
14378         (propagate): Reorganize read_all/write_all computation;
14379         check indirect edges; check ecf flags; use all_module_statics
14380         in the results; do not free all_module_statics.
14381         (stream_out_bitmap): Handle all_module_statics.
14382         (ipa_reference_write_optimization_summary): Likewise; use
14383         varpool/cgraph encoders to get boundaries.
14384         (ipa_reference_read_optimization_summary): Read in all_module_statics;
14385         use it when possible.
14386
14387 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14388
14389         PR target/44218
14390         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
14391         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
14392
14393         * doc/extend.texi (powerpc builtins): Document vec_recip,
14394         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
14395
14396         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
14397         (rs6000_emit_swrsqrt): Ditto.
14398         (rs6000_emit_swdivsf): Delete.
14399         (rs6000_emit_swdivdf): Ditto.
14400         (rs6000_emit_swrsqrtsf): Ditto.
14401
14402         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
14403         describe the reciprocal estimate support for each type.
14404         (recip_options): Map -mrecip=<opt> into option bits.
14405         (gen_2arg_fn_t): New typedef for binary rtx gen function.
14406         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
14407         reciprocal estimate instructions.
14408         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
14409         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
14410         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
14411         cost information if -mdebug=cost or -mdebug=reg.
14412         (rs6000_override_options): Set -mrecip-precision for power6, and
14413         power7 machines.  If -mvsx or -mdfp, enable various options that
14414         came in previous instruction set ISAs, unless the option was
14415         explicitly disabled by the command line option.  Parse
14416         -mrecip=<opt> options.
14417         (rs6000_builtin_vectorized_function): Add support for vectorizing
14418         the reciprocal estimate builtins and expansions.
14419         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
14420         (bdesc_2arg): Add reciprocal estimate builtins.
14421         (bdesc_1arg): Add reciprocal square root estimate builtins.
14422         (rs6000_expand_builtin): Rewrite to use a switch statement,
14423         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
14424         (rs6000_init_builtins): Create declarations for reciprocal
14425         estimate builtins.
14426         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
14427         sized, prefer traditional floating point registers, if integer
14428         vector types, prefer altivec registers.  Don't actually look at
14429         the memory address any more.
14430         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
14431         builtins.
14432         (rs6000_load_constant_and_splat): New helper function to load up
14433         the constant for reciprocal estimate instructions.
14434         (rs6000_emit_madd): New helper function for generating
14435         multiply/add type instructions, based on the current switches.
14436         (rs6000_emit_msub): Ditto.
14437         (rs6000_emit_mnsub): Ditto.
14438         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
14439         replace a divide with a reciprocal estimate and fixup, adding
14440         support for machines with high precision and vectors.
14441         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
14442         low precision machines.
14443         (rs6000_emit_swdiv): New common function to be called to replace a
14444         division with reciprocal estimate and fixup.
14445         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
14446         for double and vector types.  Add support for high precision machines.
14447
14448         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
14449         the reciprocal estimate instructions can be generated.
14450         (TARGET_FRE): Ditto.
14451         (TARGET_FRSQRTES): Ditto.
14452         (TARGET_FRSQRTE): Ditto.
14453         (RS6000_RECIP_*): New macros for reciprocal estimate support.
14454
14455         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
14456         square root estimate on vectors.
14457         (re<mode>2): New insn for reciprocal division estimate on vectors.
14458
14459         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
14460         New builtin.
14461         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
14462         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
14463         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
14464         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
14465         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
14466         (RS6000_BUILTIN_RSQRT): Ditto.
14467         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
14468         floating point builtin.
14469
14470         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14471         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
14472         __RECIP_PRECISION__ based on the command line switches.
14473         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
14474
14475         * config/rs6000/rs6000.opt (-mrecip): Document add support for
14476         replacing division instructions with reciprocal estimate and fixup.
14477         (-mrecip=<opt>): New option.
14478         (-mrecip-precision): Ditto.
14479
14480         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
14481         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
14482         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
14483         precision scalar.
14484
14485         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
14486         (UNSPEC_VREFP): Ditto.
14487         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
14488         conterparts with regard to support of -mno-fused-madd and -ffast-math.
14489         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
14490         reciprocal estimate instructions to be generated.
14491         (altivec_vrefp): Ditto.
14492
14493         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
14494         estimate support.
14495         (rreg): New mode attribute for reciprocal estimate support.
14496         (recip<mode>3): New insn for division using reciprocal estimate
14497         and fixup builtins.
14498         (divide define_split): New define_split to convert floating point
14499         division to use reciprocal estimate if the user used the
14500         appropriate options and the split is run when we can add new
14501         pseudo registers for the fixup.
14502         (rsqrt<mode>2): New insn for reciprocal square root support.
14503         (recipsf3): Move into recip<mode>3.
14504         (recipdf3): Ditto.
14505         (fres): Use TARGET_FRES.
14506         (rsqrtsf2): Move into rsqrt<mode>2.
14507         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
14508         (copysignsf3): Add support for VSX.
14509         (fred): Use TARGET_FRE.
14510         (fred_fpr): Ditto.
14511         (rsqrtdf_internal1): New function for frsqrte instruciton.
14512
14513         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
14514         (vec_rsqrt): Ditto.
14515
14516 2010-06-03  Richard Guenther  <rguenther@suse.de>
14517
14518         PR middle-end/44291
14519         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
14520         (set_user_assembler_libfunc): Likewise.
14521
14522 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14523
14524         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
14525         defaults.h.
14526         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
14527         to defaults.h
14528         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
14529         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
14530         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
14531         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
14532         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
14533         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
14534         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
14535         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
14536         * defaults.h: Updated for above mentioned changes.
14537
14538 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
14539
14540         * c-common.c: Remove header include of tm_p.h.
14541         * Makefile.in (c-common.o): Remove TM_P_H dependency.
14542
14543 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
14544
14545         * tree.h (struct tree_decl_map): New type.
14546         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
14547         (tree_decl_map_hash): New prototype.
14548         (debug_expr_for_decl, value_expr_for_decl): Change into
14549         tree_decl_map hashtab from tree_map.
14550         (init_ttree): Adjust initialization.
14551         (tree_decl_map_hash): New function.
14552         (decl_debug_expr_lookup, decl_debug_expr_insert,
14553         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
14554
14555 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14556
14557         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
14558         linker emulations.
14559         * configure: Regenerate.
14560         * config.in: Regenerate.
14561
14562         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
14563         (X86_64_EMULATION): Define.
14564         (TARGET_LD_EMULATION): Use them.
14565
14566         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
14567         (SPARC64_EMULATION): Define.
14568         (LINK_ARCH_SPEC): Use them.
14569
14570 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14571
14572         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
14573         smallest_mode_for_size for computing the precision types of new
14574         graphite IVs.  Do not call lang_hooks.types.type_for_size.
14575
14576 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14577
14578         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
14579         information.
14580         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
14581
14582 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14583
14584         PR middle-end/44363
14585         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
14586         return false instead.
14587
14588 2010-06-02  Jan Hubicka  <jh@suse.cz>
14589
14590         PR middle-end/44295
14591         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
14592         create new cgraph node to check callee.
14593
14594 2010-06-02  Richard Guenther  <rguenther@suse.de>
14595
14596         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
14597
14598 2010-06-02  Richard Guenther  <rguenther@suse.de>
14599
14600         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
14601         (lto_wrapper_cleanup): ... this.  Do not exit.
14602         (fatal): Adjust.  Exit here.
14603         (fatal_perror): Likewise.
14604         (fatal_signal): New function.
14605         (main): Set up signal handlers to cleanup temporary files.
14606         * Makefile.in (lto-wrapper.o): Adjust dependencies.
14607
14608 2010-06-02  Richard Guenther  <rguenther@suse.de>
14609
14610         PR tree-optimization/44377
14611         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
14612
14613 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14614
14615         * config/s390/2097.md (z10_fhex): Remove insn reservation.
14616         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
14617         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
14618         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
14619         instruction.
14620         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
14621
14622 2010-06-02  Jan Hubicka  <jh@suse.cz>
14623
14624         * bitmap.c (bitmap_descriptor): Add search_iter.
14625         (bitmap_find_bit): Increment it.
14626         (print_statistics): Print it.
14627
14628 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
14629
14630         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
14631         instead of gimple_build_call_vec.  Delete unnecessary local variable.
14632
14633 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14634
14635         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
14636         change from yesterday.
14637
14638 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14639
14640         * c-ada-spec.c: Clean up redundant includes.
14641
14642 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
14643
14644         * gimplify.c: Do not include except.h and optabs.h.
14645         (gimplify_body): Do not initialize RTL profiling.
14646         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
14647         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
14648         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
14649         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
14650         langhooks.h.
14651
14652         * tree-pretty-print.h: Include pretty-print.h.
14653         * gimple-pretty-print.h: Include pretty-print.h.
14654
14655         * tree-pretty-print.c: Do not include diagnostic.h.
14656         * tree-vrp.c: Likewise.
14657         * tree-tailcall.c: Likewise
14658         * tree-scalar-evolution.c: Likewise
14659         * tree-ssa-dse.c: Likewise
14660         * tree-chrec.c: Likewise
14661         * tree-ssa-sccvn.c: Likewise
14662         * tree-ssa-copyrename.c: Likewise
14663         * tree-nomudflap.c: Likewise
14664         * tree-call-cdce.c: Likewise
14665         * tree-stdarg.c: Likewise
14666         * tree-ssa-math-opts.c: Likewise
14667         * tree-nrv.c: Likewise
14668         * tree-ssa-sink.c: Likewise
14669         * tree-browser.c: Likewise
14670         * tree-ssa-loop-ivcanon.c: Likewise
14671         * tree-ssa-loop.c: Likewise
14672         * tree-parloops.c: Likewise
14673         * tree-ssa-address.c: Likewise
14674         * tree-ssa-ifcombine.c: Likewise
14675         * tree-if-conv.c: Likewise
14676         * tree-data-ref.c: Likewise
14677         * tree-affine.c: Likewise
14678         * tree-ssa-phiopt.c: Likewise
14679         * tree-ssa-coalesce.c: Likewise
14680         * tree-ssa-pre.c: Likewise
14681         * tree-ssa-live.c: Likewise
14682         * tree-predcom.c: Likewise
14683         * tree-ssa-forwprop.c: Likewise
14684         * tree-ssa-dce.c: Likewise
14685         * tree-ssa-ter.c: Likewise
14686         * tree-ssa-loop-prefetch.c: Likewise
14687         * tree-optimize.c: Likewise
14688         * tree-ssa-phiprop.c: Likewise
14689         * tree-object-size.c: Likewise
14690         * tree-outof-ssa.c: Likewise
14691         * tree-ssa-structalias.c: Likewise
14692         * tree-switch-conversion.c: Likewise
14693         * tree-ssa-reassoc.c: Likewise
14694         * tree-ssa-operands.c: Likewise
14695         * tree-vectorizer.c: Likewise
14696         * tree-vect-data-refs.c: Likewise
14697         * tree-vect-generic.c: Likewise
14698         * tree-vect-stmts.c: Likewise
14699         * tree-vect-patterns.c: Likewise
14700         * tree-vect-slp.c: Likewise
14701         * tree-vect-loop.c: Likewise
14702         * tree-ssa-loop-ivopts.c: Likewise
14703         * tree-ssa-loop-im.c: Likewise
14704         * tree-ssa-loop-niter.c: Likewise
14705         * tree-ssa-loop-unswitch.c: Likewise
14706         * tree-ssa-loop-manip.c: Likewise
14707         * tree-ssa-loop-ch.c: Likewise
14708         * tree-dump.c: Likewise
14709         * tree-complex.c: Likewise
14710
14711         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
14712         * tree-ssa-uninit.c: Likewise
14713         * tree-ssa-threadupdate.c: Likewise
14714         * tree-ssa-uncprop.c: Likewise
14715         * tree-ssa-ccp.c: Likewise
14716         * tree-ssa-dom.c: Likewise
14717         * tree-ssa-propagate.c: Likewise
14718         * tree-ssa-alias.c: Likewise
14719         * tree-dfa.c: Likewise
14720         * tree-cfgcleanup.c: Likewise
14721         * tree-sra.c: Likewise
14722         * tree-ssa-copy.c: Likewise
14723         * tree-ssa.c: Likewise
14724         * tree-profile.c: Likewise
14725         * tree-cfg.c: Likewise
14726         * tree-ssa-threadedge.c: Likewise
14727         * tree-vect-loop-manip.c: Likewise
14728
14729         * tree-inline.c: Do not include diagnostic.h and expr.h.
14730         Include rtl.h.
14731         (copy_decl_for_dup_finish): Do not use NULL_RTX.
14732
14733         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
14734         * tree-loop-distribution.c: Likewise.
14735
14736 2010-06-01  Jan Hubicka  <jh@suse.cz>
14737
14738         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
14739
14740 2010-06-01  Jan Hubicka  <jh@suse.cz>
14741
14742         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
14743         remove return value.
14744         (split_bbs_on_noreturn_calls) .... here.
14745         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
14746         * tree-flow.h (fixup_noreturn_call): New.
14747
14748 2010-06-01  Jan Hubicka  <jh@suse.cz>
14749
14750         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
14751
14752 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
14753
14754         * tree.h (build_nt_call_list): Delete.
14755         * tree.c (build_nt_call_list): Delete.
14756
14757 2010-06-01  Jan Hubicka  <jh@suse.cz>
14758
14759         * fwprop.c: Make emit-rtl.h include last.
14760         * rtlanal.c: Include emit-rtl.h.
14761         * genautomata.c: Output emit-rtl include into insn-automata.c
14762         * df-scan.c: Include emit-rtl.h.
14763         * haifa-sched.c: Indlude emit-rtl.h.
14764         * mode-switching.c: Indlude emit-rtl.h.
14765         * graph.c: Indlude emit-rtl.h.
14766         * sel-sched.c: Include emit-rtl.h.
14767         * sel-sched-ir.c: Include emit-rtl.h.
14768         * ira-build.c: Include emit-rtl.h.
14769         * emit-rtl.c (first_insn, last_insn): Remove defines.
14770         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
14771         Move to emit-rtl.h.
14772         (set_new_first_and_last_insn, get_last_insn_anywhere,
14773         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
14774         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
14775         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
14776         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
14777         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
14778         Use accessor functions.
14779         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
14780          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
14781         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
14782         mem_expr_equal_p): Move here from rtl.h.
14783         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
14784         Move here from emit-rtl.c; make inline.
14785         * cfglayout.h: Include emit-rtl.h.
14786         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
14787          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
14788         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
14789         mem_expr_equal_p, get_insns, set_first-insn,
14790         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
14791         * reg-stack.c: Include emit-rtl.h.
14792         * dce.c: Likewise.
14793
14794 2010-06-01  Jan Hubicka  <jh@suse.cz>
14795
14796         * cgraph.h (tree_function_versioning): Update prototype.
14797         (cgraph_function_versioning): Update prototype.
14798         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
14799         bitmap.
14800         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
14801         (cgraph_materialize_clone, save_inline_function_body): Update use of
14802         tree_function_versioning.
14803         * tree-inline.c (copy_bb): Look for previous copied block to link
14804         after; fix debug output.
14805         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
14806         (copy_body): Likewise.
14807         (expand_call_inline): Update use of copy_body.
14808         (tree_function_versioning): Update use of copy body; accept
14809         blocks_to_copy and new_entry.
14810
14811 2010-06-01  Jan Hubicka  <jh@suse.cz>
14812
14813         * gegenrtl.c: Remove unnecesary prototypes.
14814         (gendecl): Remove.
14815         (gendef): Produce static inline.
14816         (gencode): Remove.
14817         (main): Do not decode parameters; generate header only.
14818         * Makefile.in (genrtl.c): Remove.
14819
14820 2010-06-01  Jan Hubicka  <jh@suse.cz>
14821
14822         * tree-switch-conversion.c (build_one_array): Make it readonly.
14823
14824 2010-06-01  Richard Guenther  <rguenther@suse.de>
14825
14826         * optabs.c (init_optabs): Guard all accesses to reinit.
14827         * ipa-pure-const.c (propagate): Fix another typo.
14828         * opts.c (common_handle_option): Split assignment to bool.
14829         * c-opts.c (c_common_handle_option): Likewise.
14830
14831 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
14832             Matthew Gingell  <gingell@adacore.com>
14833
14834         * doc/invoke.texi: Mention -fdump-ada-spec.
14835         * tree-dump.c (dump_files): Add ada-spec.
14836         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
14837         * tree-pass.h (tree_dump_index): Add TDI_ada.
14838         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
14839         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
14840         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
14841         * c-decl.c: Include c-ada-spec.h.
14842         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
14843         functions.
14844         (c_write_global_declarations): Add handling of -fdump-ada-spec.
14845         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
14846         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
14847         * c-ada-spec.h, c-ada-spec.c: New files.
14848
14849 2010-06-01  Richard Guenther  <rguenther@suse.de>
14850
14851         PR lto/43853
14852         * ipa-pure-const.c (get_function_state): Hand back varying state
14853         if we do not have one.
14854         (has_function_state): New function.
14855         (duplicate_node_data): Adjust.
14856         (remove_node_data): Likewise.
14857         (pure_const_write_summary): Likewise.
14858         (propagate): Likewise.  Fix typo.
14859
14860 2010-06-01  Jan Hubicka  <jh@suse.cz>
14861
14862         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
14863         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
14864         (execute_all_ipa_transforms): Do not play with the states.
14865
14866 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14867
14868         * config/arm/t-linux-androideabi: New.
14869         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
14870
14871 2010-06-01  Jan Hubicka  <jh@suse.cz>
14872
14873         * tree-inline.c (estimate_num_insns): For stdarg functions look
14874         into call statement to count cost of argument passing.
14875
14876 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
14877
14878         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
14879         argument for fprintf.
14880         (ix86_output_addr_diff_elt): Likewise.
14881         (x86_function_profiler): Likewise.
14882         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
14883         (LPREFIX): Likewise.
14884         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
14885
14886 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
14887
14888         PR target/44338
14889         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
14890         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
14891         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
14892         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
14893         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
14894         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
14895         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
14896         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
14897         TARGET_FUSED_MADD.
14898
14899 2010-05-31  Jan Hubicka  <jh@suse.cz>
14900
14901         * tree.h (tree_range_check_failed): Declare noreturn.
14902
14903 2010-05-31  Jan Hubicka  <jh@suse.cz>
14904
14905         * gimple.c (gimple_call_builtin_p): New function.
14906         * gimple.h (gimple_call_builtin_p): Declare.
14907         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
14908         to exit.
14909         (execute_warn_function_return): BUILT_IN_RETURN is return.
14910         (split_critical_edges): Return edges are not critical.
14911         (is_ctrl_altering_stmt): Builtin_in_return is altering.
14912         (gimple_verify_flow_info): Handle built_in_return.
14913         (execute_warn_function_return): Handle built_in_return.
14914         * ipa-pure-const.c (check_call): Ignore builtin_return.
14915
14916 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
14917
14918         PR middle-end/44337
14919         * expr.c (expand_assignment): Don't store anything for out-of-bounds
14920         array accesses with non-MEM.
14921
14922         PR tree-optimization/44182
14923         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
14924         newly needs to end a bb is followed by debug stmts, instead return
14925         true from the function at the end.
14926         (maybe_move_debug_stmts_to_successors): New function.
14927         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
14928
14929 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
14930
14931         PR target/44161
14932         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
14933
14934 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
14935
14936         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
14937         for nested functions in non-optimized compilation.
14938
14939 2010-05-31  Richard Guenther  <rguenther@suse.de>
14940
14941         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
14942
14943 2010-05-30  Jan Hubicka  <jh@suse.cz>
14944
14945         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
14946
14947 2010-05-30  Richard Guenther  <rguenther@suse.de>
14948
14949         PR lto/42975
14950         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
14951         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
14952         no longer needed.
14953
14954 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
14955
14956         * config/darwin.c (output_objc_section_asm_op): Add comment.
14957         (name_needs_quotes): Add '_' to list of valid comment chars.
14958         (machopic_output_function_base_name): Remove unneeded quotes.
14959         (darwin_encode_section_info): Adjust asm whitespace.
14960         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
14961         (ASM_OUTPUT_LOCAL): Ditto.
14962         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
14963         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
14964         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
14965
14966 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
14967
14968         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
14969         RS6000_OUTPUT_BASENAME unconditionally.
14970         (rs6000_output_function_epilogue): Likewise.
14971
14972 2010-05-30  Jan Hubicka  <jh@suse.cz>
14973
14974         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
14975         nodes.
14976
14977 2010-05-30  Richard Guenther  <rguenther@suse.de>
14978
14979         * tree-cfg.c (verify_gimple_assign_single): Implement
14980         verification for COND_EXPR rhs.
14981
14982 2010-05-30  Jan Hubicka  <jh@suse.cz>
14983
14984         * cgraph.h (cgraph_dump_file): Declare.
14985         * cgraphunit.c (cgraph_dump_file): Export.
14986         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
14987
14988 2010-05-30  Jan Hubicka  <jh@suse.cz>
14989
14990         * dwarf2out.c (reference_to_unused,
14991         premark_types_used_by_global_vars_helper): Avoid creation of new
14992         varpool nodes.
14993
14994 2010-05-30  Jan Hubicka  <jh@suse.cz>
14995
14996         * cgraph.h (cgraph_node_cannot_return,
14997         cgraph_edge_cannot_lead_to_return): New functions.
14998         * cgraph.c (cgraph_node_cannot_return,
14999         cgraph_edge_cannot_lead_to_return): Use them.
15000         * ipa-pure-const.c (pure_const_names): New static var.
15001         (check_call): Handle calls not leading to return.
15002         (pure_const_read_summary): Dump info read.
15003         (propagate): Dump info about propagation process; ignore side effects
15004         of functions not leading to exit; fix handling of pure functions.
15005
15006 2010-05-30  Jan Hubicka  <jh@suse.cz>
15007
15008         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
15009         for tail call epilogues.
15010
15011 2010-05-30  Jan Hubicka  <jh@suse.cz>
15012
15013         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
15014         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
15015         dump files.
15016
15017 2010-05-29  Jan Hubicka  <jh@suse.cz>
15018
15019         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
15020         node; remove references in node we no longer keep in cgrpah but need
15021         body of.
15022
15023 2010-05-29  Jan Hubicka  <jh@suse.cz>
15024
15025         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
15026
15027 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15028
15029         PR target/44165
15030         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
15031
15032 2010-05-29  Jan Hubicka  <jh@suse.cz>
15033
15034         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
15035         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
15036         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
15037         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
15038         debug_names_replaced_by, debug_update_ssa): Likewise.
15039         * sbitmap.c (debug_sbitmap): Likewise.
15040         * genrecog.c (debug_decision, debug_decision_list): Likewise.
15041         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
15042         debug_tree_chain): Likewise.
15043         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
15044         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
15045         * optabs.c (debug_optab_libfuncs): Likewise.
15046         (verify_loop_closed_ssa): Likewise.
15047         * value-prof.c (verify_histograms): Likewise.
15048         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
15049         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
15050         * cfghooks.c (verify_flow_info): Likewise.
15051         * fold-const.c (debug_fold_checksum): Likewise.
15052         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
15053         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
15054         Likewise.
15055         * omega.c (debug_omega_problem): Likewise.
15056         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
15057         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
15058         * dominance.c (verify_dominators, debug_dominance_info,
15059         debug_dominance_tree): Likewise.
15060         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
15061         * df_regno_debug, df_ref_debug,
15062         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
15063         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
15064         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
15065         * sel-sched.c (debug_state): Likewise.
15066         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
15067         Likewise.
15068         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
15069         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
15070         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
15071         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
15072         Likewise.
15073         * c-pretty-print.c (debug_c_tree): Likewise.
15074         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
15075         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
15076         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
15077         * ebitmap.c (debug_ebitmap): Likewise.
15078         * function.c (debug_find_var_in_block_tree): Likewise.
15079         * print-rtl.c (debug_rtx): Likewise.
15080         (debug_rtx_count): Likewise.
15081         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
15082         * stor-layout.c (debug_rli): Likewise.
15083         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
15084         * tree-data-ref.c (debug_data_references,
15085         debug_data_dependence_relations, debug_data_reference,
15086         debug_data_dependence_relation, debug_rdg_vertex,
15087         debug_rdg_component, debug_rdg): Likewise.
15088         * tree-affine.c (debug_aff): Likewise.
15089         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
15090         Likewise.
15091         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
15092         * emit-rtl.c (verify_rtl_sharing): Likewise.
15093         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
15094         debug_value_expressions): Likewise.
15095         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
15096         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
15097         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
15098         * cfglayout.c (verify_insn_chain): Likewise.
15099         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
15100         debug_clast_stmt, debug_generated_program): Likewise.
15101         * ggc-page.c (debug_print_page_list): Likewise.
15102         * tree-ssa-ter.c (debug_ter): Likewise.
15103         * graphite-dependences.c (debug_pddr): Likewise.
15104         * sched-deps.c (debug_ds): Likewise.
15105         * tree-ssa.c (verify_ssa): Likewise.
15106         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
15107         debug_scattering_functions, debug_iteration_domains, debug_pdr,
15108         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
15109         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
15110         * tree-inline.c (debug_find_tree): Likewise.
15111         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
15112         debug_ppl_powerset_matrix): Likewise.
15113         * var-tracking.c (debug_dv): Likewise.
15114         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
15115         * cfgloop.c (verify_loop_structure): Likewise.
15116         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
15117         * c-common.c (verify_sequence_points): Likewise.
15118         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
15119         debug_candidates, debug_rgn_dependencies): Likewise.
15120         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
15121         * debug_constraint_graph, debug_solution_for_var,
15122         debug_sa_points_to_info): Likewise.
15123         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
15124         Likewie.
15125         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
15126         debug_loops, debug_loop, debug_loop_num): Likewise.
15127         * passes.c (debug_pass): Likewise.
15128         (dump_properties): Likewise; add cfglayout property.
15129         (debug_properties): Likewise.
15130         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
15131         * varpool.c (debug_varpool): Likewise.
15132         * regcprop.c (debug_value_data): Likewise.
15133         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
15134         debug_immediate_uses_for): Likewise.
15135
15136 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
15137
15138         PR bootstrap/44315
15139         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
15140         Filter out insn-flags.h.
15141
15142 2010-05-29  Jan Hubicka  <jh@suse.cz>
15143
15144         * cgraph.h (struct varpool_node_set_def,
15145         struct cgraph_node_set_def): Remove unused AUX pointer.
15146         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
15147         VEC_empty macro.
15148
15149 2010-05-29  Jan Hubicka  <jh@suse.cz>
15150
15151         PR middle-end/44324
15152         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
15153
15154 2010-05-29  Richard Guenther  <rguenther@suse.de>
15155
15156         * lto-streamer.c (cached_bp): New global variable.
15157         (bitpack_create): Return the cached bitpack, if available.
15158         (bitpack_delete): Clear and cache the bitpack, if appropriate.
15159         (bp_pack_value): Remove redundant asserts.
15160
15161 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
15162
15163         PR middle-end/44306
15164         * tree-if-conv.c (is_true_predicate): New.
15165         (is_predicated): Use is_true_predicate.
15166         (add_to_predicate_list): Same.  Do not use unshare_expr.
15167         (add_to_dst_predicate_list): Same.
15168
15169 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
15170
15171         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
15172         field on edges.
15173         (predicate_bbs): Same.
15174         (clean_predicate_lists): Same.
15175         (find_phi_replacement_condition): Do not AND the predicate from
15176         edge->aux.
15177
15178 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
15179
15180         PR bootstrap/44315
15181         * Makefile.in (build/gencondmd.o): Add a missing `\'.
15182
15183 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15184
15185         PR target/44261
15186         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
15187         (negdf2): Adjust expander pattern and use negdf2_slow.
15188         (negsf2): Likewise.
15189
15190 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
15191
15192         * basic-block.h (struct control_flow_graph): Move last_label_uid field
15193         up.
15194         * df.h (struct df_base_ref): Move regno field up.
15195         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
15196         * expr.h (struct separate_ops): Move location field up.
15197         * optabs.h (struct optab_d): Move libcall_basename field down.
15198         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
15199         * config/i386/i386.h (struct machine_function): Convert call_abi field
15200         into a bitfield.  Move cfa field to the end of the structure.
15201
15202 2010-05-29  Jan Hubicka  <jh@suse.cz>
15203
15204         * varpool.c (varpool_get_node): Fix lookup.
15205
15206 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15207
15208         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
15209         RTL specific prototypes with #ifdef RTX_CODE.
15210         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
15211         * config/spu/t-spu-elf: Fix dependencies.
15212
15213         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
15214
15215 2010-05-29  Mike Stump  <mikestump@comcast.net>
15216
15217         PR bootstrap/44315
15218         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
15219         TM_H when building to avoid dependency loops.
15220
15221 2010-05-29  Jan Hubicka  <jh@suse.cz>
15222
15223         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
15224         refs and body; not the whole node for masters of materialized clones.
15225
15226 2010-05-29  Mike Stump  <mikestump@comcast.net>
15227
15228         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
15229
15230 2010-05-29  Jan Hubicka  <jh@suse.cz>
15231
15232         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
15233         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
15234         use of clone_function_name.
15235         * cgraph.h (cgraph_create_virtual_clone,
15236         cgraph_function_versioning): update prototypes.
15237         (clone_function_name): Declare.
15238         * ipa-cp.c (ipcp_insert_stage): Update call of
15239         cgraph_create_virtual_clone.
15240         * omp-low.c (create_omp_child_function_name): Use
15241         cgraph_create_virtual_clone.
15242         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
15243         (cgraph_function_versioning): Take SUFFIX argument; produce new name
15244         and make decl local.
15245
15246 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15247
15248         * vec.h: Include statistics.h
15249         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
15250         with VEC_H.
15251
15252 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15253
15254         * c-lex.c: Do not include c-tree.h.
15255         * c-pretty-print.c: Likewise.
15256         * c-opts.c: Likewise.
15257         * c-gimplify.c: Likewise.
15258         * c-common.c: Likewise.
15259         * c-dump.c: Likewise.  Include c-common.h.
15260
15261 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15262
15263         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
15264         before including diagnostic-core.h.
15265         (c_cpp_error): New prototype moved from c-tree.h.
15266         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
15267         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
15268         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
15269         (c_cpp_error): Prototype moved to c-common.h.
15270         * Makefile.in: Update dependency for C_COMMON_H.
15271
15272 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15273
15274         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
15275         * c-common.c (c_register_addr_space): Remove here.
15276         * c-decl.c (c_register_addr_space): Re-add here.
15277
15278 2010-05-28  Mike Stump  <mikestump@comcast.net>
15279
15280         * config/darwin-c.c: Remove c-tree.h include.
15281
15282 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15283
15284         * gcc.c: Include diagnostic.h.
15285         (error_count): Remove.  All users changed to use errorcount.
15286         (programname): Remove.  All users changed to use progname.
15287         (fancy_abort, internal_error, fatal_error, error, warning, inform,
15288         fnotice): Remove.
15289         (execute): Don't include "Internal error" and bug reporting
15290         information in argument of internal_error call.
15291         (process_command): Don't increment error_count after calling
15292         perror_with_name.
15293         (input_filename): Rename to gcc_input_filename.  All users
15294         changed.
15295         (main): Call diagnostic_initialize.  Register delete_temp_files
15296         with atexit.  Use seen_error to test for errors.
15297         * gcc.h: Include diagnostic-core.h.
15298         (fatal_error, error, warning): Remove.
15299         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
15300         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
15301         (gcc.o): Update dependencies.
15302
15303 2010-05-28  Jeff Law  <law@redhat.com>
15304
15305         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
15306         functions.
15307         * ira.h (ira_bad_reload_regno): Declare
15308         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
15309
15310         * ira-color.c (update_curr_costs): Free updated hard reg costs.
15311         (ira_reassign_conflict_allocnos): Remove bogus asserts.
15312         (allocno_reload_assign): Likewise.
15313
15314 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
15315
15316         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
15317         build1_stat.
15318
15319 2010-05-28  Richard Guenther  <rguenther@suse.de>
15320
15321         PR lto/44312
15322         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
15323         Stream fixed-point constants mode.
15324         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
15325         and TYPE_PRECISION.
15326         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
15327         Stream fixed-point constants mode.
15328         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
15329         and TYPE_PRECISION.
15330
15331 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
15332
15333         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
15334         only place it was called from.
15335         (number_of_latch_executions): Do not return chrec_dont_know when the
15336         may_be_zero is a runtime condition: instead, return a COND_EXPR
15337         including the may_be_zero condition.
15338         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
15339         of nb_iterations.
15340         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
15341         COND_EXPRs.
15342
15343 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
15344
15345         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
15346         generate COND_EXPRs for degenerate_phi_result.
15347
15348 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
15349
15350         PR middle-end/44293
15351         * tree-if-conv.c (if_convertible_loop_p): Check the
15352         if-convertibility of phi nodes in non predicated BBs.
15353
15354 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15355
15356         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
15357
15358 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15359
15360         PR driver/15303
15361         * gcc.c (inform, warning, inform): New functions.
15362         (fatal_ice): Rename to internal_error; change cmsgid parameter to
15363         gmsgid.  All callers changed.
15364         (notice): Rename to fnotice; add parameter fp.  All callers changed.
15365         (fatal_error): Rename to fatal_signal.  All users changed.
15366         (fatal): Rename to fatal_error; change cmsgid parameter to
15367         gmsgid.  All callers changed.
15368         (process_command): Use warning instead of error for warnings.
15369         (end_going_arg): Don't use _() around argument of error.
15370         (do_spec_1): Use inform for message from %n specs.  Use warning
15371         instead of error for warnings.
15372         (main): Use inform for comparison messages.  Use warning for
15373         message about unused linker input.
15374         (error): Increment error_count.  Print "error: ".
15375         * gcc.h (fatal): Change to fatal_error.
15376         (warning): Declare.
15377         * config/darwin-driver.c (darwin_default_min_version): Use warning
15378         instead of fprintf for warnings.
15379         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
15380
15381 2010-05-28  Julian Brown  <julian@codesourcery.com>
15382
15383         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
15384         (*thumb2_addsi3_compare0_scratch): New.
15385         * config/arm/constraints.md (Pv): New.
15386         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
15387         for ARM mode only.
15388         (*addsi3_compare0_scratch): Likewise.
15389
15390 2010-05-28  Jan Hubicka  <jh@suse.cz>
15391
15392         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
15393         check.
15394         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
15395         only on local statics.
15396
15397 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
15398
15399         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
15400
15401 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
15402
15403         PR bootstrap/44314
15404         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
15405         (OPTION_GLIBC): Define.
15406
15407 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
15408
15409         PR debug/41048
15410         * dwarf2out.c (double_int_type_size_in_bits): New function.
15411         (round_up_to_align): Change first argument and return value to
15412         double_int.
15413         (field_byte_offset): Work internally on double_ints.
15414
15415         PR target/43636
15416         * builtins.c (expand_movstr): Use a temporary pseudo instead
15417         of target even when target is not NULL and not const0_rtx, but
15418         fails movstr predicate.
15419         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
15420
15421 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15422
15423         * final.c (rest_of_clean_state): Use %m in errors instead of
15424         strerror (errno).
15425         * gengtype.c (read_input_list, close_output_files): Use xstrerror
15426         instead of strerror.
15427         * toplev.c (process_options): Use %m in errors instead of strerror
15428         (errno).
15429         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
15430         (errno).
15431
15432 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
15433
15434         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
15435         (ix86_canonical_va_list_type): Make static.  Add declaration.
15436         (ix86_enum_va_list): Make static.  Reindent.
15437         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
15438         (ix86_canonical_va_list_type): Ditto.
15439         (ix86_enum_va_list): Ditto.
15440
15441 2010-05-28  Richard Guenther  <rguenther@suse.de>
15442
15443         * lto-wrapper.c (run_gcc): With -save-temps generate a
15444         user-visible ltrans filename.  Fixup ltrans unit numbering.
15445
15446 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
15447
15448         * c-common.c (c_common_nodes_and_builtins): Replace use
15449         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
15450         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
15451         to ix86_enum_va_list.
15452         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
15453         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
15454         (TARGET_ENUM_VA_LIST_P): Add hook description.
15455         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
15456         * target.h (gcc_target): Add enum_va_list hook.
15457
15458         PR bootstrap/44299
15459         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
15460         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
15461         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
15462
15463 2010-05-28  Alan Modra  <amodra@gmail.com>
15464
15465         PR target/44266
15466         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15467         emit_library_call machinery to set up __tls_get_addr calls.
15468
15469 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15470
15471         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
15472
15473 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
15474
15475         Revert fix for PR c++/44188
15476         * c-common.c (is_typedef_decl): Revert the moving of  this
15477         definition ...
15478         * tree.c (is_typedef_decl): ... here.
15479         (typdef_variant_p): Revert the moving of this  definition
15480         here from cp/tree.c.
15481         * c-common.h (is_typedef_decl): Revert the moving of this
15482         declaration ...
15483         * tree.h (is_typedef_decl): ... here.
15484         (typedef_variant_p): Revert the moving of this  declaration here
15485         from cp/cp-tree.h
15486         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
15487         (gen_tagged_type_die): Revert the splitting out of ...
15488         (gen_type_die_with_usage): ... this function. Revert the anonymous
15489         tagged type handling.
15490         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
15491         typedefs naming anonymous tagged types.
15492
15493 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
15494
15495         * config/rs6000/rs6000-modes.def (PSImode): Delete.
15496
15497 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
15498
15499         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
15500         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
15501         throughout.
15502         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
15503         "xer" to "ca".
15504         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
15505         XER_REGS to CA_REGS throughout.
15506         * config/rs6000/rs6000.h: Same.
15507         (ADDITIONAL_REGISTER_NAMES): Add "xer".
15508         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
15509         that mode_iterator "P" is the size for arithmetic carries as well.
15510         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
15511
15512 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
15513
15514         PR bootstrap/44255
15515         * combine.c (struct rtx_subst_pair): Define unconditionally.
15516         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
15517         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
15518         Call make_compound_operation on pair->to.
15519         (propagate_for_debug): Don't call make_compound_operation here.
15520         Always use simplify_replace_fn_rtx.
15521
15522 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
15523
15524         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
15525         * config/xtensa/xtensa.c (override_options): Check
15526           TARGET_FORCE_NO_PIC and set flag_pic.
15527         * config/xtensa/xtensa.opt: Document -mforce-no-pic
15528
15529 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
15530
15531         PR bootstrap/44299
15532         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
15533         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
15534
15535 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
15536
15537         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
15538         toplev.h.
15539         * diagnostic.c: Don't include toplev.h.
15540         (progname): Define.  Moved from toplev.c.
15541         (seen_error): New function.
15542         * diagnostic.h: Include diagnostic-core.h.
15543         (diagnostic_t, emit_diagnostic): Don't declare here.
15544         * toplev.c (progname): Move to toplev.c.
15545         (emit_debug_global_declarations, compile_file, finalize,
15546         do_compile, toplev_main): Use seen_error.
15547         * toplev.h: Include diagnostic-core.h.
15548         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
15549         internal_error, warning, warning_at, error, error_n, error_at,
15550         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
15551         verbatim, fnotice, progname): Move to diagnostic-core.h.
15552         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
15553         (expand_builtin_expect): Use seen_error.
15554         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
15555         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
15556         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
15557         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
15558         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
15559         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
15560         errorcount for errors.
15561         * c-opts.c (c_common_finish): Use seen_error.
15562         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
15563         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
15564         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
15565         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
15566         (get_coverage_counts): Use seen_error.
15567         * dwarf2out.c (dwarf2out_finish): Use seen_error.
15568         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
15569         gimplify_body): Use seen_error.
15570         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
15571         * ipa-pure-const.c (gate_pure_const): Use seen_error.
15572         * ipa-reference.c (gate_reference): Use seen_error.
15573         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
15574         * lambda-code.c: Include diagnostic-core.h instead of
15575         diagnostic.h.
15576         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
15577         * lto-compress.c: Include diagnostic-core.h instead of
15578         diagnostic.h.
15579         * lto-section-in.c: Include diagnostic-core.h instead of
15580         diagnostic.h.
15581         * lto-streamer-out.c: Include diagnostic-core.h instead of
15582         diagnostic.h.
15583         * lto-streamer.c: Include diagnostic-core.h instead of
15584         diagnostic.h.
15585         (gate_lto_out): Use seen_error.
15586         * matrix-reorg.c: Include diagnostic-core.h instead of
15587         diagnostic.h.
15588         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
15589         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
15590         (gate_expand_omp, lower_omp_1): Use seen_error.
15591         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
15592         (rest_of_decl_compilation, rest_of_type_compilation,
15593         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
15594         * tree-cfg.c (label_to_block_fn): Use seen_error.
15595         * tree-inline.c (optimize_inline_calls): Use seen_error.
15596         * tree-mudflap.c (mudflap_finish_file): Use
15597         seen_error.
15598         * tree-optimize.c (gate_all_optimizations,
15599         gate_all_early_local_passes, gate_all_early_optimizations): Use
15600         seen_error.
15601         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
15602         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
15603         (varpool_remove_unreferenced_decls,
15604         varpool_assemble_pending_decls): Use seen_error.
15605         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
15606         (TOPLEV_H, DIAGNOSTIC_H): Update.
15607         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
15608         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
15609         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
15610         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
15611         coverage.o, lambda-code.o): Update dependencies.
15612
15613 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
15614
15615         PR c++/44188
15616         * c-common.c (is_typedef_decl): Move this definition ...
15617         * tree.c (is_typedef_decl): ... here.
15618         (typdef_variant_p): Move definition here from cp/tree.c.
15619         * c-common.h (is_typedef_decl): Move this declaration ...
15620         * tree.h (is_typedef_decl): ... here.
15621         (typedef_variant_p): Move declaration here from cp/cp-tree.h
15622         * dwarf2out.c (is_naming_typedef_decl): New function.
15623         (gen_tagged_type_die): Split out of ...
15624         (gen_type_die_with_usage): ... this function. When an anonymous
15625         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
15626         is emitted for the typedef.
15627         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
15628         anonymous tagged types.
15629
15630 2010-05-27  Jason Merrill  <jason@redhat.com>
15631
15632         * print-tree.c (debug_vec_tree): New fn.
15633         (print_vec_tree): New fn.
15634         * tree.h: Declare them.
15635         * gdbinit.in (pvt): New command.
15636
15637         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
15638
15639         * gdbinit.in (pdd): New command.
15640
15641 2010-05-27  Jan Hubicka  <jh@suse.cz>
15642
15643         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
15644         (update_caller_keys): Return early if there are no callers;
15645         only update fibheap when decresing the key.
15646         (update_callee_keys): Avoid recursion.
15647         (decide_inlining_of_small_functions): When badness does not match;
15648         re-insert into fibheap.
15649
15650 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
15651
15652         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
15653         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
15654         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
15655         (ALL_HOST_OBJS): Now a union of the above two.
15656         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
15657         all files in ALL_HOST_FRONTEND_OBJS.
15658         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
15659
15660         * c-common.c: Pretend to be a backend file by undefining
15661         IN_GCC_FRONTEND (still need rtl.h here).
15662
15663 2010-05-27  Jan Hubicka  <jh@suse.cz>
15664
15665         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
15666         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
15667
15668 2010-05-27  Jan Hubicka  <jh@suse.cz>
15669
15670         * sched-ebb.c: Rename struct deps to struct deps_desc.
15671         * ddg.c: Likewise.
15672         * sel-sched-ir.c: Likewise.
15673         * sched-deps.c: Likewise.
15674         * sched-int.h: Likewise.
15675         * sched-rgn.c: Likewise.
15676
15677 2010-05-27  Jon Beniston  <jon@beniston.com>
15678
15679         PR 43726
15680         * config/lm32/lm32.h: Remove definition of
15681         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
15682
15683 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15684
15685         PR lto/44230
15686         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
15687
15688 2010-05-27  Richard Guenther  <rguenther@suse.de>
15689
15690         PR tree-optimization/44284
15691         * tree-vect-stmts.c (vectorizable_assignment): Handle
15692         sign-changing conversions as simple copy.
15693
15694 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15695
15696         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
15697         Bionic C library.
15698         (__gthread_active_p): Check for pthread_create if compiling against
15699         Bionic C library.
15700
15701 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15702
15703         Support compilation for Android platform.  Reimplement -mandroid.
15704
15705         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
15706         (*android*): Set ANDROID_DEFAULT.
15707         (arm*-*-linux*): Include linux-android.h.
15708         (arm*-*-eabi*): Don't include previous -mandroid implementation.
15709         * config/arm/eabi.h: Remove, move Android-specific parts ...
15710         * config/linux-android.h: ... here.  New file.
15711         * config/arm/eabi.opt: Rename to ...
15712         * config/linux-android.opt: ... this.
15713         (mandroid): Allow -mno-android option.  Initialize based on
15714         ANDROID_DEFAULT.
15715         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
15716         Move logic to corresponding LINUX_TARGET_* macros.
15717         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
15718         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
15719         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
15720         Android definitions.
15721         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
15722         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
15723         Document.
15724
15725 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15726
15727         Add support for Bionic C library
15728
15729         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
15730         macro.
15731         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
15732         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
15733
15734         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
15735         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
15736         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
15737         to support multiple C libraries.  Handle Bionic.
15738         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
15739         (BIONIC_DYNAMIC_LINKER64): Define.
15740         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
15741         Update.
15742         (TARGET_HAS_SINCOS): Enable for Bionic.
15743
15744         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
15745         the last option specified on command line take effect.
15746         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
15747         (mbionic): New.
15748         (mglibc, muclibc): Update.
15749
15750         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
15751         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
15752         DEFAULT_LIBC.
15753
15754         * doc/invoke.texi (-mglibc, -muclibc): Update.
15755         (-mbionic): Document.
15756
15757 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15758
15759         * c-common.h (c_register_addr_space): Add prototype.
15760         (ADDR_SPACE_KEYWORD): Remove.
15761         * c-common.c (c_register_addr_space): New function.
15762         (c_addr_space_name): Reimplement.
15763         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
15764
15765         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
15766         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
15767
15768         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
15769         Remove TARGET_ADDR_SPACE_KEYWORDS.
15770
15771 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
15772
15773         * input.c: New file.
15774         * input.h (main_input_filename): Move declaration to toplev.h.
15775         * toplev.c (input_location, line_table): Move to input.c
15776         * toplev.h (main_input_filename): Move declaration from input.h.
15777         * tree.c (expand_location): Move to input.c.
15778         * Makefile.in (OBJS-common): Add input.o.
15779         (input.o): Add dependencies.
15780
15781 2010-05-27  Richard Guenther  <rguenther@suse.de>
15782
15783         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
15784         for non-existant files.
15785         (fork_execute): Mark args_name file as deleted.
15786
15787 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
15788
15789         PR bootstrp/44287
15790         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
15791         (narrow_signed_type): Likewise.
15792
15793 2010-05-26  Jan Hubicka  <jh@suse.cz>
15794
15795         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
15796         edge only when checking is enabled; check using former_clone_of;
15797         check inline clones too.
15798         (cgraph_materialize_clone): Record former_clone_of pointer.
15799         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
15800         combining redirections; dump args_to_skip bitmap
15801         (cgraph_materialize_all_clones): Do no redirection here.
15802         * ipa-inline.c (inline_transform): Do redirection here.
15803         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
15804         cheking only).
15805
15806 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15807
15808         * config/avr/avr-c.c: Do not include regs.h.
15809         Include cpplib.h for cpp_define and tree.h for c-common.h.
15810         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
15811         * config/avr/t-avr: Fix dependencies for avr-c.o.
15812
15813 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15814
15815         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
15816         string instead of SYMBOL_REF rtx.
15817         * rtl.h (set_stack_check_libfunc): Move prototype from here...
15818         * libfuncs.h: ...to here.  Adjust for explow.c change.
15819
15820 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
15821
15822         * pretty-print.c: Don't include ggc.h.
15823         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
15824         (identifier_to_locale): Use them for allocation.
15825         * pretty-print.h (identifier_to_locale_alloc,
15826         identifier_to_locale_free): Declare.
15827         * toplev.c (alloc_for_identifier_to_locale): New.
15828         (general_init): Set identifier_to_locale_alloc and
15829         identifier_to_locale_free.
15830         * Makefile.in (pretty-print.o): Update dependencies.
15831
15832 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15833
15834         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
15835         pointer types if they have different alignment or mode.
15836
15837 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
15838
15839         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15840         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15841         * config/sparc/sparc-protos.h (function_value): Remove declaration.
15842         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
15843         sparc_function_value_regno_p): New functions.
15844         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15845         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15846         (function_value): Rename to...
15847         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
15848         argument to 'outgoing'.
15849         (function_arg_record_value, function_arg_union_value,
15850         function_arg_vector_value): Update comment.
15851
15852 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15853
15854         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
15855         (fde_needed_for_eh_p): New predicate.
15856         (output_call_frame_info): Use it throughout to decide whether FDEs
15857         are needed for EH purpose.
15858         (dwarf2out_begin_prologue): Reorder assignments.
15859
15860 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15861
15862         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
15863         special case loop->header.
15864         (is_predicated): New.
15865         (if_convertible_loop_p): Call it.
15866
15867 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15868
15869         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
15870         iterator in parameter.  Do not generate code during the analysis.
15871         (tree_if_convert_cond_stmt): Removed.
15872         (tree_if_convert_stmt): Removed.
15873         (predicate_bbs): New.
15874         (if_convertible_loop_p): Call predicate_bbs.
15875         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
15876         now contains all the analysis part.
15877
15878 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15879
15880         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
15881         statements in the analysis part.
15882         (tree_if_convert_stmt): Update comment.
15883         (remove_conditions_and_labels): New.
15884         (combine_blocks): Call remove_conditions_and_labels.
15885         (tree_if_conversion): Update comment.
15886
15887 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15888
15889         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
15890         than 2 predecessors or more than 2 successors.
15891
15892 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15893
15894         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
15895         of loops in which the data dependence analysis fails.
15896
15897 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15898
15899         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
15900         CDI_POST_DOMINATORS.
15901         (tree_if_conversion): Same.
15902
15903 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15904
15905         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
15906
15907 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15908
15909         * tree-if-conv.c: Update copyright years.  Fix comments.
15910         Fix indentation.
15911
15912 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
15913
15914         * builtin-types.def (BT_INT128): New primitive type.
15915         (BT_UINT128): Likewise.
15916         * c-common.c (c_common_r): Add __int128 keyword.
15917         (c_common_type_for_size): Handle __int128.
15918         (c_common_type_for_mode): Likewise.
15919         (c_common_signed_or_unsigned_type): Likewise.
15920         (c_common_nodes_and_builtins): Add builtin type
15921         if target supports 128-bit integer scalar.
15922         * c-common.h (enum rid): Add RID_INT128.
15923         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
15924         if target supports 128-bit integer scalar.
15925         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
15926         (finish_declspecs): Likewise.
15927         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
15928         (c_token_starts_declspecs): Likewise.
15929         (c_parser_declspecs): Likewise.
15930         (c_parser_attributes): Likewise.
15931         (c_parser_objc_selector): Likewise.
15932         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
15933         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
15934         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
15935         * tree.c (make_or_reuse_type): Likewise.
15936         (make_unsigned_type): Likewise.
15937         (build_common_tree_nodes_2): Likewise.
15938         * tree.h (enum integer_type_kind): Add itk_int128 and
15939         itk_unsigned_int128.
15940         (int128_integer_type_node): New define.
15941         (int128_unsigned_type_node): New define.
15942         * doc/extend.texi: Add documentation about __int128 type.
15943
15944 2010-05-26  Richard Guenther  <rguenther@suse.de>
15945
15946         * tree-ssa-sccvn.c (copy_nary): Adjust.
15947         (copy_phis): Rename to ...
15948         (copy_phi): ... this.  Adjust.
15949         (copy_references): Rename to ...
15950         (copy_reference): ... this.  Adjust.
15951         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
15952         result into the valid table.
15953
15954 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15955
15956         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
15957         insn-config.h, insn-codes.h, recog.h, and optabs.h.
15958
15959 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15960
15961         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
15962
15963 2010-05-26  Richard Guenther  <rguenther@suse.de>
15964
15965         * opts.c (common_handle_option): Handle OPT_Ofast.
15966
15967 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
15968
15969         * diagnostic.c: Don't include opts.h.
15970         (permissive_error_option): Define.
15971         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
15972         for classify_diagnostic.  Don't use memset for
15973         classify_diagnostic.  Initialize new and recently added fields.
15974         (diagnostic_classify_diagnostic): Use context->n_opts instead of
15975         N_OPTS.
15976         (diagnostic_report_diagnostic): Pass context parameter to
15977         diagnostic_report_warnings_p.  Use option_enabled and option_name
15978         hooks from context.
15979         (emit_diagnostic): Use permissive_error_option.
15980         (permerror): Likewise.
15981         * diagnostic.h: Don't include options.h.
15982         (struct diagnostic_context): Add n_opts, opt_permissive,
15983         inhibit_warnings, warn_system_headers, option_enabled and
15984         option_name fields.  Change classify_diagnostic to a pointer.
15985         * opts-diagnostic.h: New file.
15986         * opts.c: Include opts-diagnostic.h.
15987         (common_handle_option): Set global_dc fields for -Wfatal-errors,
15988         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
15989         (option_name): New function.
15990         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
15991         (c_common_handle_option): Set global_dc->permissive for
15992         -fpermissive.
15993         * c-common.c (c_cpp_error): Save and restore
15994         global_dc->warn_system_headers, not variable warn_system_headers.
15995         * toplev.c: Include opts-diagnostic.h.
15996         (general_init): Update call to diagnostic_initialize.  Set
15997         global_dc->show_column, global_dc->option_enabled and
15998         global_dc->option_name.
15999         (process_options): Don't set global_dc fields here.
16000         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
16001         (diagnostic.o, opts.o, toplev.o): Update dependencies.
16002
16003 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16004
16005         * config/picochip/picochip.md (movsi): Split a movsi from a
16006         const after reload.
16007
16008 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16009
16010         * ggc-zone.c: Update copyright year.
16011         (poison_region): Mark memory for Valgrind as undefined before
16012         memset () call and inaccessible afterwards.
16013         (ggc_pch_total_size): Change type of i to int.
16014
16015 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16016
16017         * ggc-common.c (ggc_free_overhead): Allow empty slot.
16018
16019 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16020
16021         * ggc-common.c: Update copyright year.
16022         (ggc_rlimit_bound): Remove prototype.  Compile only if
16023         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
16024         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
16025         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
16026         (ggc_min_heapsize_heuristic): Likewise.
16027
16028 2010-05-26  Richard Guenther  <rguenther@suse.de>
16029
16030         PR rtl-optimization/44164
16031         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
16032         no-common access-path disambiguation.
16033         (indirect_ref_may_alias_decl_p): Adjust.
16034         (indirect_refs_may_alias_p): Likewise.
16035         (refs_may_alias_p_1): Likewise.
16036
16037 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
16038
16039         * c-typeck.c: Do not include expr.h.
16040
16041 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
16042
16043         * rtl.h (decl_default_tls_model): Move prototype from here...
16044         * output.h: ...to here.
16045         * c-decl.c: Do not include rtl.h.
16046         * c-pragma.c: Likewise.
16047         * c-parser.c: Likewise.
16048         * c-gimplify.c: Likewise.  And also not hard-reg-set.
16049         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
16050         FIXME note for it.  Add a FIXME note for expr.h.
16051         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
16052         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
16053         defined.
16054
16055 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
16056
16057         PR target/44199
16058         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
16059         or total_size is larger than red zone size for non-V4 ABI, emit a
16060         stack_tie resp. frame_tie insn before stack pointer restore.
16061         * config/rs6000/rs6000.md (frame_tie): New insn.
16062
16063 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
16064
16065         * function.h (struct function): Add can_throw_non_call_exceptions bit.
16066         * lto-streamer-in.c (input_function): Stream it in.
16067         * lto-streamer-out.c (output_function): Stream it out.
16068         * function.c (allocate_struct_function): Set it.
16069         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
16070         for flag_non_call_exceptions.
16071         * cfgbuild.c (control_flow_insn_p): Likewise.
16072         (make_edges): Likewise.
16073         * cfgexpand.c (expand_stack_alignment): Likewise.
16074         * combine.c (distribute_notes): Likewise.
16075         * cse.c (cse_extended_basic_block): Likewise.
16076         * except.c (insn_could_throw_p): Likewise.
16077         * gcse.c (simple_mem): Likewise.
16078         * ipa-pure-const.c (check_call): Likewise.
16079         (check_stmt ): Likewise.
16080         * lower-subreg.c (lower-subreg.c): Likewise.
16081         * optabs.c (emit_libcall_block): Likewise.
16082         (prepare_cmp_insn): Likewise.
16083         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
16084         * postreload.c (rest_of_handle_postreload): Likewise.
16085         * reload1.c (reload_as_needed): Likewise.
16086         (emit_input_reload_insns): Likewise.
16087         (emit_output_reload_insns): Likewise.
16088         (fixup_abnormal_edges): Likewise.
16089         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
16090         * store-motion.c (find_moveable_store): Likewise.
16091         * tree-eh.c (stmt_could_throw_p): Likewise.
16092         (tree_could_throw_p): Likewise.
16093         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16094         * config/arm/arm.c (arm_expand_prologue): Likewise.
16095         (thumb1_expand_prologue): Likewise.
16096         * config/rx/rx.md (cbranchsf4): Likewise.
16097         (cmpsf): Likewise.
16098         * config/s390/s390.c (s390_emit_prologue): Likewise.
16099         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
16100         (inline_forbidden_into_p): New predicate.
16101         (expand_call_inline): Use it to forbid inlining.
16102         (tree_can_inline_p): Likewise.
16103
16104 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
16105
16106         * config/i386/i386-c.c: Do not include rtl.h.
16107         * config/i386/t-i386: Update dependencies.
16108
16109 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
16110
16111         * attribs.c: Do not include rtl.h.
16112         * Makefile.in: Update dependencies.
16113
16114 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
16115
16116         * double-int.h (double_int_and): New.
16117         * combine.c (try_combine): Clean up, use double_int_* and
16118         immed_double_int_const functions.
16119
16120 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16121
16122         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
16123         stderr to /dev/null instead of grep -q.
16124         * configure: Regenerate.
16125
16126 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
16127
16128         * Makefile.in (EXCEPT_H): Fix typo.
16129
16130 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
16131
16132         * ira-build.c (update_conflict_hard_reg_costs): New.
16133         (ira_build): Call update_conflict_hard_reg_costs.
16134
16135 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
16136
16137         PR debug/41371
16138         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
16139         ENABLE_CHECKING.
16140         (intersect_loc_chains): Walk the s2var's loc_chain together
16141         with s1node chain as long as the locations are equal, don't
16142         call find_loc_in_1pdv in that case.
16143
16144         PR debug/42801
16145         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
16146         (copy_bind_expr): ... instead of here.
16147         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
16148         if the block hasn't been remapped.
16149         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
16150         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
16151
16152 2010-05-25  Richard Guenther  <rguenther@suse.de>
16153
16154         PR middle-end/44069
16155         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
16156         out-of-bounds array accesses.
16157
16158 2010-05-25  Richard Guenther  <rguenther@suse.de>
16159
16160         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
16161         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
16162         (run_gcc): Re-organize to make cleanup easier.
16163
16164 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16165
16166         * config/s390/s390.c (optimization_options): Fix and move the
16167         flag_prefetch_loop_arrays override ...
16168         (override_options): ... here.
16169
16170 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
16171
16172         * diagnostic.c: Don't include plugin.h.
16173         (diagnostic_report_diagnostic): Don't handle plugins specially
16174         here.  Pass context to internal_error callback.
16175         * diagnostic.h (struct diagnostic_context): Add context parameter
16176         to internal_error callback.
16177         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
16178         * plugin.h (struct diagnostic_context): Declare.
16179         (warn_if_plugins, plugins_internal_error_function): Declare.
16180         * toplev.c (general_init): Set global_dc->internal_error.
16181         * Makefile.in (diagnostic.o): Update dependencies.
16182
16183 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
16184
16185         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
16186         * config/rs6000/t-darwin64: New.
16187         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
16188         build crt2.
16189
16190 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
16191
16192         PR 44203
16193         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
16194         match the original (and intended) behaviour before r159557.  This
16195         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
16196         in two ways.
16197
16198 2010-05-25  Richard Guenther  <rguenther@suse.de>
16199
16200         * doc/invoke.texi: Document -Ofast.
16201         * target.h (struct gcc_target): Add handle_ofast.
16202         * target-def.h (TARGET_HANDLE_OFAST): Add.
16203         (TARGET_INITIALIZER): Adjust.
16204         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
16205         * common.opt (Ofast): Add.
16206
16207 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
16208
16209         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
16210         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
16211
16212 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
16213
16214         PR target/43610
16215         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
16216         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
16217         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
16218         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
16219
16220 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
16221
16222         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
16223         DW_OP_minus with negated offset instead of DW_OP_plus.
16224         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
16225
16226 2010-05-25  Wei Guozhi  <carrot@google.com>
16227
16228         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
16229         tst instruction and a new alternative.
16230         * config/arm/constraints.md (Pu): New constraint.
16231
16232 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
16233
16234         * function.c (assign_stack_local_1): Initialize variable
16235         to avoid warning when bootstrapping at -O3.
16236
16237 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
16238
16239         * configure.ac (all_lang_makefiles): Remove everything related to it.
16240         * configure: Regenerate.
16241         * Makefile.in: Fix reference to ada Make-lang.in.
16242         Remove support for LANG_MAKEFILES.
16243
16244 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
16245             Sandra Loosemore  <sandra@codesourcery.com>
16246
16247         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
16248         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
16249         description.  Add arm_neon_fp16_ok.
16250         (Add Options): Add arm_neon and arm_neon_fp16.
16251
16252 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
16253
16254         * diagnostic.c: Don't include flags.h.
16255         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
16256         context parameters.  Check flags in the context passed as a parameter.
16257         (diagnostic_build_prefix): Add context parameter.  Check
16258         show_column flag in context.
16259         (diagnostic_action_after_output): Check fatal_errors flag in context.
16260         (diagnostic_report_current_module): Check show_column flag in context.
16261         (default_diagnostic_starter): Update call to
16262         diagnostic_build_prefix.
16263         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
16264         (emit_diagnostic): Pass context to permissive_error_kind.
16265         (permerror): Pass context to permissive_error_kind.
16266         * diagnostic.h (struct diagnostic_context): Add show_column,
16267         pedantic_errors, permissive and fatal_errors fields.
16268         (diagnostic_build_prefix): Update prototype.
16269         * langhooks.c
16270         * toplev.c (process_options): Set flags in global_dc from
16271         flag_show_column, flag_pedantic_errors, flag_permissive,
16272         flag_fatal_errors.
16273         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
16274         to diagnostic_build_prefix.
16275         * Makefile.in (diagnostic.o): Update dependencies.
16276
16277 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16278
16279         * config/i386/ia32intrin.h (__crc32q): Define only if
16280         __SSE4_2__ is defined.
16281
16282 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
16283
16284         PR target/44132
16285         PR middle-end/43602
16286         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
16287         DECL_VISIBILITY_SPECIFIED.
16288         (emutls_decl): Set DECL_PRESERVE_P and copy
16289         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
16290         (emutls_finalize_control_var): New callback.
16291         (emutls_finish): Finalize emutls control variables.
16292         * toplev.c (compile_file): Move the call to emutls_finish ()
16293         before varpool_assemble_pending_decls ().
16294
16295 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
16296
16297         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
16298         added to the preprocessor condition.
16299
16300 2010-05-24  Paul Brook  <paul@codesourcery.com>
16301
16302         * gengtype-lex.l: Add HARD_REG_SET.
16303         * expr.c (expand_expr_real_1): Record writes to hard registers.
16304         * function.c (rtl_data): Add asm_clobbers.
16305         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
16306         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
16307         Use crtl->asm_clobbers.
16308
16309 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16310
16311         * doc/makefile.texi (Makefile): Mention stages 'profile'
16312         and 'feedback' for profiledbootstrap.
16313
16314 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16315
16316         PR target/44245
16317         * config/i386/i386.c (def_builtin): Properly check
16318         OPTION_MASK_ISA_64BIT.
16319
16320 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
16321
16322         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
16323         typedefs with different but compatible types.  Allow duplicate
16324         typedefs with the same type except for pedantic non-C1X, but give
16325         warning for variably modified types.
16326         * c-typeck.c (tagged_types_tu_compatible_p,
16327         function_types_compatible_p, type_lists_compatible_p,
16328         comptypes_internal): Add parameter different_types_p; set
16329         *different_types_p for different but compatible types.  All
16330         callers changed.
16331         (comptypes_check_different_types): New.
16332         * c-tree.h (comptypes_check_different_types): Declare.
16333
16334 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
16335
16336         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
16337         * jump.c: Include basic-block.h.
16338         * profile.c: Likewise.
16339         * tree-profile.c: Likewise.
16340         * coverage.c: Likewise.
16341         * basic-block.h (optimize_function_for_size_p): Move to function.h.
16342         (optimize_function_for_speed_p): Likewise.
16343         * function.h (optimize_function_for_size_p,
16344         optimize_function_for_speed_p): Moved here from basic-block.h.
16345         * Makefile.in: Update dependencies.
16346
16347 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16348
16349         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
16350         before calling make; allow override through $MAKE.
16351         * doc/invoke.texi (Optimize Options): Document override.
16352
16353 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
16354
16355         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
16356         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16357         (rs6000_mode_dependent_address_ptr): Make static.
16358         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16359         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
16360         Remove.
16361
16362 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
16363
16364         PR target/43869
16365         * config/i386/i386.c: Make sure that the correct regparm is passed.
16366
16367 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
16368
16369         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
16370         * sbitmap.c: ...to here to internalize sbitmap element access.
16371         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
16372         Explain why basic-block.h is included.
16373         * function.h: Include tm.h for CUMULATIVE_ARGS.
16374         * Makefile.in: Update dependencies.
16375
16376 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
16377
16378         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
16379         New core types.
16380         * sbitmap.h (struct sbitmap_def): Do not typedef here.
16381         * sbitmap.c: Include sbitmap.h.
16382         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
16383         hard-reg-set.h.  Split everything related to regsets out from here...
16384         * regset.h: ...to here.  New file.
16385         * df.h: Include regset.h and sbitmap.h.
16386         * tree-flow.h: Likewise.
16387         * cfgloop.h: Likewise.
16388         * except.h: Do not include sbitmap.h.  Include hashtab.h.
16389         * cgraph.h: Include vec.h and function.h.
16390         * reload.h (struct insn_chain): Change types of live_throughout
16391         and dead_or_set from regset_head to bitmap_head.
16392         (compute_use_by_pseudos): Be defined also if regset.h is not included.
16393         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
16394         spilled_regs from regset_head to bitmap_head to avoid dependency
16395         in regset.h.
16396         * sel-sched-ir.h: Include regset.h.
16397         * reload.c: Include df.h before reload.h.
16398         * caller-save.c: Likewise.
16399         * reload1.c: Likewise.
16400         * ira.c: Likewise.
16401         (mark_elimination): Update type of r to bitmap, consistent with
16402         DF_LR_IN.
16403         * dominance.c: Include bitmap.h.
16404         * modulo-sched.c: Include df.h.
16405         * cfganal.c: Include bitmap.h and sbitmap.h.
16406         * cfgbuild.c: Include sbitmap.h.
16407         * lcm.c: Include sbitmap.h.
16408         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
16409         * domwalk.c: Include sbitmap.h, exclude ggc.h.
16410         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
16411         * cselib.c: Include bitmap.h.
16412         * tree-optimize.c: Include regset.h.
16413         * stmt.c: Include bitmap.h.
16414         * Makefile.in: Update dependencies.
16415
16416 2010-05-22  Jan Hubicka  <jh@suse.cz>
16417
16418         * cgraph.h (struct varpool_node): Add same_comdat_group.
16419         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
16420         pointer.
16421         (output_varpool): Update call of lto_output_varpool_node.
16422         (input_varpool): Read same_comdat_group pointer.
16423         (input_varpool_1): Fixup same_comdat_group pointer.
16424         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
16425         group is needed, all are.
16426         * varpool.c (varpool_remove_node): Remove node from same comdat group
16427         linklist too.
16428         (varpool_analyze_pending_decls): Walk same comdat groups.
16429
16430 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
16431
16432         * rtl.h (union rtunion_def): Remove rt_bit member.
16433         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
16434         * print-rtl (print_rtx): Do not print the member.
16435         * gengtype.c (adjust_field_rtx_def): Do not handle it.
16436         * gengenrtl.c (type_from_format): Likewise.
16437         (accessor_from_format): Likewise.
16438
16439 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
16440
16441         * dbgcnt.c: Include toplev.h instead of errors.h.
16442         * ira-emit.c: Don't include errors.h.
16443         * ira.c: Include toplev.h instead of errors.h.
16444         * lto-compress.c: Include toplev.h instead of errors.h.
16445         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
16446         ira.o, dbgcnt.o): Update dependencies.
16447
16448 2010-05-22  Richard Guenther  <rguenther@suse.de>
16449
16450         * gimple.c (gimple_types_compatible_p): Check type qualifications
16451         before merging pointer to complete and pointer to incomplete type.
16452         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
16453         we use our own resolution algorithm.  The gold linker plugin
16454         doesn't do the job we want it to do here.
16455
16456 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
16457
16458         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16459         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16460         (sparc_mode_dependent_address_p): New function.
16461
16462 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16463
16464         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
16465
16466         * timevar.c: Do not include any core headers.
16467         (timevar_print): De-i18n-ize.
16468         (print_time): Likewise.
16469         * timevar.h (timevar_push, timevar_pop): Make inline functions.
16470
16471 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
16472
16473         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
16474         langhooks-def.h.
16475         (diagnostic_initialize): Initialize x_data not last_function.
16476         (diagnostic_report_current_function): Move to tree-diagnostic.c.
16477         (default_diagnostic_starter): Call
16478         diagnostic_report_current_module not
16479         diagnostic_report_current_function.
16480         (diagnostic_report_diagnostic): Initialize x_data not
16481         abstract_origin.
16482         (verbatim): Likewise.
16483         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
16484         x_data.
16485         (struct diagnostic_context): Change last_function to x_data.
16486         (diagnostic_auxiliary_data): Replace with
16487         diagnostic_context_auxiliary_data and
16488         diagnostic_info_auxiliary_data.
16489         (diagnostic_last_function_changed, diagnostic_set_last_function,
16490         diagnostic_report_current_function): Move to tree-diagnostic.h.
16491         (print_declaration, dump_generic_node, print_generic_stmt,
16492         print_generic_stmt_indented, print_generic_expr,
16493         print_generic_decl, debug_c_tree, dump_omp_clauses,
16494         print_call_name, debug_generic_expr, debug_generic_stmt,
16495         debug_tree_chain, default_tree_printer): Move to
16496         tree-pretty-print.h.
16497         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
16498         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
16499         gimple-pretty-print.h.
16500         * pretty-print.c: Don't include tree.h
16501         (pp_base_format): Don't handle %K here.
16502         (pp_base_tree_identifier): Move to tree-pretty-print.c.
16503         * pretty-print.h (text_info): Change abstract_origin to x_data.
16504         (pp_tree_identifier, pp_unsupported_tree,
16505         pp_base_tree_identifier): Move to tree-pretty-print.h.
16506         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
16507         tree-pretty-print.h: New files.
16508         * tree-pretty-print.c: Include tree-pretty-print.h.
16509         (percent_K_format): New.  Moved from pretty-print.c.
16510         (pp_base_tree_identifier): Move from pretty-print.c.
16511         * c-objc-common.c: Include tree-pretty-print.h.
16512         (c_tree_printer): Handle %K here.
16513         * langhooks.c: Include tree-diagnostic.h.
16514         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
16515         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
16516         (default_tree_printer): Handle %K using percent_K_format.
16517         (general_init): Use default_tree_diagnostic_starter.
16518         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
16519         (free_lang_data): Use default_tree_diagnostic_starter.
16520         * c-pretty-print.c: Include tree-pretty-print.h.
16521         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16522         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16523         * dwarf2out.c: Include tree-pretty-print.h.
16524         * except.c: Include tree-pretty-print.h.
16525         * gimple-pretty-print.c: Include tree-pretty-print.h and
16526         gimple-pretty-print.h.
16527         * gimplify.c: Include tree-pretty-print.h.
16528         * graphite-poly.c: Include tree-pretty-print.h and
16529         gimple-pretty-print.h.
16530         * ipa-cp.c: Include tree-pretty-print.h.
16531         * ipa-inline.c: Include gimple-pretty-print.h.
16532         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16533         * ipa-pure-const.c: Include gimple-pretty-print.h.
16534         * ipa-struct-reorg.c: Include tree-pretty-print.h and
16535         gimple-pretty-print.h.
16536         * ipa-type-escape.c: Include tree-pretty-print.h.
16537         * print-rtl.c: Include tree-pretty-print.h.
16538         * print-tree.c: Include gimple-pretty-print.h.
16539         * sese.c: Include tree-pretty-print.h.
16540         * tree-affine.c: Include tree-pretty-print.h.
16541         * tree-browser.c: Include tree-pretty-print.h.
16542         * tree-call-cdce.c: Include gimple-pretty-print.h.
16543         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16544         * tree-chrec.c: Include tree-pretty-print.h.
16545         * tree-data-ref.c: Include tree-pretty-print.h and
16546         gimple-pretty-print.h.
16547         * tree-dfa.c: Include tree-pretty-print.h.
16548         * tree-if-conv.c: Include tree-pretty-print.h and
16549         gimple-pretty-print.h.
16550         * tree-inline.c: Include tree-pretty-print.h.
16551         * tree-into-ssa.c: Include tree-pretty-print.h and
16552         gimple-pretty-print.h.
16553         * tree-nrv.c: Include tree-pretty-print.h.
16554         * tree-object-size.c: Include tree-pretty-print.h and
16555         gimple-pretty-print.h.
16556         * tree-outof-ssa.c: Include tree-pretty-print.h and
16557         gimple-pretty-print.h.
16558         * tree-parloops.c: Include tree-pretty-print.h and
16559         gimple-pretty-print.h.
16560         * tree-predcom.c: Include tree-pretty-print.h and
16561         gimple-pretty-print.h.
16562         * tree-scalar-evolution.c: Include tree-pretty-print.h and
16563         gimple-pretty-print.h.
16564         * tree-sra.c: Include tree-pretty-print.h.
16565         * tree-ssa-address.c: Include tree-pretty-print.h.
16566         * tree-ssa-alias.c: Include tree-pretty-print.h.
16567         * tree-ssa-ccp.c: Include tree-pretty-print.h and
16568         gimple-pretty-print.h.
16569         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
16570         * tree-ssa-copy.c: Include tree-pretty-print.h and
16571         gimple-pretty-print.h.
16572         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
16573         * tree-ssa-dce.c: Include tree-pretty-print.h and
16574         gimple-pretty-print.h.
16575         * tree-ssa-dom.c: Include tree-pretty-print.h and
16576         gimple-pretty-print.h.
16577         * tree-ssa-dse.c: Include gimple-pretty-print.h.
16578         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
16579         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
16580         * tree-ssa-live.c: Include tree-pretty-print.h and
16581         gimple-pretty-print.h.
16582         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
16583         gimple-pretty-print.h.
16584         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
16585         gimple-pretty-print.h.
16586         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
16587         gimple-pretty-print.h.
16588         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
16589         gimple-pretty-print.h.
16590         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
16591         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
16592         * tree-ssa-operands.c: Include tree-pretty-print.h and
16593         gimple-pretty-print.h.
16594         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
16595         gimple-pretty-print.h.
16596         * tree-ssa-pre.c: Include tree-pretty-print.h and
16597         gimple-pretty-print.h.
16598         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
16599         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
16600         gimple-pretty-print.h.
16601         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
16602         gimple-pretty-print.h.
16603         * tree-ssa-sink.c: Include gimple-pretty-print.h.
16604         * tree-ssa-ter.c: Include tree-pretty-print.h and
16605         gimple-pretty-print.h.
16606         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
16607         * tree-ssa.c: Include tree-pretty-print.h and
16608         gimple-pretty-print.h.
16609         * tree-stdarg.c: Include gimple-pretty-print.h.
16610         * tree-switch-conversion.c: Include gimple-pretty-print.h.
16611         * tree-tailcall.c: Include tree-pretty-print.h and
16612         gimple-pretty-print.h.
16613         * tree-vect-data-refs.c: Include tree-pretty-print.h and
16614         gimple-pretty-print.h.
16615         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
16616         gimple-pretty-print.h.
16617         * tree-vect-loop.c: Include tree-pretty-print.h and
16618         gimple-pretty-print.h.
16619         * tree-vect-patterns.c: Include gimple-pretty-print.h.
16620         * tree-vect-slp.c: Include tree-pretty-print.h and
16621         gimple-pretty-print.h.
16622         * tree-vect-stmts.c: Include tree-pretty-print.h and
16623         gimple-pretty-print.h.
16624         * tree-vectorizer.c: Include tree-pretty-print.h.
16625         * tree-vrp.c: Include tree-pretty-print.h and
16626         gimple-pretty-print.h.
16627         * value-prof.c: Include tree-pretty-print.h and
16628         gimple-pretty-print.h.
16629         * var-tracking.c: Include tree-pretty-print.h.
16630         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
16631         (tree-diagnostic.o): New dependencies.
16632         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
16633         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
16634         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
16635         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
16636         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
16637         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
16638         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
16639         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
16640         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
16641         tree-ssa-address.o, tree-ssa-loop-niter.o,
16642         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
16643         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
16644         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
16645         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
16646         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
16647         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
16648         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
16649         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
16650         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
16651         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
16652         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
16653         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
16654         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
16655         tree-switch-conversion.o, var-tracking.o, value-prof.o,
16656         cfgexpand.o, pretty-print.o): Update dependencies.
16657
16658 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
16659
16660         * tree-ssa-structalias.c: Remove tm_p.h from include.
16661
16662 2010-05-21  Jeff Law  <law@redhat.com>
16663
16664         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
16665
16666 2010-05-21  Jason Merrill  <jason@redhat.com>
16667
16668         * tree-eh.c (cleanup_is_dead_in): New.
16669         (lower_try_finally): Don't generate a dead cleanup region.
16670         (lower_cleanup): Likewise.
16671
16672 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
16673
16674         PR debug/44223
16675         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
16676         unchain each use from the cyclic next_regno_use chain first.
16677
16678 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16679
16680         * real: Do not include gmp.h, mpfr.h, and mpc.h.
16681         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
16682         (real_value_negate, real_value_abs): New prototypes.
16683         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
16684         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
16685         new include file for interface between MPFR and REAL_VALUE_TYPE.
16686         * real.c: Include realmpfr.h.
16687         (real_arithmetic2): Remove legacy function.
16688         (real_value_negate): New.
16689         (real_value_abs): New.
16690         (mfpr_from_real, real_from_mpfr): Move from here...
16691         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
16692         * builtins.c: Include realmpfr.h.
16693         * fold-const.c: Include realmpfr.h.
16694         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
16695         (fold_negate_const): Likewise.
16696         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
16697         * toplev.c: Include realmpfr.h.
16698         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
16699         and real_value_negate.
16700         * fixed-value.c (check_real_for_fixed_mode): Likewise.
16701         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
16702         (vfp3_const_double_index): Likewise.
16703         (arm_print_operand): Likewise.
16704         * Makefile.in: Update dependencies.
16705
16706 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16707
16708         * config/s390/s390.c (override_options): Increase the default
16709         of max-completely-peel-times.
16710
16711 2010-05-21  Julian Brown  <julian@codesourcery.com>
16712             Mark Mitchell  <mark@codesourcery.com>
16713
16714         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
16715         sibling calls for Thumb-1.
16716         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
16717         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
16718         Thumb-2.
16719         (*call_insn, *call_value_insn): Don't use for Thumb-2.
16720         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
16721         for Thumb-2.
16722         (return): New expander.
16723         (*arm_return): New name for ARM return insn.
16724         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
16725
16726 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
16727
16728         * config.gcc (sparc64-*-rtems*): New target.
16729
16730 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
16731
16732         * tree.c (build_function_decl_skip_args): Fix grammar.
16733         (build_function_type_list_1): Fix typos, adjust formatting.
16734
16735 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16736
16737         * tree.h: Include real.h and fixed-value.h as basic datatypes.
16738         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
16739         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
16740         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
16741         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
16742         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
16743         tree-pretty-print.c, tree-loop-distribution.c,
16744         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
16745         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
16746         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
16747         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
16748         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
16749         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
16750         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
16751         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
16752         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
16753         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
16754         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
16755         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
16756         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
16757         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
16758         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
16759         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
16760         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
16761         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
16762         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
16763         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
16764         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
16765         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
16766         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
16767         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
16768         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
16769         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
16770         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
16771         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
16772         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
16773         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
16774         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
16775         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
16776         config/score/score7.c, config/score/score.c, config/arm/arm.c,
16777         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
16778         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
16779         config/bfin/bfin.c: Clean up redundant includes.
16780         * Makefile.in: Update accordingly.
16781
16782 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
16783
16784         PR middle-end/44204
16785         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
16786         statement has no arguments.
16787
16788 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
16789
16790         PR/44139
16791         * varasm.c (emutls_decl): Merge attributes to new decl.
16792
16793 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16794
16795         PR middle-end/44101
16796         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
16797         around the uniquized constructor if its type requires a conversion.
16798
16799 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
16800
16801         PR debug/44205
16802         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
16803         at -O0 goto_locus of any of the incoming edges differs from
16804         goto_locus of outgoing edge, or gimple_location of any of the
16805         labels differs.
16806
16807 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
16808
16809         * ira.c (ira_non_ordered_class_hard_regs): Define.
16810         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
16811         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
16812         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
16813         cost of unaligned hard regs when allocating multi-reg pseudos.
16814
16815 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
16816
16817         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
16818         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
16819         for TARGET_NO_FLOAT.
16820         * config/mips/mips.c (mips_file_start): Expand conditional expression
16821         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
16822         (mips_override_options): Move -mno-float override -msoft-float and
16823         -mhard-float.
16824         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
16825         Condition(TARGET_SUPPORTS_NO_FLOAT).
16826         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
16827         __mips_no_float here.
16828         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
16829         (TARGET_SUPPORTS_NO_FLOAT): Define.
16830         * config/mips/sdemtk.opt: Delete.
16831
16832 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
16833
16834         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
16835
16836 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
16837
16838         PR target/43733
16839         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
16840         * configure: Regenerate.
16841         * config.in: Regenerate.
16842         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
16843         instead of sahf only for 64bit targets.
16844
16845 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
16846
16847         PR debug/44178
16848         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
16849         setup_ref_regs for DEBUG_INSNs.
16850
16851 2010-05-20  Jan Hubicka  <jh@suse.cz>
16852
16853         PR middle-end/44197
16854         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
16855
16856 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
16857
16858         PR bootstrap/43870
16859         * df-scan.c (df_ref_compare): Stabilize sort.
16860
16861 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
16862
16863         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
16864         argument.  Don't use DW_OP_piece if offset is non-zero,
16865         put offset into second DW_OP_bit_piece argument.
16866         (dw_sra_loc_expr): Adjust callers.  For memory expressions
16867         compute offset.
16868
16869 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
16870
16871         PR target/44202
16872         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
16873         settings for 16-bit-constant "addo" alternative.
16874
16875 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
16876
16877         * config/mips/mips-dsp.md (add<DSPV:mode>3,
16878         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
16879
16880         PR target/43764
16881         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
16882         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
16883         Use it.
16884
16885 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
16886
16887         * diagnostic.c (FLOAT, FFS): Don't undefine.
16888         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
16889         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
16890         include ordering.
16891
16892 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
16893
16894         * combine.c (propagate_for_debug): Call make_compound_operation
16895         on the source value.
16896         (try_combine): When implementing a split chosen by find_split_point,
16897         either copy i2src or set it to null.  Assert that i2src is not null
16898         before substituting into CALL_INSN_FUNCTION_USAGE.
16899
16900 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
16901
16902         * double-int.h (double_int_ior): New function.
16903         * tree.h (build_int_cst_wide_type): Remove.
16904         * tree.c (build_int_cst_wide_type): Remove.
16905         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
16906         of build_int_cst_wide_type.
16907         * stor-layout.c (set_sizetype): (Ditto.).
16908         * dojump.c (do_jump): Use build_int_cstu instead of
16909         build_int_cst_wide_type.
16910
16911 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16912
16913         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
16914         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
16915         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
16916         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
16917         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
16918         propagate the 'data' argument to copy_tree_r.
16919         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
16920         Propagate 'data' argument to walk_tree.
16921         (copy_if_shared): New function.
16922         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
16923         (unmark_visited): New function.
16924         (unshare_body): Call copy_if_shared instead of doing it manually.
16925         (unvisit_body): Call unmark_visited instead of doing it manually.
16926
16927 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
16928
16929         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
16930         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
16931         * hooks.c: Likewise.
16932         * target-def.h (TARGET_FOLD_BUILTIN): Define to
16933         hook_tree_tree_int_treep_bool_null.
16934         * target.h (struct gcc_target): Update signature of fold_builtin
16935         field.
16936         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
16937         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
16938         instead of the call expression.
16939         (fold_builtin_call_array): Pass n and argarray directly.
16940         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
16941         consing a list.
16942         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
16943         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
16944         `i' and use it in place of `arity'.
16945         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
16946         Dereference `args' directly.
16947         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
16948
16949 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16950
16951         * doc/sourcebuild.texi (Effective-Target Keywords): Document
16952         3dnow, sse3, sse2.
16953         (Directives): Document optional dg-require-effective-target
16954         selector.
16955
16956 2010-05-19  Richard Guenther  <rguenther@suse.de>
16957
16958         PR lto/44196
16959         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
16960
16961 2010-05-19  Richard Guenther  <rguenther@suse.de>
16962
16963         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
16964         * common.opt (fwhopr=): New.
16965         * opts.c (common_handle_option): Handle OPT_fwhopr.
16966         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
16967         * collect2.c (main): Match -fwhopr*.
16968         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
16969         Execute ltrans stage in parallel when jobs is bigger than 1.
16970
16971 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16972
16973         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16974         pentiumpro on Solaris 8/x86 with Sun as.
16975         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
16976         hidden alias bug.
16977         (gcc_cv_as_ix86_quad): Check for .quad directive.
16978         * configure: Regenerate.
16979         * config.in: Regenerate.
16980         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
16981
16982 2010-05-19  Martin Jambor  <mjambor@suse.cz>
16983
16984         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
16985         also for indirect edges.  Actual printing moved...
16986         (ipa_print_node_jump_functions_for_edge): ...here.
16987         (ipa_compute_jump_functions): Renamed to
16988         ipa_compute_jump_functions_for_edge and made static.
16989         (ipa_compute_jump_functions): New function.
16990         (make_edge_direct_to_target): Check if the number of arguments on
16991         the newly direct edge is the same as the number of parametrs of
16992         the callee.
16993         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
16994         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
16995         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
16996         analysis functions unconditionally, call the new
16997         ipa_analyze_params_uses on the node instead of every edge.
16998
16999 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
17000
17001         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
17002         to tree.
17003         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
17004         also checks for a constant int vs.  non-constant but
17005         loop-invariant steps.
17006         (find_or_create_group): Change the sort algorithm to only consider
17007         steps that are constant ints.
17008         (idx_analyze_ref): Adopt code to handle a tree instead of a
17009         HOST_WIDE_INT for step.
17010         (gather_memory_references_ref): Handle tree instead of int and be
17011         prepared to see a NULL_TREE.
17012         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
17013         prefetches if the step cannot be calculated at compile time.
17014         (issue_prefetch_ref): Issue prefetches for non-constant but
17015         loop-invariant steps.
17016
17017 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
17018
17019         Revert:
17020         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
17021
17022         * tree.h (build_call_list): Remove.
17023         * tree.c (build_call_list): Remove.
17024
17025 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
17026
17027         * tree.h (build_call_list): Remove.
17028         * tree.c (build_call_list): Remove.
17029
17030 2010-05-18  Jan Hubicka  <jh@suse.cz>
17031
17032         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
17033
17034 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
17035
17036         PR rtl-optimization/43332
17037         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
17038
17039 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
17040
17041         * tree.h (build_int_cstu): Implement as static inline.
17042         * tree.c (build_int_cstu): Remove function.
17043         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
17044         sign extended.
17045
17046 2010-05-18  Richard Guenther  <rguenther@suse.de>
17047
17048         PR lto/44143
17049         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
17050         (debug): Initialize from -save-temps.
17051         (collect_execute): Print command-line when verbose.
17052         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
17053         for ltrans invocation.  Produce -dumpbase flag again.
17054         (process_args): Remove.
17055         (main): Simplify.
17056         * collect2.c (maybe_run_lto_and_relink): Only pass object
17057         files to lto-wrapper.
17058         * gcc.c (LINK_COMMAND_SPEC): Likewise.
17059
17060 2010-05-18  Jan Hubicka  <jh@suse.cz>
17061
17062         * opts.c (decode_options): Do not disable whopr at ipa_cp.
17063         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
17064
17065 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
17066
17067         PR lto/44184
17068         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
17069         in a GIMPLE_ASM.
17070         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
17071         in a GIMPLE_ASM.
17072
17073 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
17074
17075         PR debug/41371
17076         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
17077         rtx_equal_p inline.
17078
17079 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
17080
17081         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
17082         lto-macho as lto_binary_reader.
17083
17084         * darwin.c (darwin_asm_named_section): Do not add assembler comment
17085         after .section directive; just print it before the directive instead.
17086
17087 2010-05-17  Jan Hubicka  <jh@suse.cz>
17088
17089         * cgraph.c (cgraph_create_virtual_clone): Only check
17090         versionable_function_p when not in wpa and checking is enabled.
17091         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
17092         there are no more functions to materialize.
17093
17094 2010-05-17  Jan Hubicka  <jh@suse.cz>
17095
17096         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
17097         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
17098         New functions.
17099         (output_cgraph): Call output_cgraph_opt_summary.
17100         (input_cgrpah): Call input_cgraph_opt_summary.
17101         (output_cgraph_opt_summary_p, output_node_opt_summary,
17102         input_node_opt_summary, input_cgraph_opt_section): New functions.
17103         * lto-section-in.c (lto_section_name): Add cgraphopt.
17104         * tree-inline.c (tree_function_versioning): Handle parm_num.
17105         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
17106         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
17107
17108 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
17109
17110         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
17111         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
17112         the insn to prefetch ratio heuristic to loops with known trip count.
17113
17114 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
17115
17116         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
17117         (schedule_prefetches): Do not generate a prefetch if the unroll factor
17118         is far from what is required by the prefetch.
17119
17120 2010-05-17  Jan Hubicka  <jh@suse.cz>
17121
17122         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
17123         (ipcp_estimate_growth): Likewise.
17124         (ipcp_const_param_count): Likewise.
17125         (ipcp_insert_stage): Likewise.
17126         * ipa-prop.c (visit_load_for_mod_analysis): New function.
17127         (visit_store_addr_for_mod_analysis): Set used flag.
17128         (ipa_detect_param_modifications): Set used flag for SSE params;
17129         update use of walk_stmt_load_store_addr_ops.
17130         (ipa_print_node_params): Print used flag.
17131         (ipa_write_node_info): Stream used flag.
17132         (ipa_read_node_info): Likewise.
17133         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
17134         (ipa_is_param_used): New function.
17135         (lto_ipa_fixup_call_notes): Remove unused declaration.
17136
17137 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17138
17139         PR target/44074
17140         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
17141         * configure: Regenerate.
17142         * config.in: Regenerate.
17143         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
17144         !HAVE_AS_IX86_REP_LOCK_PREFIX.
17145         Don't emit whitespace.
17146         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
17147         (*rep_movsi): Likewise.
17148         (*rep_movsi_rex64): Likewise.
17149         (*rep_movqi): Likewise.
17150         (*rep_movqi_rex64): Likewise.
17151         (*rep_stosdi_rex64): Likewise.
17152         (*rep_stossi): Likewise.
17153         (*rep_stossi_rex64): Likewise.
17154         (*rep_stosqi): Likewise.
17155         (*rep_stosqi_rex64): Likewise.
17156         (*cmpstrnqi_nz_1): Use {%;} after repz.
17157         (*cmpstrnqi_nz_rex_1): Likewise.
17158         (*cmpstrnqi_1): Likewise.
17159         (*cmpstrnqi_rex_1): Likewise.
17160         (*strlenqi_1): Use {%;} after repnz.
17161         (*strlenqi_rex_1): Likewise.
17162         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
17163         (*sync_compare_and_swap<mode>): Likewise.
17164         (sync_double_compare_and_swap<mode>): Likewise.
17165         (*sync_double_compare_and_swapdi_pic): Likewise.
17166         (sync_old_add<mode>): Likewise.
17167         (sync_add<mode>): Likewise.
17168         (sync_sub<mode>): Likewise.
17169         (sync_<code><mode>): Likewise.
17170
17171 2010-05-17  Martin Jambor  <mjambor@suse.cz>
17172
17173         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
17174         otr_token and polymorphic.
17175         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
17176         (cgraph_clone_edge): Copy the above fields.
17177         * tree.c (get_binfo_at_offset): New function.
17178         * tree.h (get_binfo_at_offset): Declare.
17179         * ipa-prop.h (enum jump_func_type): Added known_type jump function
17180         type, reordered items, updated comments.
17181         (union jump_func_value): Added base_type field, reordered fields.
17182         (enum ipa_lattice_type): Moved down in the file.
17183         (struct ipa_param_descriptor): New field polymorphic.
17184         (ipa_is_param_polymorphic): New function.
17185         * ipa-prop.c: Include gimple.h and gimple-fold.h.
17186         (ipa_print_node_jump_functions): Print known type jump functions.
17187         (compute_complex_pass_through): Renamed to...
17188         (compute_complex_assign_jump_func): this.
17189         (compute_complex_ancestor_jump_func): New function.
17190         (compute_known_type_jump_func): Likewise.
17191         (compute_scalar_jump_functions): Create known type and complex ancestor
17192         jump functions.
17193         (ipa_note_param_call): New parameter polymorphic, set the corresponding
17194         flag in the call note accordingly.
17195         (ipa_analyze_call_uses): Renamed to...
17196         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
17197         variable var only in the block where it is used.
17198         (ipa_analyze_virtual_call_uses): New function.
17199         (ipa_analyze_call_uses): Likewise.
17200         (combine_known_type_and_ancestor_jfs): Likewise.
17201         (update_jump_functions_after_inlining): Implemented handling of a
17202         number of new jump function types combination.
17203         (print_edge_addition_message): Removed.
17204         (make_edge_direct_to_target): New function.
17205         (try_make_edge_direct_simple_call): Likewise.
17206         (try_make_edge_direct_virtual_call): Likewise.
17207         (update_call_notes_after_inlining): Renamed to...
17208         (update_indirect_edges_after_inlining): this.  Moved edge creation for
17209         indirect calls to try_make_edge_direct_simple_call, also calls
17210         try_make_edge_direct_virtual_call for virtual calls.
17211         (ipa_print_node_params): Changed the header message.
17212         (ipa_write_jump_function): Stream also known type jump functions.
17213         (ipa_read_jump_function): Likewise.
17214         (ipa_write_indirect_edge_info): Stream new fields in
17215         cgraph_indirect_call_info.
17216         (ipa_read_indirect_edge_info): Likewise.
17217         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
17218         GIMPLE_FOLD_H.
17219
17220 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17221
17222         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
17223
17224 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
17225
17226         * tree.h (CALL_EXPR_ARGS): Delete.
17227         (call_expr_arglist): Delete.
17228         * tree.c (call_expr_arglist): Delete.
17229         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
17230         targetm.fold_builtin.
17231         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
17232         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
17233         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
17234         arglist parameter.  Use CALL_EXPR_ARG.
17235         (picochip_expand_builtin_3op): Likewise.
17236         (picochip_expand_builtin_2opvoid): Likewise.
17237         (picochip_expand_array_get): Likewise.
17238         (picochip_expand_array_put): Likewise.
17239         (picochip_expand_array_testport): Likewise.
17240         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
17241         rather than arglist.
17242         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
17243         CALL_EXPR_ARGS.
17244         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
17245         than TREE_VALUE and TREE_CHAIN.
17246         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17247         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
17248         the arglist.
17249
17250 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
17251
17252         PR bootstrap/42347
17253         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
17254         to have no fallthru edge.
17255
17256         PR middle-end/44102
17257         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
17258         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
17259         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
17260         add BARRIER after previous bb if needed.
17261
17262 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
17263
17264         * tree.c (build_function_type_list_1): Remove bogus assert condition.
17265
17266 2010-05-17  Alan Modra  <amodra@gmail.com>
17267
17268         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
17269         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
17270         with copy_reg rtx param.
17271         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
17272         Correct cases where code for ABI_V4 did not initialise the reg
17273         used to access frame.  Also leave frame_reg_rtx as sp for large
17274         frames that save no regs.
17275
17276 2010-05-17  Martin Jambor  <mjambor@suse.cz>
17277
17278         PR middle-end/44133
17279         * tree-sra.c (create_access_replacement): New parameter rename, mark
17280         the replaement for renaming only when it is true.
17281         (get_access_replacement): Pass true in the rename parameter of
17282         create_access_replacement.
17283         (get_unrenamed_access_replacement): New function.
17284         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
17285         replacement declaration from it.
17286
17287 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
17288
17289         * function.c (try_fit_stack_local, add_frame_space): New static
17290         functions.
17291         (assign_stack_local_1): Use them.  Look for opportunities to use
17292         space previously wasted on alignment.
17293         * function.h (struct frame_space): New.
17294         (struct rtl_data): Add FRAME_SPACE_LIST member.
17295         * reload1.c (something_was_spilled): New static variable.
17296         (alter_reg): Set it.
17297         (reload): Test it in addition to testing if the frame size changed.
17298
17299 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
17300
17301         * config/s390/s390.c: Define sane prefetch settings and activate
17302         flag_prefetch_loop_arrays on -O3.
17303         * config/s390/s390.h: Declare that read can use write prefetch.
17304
17305 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
17306
17307         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
17308         build.
17309
17310 2010-05-16  Jan Hubicka  <jh@suse.cz>
17311
17312         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
17313         function body; do not check stdarg field of struct function.
17314
17315 2010-05-16  Jan Hubicka  <jh@suse.cz>
17316
17317         * cgraph.c (dump_cgraph_node): Dump versionable flag.
17318         * cgraph.h (cgraph_local_info): Add versionable flag.
17319         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
17320         (ipcp_versionable_function_p): Use it.
17321         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17322         versionable flag.
17323
17324 2010-05-16  Jan Hubicka  <jh@suse.cz>
17325
17326         * cgraph.c (cgraph_clone_node): Take decl argument and insert
17327         clone into hash when it is different from orig.
17328         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
17329         * cgraph.h (cgraph_clone_node): Update prototype.
17330         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
17331         (lto_cgraph_encoder_delete): Delete body map.
17332         (lto_cgraph_encoder_size): Move to header.
17333         (lto_cgraph_encoder_encode_body_p,
17334         lto_set_cgraph_encoder_encode_body): New.
17335         (lto_output_node): Do not take written_decls argument; output clone_of
17336         pointer.
17337         (add_node_to): Add include_body_argument; call
17338         lto_set_cgraph_encoder_encode_body on master of the clone.
17339         (add_references): Update use of add_node_to.
17340         (compute_ltrans_boundary): Likewise.
17341         (output_cgraph): Do not create written_decls bitmap.
17342         (input_node): Take nodes argument; stream in clone_of correctly.
17343         (input_cgraph_1): Update use of input_node.
17344         * lto-streamer-out.c (lto_output): Use encoder info to decide
17345         what bodies to output.
17346         * ipa-inline.c (cgraph_clone_inlined_nodes,
17347         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
17348         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
17349         (lto_cgraph_encoder_size): Define here.
17350         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
17351         Declare.
17352
17353 2010-05-16  Richard Guenther  <rguenther@suse.de>
17354
17355         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
17356         -fipa-type-escape.
17357         * ipa-type-escape.c (gate_type_escape_vars): Run when
17358         -fipa-struct-reorg runs.
17359         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
17360         * common.opt (fipa-type-escape): Remove.
17361
17362 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
17363
17364         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
17365         (decode_options): Likewise.
17366         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
17367
17368 2010-05-16  Jan Hubicka  <jh@suse.cz>
17369
17370         * ipa.c (function_and_variable_visibility): Also bring local all
17371         aliases.
17372
17373 2010-05-16  Richard Guenther  <rguenther@suse.de>
17374
17375         * alias.c (nonoverlapping_memrefs_p): Remove use of
17376         IPA type-escape information.
17377
17378 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
17379
17380         * c-common.c (c_common_reswords): Add _Static_assert for C.
17381         * c-parser.c (c_token_starts_declaration,
17382         c_parser_next_token_starts_declaration,
17383         c_parser_static_assert_declaration_no_semi,
17384         c_parser_static_assert_declaration): New.
17385         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
17386         Handle static assertions if static_assert_ok.
17387         (c_parser_external_declaration, c_parser_declaration_or_fndef,
17388         c_parser_compound_statement_nostart, c_parser_label,
17389         c_parser_for_statement, c_parser_objc_methodprotolist,
17390         c_parser_omp_for_loop): All callers of
17391         c_parser_declaration_or_fndef changed.
17392         (c_parser_struct_declaration): Handle static assertions.
17393         (c_parser_compound_statement_nostart): Use
17394         c_parser_next_token_starts_declaration and
17395         c_token_starts_declaration to detect start of declarations.
17396         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
17397         Likewise.
17398
17399 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
17400
17401         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17402         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17403         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17404         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17405         (mmix_function_outgoing_value): Rename to...
17406         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
17407         (mmix_function_value_regno_p): Make static.
17408         (mmix_libcall_value): New function.
17409         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
17410         mmix_function_value_regno_p): Remove declaration.
17411
17412 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
17413
17414         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
17415         BUILT_IN_ALLOCA if stack checking is enabled.
17416
17417 2010-05-16  Richard Guenther  <rguenther@suse.de>
17418
17419         * var-tracking.c (vars_copy_1): Inline ...
17420         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
17421         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
17422         (variable_merge_over_cur): Adjust.  Merge asserts.
17423         (variable_merge_over_src): Likewise.
17424         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
17425         (variable_post_merge_new_vals): Merge asserts.
17426         (variable_post_merge_perm_vals): Likewise.
17427         (find_mem_expr_in_1pdv): Likewise.
17428         (dataflow_set_different_value): Remove.
17429         (onepart_variable_different_p): Merge asserts.
17430         (variable_different_p): Likewise.
17431         (dataflow_set_different_1): Inline ...
17432         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
17433         (emit_notes_for_differences_1): Merge asserts.
17434
17435 2010-05-16  Richard Guenther  <rguenther@suse.de>
17436
17437         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
17438         * optabs.c (libfunc_decl_hash): Likewise.
17439         * varasm.c (emutls_decl): Likewise.
17440
17441 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
17442
17443         * c-decl.c: Don't include gimple.h.
17444         (merge_decls): Do not copy gimple_body.
17445
17446 2010-05-15  Jason Merrill  <jason@redhat.com>
17447
17448         * c.opt: Add -fnothrow-opt.
17449
17450 2010-05-15  Jan Hubicka  <jh@suse.cz>
17451
17452         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
17453         analyzed.
17454         * passes.c (ipa_write_summaries): Write all analyzed nodes.
17455
17456 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
17457
17458         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
17459         * Makefile.in: Add it.
17460         Fix all other Makefile dependencies for changes below.
17461         * tree.h: Include it instead of defining VEC primitives here.
17462         * gimple.h: Likewise.
17463         * rtl.h: Likewise.
17464         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
17465         * except.h: Include vecir.h, break dependence on tree.h.
17466
17467         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
17468         Move from here...
17469         * tree-iterator.c: ...to here.
17470         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
17471
17472         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
17473         tm_p.h.
17474         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
17475         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
17476         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
17477         tree-mudflap.h, and target.h.
17478         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
17479         predict.h, tree-inline.h, gimple.h, and langhooks.h.
17480         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
17481         Add FIXME for why gimple.h is still included (should be unnecessary
17482         since GCC 4.5 gimplification unit-at-a-time).
17483         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
17484         * c-pragma.c: Add FIXME for why function.h needs to be included just
17485         for cfun, at front-end level.
17486         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
17487         Do not include ggc.h, but include vecprim.h for VEC(char).
17488         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
17489         Explain why target.h is included.
17490         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
17491         Explain why gimple.h is included.
17492         * c-ppoutput.c: Do not include tm.h.
17493         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
17494         * c-parses.c: Explain why rtl.h is included, and that this (and only
17495         this) is also why tm.h must be included.
17496         Do not include except.h.
17497         * c-lang.c: Do not include ggc.h.
17498
17499 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
17500
17501         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
17502
17503 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
17504
17505         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
17506         unions by default if those structs and unions have no tags.  Do
17507         not condition anonymous struct and unions handling on flag_iso.
17508         Allow anonymous structs and unions for C1X.
17509         (finish_struct): Do not diagnose lack of named fields when
17510         anonymous structs and unions present for C1X.  Accept flexible
17511         array members in structure with anonymous structs or unions but no
17512         directly named fields.
17513         * doc/extend.texi (Unnamed Fields): Update.
17514
17515 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
17516
17517         * gimple.h (compare_field_offset): Rename into...
17518         (gimple_compare_field_offset): ...this.
17519         * gimple.c (compare_field_offset): Rename into...
17520         (gimple_compare_field_offset): ...this.  Compare the full access if
17521         the offset is self-referential.
17522         (gimple_types_compatible_p): Adjust for above renaming.
17523         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
17524         DECL_NONADDRESSABLE_P flag of fields before merging them.
17525
17526 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
17527
17528         * tree.h (ctor_to_list): Delete.
17529         * tree.c (ctor_to_list): Delete.
17530
17531 2010-05-15  Jan Hubicka  <jh@suse.cz>
17532
17533         * ipa-reference.c: Include toplev.h
17534         (is_proper_for_analysis): Only add to all_module_statics
17535         if it is allocated.
17536         (write_node_summary_p, stream_out_bitmap,
17537         ipa_reference_write_optimization_summary,
17538         ipa_reference_read_optimization_summary): New.
17539         (struct ipa_opt_pass_d pass_ipa_reference): Add
17540         optimization summary streaming.
17541         * lto-cgraph.c (referenced_from_this_partition_p,
17542         reachable_from_this_partition_p): New functions.
17543         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
17544         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
17545         * opts.c (decode_options): Enable ipa_reference.
17546         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
17547         * lto-streamer.h (referenced_from_this_partition_p,
17548         reachable_from_this_partition_p): Declare.
17549
17550 2010-05-15  Richard Guenther  <rguenther@suse.de>
17551
17552         PR tree-optimization/44038
17553         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
17554         taking the address of a V_C_E of a constant.
17555
17556 2010-05-14  Jan Hubicka  <jh@suse.cz>
17557
17558         * tree.h (memory_identifier_string): Remove.
17559         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
17560         (ipa_reference_global_vars_info_d): Remove statics_not_read and
17561         statics_not_written.
17562         (ipa_reference_optimization_summary_d): New structure.
17563         (ipa_reference_optimization_summary_t): New type and vector.
17564         (ipa_reference_vars_info_d): Embedd structures instead of using
17565         pointers.
17566         (reference_vars_to_consider): Remove out of GGC space.
17567         (module_statics_escape): Remove.
17568         (global_info_obstack): Rename to ...
17569         (optimization_summary_obstack): ... this one.
17570         (initialization_status_t): Remove.
17571         (memory_identifier_string): Remove.
17572         (get_reference_vars_info): Fix indenting.
17573         (set_reference_vars_info): Likewise.
17574         (get_reference_optimization_summary): New.
17575         (set_reference_optimization_summary): New.
17576         (get_global_reference_vars_info): Remove.
17577         (ipa_reference_get_read_global): Remove.
17578         (ipa_reference_get_written_global): Remove.
17579         (ipa_reference_get_not_read_global): Update.
17580         (ipa_reference_get_not_written_global): Update.
17581         (is_proper_for_analysis): Outlaw addressable.
17582         (propagate_bits): Update for new datastructures.
17583         (analyze_variable): Remove.
17584         (init_function_info): Update for new datastructures.
17585         (clean_function_local_data): Remove.
17586         (clean_function): Remove.
17587         (copy_global_bitmap): Use optimizations_summary_obstack.
17588         (duplicate_node_data): Duplicate optimization summary only.
17589         (remove_node_data): Remove optimization summary only.
17590         (generate_summary): Do not analyze variables; do not compute
17591         module_statics_escape; do not prune solutions by it.
17592         (read_write_all_from_decl): Fix typos in comments.
17593         (propagate): Doscover readonly and nonaddressable first;
17594         update for new datastructures; share global bitmaps.
17595         * ipa-reference.h (ipa_reference_get_read_global,
17596         ipa_reference_get_written_global): Remove.
17597         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
17598         * Makefile.in: Remove ipa-refereference from GT files.
17599
17600 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
17601
17602         PR debug/44112
17603         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
17604         for all SYMBOL_REF_DECLs.
17605
17606 2010-05-14  Jan Hubicka  <jh@suse.cz>
17607
17608         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
17609         (varpool_all_refs_explicit_p): New inline function.
17610         * ipa-reference.c: Update comment.
17611         (module_statics_written): Remove.
17612         (get_static_decl): Remove.
17613         (ipa_init): Do not initialize module_statics_written.
17614         (analyze_function): Likewise.
17615         (generate_summary): Likewise; do not compute module_statics_readonly
17616         and do not update variable flags.
17617         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
17618         * ipa.c: Inlucde flags.h
17619         (cgraph_local_node_p): New.
17620         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
17621         promote functions to local.
17622         (ipa_discover_readonly_nonaddressable_vars): New function.
17623         (function_and_variable_visibility): Use cgraph_local_node_p.
17624         * varpool.c (varpool_finalize_decl): Set force_output for
17625         DECL_PRESERVE_P vars.
17626
17627 2010-05-14  Jan Hubicka  <jh@suse.cz>
17628
17629         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
17630
17631 2010-05-14  Richard Guenther  <rguenther@suse.de>
17632
17633         PR tree-optimization/44119
17634         * tree-ssa-pre.c (eliminate): Properly mark replacement of
17635         a PHI node necessary.
17636
17637 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17638
17639         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
17640
17641 2010-05-14  Jason Merrill  <jason@redhat.com>
17642
17643         PR c++/44127
17644         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
17645         (gimple_call_set_nothrow): New.
17646         * gimple.c (gimple_build_call_from_tree): Call it.
17647         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
17648
17649         PR c++/44127
17650         * gimplify.c (gimplify_seq_add_stmt): No longer static.
17651         * gimple.h: Declare it.
17652         * gimple.c (gimple_build_eh_filter): No ops.
17653
17654 2010-05-14  Jan Hubicka  <jh@suse.cz>
17655
17656         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
17657         nodes already in queue.
17658         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
17659         re-enqueueing node.
17660
17661 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
17662
17663         PR debug/44136
17664         * cfgexpand.c (expand_debug_expr): If non-memory op0
17665         has BLKmode, return NULL.
17666
17667 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
17668
17669         * config.gcc: Add support for --with-cpu option for bdver1.
17670         * config/i386/i386.h (TARGET_BDVER1): New macro.
17671         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
17672         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
17673         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
17674         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
17675         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
17676         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
17677         (processor_type): Add PROCESSOR_BDVER1.
17678         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
17679         processor_type in config/i386/i386.h.
17680         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
17681         movaps <reg, reg> instead of movapd <reg, reg> when replacing
17682         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
17683         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
17684         to emit packed xor instead of packed double/packed integer
17685         xor for SSE and AVX when moving a zero value.
17686         * config/i386/sse.md: Add check for
17687         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
17688         movapd/movdqa for SSE and AVX.
17689         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
17690         single logical operations i.e and, or and xor instead of packed double
17691         logical operations for SSE and AVX.
17692         * config/i386/i386-c.c (ix86_target_macros_internal):
17693         Add PROCESSOR_BDVER1.
17694         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
17695         (has_fma4, has_xop): New.
17696         * config/i386/i386.c (bdver1_cost): New variable.
17697         (m_BDVER1): New macro.
17698         (m_AMD_MULTIPLE): Add m_BDVER1.
17699         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
17700         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
17701         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
17702         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
17703         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
17704         x86_tune_sse_partial_reg_dependency,
17705         x86_tune_sse_unaligned_load_optimal,
17706         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
17707         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
17708         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
17709         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
17710         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
17711         Enable/disable for bdver1.
17712         (processor_target_table): Add bdver1_cost.
17713         (cpu_names): Add bdver1.
17714         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
17715          processor_alias_table.
17716         (ix86_expand_vector_move_misalign): Change.
17717         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
17718         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
17719         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
17720         of movupd/movdqu for SSE and AVX.
17721         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
17722         (ix86_tune_adjust_cost): Add code for bdver1.
17723         (standard_sse_constant_opcode): Add check for
17724         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
17725         of packed double xor for SSE and AVX.
17726
17727 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
17728
17729         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
17730         result to unsigned.
17731
17732 2010-05-14  Tristan Gingold  <gingold@adacore.com>
17733
17734         * toplev.c (default_debug_hooks): Remove this variable.
17735         (process_options): Remove assignments to default_debug_hooks.
17736
17737 2010-05-14  Martin Jambor  <mjambor@suse.cz>
17738
17739         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
17740         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
17741         * langhooks.h (struct lang_hooks_for_decls): Removed field
17742         fold_obj_type_ref.
17743         * tree.c (free_lang_data): Remove assignment to
17744         lang_hooks.fold_obj_type_ref.
17745         * tree.def (OBJ_TYPE_REF): Update comment.
17746
17747 2010-05-14  Richard Guenther  <rguenther@suse.de>
17748
17749         PR tree-optimization/44124
17750         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
17751
17752 2010-05-14  Alan Modra  <amodra@gmail.com>
17753
17754         PR target/44075
17755         * config/rs6000/rs6000.c (struct machine_function): Reorder
17756         fields for better packing.  Add lr_save_state.
17757         (rs6000_ra_ever_killed): Return lr_save_state if set.
17758         (rs6000_emit_eh_reg_restore): Set lr_save_state.
17759
17760 2010-05-13  Jan Hubicka  <jh@suse.cz>
17761
17762         * varpool.c (decide_is_variable_needed): Drop code checking
17763         TREE_SYMBOL_REFERENCED.
17764
17765 2010-05-13  Jan Hubicka  <jh@suse.cz>
17766
17767         * final.c (output_addr_const): Do not call mark_decl_referenced.
17768         * cgraphunit.c (process_function_and_variable_attributes): Use
17769         mark_needed_node dirrectly.
17770         (assemble_thunk): Do not call mark_decl_referenced.
17771
17772 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
17773
17774         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
17775
17776 2010-05-13  Jeff Law  <law@redhat.com>
17777
17778         * ira-conflicts.c (print_allocno_conflicts): New function broken out
17779         from...
17780         (print_conflicts): Call print_allocno_conflicts.
17781
17782 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
17783
17784         PR debug/44104
17785         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
17786         if it is NULL.
17787
17788 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
17789
17790         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
17791         t-mingw-w64 or t-mingw-w32 for multilib configuration.
17792         * config/i386/t-mingw-w32: New.
17793         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
17794
17795 2010-05-13  Martin Jambor  <mjambor@suse.cz>
17796
17797         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
17798         gimple-fold.c).
17799         * gimple-fold.c (get_base_binfo_for_type): New function.
17800         (gimple_get_relevant_ref_binfo): Likewise.
17801         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17802         (gimple_fold_obj_type_ref): Likewise.
17803         (fold_gimple_call): Simplify condition for folding virtual calls
17804         and call gimple_fold_obj_type_ref.
17805         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
17806         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17807
17808 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
17809
17810         * config/rs6000/rs6000-protos.h
17811         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
17812         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
17813         (rs6000_debug_mode_dependent_address)
17814         (rs6000_mode_dependent_address_ptr): Likewise.
17815
17816 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
17817
17818         PR debug/43983
17819         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
17820         by SRA.
17821         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
17822         * tree-sra.c (create_access_replacement): Call unshare_expr before
17823         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
17824         * dwarf2out.c: Include tree-flow.h.
17825         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
17826         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
17827         Handle DW_OP_bit_piece.
17828         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
17829         construct_piece_list, adjust_piece_list): New functions.
17830         (add_var_loc_to_decl): Handle SRA optimized variables.
17831         Adjust for var_loc_note to loc field renaming.
17832         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
17833         in VAR_LOCATION note.
17834         (new_loc_descr_op_bit_piece): New function.
17835         (dw_sra_loc_expr): New function.
17836         (dw_loc_list): Use it.  Don't handle the last range after the
17837         loop, handle it inside of the loop.  Adjust for var_loc_note
17838         to loc field renaming.
17839         (add_location_or_const_value_attribute): Only special case
17840         single entry loc lists if loc is NOTE_P.  Adjust for
17841         var_loc_note to loc field renaming.
17842         (dwarf2out_var_location): Don't set newloc->var_loc_note
17843         and newloc->next here.
17844
17845 2010-05-12  Jan Hubicka  <jh@suse.cz>
17846
17847         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
17848         flag.
17849         * cgraph.h (cgraph_only_called_directly_p,
17850         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
17851         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
17852         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
17853         (assemble
17854         * ipa.c (cgraph_remove_unreachable_nodes): Use
17855         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
17856         flags.
17857         * tree-inline.c (copy_bb): Check address_taken flag.
17858         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
17859         externally_visible flag.
17860
17861 2010-05-12  Jason Merrill  <jason@redhat.com>
17862
17863         PR bootstrap/44048
17864         PR target/44099
17865         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
17866         * sdbout.c (plain_type_1): Likewise.
17867         * dwarf2out.c (is_base_type): Likewise.
17868         (gen_type_die_with_usage): Likewise.  Generate
17869         DW_TAG_unspecified_type for any LANG_TYPE.
17870
17871 2010-05-12  Jan Hubicka  <jh@suse.cz>
17872
17873         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
17874         indrect edges too.
17875         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
17876         (cgraph_clone_edge): Update.
17877         (cgraph_node_remove_callees): Remove indirect calls too.
17878         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
17879         (cgraph_create_indirect_edge): Update prototype.
17880         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
17881         is_proper_for_analysis.
17882         (add_new_function, visited_nodes, function_insertion_hook_holder,
17883         get_local_reference_vars_info, mark_address_taken, mark_address,
17884         mark_load, mark_store, check_asm_memory_clobber, check_call,
17885         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
17886         (ipa_init): Do not initialize visited_nodes;
17887         function_insertion_hook_holder.
17888         (analyze_variable): Rewrite.
17889         (analyze_function): Rewrite.
17890         (copy_local_bitmap): Remove.
17891         (duplicate_node_dat): Do not duplicate local info.
17892         (generate_summary): Simplify to only walk cgraph.
17893         (write_node_summary_p, ipa_reference_write_summary,
17894         ipa_reference_read_summary): Remove.
17895         (propagate): Do not remove function insertion;
17896         generate summary.
17897         (pass_ipa_reference): NULLify summary handling fields.
17898         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
17899         (input_edge): Input ecf_flags.
17900         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
17901         (update_indirect_edges_after_inlining): Ignore edges with unknown
17902         param.
17903
17904 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
17905
17906         * implicit-zee.c: New file.
17907         * tree-pass.h (pass_implicit_zee): Declare.
17908         * passes.c (init_optimization_passes): Add zee pass.
17909         * common.opt (fzee): New flag.
17910         * timevar.def (TV_ZEE): Define.
17911         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
17912         and beyond.
17913         * Makefile.in (implicit-zee.o): Add new build file.
17914
17915 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17916             Nathan Froyd  <froydnj@codesourcery.com>
17917
17918         * c-common.c (sync_resolve_params): Remove write-only variable.
17919
17920 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
17921
17922         * target.h (struct gcc_target): Add mode_dependent_address_p field.
17923         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
17924         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
17925         * targhooks.c (default_mode_dependent_address_p): New function.
17926         * targhooks.h (default_mode_dependent_address_p): Declare function.
17927         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
17928         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
17929         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
17930         target hook. Change return type to bool.
17931         * recog.h (mode_dependent_address_p): Change return type to bool.
17932
17933 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17934             Nathan Froyd  <froydnj@codesourcery.com>
17935
17936         * tree-mudflap.c (build_function_type_0, build_function_type_1,
17937         build_function_type_2, build_function_type_3): Remove.
17938         (mudflap_init): Use build_function_type_list.
17939
17940 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17941             Nathan Froyd  <froydnj@codesourcery.com>
17942
17943         * coverage.c (build_fn_info_value): Call build_constructor instead of
17944         build_constructor_from_list.
17945         (build_ctr_info_value): Likewise.
17946         (build_gcov_info): Likewise.
17947
17948 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
17949
17950         * tree.c (build_constructor): Compute TREE_CONSTANT for the
17951         resultant constructor.
17952         (build_constructor_single): Don't set TREE_CONSTANT.
17953         (build_constructor_from_list): Don't compute TREE_CONSTANT.
17954
17955 2010-05-12  Jan Hubicka  <jh@suse.cz>
17956
17957         * cgraph.h (struct varpool_node): Add aux.
17958         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
17959         * varpool.c (varpool_remove_node): Do not remove initializer.
17960         (varpool_reset_queue): Export.
17961         (varpool_finalize_decl): Volatile vars are forced to be output.
17962         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
17963         replaced decl.
17964         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
17965         process_references, varpool_can_remove_if_no_refs): New functions.
17966         (cgraph_remove_unreachable_nodes): Handle variables too.
17967
17968 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17969
17970         PR target/44088
17971         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
17972
17973 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
17974
17975         PR middle-end/44085
17976         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
17977         change value of ORT_TASK.
17978         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
17979         (omp_notice_threadprivate_variable): New function.
17980         (omp_notice_variable): Call it for threadprivate variables.
17981         If enclosing ctx is a task, print enclosing task rather than
17982         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
17983         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
17984         if task has untied clause.
17985
17986         PR debug/42278
17987         * dwarf2out.c (base_type_die): Don't add name attribute here.
17988         (modified_type_die): Instead of sizetype use
17989         its underlying original type.  If a DW_TAG_base_type doesn't
17990         have name added, add __unknown__.
17991         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
17992         always call force_type_die instead.
17993
17994 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
17995
17996         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
17997         for __stack_chk_guard.
17998
17999 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
18000
18001         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
18002         don't call start_source_file debug hook here...
18003         (finish_options): ... but here, after outputting predefined and
18004         command line defines and undefs.
18005
18006         PR middle-end/44071
18007         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
18008         no fallthru edge.
18009         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
18010         optimizing away empty bb with no successors, move over its
18011         footer chain to fallthru predecessor.
18012         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
18013         (rtl_split_edge): For asm goto call patch_jump_insn even if
18014         splitting fallthru edge.
18015
18016         PR c++/44059
18017         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
18018         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
18019         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
18020         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
18021         on DW.ref.* decls.
18022
18023         PR c++/44062
18024         * c-parser.c (c_parser_expression): Mark LHS of a comma
18025         expression as read if it is a decl, handled component or
18026         COMPOUND_EXPR with that on the RHS.
18027         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
18028         if it is a decl or handled component.
18029
18030 2010-05-11  Jan Hubicka  <jh@suse.cz>
18031
18032         * lto-symtab.c (lto_symtab_free): New function.
18033         * lto-streamer.h (lto_symtab_free): Declare.
18034
18035 2010-05-11  Jan Hubicka  <jh@suse.cz>
18036
18037         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
18038         that if function is needed it is reachable.
18039         (lto_output_node): See if it the function is reachable or referenced.
18040         (output_cgraph): Update call of lto_output_node.
18041         * lto-streamer.h (reachable_from_other_partition_p): Declare.
18042
18043 2010-05-11  Jan Hubicka  <jh@suse.cz>
18044
18045         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
18046         Mark as used.
18047
18048 2010-05-11  Jan Hubicka  <jh@suse.cz>
18049
18050         PR tree-optimize/44063
18051         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
18052         queue.
18053         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
18054         limits.
18055         (estimate_function_body_sizes): Compute sizes even when disregarding.
18056
18057 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
18058
18059         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
18060
18061 2010-05-11  Jan Hubicka  <jh@suse.cz>
18062
18063         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
18064         into every boundary.
18065
18066 2010-05-11  Jan Hubicka  <jh@suse.cz>
18067
18068         * matrix-reorg.c (matrix_reorg): Rebuild edges.
18069
18070 2010-05-11  Jan Hubicka  <jh@suse.cz>
18071
18072         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
18073         lto_streamer_cache_delete): Put nodes into heap.
18074         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
18075         heap.
18076
18077 2010-05-11  Jan Hubicka  <jh@suse.cz>
18078
18079         * cgraphbuild.c (cgraph_rebuild_references): New.
18080         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
18081         out extern inlines.
18082         * cgraph.h (cgraph_rebuild_references): Declare.
18083         * tree-inline.c (tree_function_versioning): Use it.
18084         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
18085
18086 2010-05-11  Jan Hubicka  <jh@suse.cz>
18087
18088         * cgraph.c: Include ipa-utils.h
18089         (cgraph_create_virtual_clone): Update references.
18090         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
18091
18092 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
18093
18094         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
18095         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
18096         cache size.
18097
18098 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
18099
18100         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
18101
18102 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
18103
18104         * gcc.c (execute): For -### don't quote arguments that
18105         contain just alphanumerics and _/-. characters.
18106         * doc/invoke.texi: Document that change for -###.
18107
18108         PR debug/44023
18109         * df-problems.c (struct dead_debug): Add to_rescan field.
18110         (dead_debug_init): Clear to_rescan field.
18111         (dead_debug_finish): Rescan all debug insns in to_rescan
18112         bitmap and free the bitmap.
18113         (dead_debug_insert_before): Instead of rescanning debug insns
18114         immediately queue their rescanning until dead_debug_finish.
18115         (df_note_bb_compute): After dead_debug_add do continue instead
18116         of break.
18117
18118 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
18119
18120         PR debug/44028
18121         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
18122         clear also INSN_REG_USE_LIST.
18123
18124 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18125
18126         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
18127
18128 2010-05-10  Jan Hubicka  <jh@suse.cz>
18129
18130         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
18131         commited change.
18132
18133 2010-05-10  Jan Hubicka  <jh@suse.cz>
18134
18135         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
18136         Allocate encoders.
18137         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
18138         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
18139         (lto_streamer_cache_create): Init alloc pool.
18140         (lto_streamer_cache_delete): Free alloc pool.
18141         * lto-streamer.h: Include alloc pool.
18142         (lto_streamer_cache_d): Use alloc pool.
18143         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
18144
18145 2010-05-10  Jan Hubicka  <jh@suse.cz>
18146
18147         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
18148         * cgraphbuild.c: Include except.h
18149         (record_type_list, record_eh_tables): New function.
18150         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
18151
18152 2010-05-10  Jan Hubicka  <jh@suse.cz>
18153
18154         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
18155         __frame_dummy_init_array_entry, force_to_data): Attribute as used
18156         rather than unused.
18157
18158 2010-05-10  Michael Matz  <matz@suse.de>
18159
18160         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
18161         (can_reassociate_p): Use FLOAT_TYPE_P.
18162         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
18163         (vect_force_simple_reduction): ... this.
18164         * tree-parloops.c (gather_scalar_reductions): Use
18165         vect_force_simple_reduction.
18166         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
18167         vect_is_simple_reduction, add modify argument, if true rewrite
18168         "a-b" into "a+(-b)".
18169         (vect_is_simple_reduction, vect_force_simple_reduction): New
18170         functions.
18171         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
18172
18173 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18174             Vladimir Makarov  <vmakarov@redhat.com>
18175
18176         PR rtl-optimization/44012
18177         * ira-build.c (remove_unnecessary_allocnos): Nullify
18178         regno_allocno_map of the removed allocno.
18179
18180 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18181
18182         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
18183         to /dev/null.
18184         * configure: Regenerate.
18185
18186 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18187
18188         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
18189         unused.
18190         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
18191         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
18192         support in Sun ld.
18193         * configure: Regenerate.
18194
18195 2010-05-10  Richard Guenther  <rguenther@suse.de>
18196
18197         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
18198         marked if the entry identifier is marked.
18199
18200 2010-05-10  Richard Guenther  <rguenther@suse.de>
18201
18202         * c-common.c (struct c_common_attributes): Add fnspec attribute.
18203         (handle_fnspec_attribute): New function.
18204         * gimple.h (gimple_call_return_flags): Declare.
18205         (gimple_call_arg_flags): Likewise.
18206         * gimple.c (gimple_call_arg_flags): New function.
18207         (gimple_call_return_flags): Likewise.
18208         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
18209         New argument flags.
18210         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
18211         return value flags.
18212         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
18213         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
18214         main work to ...
18215         (make_heapvar_for): ... this new function.
18216         (handle_rhs_call): Handle fnspec attribute argument specifiers.
18217         (handle_lhs_call): Likewise.
18218         (find_func_aliases): Adjust.
18219
18220 2010-05-10  Richard Guenther  <rguenther@suse.de>
18221
18222         PR tree-optimization/44050
18223         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
18224
18225 2010-05-10  Wei Guozhi  <carrot@google.com>
18226
18227         PR target/42879
18228         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
18229
18230 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
18231
18232         PR c/10676
18233         * c-typeck.c (lookup_field): Take a type directly.  Update
18234         recursive calls.
18235         (build_component_ref): Update call to lookup_field.
18236         (set_init_label): Use lookup_field to find initialized field.
18237         Handle returned list of fields like a sequence of designators.
18238
18239 2010-05-09  Richard Guenther  <rguenther@suse.de>
18240
18241         PR middle-end/44024
18242         * fold-const.c (tree_single_nonzero_warnv_p): Properly
18243         handle &FUNCTION_DECL.
18244
18245 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
18246
18247         PR c/4784
18248         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
18249         structures and unions recursively.
18250         (detect_field_duplicates): Move duplicate detection with a hash to
18251         detect_field_duplicates_hash.  Always use a hash if anonymous
18252         structures or unions are present.
18253         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
18254         give errors.
18255
18256 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18257
18258         PR target/44046
18259         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
18260         detect Atom, Core 2 and Core i7.
18261
18262 2010-05-09  Richard Guenther  <rguenther@suse.de>
18263
18264         * gcc.c (store_arg): Handle temporary file deletion for
18265         joined arguments.
18266
18267 2010-05-09  Richard Guenther  <rguenther@suse.de>
18268
18269         PR middle-end/44043
18270         * ipa-inline.c (estimate_function_body_sizes): Return after
18271         disregarding inline limits.
18272
18273 2010-05-09  Richard Guenther  <rguenther@suse.de>
18274
18275         * gcc.c (store_arg): Revert last change.
18276
18277 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
18278
18279         PR middle-end/28685
18280         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
18281         (optimize_ops_list): Call it.
18282
18283 2010-05-08  Richard Guenther  <rguenther@suse.de>
18284
18285         PR tree-optimization/44030
18286         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
18287         NECESSARY flag if we propagate from a inserted expression.
18288
18289 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18290
18291         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
18292         domain types as equal if they are both PLACEHOLDER_EXPRs.
18293
18294 2010-05-08  Richard Guenther  <rguenther@suse.de>
18295
18296         * lto-wrapper.c (run_gcc): Remove linker output from
18297         command line for LTRANS invocation.
18298
18299 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
18300
18301         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18302         lto-macho as lto_binary_reader.
18303         * target.h (struct gcc_target): New hooks lto_start and lto_end.
18304         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
18305         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
18306         in lto_start and lto_end calls.
18307         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
18308         magic numbers.
18309         (scan_prog_file): Update is_elf_or_coff call.
18310         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
18311
18312         * collect2.c (main): Fix enum comparison.
18313
18314         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
18315         Add prototypes.
18316         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
18317         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
18318         and TARGET_ASM_LTO_END.
18319         * darwin.c: Include obstack.h and lto-streamer.h.
18320         (lto_section_names_offset, lto_section_names_obstack,
18321         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
18322         global variables.
18323         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
18324         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
18325         to a temporary file.
18326         (darwin_asm_lto_end): New function.  Restore asm_out_file.
18327         (darwin_asm_named_section): For LTO sections, replace the name with
18328         the offset of the section name in a string table, and build this
18329         table.
18330         (darwin_file_start): Initialize global vars for LTO support.
18331         (darwin_file_end): If output to asm_out_file was redirected, append it
18332         to the proper asm_out_file here.  Add the section names section.
18333
18334 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
18335
18336         * c-pragma.c (pending_weak_d, pending_weak): New.
18337         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
18338         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
18339         handle_pragma_weak): Update the uses of pending_weaks.
18340
18341 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18342
18343         PR documentation/44016
18344         * doc/standards.texi (Standards): Link to unversioned
18345         cxx0x_status.html page.
18346
18347 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
18348
18349         PR target/43708
18350         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
18351         in addition to TREE_USED, to avoid "set but unused" warnings.
18352
18353 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
18354
18355         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
18356         (is_loop_prefetching_profitable): Do not insert prefetches
18357         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
18358         times the prefetch ahead distance.
18359
18360 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
18361
18362         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
18363         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
18364         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
18365         the unroll_factor.
18366
18367 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
18368
18369         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
18370         a diagnostic info when the insn-to-mem ratio is too small.
18371
18372 2010-05-07  Richard Guenther  <rguenther@suse.de>
18373
18374         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
18375         the linker plugin.
18376         (store_arg): Queue temp_filename for deletion instead of
18377         the whole argument.
18378
18379 2010-05-07  Richard Guenther  <rguenther@suse.de>
18380
18381         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
18382         (run_gcc): Handle LTRANS phase invocation.
18383         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
18384
18385 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
18386
18387         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
18388         this is also meaningful on PARM_DECLs and RESULT_DECLs.
18389
18390 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18391
18392         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
18393
18394 2010-05-07  Richard Guenther  <rguenther@suse.de>
18395
18396         PR tree-optimization/44020
18397         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
18398         code when PRE is not yet initialized.
18399
18400 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18401
18402         * config/mips/dbxmdebug.h: Remove.
18403         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
18404
18405 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
18406
18407         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
18408         with null pointer and also warn about ordered comparison of zero with
18409         pointer if -Wextra.
18410
18411 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
18412
18413         * graphite-blocking.c
18414         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
18415         * graphite-clast-to-gimple.c
18416         (clast_to_gcc_expression): Same.
18417         (precision_for_value): Same.
18418         (precision_for_interval): Same.
18419         (gcc_type_for_interval): Same.
18420         (graphite_create_new_guard): Same.
18421         (compute_bounds_for_level): Same.
18422         (graphite_create_new_loop_guard): Same.
18423         * graphite-interchange.c
18424         (build_linearized_memory_access): Same.
18425         (pdr_stride_in_loop): Same.
18426         (memory_strides_in_loop_1): Same.
18427         (memory_strides_in_loop): Same.
18428         (extend_scattering): Same.
18429         (psct_scattering_dim_for_loop_depth): Same.
18430         (pbb_number_of_iterations): Same.
18431         * graphite-poly.h
18432         (debug_iteration_domains): Same.
18433         * graphite-ppl.c
18434         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
18435         (ppl_set_inhomogeneous_gmp): Same.
18436         (ppl_strip_loop): Same.
18437         (ppl_lexico_compare_linear_expressions): Same.
18438         (ppl_read_polyhedron_matrix): Same.
18439         (ppl_max_for_le_pointset): Same.
18440         * graphite-ppl.h
18441         (ppl_read_polyhedron_matrix): Same.
18442         (tree_int_to_gmp): Same.
18443         (gmp_cst_to_tree): Same.
18444         (ppl_set_inhomogeneous): Same.
18445         (ppl_set_inhomogeneous_tree): Same.
18446         (ppl_set_coef): Same.
18447         (ppl_set_coef_tree): Same.
18448         * graphite-sese-to-poly.c
18449         (build_pbb_scattering_polyhedrons): Same.
18450         (build_scop_scattering): Same.
18451         (scan_tree_for_params_right_scev): Same.
18452         (scan_tree_for_params): Same.
18453         (find_params_in_bb): Same.
18454         (find_scop_parameters): Same.
18455         (add_upper_bounds_from_estimated_nit): Same.
18456         (build_loop_iteration_domains): Same.
18457         (add_condition_to_domain): Same.
18458         (pdr_add_memory_accesses): Same.
18459
18460 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
18461
18462         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
18463         CLooG's value_* macros to their respective mpz_* counterparts.
18464         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
18465         (graphite_create_new_loop_guard): Same.
18466         * graphite-interchange.c (build_linearized_memory_access): Same.
18467         (pdr_stride_in_loop): Same.
18468         (memory_strides_in_loop_1): Same.
18469         (1st_interchange_profitable_p): Same.
18470         * graphite-poly.c (extend_scattering): Same.
18471         (psct_scattering_dim_for_loop_depth): Same.
18472         (pbb_number_of_iterations): Same.
18473         (pbb_number_of_iterations_at_time): Same.
18474         * graphite-poly.h (new_1st_loop): Same.
18475         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
18476         (oppose_constraint): Same.
18477         (insert_constraint_into_matrix): Same.
18478         (ppl_set_inhomogeneous_gmp): Same.
18479         (ppl_set_coef_gmp): Same.
18480         (ppl_strip_loop): Same.
18481         (ppl_lexico_compare_linear_expressions): Same.
18482         (ppl_max_for_le_pointset): Same.
18483         (ppl_min_for_le_pointset): Same.
18484         (ppl_build_realtion): Same.
18485         * graphite-ppl.h (gmp_cst_to_tree): Same.
18486         (ppl_set_inhomogeneous): Same.
18487         (ppl_set_inhomogeneous_tree): Same.
18488         (ppl_set_coef): Same.
18489         (ppl_set_coef_tree): Same.
18490         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
18491         (build_scop_scattering): Same.
18492         (add_value_to_dim): Same.
18493         (scan_tree_for_params_right_scev): Same.
18494         (scan_tree_for_params_int): Same.
18495         (scan_tree_for_params): Same.
18496         (find_params_in_bb): Same.
18497         (find_scop_parameters): Same.
18498         (add_upper_bounds_from_estimated_nit): Same.
18499         (build_loop_iteration_domains): Same.
18500         (create_linear_expr_from_tree): Same.
18501         (add_condition_to_domain): Same.
18502         (pdr_add_memory_accesses): Same.
18503
18504 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
18505             Jason Merrill  <jason@redhat.com>
18506
18507         * c-common.c (c_common_reswords): Add nullptr.
18508         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
18509         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
18510         (gen_type_die_with_usage): Likewise.
18511         * dbxout.c (dbxout_type): Likewise.
18512         * sdbout.c (plain_type_1): Likewise.
18513
18514 2010-05-06  Jason Merrill  <jason@redhat.com>
18515
18516         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
18517         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
18518         ret appropriately.
18519         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
18520
18521         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
18522         stripping WITH_SIZE_EXPR.
18523         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
18524         change.
18525
18526 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18527
18528         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
18529         list of obsolete configurations.
18530         Disabled check for obsolete configurations.
18531         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
18532         Removed support for previous versions.
18533         * config/mips/iris.h: Removed.
18534         * config/mips/iris5.h: Removed.
18535         * config/mips/iris6.h: Merged old iris.h contents.
18536         (TARGET_IRIX): Removed.
18537         (DRIVER_SELF_SPECS): Removed mabi=32.
18538         (IDENT_ASM_OP): Removed undef.
18539         (STARTFILE_SPEC): Removed mabi=32.
18540         (ENDFILE_SPEC): Likewise.
18541         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
18542         (MACHINE_TYPE): Update for IRIX 6.5.
18543         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
18544         TARGET_IRIX by TARGET_IRIX6.
18545         (mips_file_start): Likewise.
18546         (mips_output_external): Remove IRIX 5/6 O32 support.
18547         (mips_output_function_prologue): Likewise.
18548         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
18549         TARGET_IRIX6.
18550         (TARGET_CPU_CPP_BUILTINS): Likewise.
18551         (TARGET_IRIX): Removed.
18552         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
18553         (MULTILIB_DIRNAMES): Removed 32.
18554         (MULTILIB_OSDIRNAMES): Removed ../lib.
18555         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
18556         (Specific, mips-sgi-irix5): Document removal.
18557         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
18558         Remove references to older IRIX 6 releases and the O32 ABI.
18559
18560 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
18561
18562         PR bootstrap/43994
18563         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
18564         instead of DF_REF_REAL_REG.
18565
18566 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18567
18568         PR target/43888
18569         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
18570         handling to still return true for x64 targets.
18571
18572 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
18573
18574         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
18575
18576 2010-05-06  Jan Hubicka  <jh@suse.cz>
18577
18578         PR tree-optimization/43791
18579         * ipa-inline.c (update_caller_keys): Remove bogus
18580         disregard_inline_limits check.
18581
18582 2010-05-06  Michael Matz  <matz@suse.de>
18583
18584         PR tree-optimization/43984
18585         * tree-ssa-pre.c (inserted_phi_names): Remove.
18586         (inserted_exprs): Change to bitmap.
18587         (create_expression_by_pieces): Set bits, don't append to vector.
18588         (insert_into_preds_of_block): Don't handle inserted_phi_names.
18589         (eliminate): Don't look at inserted_phi_names, remove deleted
18590         insns from inserted_exprs.
18591         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
18592         (init_pre, fini_pre): Allocate and free bitmaps.
18593         (execute_pre): Insert insns on edges before elimination.
18594
18595 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
18596
18597         * tree.c (initializer_zerop): Handle STRING_CST.
18598
18599 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18600
18601         PR 40989
18602         * doc/invoke.texi (Wimplicit): Document as C only.
18603         * opts.c (common_handle_option): Add argument kind.
18604         (handle_option): Rename as read_cmdline_option. Factor out code to...
18605         (handle_option): ... here. New.
18606         (handle_options): Rename as read_cmdline_options.
18607         (decode_options): Update call.
18608         (set_option): Use option index instead of option pointer. Classify
18609         diagnostics correctly.
18610         (enable_warning_as_error): Call handle_option.
18611         * opts.h (set_option): Update declaration.
18612         (handle_option): Declare.
18613         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
18614         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
18615         * c-opts.c (set_Wimplicit): Delete.
18616         (c_family_lang_mask): New static constant.
18617         (c_common_handle_option): Add argument kind. Use handle_option
18618         instead of set_Wimplicit.
18619         (c_common_post_options): warn_implicit and warn_implicit_int
18620         are disabled by default.
18621         * c-common.c (warn_implicit): Do not define here.
18622         * c-common.h (warn_implicit): Do not declare here.
18623         (c_common_handle_option): Update declaration.
18624         * lto-opts.c (lto_reissue_options): Update call to set_option.
18625
18626 2010-05-06  Richard Guenther  <rguenther@suse.de>
18627
18628         PR tree-optimization/43571
18629         * domwalk.c (walk_dominator_tree): Walk the dominator
18630         sons in more optimal order.
18631
18632 2010-05-06  Richard Guenther  <rguenther@suse.de>
18633
18634         PR tree-optimization/43934
18635         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
18636         (stmt_cost): Likewise.
18637         (extract_true_false_args_from_phi): New helper.
18638         (determine_max_movement): For PHI nodes verify we can hoist them
18639         and compute their cost.
18640         (determine_invariantness_stmt): Handle PHI nodes.
18641         (move_computations_stmt): Likewise.  Hoist PHI nodes in
18642         if-converted form using COND_EXPRs.
18643         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
18644         (tree_ssa_lim): Likewise.
18645         * tree-flow.h (tree_ssa_lim): Adjust prototype.
18646         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
18647
18648 2010-05-06  Richard Guenther  <rguenther@suse.de>
18649
18650         PR tree-optimization/43987
18651         * tree-ssa-structalias.c (could_have_pointers): For possibly
18652         address-taken variables force pointers to be recorded.
18653         (create_variable_info_for_1): Likewise.
18654         (push_fields_onto_fieldstack): Pass in wheter all fields
18655         must have pointers.
18656         (find_func_aliases): Query types instead of vars whether
18657         they contain pointers where appropriate.
18658
18659 2010-05-06  Jan Hubicka  <jh@suse.cz>
18660
18661         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
18662         (record_reference, mark_address, mark_load, mark_store): Record
18663         references.
18664         (record_references_in_initializer): Update call of record_references.
18665         (rebuild_cgraph_edges): Remove all references before rebuiding.
18666         * cgraph.c (cgraph_create_node): Clear ref list.
18667         (cgraph_remove_node): Remove references.
18668         (dump_cgraph_node): Dump references.
18669         (cgraph_clone_node): Clone references.
18670         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
18671         (struct cgraph_node, varpool_node): Add ref_lst.
18672         * ipa-ref.c: New file.
18673         * ipa-ref.h: New file.
18674         * ipa-ref-inline.h: New file.
18675         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
18676         (referenced_from_other_partition_p): New function.
18677         (lto_output_varpool_node): Take set arugment; call
18678         referenced_from_other_partition.
18679         (lto_output_ref): New.
18680         (add_references): New.
18681         (output_refs): New.
18682         (output_cgraph): Compute boundary based on references; output refs.
18683         (output_varpool): Accept cgraph_node_set argument.
18684         (input_ref): New.
18685         (input_refs): New.
18686         (input_cgraph): Call input_refs.
18687         * lto-section-in.c (lto_section_name): Add refs.
18688         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
18689         (ipa-ref.o): New file.
18690         * varpool.c (varpool_node): Clear ipa ref list.
18691         (varpool_remove_node): Remove references.
18692         (dump_varpool_node): Dump references.
18693         (varpool_assemble_decl): Only compile finalized ones.
18694         (varpool_extra_name_alias): Initialize ref list.
18695         * lto-streamer.c (lto-get_section_name): Add .refs section.
18696         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
18697         (referenced_from_other_partition_p): Declared.
18698
18699 2010-05-06  Ira Rosen  <irar@il.ibm.com>
18700
18701         PR tree-optimization/43901
18702         * tree-vect-stmts.c (vectorizable_call): Assert that vector
18703         type is not NULL if it's transformation phase, and return
18704         FALSE if it's analysis.
18705         (vectorizable_conversion, vectorizable_operation,
18706         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
18707
18708 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
18709
18710         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
18711         Delete.
18712         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
18713         New define.
18714         * config/mips/mips-protos.h
18715         (mips_small_register_classes_for_mode_p): Delete prototype.
18716
18717 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
18718
18719         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
18720         * config/arm/arm.c (multiple_operation_profitable_p,
18721         compute_offset_order): New static functions.
18722         (load_multiple_sequence, store_multiple_sequence): Use them.
18723         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
18724         memory offsets, not register numbers.
18725         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
18726
18727 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
18728
18729         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
18730         (get_pending_sizes, put_pending_size, put_pending_sizes):
18731         Update the uses of pending_sizes.
18732         * c-decl.c (store_parm_decls): Likewise.
18733         * c-tree.h (struct c_arg_info): Likewise.
18734         * tree.h: Update the prototype for get_pending_sizes and
18735         put_pending_sizes.
18736
18737 2010-05-05  Jason Merrill  <jason@redhat.com>
18738
18739         PR debug/43370
18740         * c-common.c (handle_aligned_attribute): Respect
18741         ATTR_FLAG_TYPE_IN_PLACE.
18742
18743         PR testsuite/43758
18744         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
18745         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18746         (TARGET_INITIALIZER): Use it.
18747         * c-common.c (attribute_takes_identifier_p): Call it.
18748         * c-common.h: Update prototype.
18749         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
18750         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18751
18752 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
18753
18754         PR debug/43950
18755         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
18756         DW_ID_down_case for Fortran compilation units.
18757
18758 2010-05-05  Jan Hubicka  <jh@suse.cz>
18759
18760         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
18761         handle aliases.
18762
18763 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18764
18765         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
18766         a variable-sized RESULT_DECL.
18767
18768 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
18769
18770         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
18771
18772 2010-05-05  Jason Merrill  <jason@redhat.com>
18773
18774         PR c++/43787
18775         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
18776         returns GS_OK.
18777         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
18778
18779 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
18780             Jakub Jelinek  <jakub@redhat.com>
18781
18782         PR debug/43478
18783         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
18784         (dead_debug_init, dead_debug_finish): New functions.
18785         (dead_debug_add, dead_debug_insert_before): Likewise.
18786         (df_note_bb_compute): Initialize a dead_debug object, add dead
18787         debug uses to it, insert debug bind insns before death insns,
18788         reset debug insns that refer to pending uses at the end.
18789         * rtl.h (make_debug_expr_from_rtl): New prototype.
18790         * varasm.c (make_debug_expr_from_rtl): New function.
18791
18792 2010-05-05  Jan Hubicka  <jh@suse.cz>
18793
18794         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
18795         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
18796         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
18797         lto_varpool_encoder_deref, lto_varpool_encoder_size,
18798         lto_varpool_encoder_encode_initializer_p,
18799         lto_set_varpool_encoder_encode_initializer): New functions.
18800         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
18801         call output_varpool.
18802         (input_varpool_node): Do not always set analyzed.
18803         (input_cgraph_1): Return vector of cgraph nodes.
18804         (input_varpool_1): Return vector of varpools.
18805         (input_cgraph): Free the vectors.
18806         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18807         output only initializers needed.
18808         (lto_output): Only call output_cgraph.
18809         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
18810         * lto-section-out.c (lto_new_out_decl_state): Initialize
18811         state->varpool_node_encoder.
18812         * lto-streamer.h (lto_varpool_encoder_d): New.
18813         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
18814         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
18815         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
18816         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
18817         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
18818         Declare.
18819         (output_varpool, input_varpool): Remove declarations.
18820
18821 2010-05-05  Jan Hubicka  <jh@suse.cz>
18822
18823         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
18824         with body can prevail.
18825
18826 2010-05-05  Jan Hubicka  <jh@suse.cz>
18827
18828         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
18829         size.
18830
18831 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18832
18833         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
18834
18835         * gengtype.h (erro_at_line): Constify pos argument.
18836
18837         * gengtype.c: Include hashtab.h.
18838         (enum gc_used): Document GC_MAYBE_POINTED_TO.
18839         (error_at_line): Constify pos argument.
18840         (do_typedef): Initialize p->opt field.
18841         (get_file_gtfilename): Fix comment typo.
18842         (struct walk_type_data): Constify line field.
18843         (get_output_file_for_structure): New function.
18844         (write_local_func_for_structure): Constify orig_s argument.
18845         Use get_output_file_for_structure.
18846         (write_func_for_structure): Use get_output_file_for_structure.
18847         (INDENT): New define.
18848         (dump_pair, dump_type, dump_type_list, dump_typekind)
18849         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
18850         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
18851         functions.
18852         (seen_types): New variable.
18853         (main): New variable do_dump.  Process "-d" command line option.
18854         Call dump_everything if dump requested.
18855
18856 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
18857
18858         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
18859         in a temporary instead of invoking the macro multiple times.
18860         (track_expr_p): Likewise.
18861
18862 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
18863
18864         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
18865         per new semantics.
18866         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
18867         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
18868         conditions for printing notes.
18869         * common.opt (-Wcoverage-mismatch): Allow negative, default to
18870         true, update documentation.
18871         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
18872
18873 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
18874
18875         PR c/43981
18876         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
18877         on dimen.
18878
18879 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18880
18881         PR target/43799
18882         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
18883         (*sse_prologue_save_insn1): Likewise.
18884         (SSE prologue save splitter): Likewise.
18885
18886 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18887
18888         * tree.c (free_lang_data_in_one_sizepos): New inline function.
18889         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
18890         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
18891         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
18892         all decls.  Call it on DECL_FIELD_OFFSET of fields.
18893         (find_decls_types_r): Follow DECL_VALUE_EXPR.
18894         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
18895
18896 2010-05-04  Martin Jambor  <mjambor@suse.cz>
18897
18898         * tree-sra.c (build_access_from_expr_1): The first parameter type
18899         changed to simple tree.
18900         (build_access_from_expr): Likewise, gsi parameter was eliminated.
18901         (scan_assign_result): Renamed to assignment_mod_result, enum elements
18902         renamed as well.
18903         (build_accesses_from_assign): Removed all parameters except for a
18904         simple gimple statement.  Now returns a simple bool.
18905         (scan_function): All non-analysis parts moved to separate functions
18906         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
18907         parameters and updated both callers.
18908         (sra_modify_expr): Removed parameter data.
18909         (sra_modify_function_body): New function.
18910         (perform_intra_sra): Call sra_modify_function_body to modify the
18911         function body.
18912         (replace_removed_params_ssa_names): Parameter data changed into
18913         adjustments vector.
18914         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
18915         changed the parameter dont_convert to convert with the opposite
18916         meaning.
18917         (sra_ipa_modify_assign): Parameter data changed into adjustments
18918         vector, return value changed to bool.
18919         (ipa_sra_modify_function_body): New function.
18920         (sra_ipa_reset_debug_stmts): Updated a comment.
18921         (modify_function): Use ipa_sra_modify_function_body to modify function
18922         body.
18923
18924 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18925
18926         PR middle-end/43671
18927         * alias.c (true_dependence): Handle the same VALUE in x and mem.
18928         (canon_true_dependence): Likewise.
18929         (write_dependence_p): Likewise.
18930
18931 2010-05-04  Jan Hubicka  <jh@suse.cz>
18932
18933         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
18934         * cgraphbuild.c: Include ipa-utils.h
18935         (record_reference_ctx): New struct.
18936         (record_reference): Simplify to work on initializers; not statements.
18937         (mark_address, mark_load, mark_store): New.
18938         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
18939         walk PHI nodes too.
18940         (record_references_in_initializer): Update use of record_reference.
18941         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
18942         walk PHI nodes too.
18943
18944 2010-05-04  Jan Hubicka  <jh@suse.cz>
18945
18946         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
18947         node will be removed anyway.
18948         (lto_varpool_replace_node): Allow also unanalyzed nodes;
18949         relink aliases of node into prevailing node.
18950         * varpool.c (varpool_remove_node): Remove aliases properly;
18951         when removing node, remove all its aliases too; remove DECL_INITIAL
18952         of removed node; ggc_free the varpool node.
18953
18954 2010-05-04  Richard Guenther  <rguenther@suse.de>
18955
18956         PR tree-optimization/43879
18957         * tree-ssa-structalias.c (alias_get_name): Use
18958         DECL_ASSEMBLER_NAME if available.
18959         (create_function_info_for): Return the varinfo node.
18960         (ipa_pta_execute): Associate same-body aliases and extra names
18961         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
18962
18963 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
18964
18965         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
18966
18967 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
18968
18969         PR bootstrap/43964
18970         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
18971         only if HONOR_REG_ALLOC_ORDER is not defined.
18972
18973 2010-05-04  Richard Guenther  <rguenther@suse.de>
18974
18975         PR tree-optimization/43949
18976         * tree-vrp.c (extract_range_from_binary_expr): Only handle
18977         TRUNC_MOD_EXPR.
18978
18979 2010-04-26  Jason Merrill  <jason@redhat.com>
18980
18981         * c.opt (-fstrict-enums): New.
18982         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
18983
18984 2010-05-03  David Ung  <davidu@mips.com>
18985             James E. Wilson  <wilson@codesourcery.com>
18986
18987         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
18988         emit the trap instruction before the divide for TUNE_74K.
18989
18990 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
18991
18992         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
18993         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
18994         based on the above, for new target hook.
18995
18996         * hooks.c (hook_bool_mode_true): New generic hook.
18997         * hooks.h (hook_bool_mode_true): Add prototype.
18998
18999         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
19000         target hook.
19001         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
19002         target hook, set to hook_bool_mode_false.
19003         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
19004         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
19005         with targetm.small_register_classes_for_mode_p.
19006         (find_reusable_reload): Likewise.
19007         (combine_reloads): Likewise.
19008         * reload1.c (reload_as_needed): Likewise.
19009         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
19010         * ifcvt.c (noce_process_if_block, check_cond_move_block,
19011         dead_or_predicable): Likewise.
19012         * regmove.c (optimize_reg_copy_1): Likewise.
19013         * calls.c (prepare_call_address): Likewise.
19014         (precompute_register_parameters): Likewise.
19015
19016         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
19017         hook definition.
19018         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
19019         implementation of the hook that considers all register classes
19020         small except for SH64.
19021         (sh_override_options): Use the new hook.
19022         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
19023         Add prototype.
19024
19025         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
19026         hook definition.
19027         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
19028         implementation of the hook that considers all register classes
19029         small for THUMB1.
19030         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
19031         Add prototype.
19032
19033         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
19034         hook definition.
19035         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
19036         implementation of the hook that considers all register classes
19037         small for MIPS16.
19038         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
19039         Add prototype.
19040
19041         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
19042         hook definition.
19043         * config/m32c/m32c.h: Likewise.
19044         * config/pdp11/pdp11.h: Likewise.
19045         * config/avr/avr.h: Likewise.
19046         * config/xtensa/xtensa.h: Likewise.
19047         * config/m68hc11/m68hc11.h: Likewise.
19048         * config/mn10300/mn10300.h: Likewise.
19049         * config/mcore/mcore.h: Likewise.
19050         * config/h8300/h8300.h: Likewise.
19051         * config/bfin/bfin.h: Likewise.
19052
19053         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
19054         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
19055
19056 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
19057
19058         * double-int.h (tree_to_double_int): Remove macro.
19059         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
19060         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
19061         (tree_to_double_int): New function.
19062         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
19063         Move ...
19064         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
19065
19066 2010-05-03  Richard Guenther  <rguenther@suse.de>
19067
19068         PR tree-optimization/43971
19069         * tree-ssa-structalias.c (get_constraint_for_1): Fix
19070         constraints in the !flag_delete_null_pointer_checks case.
19071
19072 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
19073
19074         PR debug/43972
19075         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
19076         result mode matches original rtl mode.
19077
19078 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
19079
19080         PR target/43888
19081         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
19082
19083 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
19084
19085         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
19086         when processing flag options.
19087
19088 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
19089
19090         * gcov-iov.c (main): Change format string placeholder
19091         from %#08x to 0x%08x.
19092         * genchecksum.c (dosum): Change format string placeholder
19093         from %#02x to 0x%02x.
19094
19095 2010-05-02  Richard Guenther  <rguenther@suse.de>
19096
19097         PR tree-optimization/43879
19098         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
19099
19100 2010-05-02  Bruno Haible  <bruno@clisp.org>
19101
19102         * doc/extend.texi (Function Attributes): Fix a typo.
19103
19104 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
19105
19106         Revert:
19107         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
19108         placeholder from 0x%x to %#x.
19109         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
19110         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
19111         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
19112         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
19113         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
19114         * config/i386/i386.c (ix86_target_string): Ditto.
19115         * config/i386/i386.c (output_pic_addr_const): Ditto.
19116         (print_operand): Ditto.
19117
19118 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
19119
19120         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
19121         placeholder from 0x%x to %#x.
19122         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
19123         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
19124         (ASM_OUTPUT_DEBUG_DATA): Ditto.
19125         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
19126         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
19127         * optc-gen.awk: Ditto.
19128         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
19129         (HOST_WIDE_INT_PRINT_HEX): Ditto.
19130         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
19131         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
19132
19133 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
19134
19135         * target.h (struct calls): Add function_value_regno_p field.
19136         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
19137         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
19138         * targhooks.c (default_function_value_regno_p): New function.
19139         * targhooks.h (default_function_value_regno_p): Declare function.
19140         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
19141         * builtins.c. (apply_result_size): (Ditto.).
19142         * combine.c. (likely_spilled_retval_p): (Ditto.).
19143         * mode-switching.c. Include 'target.h'.
19144         (create_pre_exit): Use function_value_regno_p hook.
19145         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
19146         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
19147         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
19148
19149         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
19150         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
19151         (ix86_function_value_regno_p): Declare as static, change argument
19152         type to const unsigned int.
19153         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
19154
19155 2010-05-01  Richard Guenther  <rguenther@suse.de>
19156
19157         PR tree-optimization/43949
19158         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
19159         types.
19160         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
19161
19162 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
19163
19164         * rtl.h (CONST_DOUBLE_P): Define.
19165         (rtx_to_double_int): Declare.
19166         * emit-rtl.c (rtx_to_double_int): New function.
19167         * dwarf2out.c (insert_double): New function.
19168         (loc_descriptor, add_const_value_attribute): Clean up, use
19169         rtx_to_double_int and insert_double functions.
19170
19171 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
19172
19173         * doc/extend.texi (Inline): Add missing return keyword to examples.
19174         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
19175         "command-line".
19176
19177 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
19178
19179         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
19180         the variable part of the offset as well.  Use highest_pow2_factor for
19181         all alignment checks.
19182
19183 2010-04-30  Richard Guenther  <rguenther@suse.de>
19184
19185         PR tree-optimization/43879
19186         * tree-ssa-structalias.c (type_could_have_pointers): Functions
19187         can have pointers.
19188
19189 2010-04-30  Jan Hubicka  <jh@suse.cz>
19190
19191         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
19192         varpool.
19193         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
19194
19195 2010-04-30  Jan Hubicka  <jh@suse.cz>
19196
19197         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
19198         New.
19199         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
19200         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
19201         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
19202         cgraph_node_set_needs_ltrans_p): Remove.
19203
19204 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
19205
19206         * sdbout.c: Include vec.h, do not include varray.h.
19207         (deferred_global_decls, sdbout_global_decl,
19208         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
19209         * toplev.c: Do not include varray.h.
19210         (dump_memory_report): Do not dump VARRAY statistics.
19211         * gengtype.c (open_base_file): Ignore varray.h.
19212         * Makefile.in: Update for abovementioned changes.
19213         Remove all traces of varray.c and varray.h.
19214         * varray.c: Remove file.
19215         * varray.h: Remove file.
19216
19217 2010-04-30  Jan Hubicka  <jh@suse.cz>
19218
19219         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
19220         references.
19221
19222 2010-04-30  Jan Hubicka  <jh@suse.cz>
19223
19224         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
19225         needed.
19226
19227 2010-04-30  Richard Guenther  <rguenther@suse.de>
19228
19229         * tree-ssa-structalias.c (get_constraint_for_1): Generate
19230         constraints for CONSTRUCTOR.
19231
19232 2010-04-30  Richard Guenther  <rguenther@suse.de>
19233
19234         PR lto/43946
19235         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
19236         first after all lowering passes.
19237
19238 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
19239
19240         * toplev.c: Include varray.h for statistics dumping.
19241         * tree.h: Do not declare varray_head_tag.
19242         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
19243         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
19244         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
19245         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
19246         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
19247         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
19248         c-common.c, c-common.h, reg-stack.c, basic-block.h,
19249         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
19250         include varray.h.
19251         * Makefile.in: Update for abovementioned changes.
19252
19253 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
19254
19255         PR debug/43942
19256         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
19257
19258 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
19259
19260         * config/picochip/picochip.c (picochip_legitimize_address): Define.
19261         Use this function to do machine-specific conversion.
19262         (picochip_legitimize_reload_address): Likewise.
19263         (picochip_legitimate_address_p): Check valid base register only if
19264         strict.
19265         (picochip_check_conditional_copy): Check for modw only if opnd is
19266         register.
19267         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
19268         to call the function in c.
19269         * config/picochip/picochip-protos.h
19270         (picochip_legitimize_reload_address): Define.
19271         * config/picochip/picochip.md (supported_compare1): Define.
19272
19273 2010-04-30  Jan Hubicka  <jh@suse.cz>
19274
19275         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
19276         (cgraph_global_info): Remove inlined.
19277         (LTO_cgraph_tag_names): Remove.
19278         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
19279         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
19280         simplify cgraph tags and document.
19281         (lto_output_node): Use only LTO_cgraph_unavail_node and
19282         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
19283         for_functions_valid, global info, process and output flags.
19284         (input_overwrite_node): Initialize estimated stack size and
19285         estimated growth.  Do not read flags we no longer store.
19286         (input_node): Likewise do not read info no longer stored.
19287         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
19288         flag.
19289
19290 2010-04-30  Richard Guenther  <rguenther@suse.de>
19291
19292         PR tree-optimization/43879
19293         * tree-ssa-structalias.c (get_constraint_for_1): Properly
19294         handle non-zero initializers.
19295
19296 2010-04-30  Richard Guenther  <rguenther@suse.de>
19297
19298         * builtins.c (fold_builtin_1): Delete free (0).
19299
19300 2010-04-29  Jan Hubicka  <jh@suse.cz>
19301
19302         * gengtype.c (open_base_files): Add lto-streamer.h
19303         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
19304         (pass_ipa_cp): GGC collect.
19305         * toplev. (compile_file): Do not output symbols.
19306         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
19307         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
19308         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
19309         * lto-section-in.c: Include ggc.h
19310         (lto_new_in_decl_state): Alloc in GGC.
19311         (lto_delete_in_decl_state): Likewise.
19312         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
19313         Collect.
19314
19315 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
19316
19317         PR target/42895
19318         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
19319         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
19320         (HONOR_REG_ALLOC_ORDER): Describe new macro.
19321         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
19322         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
19323         account only if HONOR_REG_ALLOC_ORDER is not defined.
19324         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
19325         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
19326
19327 2010-04-29  Jon Grant  <04@jguk.org>
19328
19329         * collect2.c (vflag): Change type from int to bool.
19330         (debug): Likewise.
19331         (helpflag): New global bool.
19332         (main): Set vflag and debug with boolean, not integer truth values.
19333         Accept new "--help" option and output usage text if found.
19334         * collect2.h (vflag): Update prototype.
19335         (debug): Likewise.
19336
19337 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
19338
19339         PR bootstrap/43936
19340         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
19341
19342 2010-04-29  Richard Guenther  <rguenther@suse.de>
19343
19344         PR bootstrap/43935
19345         * plugin.h (invoke_plugin_callbacks): Annotate arguments
19346         with ATTRIBUTE_UNUSED.
19347
19348 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
19349
19350         PR target/43921
19351         * config/i386/i386.c (get_some_local_dynamic_name): Replace
19352         INSN_P with NONDEBUG_INSN_P.
19353         (distance_non_agu_define): Likewise.
19354         (distance_agu_use): Likewise.
19355
19356 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
19357
19358         From Dominique d'Humieres  <dominiq@lps.ens.fr>
19359         PR bootstrap/43858
19360         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
19361         test_set.
19362
19363 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
19364
19365         * plugin.h (invoke_plugin_callbacks): New inline function.
19366         * plugin.c (flag_plugin_added): New global flag.
19367         (add_new_plugin): Initialize above flag.
19368         (invoke_plugin_callbacks): Rename to ...
19369         (invoke_plugin_callbacks_full): ... this.
19370
19371 2010-04-28  Jan Hubicka  <jh@suse.cz>
19372
19373         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
19374         (lto_varpool_replace_node): New.
19375         (lto_symtab_resolve_symbols): Resolve varpool nodes.
19376         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
19377         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
19378         * cgraph.h (varpool_node_ptr): New type.
19379         (varpool_node_ptr): New vector.
19380         (varpool_node_set_def): New structure.
19381         (varpool_node_set): New type.
19382         (varpool_node_set): New vector.
19383         (varpool_node_set_element_def): New structure.
19384         (varpool_node_set_element, const_varpool_node_set_element): New types.
19385         (varpool_node_set_iterator): New type.
19386         (varpool_node): Add prev pointers, add used_from_other_partition,
19387         in_other_partition.
19388         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
19389         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
19390         varpool_get_node, varpool_remove_node): Declare.
19391         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
19392         varpool_node_set_size): New inlines.
19393         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
19394         * tree-pass.h (varpool_node_set_def): Forward declare.
19395         (ipa_opt_pass_d): Summary writting takes vnode sets too.
19396         (ipa_write_optimization_summaries): Update prototype.
19397         * ipa-cp.c (ipcp_write_summary): Update.
19398         * ipa-reference.c (ipa_reference_write_summary): Update.
19399         * lto-cgraph.c (lto_output_varpool_node): New static function.
19400         (output_varpool): New function.
19401         (input_varpool_node): New static function.
19402         (input_varpool_1): New function.
19403         (input_cgraph): Input varpool.
19404         * ipa-pure-const.c (pure_const_write_summary): Update.
19405         * lto-streamer-out.c (lto_output): Update, output varpool too.
19406         (write_global_stream): Kill WPA hack.
19407         (produce_asm_for_decls): Update.
19408         (output_alias_pair_p): Handle variables.
19409         (output_unreferenced_globals): Output only needed partition of varpool.
19410         * ipa-inline.c (inline_write_summary): Update.
19411         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
19412         cgraph.
19413         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
19414         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
19415         varpool_node_set_new, varpool_node_set_add,
19416         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
19417         debug_varpool_node_set): New functions.
19418         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
19419         (execute_one_pass): Process new decls too.
19420         (ipa_write_summaries_2): Pass around vsets.
19421         (ipa_write_summaries_1): Likewise.
19422         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
19423         to add.
19424         (ipa_write_optimization_summaries_1): Pass around vsets.
19425         (ipa_write_optimization_summaries): Likewise.
19426         * varpool.c (varpool_get_node): New.
19427         (varpool_node): Update doubly linked lists.
19428         (varpool_remove_node): New.
19429         (dump_varpool_node): More dumping.
19430         (varpool_enqueue_needed_node): Update doubly linked lists.
19431         (decide_is_variable_needed): Kill ltrans hack.
19432         (varpool_finalize_decl): Kill lto hack.
19433         (varpool_assemble_decl): Skip decls in other partitions.
19434         (varpool_assemble_pending_decls): Update doubly linkes lists.
19435         (varpool_empty_needed_queue): Likewise.
19436         (varpool_extra_name_alias): Likewise.
19437         * lto-streamer.c (lto_get_section_name): Add vars section.
19438         * lto-streamer.h (lto_section_type): Update.
19439         (output_varpool, input_varpool): Declare.
19440
19441 2010-04-28  Mike Stump  <mikestump@comcast.net>
19442
19443         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
19444
19445 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19446
19447         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
19448         record or union type with RECORD_OR_UNION_TYPE_P predicate.
19449         (lto_input_ts_type_tree_pointers): Likewise.
19450         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
19451         (lto_output_ts_type_tree_pointers): Likewise.
19452
19453 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19454
19455         Uniquization of constants at the Tree level
19456         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
19457         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
19458         bit to the end.
19459         (tree_output_constant_def): Declare.
19460         * gimplify.c (gimplify_init_constructor): When using block copy, first
19461         uniquize the constant constructor on the RHS.
19462         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
19463         DECL_IN_CONSTANT_POOL flag.
19464         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
19465         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
19466         constant pool.
19467         (assemble_variable): Deal with symbols belonging to the tree constant
19468         pool.
19469         (get_constant_section): Add ALIGN parameter and simplify.
19470         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
19471         (assemble_constant_contents): Use the expression of the VAR_DECL.
19472         (output_constant_def_contents): Use the alignment of the VAR_DECL.
19473         (tree_output_constant_def): New global function.
19474         (mark_constant): Use the expression of the VAR_DECL.
19475         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
19476         its expression.
19477         (output_object_block): Likewise and assemble the expression.
19478
19479 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19480
19481         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
19482         hash_tree, eq_tree): New tree hash table.
19483         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
19484         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
19485         lto_orig_address_remove): Reimplement.
19486
19487 2010-04-28  Xinliang David Li  <davidxl@google.com>
19488
19489         PR c/42643
19490         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
19491         (compute_uninit_opnds_pos): New function.
19492         (is_non_loop_exit_postdominating): New function.
19493         (compute_control_dep_chain): New function.
19494         (find_pdom): New function.
19495         (convert_control_dep_chain_into_preds): New function.
19496         (find_predicates): New function.
19497         (find_control_equiv_block): New function.
19498         (collect_phi_def_edges): New function.
19499         (find_def_preds): New function.
19500         (find_dom): New function.
19501         (dump_predicates): New function.
19502         (get_cmp_code): New function.
19503         (is_value_included_in): New function.
19504         (find_matching_predicate_in_rest_chains): New function.
19505         (use_pred_not_overlap_with_undef_path_pred): New function.
19506         (is_use_properly_guarded): New function.
19507         (normalize_cond_1): New function.
19508         (is_and_or_or): New function.
19509         (normalize_cond): New function.
19510         (is_gcond_subset_of): New function.
19511         (is_subset_of_any): New function.
19512         (is_or_set_subset_of): New function.
19513         (is_and_set_subset_of): New function.
19514         (is_norm_cond_subset_of): New function.
19515         (is_pred_expr_subset_of): New function.
19516         (is_pred_chain_subset_of): New function.
19517         (is_included_in): New function.
19518         (is_superset_of): New function.
19519         (find_uninit_use): New function.
19520         (warn_uninitialized_phi): New function.
19521         (compute_possibly_undefined_names): New function.
19522         (ssa_undefined_value_p): New function.
19523         (execute_late_warn_uninitialized): New function.
19524         * tree-ssa.c (ssa_undefined_value_p): Removed.
19525         (warn_uninit): Changed to extern.
19526         (warn_uninitialized_phi): Removed.
19527         (warn_uninitialized_vars): Changed to extern.
19528         (execute_late_warn_uninitialized): Removed
19529         * tree-flow.h: Add new prototypes.
19530         * timevar.def: Add new time variable.
19531         * Makefile.in: Add new build file.
19532
19533 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
19534
19535         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
19536         type if available.
19537
19538 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19539
19540         PR target/22224
19541         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
19542
19543 2010-04-28  Martin Jambor  <mjambor@suse.cz>
19544
19545         * cgraph.h (struct cgraph_node): New field indirect_calls.
19546         (struct cgraph_indirect_call_info): New type.
19547         (struct cgraph_edge): Removed field indirect_call. New fields
19548         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
19549         (cgraph_create_indirect_edge): Declare.
19550         (cgraph_make_edge_direct): Likewise.
19551         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
19552         * ipa-prop.h (struct ipa_param_call_note): Removed.
19553         (struct ipa_node_params): Removed field param_calls.
19554         (ipa_create_all_structures_for_iinln): Declare.
19555         * cgraph.c: Described indirect edges and uids in initial comment.
19556         (cgraph_add_edge_to_call_site_hash): New function.
19557         (cgraph_edge): Search also among the indirect edges, use
19558         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
19559         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
19560         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
19561         site hash.
19562         (initialize_inline_failed): Assign a reason to indirect edges.
19563         (cgraph_create_edge_1): New function.
19564         (cgraph_create_edge): Moved some functionality to
19565         cgraph_create_edge_1.
19566         (cgraph_create_indirect_edge): New function.
19567         (cgraph_edge_remove_callee): Add an assert checking for
19568         non-indirectness.
19569         (cgraph_edge_remove_caller): Special-case indirect edges.
19570         (cgraph_remove_edge): Likewise.
19571         (cgraph_set_edge_callee): New function.
19572         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
19573         (cgraph_make_edge_direct): New function.
19574         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
19575         the declaration of the call statement matches.
19576         (cgraph_node_remove_callees): Special-case indirect edges.
19577         (cgraph_clone_edge): Likewise.
19578         (cgraph_clone_node): Clone also the indirect edges.
19579         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
19580         indirect_call, dump count of indirect_calls edges.
19581         * ipa-prop.c (iinlining_processed_edges): New variable.
19582         (ipa_note_param_call): Create indirect edges instead of
19583         creating notes.  New parameter node.
19584         (ipa_analyze_call_uses): New parameter node, pass it on to
19585         ipa_note_param_call.
19586         (ipa_analyze_stmt_uses): Likewise.
19587         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
19588         (print_edge_addition_message): Work on edges rather than on notes.
19589         (update_call_notes_after_inlining): Likewise, renamed to
19590         update_indirect_edges_after_inlining.
19591         (ipa_create_all_structures_for_iinln): New function.
19592         (ipa_free_node_params_substructures): Do not free notes.
19593         (ipa_edge_duplication_hook): Propagate bits within
19594         iinlining_processed_edges bitmap.
19595         (ipa_node_duplication_hook): Do not duplicate notes.
19596         (free_all_ipa_structures_after_ipa_cp): Renamed to
19597         ipa_free_all_structures_after_ipa_cp.
19598         (free_all_ipa_structures_after_iinln): Renamed to
19599         ipa_free_all_structures_after_iinln.
19600         (ipa_write_param_call_note): Removed.
19601         (ipa_read_param_call_note): Removed.
19602         (ipa_write_indirect_edge_info): New function.
19603         (ipa_read_indirect_edge_info): Likewise.
19604         (ipa_write_node_info): Do not stream notes, do stream information
19605         in indirect edges.
19606         (ipa_read_node_info): Likewise.
19607         (lto_ipa_fixup_call_notes): Removed.
19608         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
19609         * ipa-inline.c (pass_ipa_inline): Likewise.
19610         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
19611         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
19612         * tree-inline.c (copy_bb): Removed an unnecessary double check for
19613         is_gimple_call.
19614         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
19615         edges.
19616         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
19617         (output_cgraph): Stream also indirect edges.
19618         (lto_output_edge): Added capability to stream indirect edges.
19619         (input_edge): Likewise.
19620         (input_cgraph_1): Likewise.
19621         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
19622         of indirect edges.
19623
19624 2010-04-28  Richard Guenther  <rguenther@suse.de>
19625
19626         PR tree-optimization/43879
19627         PR tree-optimization/43909
19628         * tree-ssa-structalias.c (struct variable_info): Add
19629         only_restrict_pointers flag.
19630         (new_var_info): Initialize it.  Increment stats.total_vars here.
19631         (create_function_info_for): Do not increment stats.total_vars here.
19632         (get_function_part_constraint): Fix build with C++.
19633         (insert_into_field_list): Remove.
19634         (push_fields_onto_fieldstack): Properly merge fields.
19635         (create_variable_info_for): Split and simplify.
19636         (create_variable_info_for_1): New piece.
19637         (intra_create_variable_infos): Properly make restrict constraints
19638         from parameters.
19639
19640 2010-04-28  Richard Guenther  <rguenther@suse.de>
19641
19642         PR c++/43880
19643         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
19644
19645 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19646             Jan Hubicka  <hubicka@ucw.cz>
19647
19648         * doc/invoke.texi (-Wsuggest-attribute=const,
19649         -Wsuggest-attribute=pure): Document.
19650         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
19651         (function_always_visible_to_compiler_p,
19652         suggest_attribute, warn_function_pure, warn_function_const):
19653         New functions.
19654         (check_call): Improve debug info.
19655         (analyze_function): Do not check availability.
19656         (add_new_function): Check availability.
19657         (propagate): Output warnings.
19658         (skip_function_for_local_pure_const): New function.
19659         (local_pure_const): Use it; output warnings.
19660         * common.opt (Wsuggest-attribute=const,
19661         Wsuggest-attribute=pure): New.
19662
19663 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
19664
19665         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
19666         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
19667         or DW_CFA_def_cfa_offset{,_sf}.
19668
19669 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19670
19671         * tree.h: Fix truncated long macros.
19672
19673 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
19674
19675         * collect2.c (TARGET_64BIT): Redefine to target's default.
19676         * tlink.c: Likewise.
19677         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
19678         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
19679         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
19680         for underscoring __USER_LABEL_PREFIX__.
19681         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
19682         (SUB_LINK_ENTRY32): New.
19683         (SUB_LINK_ENTRY64): New.
19684         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
19685         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
19686         (SUB_LINK_ENTRY64): New.
19687         (SUB_LINK_ENTRY): New.
19688         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
19689         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
19690         x64 target is choosen.
19691         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
19692         * configure: Regenerated.
19693         * configure.ac (leading-mingw64-underscores): Option added.
19694
19695 2010-04-27  Jan Hubicka  <jh@suse.cz>
19696
19697         * doc/invoke.texi (-fipa-profile): Document.
19698         * opts.c (decode_options): Enable ipa-profile at -O1.
19699         * timevar.def (TV_IPA_PROFILE): Define.
19700         * common.opt (fipa-profile): Add.
19701         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
19702         flag for clones.
19703         (cgraph_propagate_frequency): Handle only local ones.
19704         * tree-pass.h (pass_ipa_profile): Declare.
19705         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
19706         (pass_ipa_profile): Use TV_IPA_PROFILE.
19707         * ipa.c (ipa_profile): New function.
19708         (gate_ipa_profile): Likewise.
19709         (pass_ipa_profile): New global variable.
19710         * passes.c (pass_ipa_profile): New.
19711
19712 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
19713
19714         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
19715
19716 2010-04-27  Martin Jambor  <mjambor@suse.cz>
19717
19718         PR middle-end/43812
19719         * ipa.c (dissolve_same_comdat_group_list): New function.
19720         (function_and_variable_visibility): Call
19721         dissolve_same_comdat_group_list when comdat group contains external or
19722         newly local nodes.
19723         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
19724         lists are circular and that they contain only DECL_ONE_ONLY nodes.
19725
19726 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19727
19728         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
19729         (const_hash_1) <VECTOR_CST>: New case.
19730         (compare_constant) <VECTOR_CST>: Likewise.
19731         <ADDR_EXPR>: Deal with LABEL_REFs.
19732         (copy_constant) <VECTOR_CST>: New case.
19733
19734 2010-04-27  Jan Hubicka  <jh@suse.cz>
19735
19736         * cgraph.c (cgraph_propagate_frequency): New function.
19737         * cgraph.h (cgraph_propagate_frequency): Declare.
19738         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
19739         cgraph_propagate_frequency.
19740
19741 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
19742
19743         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
19744
19745 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
19746
19747         PR target/40657
19748         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
19749         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
19750         here to determine which regs to push and how much stack to reserve.
19751
19752 2010-04-27  Jie Zhang  <jie@codesourcery.com>
19753
19754         * doc/gimple.texi (gimple_statement_with_ops): Remove
19755         addresses_taken field.
19756         (gimple_statement_with_memory_ops): Likewise.
19757
19758 2010-04-27  Jan Hubicka  <jh@suse.cz>
19759
19760         * tree-inline.c (eni_inlining_weights): Remove.
19761         (estimate_num_insns): Special case more builtins.
19762
19763 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
19764
19765         PR c/32207
19766         * c-typeck.c (build_binary_op): Move forward check for comparison
19767         pointer with null pointer constant and adjust the diagnostic message.
19768
19769 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
19770
19771         PR lto/42776
19772         * configure.ac (gcc_cv_as_section_has_align): Set if installed
19773         binutils supports extended .section directive needed by LTO, or
19774         warn if older binutils found.
19775         (LTO_BINARY_READER): New AC_SUBST'd variable.
19776         (LTO_USE_LIBELF): Likewise.
19777         * config.gcc (lto_binary_reader): New target-specific configure
19778         variable.
19779         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
19780         (LTO_USE_LIBELF): Likewise.
19781         * configure: Regenerate.
19782
19783         * collect2.c (is_elf): Rename from this ...
19784         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
19785          object files in addition to ELF-formatted ones.
19786         (scan_prog_file): Caller updated.  Also allow for LTO info marker
19787         symbol to be prefixed or not by an extra underscore.
19788
19789         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
19790         * config/i386/winnt.c: Also #include lto-streamer.h
19791         (i386_pe_asm_named_section): Specify 1-byte section alignment for
19792         LTO named sections.
19793         (i386_pe_asm_output_aligned_decl_common): Add comment.
19794         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
19795
19796 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
19797
19798         PR target/43889
19799         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
19800         Add missing earlyclobber for second alternative.
19801
19802 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
19803
19804         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
19805         bits for artificial defs at the top of the block.
19806         * fwprop.c (single_def_use_enter_block): Don't call it.
19807
19808 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
19809
19810         PR 43715
19811         * configure.ac: Use "$gcc_cv_nm -g" on darwin
19812         instead of "$gcc_cv_objdump -T".
19813         Use "-undefined dynamic_lookup" on darwin.
19814         * configure: Regenerate.
19815
19816 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
19817
19818         PR c/43893
19819         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
19820
19821 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
19822
19823         * c-parser.c (struct c_token): Move location field up.
19824         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
19825         (struct c_declspecs): Convert typespec_word, storage_class, and
19826         default_int_p into bitfields.
19827         (struct c_declarator): Move loc field up.
19828
19829 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
19830
19831         * cfgloop.h (struct loop): Move can_be_parallel field up.
19832         * ipa-prop.h (struct ip_node_params): Move bitfields up.
19833         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
19834         down.
19835         (struct iv_cand): Convert pos field into a bitfield.
19836         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
19837         field up.
19838         (struct _stmt_vec_info): Shuffle fields for better packing.
19839
19840 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
19841
19842         * varasm.c (IN_NAMED_SECTION): Remove guard.
19843         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
19844         (IN_NAMED_SECTION_P): ...this.
19845         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
19846         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
19847
19848 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
19849
19850         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
19851         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
19852         of shadowing it.  Fix comments.
19853
19854 2010-04-26  Jan Hubicka  <jh@suse.cz>
19855
19856         * cgraph.c (cgraph_create_node): Set node frequency to normal.
19857         (cgraph_clone_node): Copy function frequency.
19858         * cgraph.h (node_frequency): New enum
19859         (struct cgraph_node): Add.
19860         * final.c (rest_of_clean_state): Update.
19861         * lto-cgraph.c (lto_output_node): Output node frequency.
19862         (input_overwrite_node): Input node frequency.
19863         * tre-ssa-loop-ivopts (computation_cost): Update.
19864         * lto-streamer-out.c (output_function): Do not output function
19865         frequency.
19866         * predict.c (maybe_hot_frequency_p): Update and handle functions
19867         executed once.
19868         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
19869         attribute lookup.
19870         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
19871         (compute_function_frequency): Set noreturn functions to be executed
19872         once.
19873         (choose_function_section): Update.
19874         * lto-streamer-in.c (input_function): Do not input function frequency.
19875         * function.c (allocate_struct_function): Do not initialize function
19876         frequency.
19877         * function.h (function_frequency): Remove.
19878         (struct function): Remove function frequency.
19879         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
19880         (try_update): Update.
19881         * tree-inline.c (initialize_cfun): Do not update function frequency.
19882         * passes.c (pass_init_dump_file): Update.
19883         * i386.c (ix86_compute_frame_layout): Update.
19884         (ix86_pad_returns): Update.
19885
19886 2010-04-26  Jie Zhang  <jie@codesourcery.com>
19887
19888         PR tree-optimization/43833
19889         * tree-vrp.c (range_int_cst_p): New.
19890         (range_int_cst_singleton_p): New.
19891         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
19892         when both operands are constants.  Use range_int_cst_p in
19893         BIT_IOR_EXPR case.
19894
19895 2010-04-26  Jan Hubicka  <jh@suse.cz>
19896
19897         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
19898
19899 2010-04-26  Richard Guenther  <rguenther@suse.de>
19900
19901         PR lto/43080
19902         * gimple.c (gimple_decl_printable_name): Deal gracefully
19903         with a NULL DECL_NAME.
19904
19905 2010-04-26  Richard Guenther  <rguenther@suse.de>
19906
19907         PR lto/42425
19908         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
19909         if emitting debug information and it is either a function
19910         or a namespace decl.
19911
19912 2010-04-26  Ira Rosen  <irar@il.ibm.com>
19913
19914         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
19915         determine if the statement is vectorizable, and a macro to access it.
19916         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19917         Skip statements that can't be vectorized. If the analysis fails,
19918         mark the statement as unvectorizable if vectorizing basic block.
19919         (vect_compute_data_refs_alignment): Likewise.
19920         (vect_verify_datarefs_alignment): Skip statements marked as
19921         unvectorizable. Add print.
19922         (vect_analyze_group_access): Skip statements that can't be
19923         vectorized. If the analysis fails, mark the statement as
19924         unvectorizable if vectorizing basic block.
19925         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
19926         * tree-vect-stmts.c (vectorizable_store): Fix the number of
19927         generated stmts for SLP.
19928         (new_stmt_vec_info): Initialize the new field.
19929         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
19930         statements marked as unvectorizable.
19931
19932 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
19933
19934         * c-common.c (flag_isoc1x): New.
19935         (flag_isoc99): Update comment.
19936         * c-common.h (flag_isoc1x): New.
19937         (flag_isoc99): Update comment.
19938         * c-cppbuiltin.c (builtin_define_float_constants): Also define
19939         __<type>_DECIMAL_DIG__.
19940         * c-opts.c (set_std_c1x): New.
19941         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
19942         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
19943         * c.opt (-std=c1x, -std=gnu1x): New options.
19944         * doc/cpp.texi: Mention -std=c1x.
19945         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
19946         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
19947         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
19948         * doc/standards.texi: Mention C1X.
19949         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
19950         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
19951         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
19952         Define for C1X.
19953
19954 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
19955
19956         * config/i386/gmon-sol2.c (_mcleanup): Change format string
19957         placeholder from 0x%x to %#x.
19958         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
19959         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
19960         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
19961         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
19962         * config/i386/i386.c (ix86_target_string): Ditto.
19963         (output_pic_addr_const): Ditto.
19964         (print_operand): Ditto.
19965
19966 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
19967
19968         * combine.c (find_split_point): Add third argument.  Use it
19969         to find nested multiply-accumulate instructions.  Adjust calls.
19970         (try_combine): Adjust call to find_split_point.
19971
19972 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
19973
19974         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
19975
19976 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
19977
19978         PR tree-optimization/41442
19979         * fold-const.c (merge_truthop_with_opposite_arm): New function.
19980         (fold_binary_loc): Call it.
19981
19982 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19983
19984         * toplev.c (general_init): Set default for fdiagnostics-show-option.
19985         * opts.c (common_handle_option): Allow disabling it.
19986         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
19987
19988 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
19989
19990         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
19991         between modes if both types are integral.
19992
19993 2010-04-23  Richard Guenther  <rguenther@suse.de>
19994
19995         PR tree-optimization/43572
19996         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
19997
19998 2010-04-23  Richard Guenther  <rguenther@suse.de>
19999
20000         PR lto/43455
20001         * tree-inline.c (tree_can_inline_p): Also check compatibility
20002         of return types.
20003
20004 2010-04-23  Martin Jambor  <mjambor@suse.cz>
20005
20006         PR tree-optimization/43846
20007         * tree-sra.c (struct access): New flag grp_assignment_read.
20008         (build_accesses_from_assign): Set grp_assignment_read.
20009         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
20010         (enum mark_read_status): New type.
20011         (analyze_access_subtree): Propagate grp_assignment_read, create
20012         accesses also if both direct_read and root->grp_assignment_read.
20013
20014 2010-04-23  Martin Jambor  <mjambor@suse.cz>
20015
20016         PR middle-end/43835
20017         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
20018         function does not have type attributes.
20019
20020 2010-04-23  Richard Guenther  <rguenther@suse.de>
20021
20022         PR lto/42653
20023         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
20024         of FUNCTION_DECLs.
20025
20026 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20027
20028         * sese.h (create_if_region_on_edge): Remove.
20029
20030         * sese.c (create_if_region_on_edge): Make static.
20031
20032         * tree-inline.c: Do not include ggc.h.
20033
20034         * expr.c: Do not include ggc.h.
20035
20036         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
20037         dependencies.
20038
20039 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
20040
20041         PR target/43744
20042         * config/sh/sh.c (find_barrier): Don't emit a constant pool
20043         in the middle of insns for casesi_worker_2.
20044
20045 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
20046
20047         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
20048
20049 2010-04-22  Ira Rosen  <irar@il.ibm.com>
20050
20051         PR tree-optimization/43842
20052         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
20053         loop unrolling in update of exit phis. Fix comment.
20054         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
20055         least two reduction statements in the loop before starting SLP
20056         analysis.
20057
20058 2010-04-22  Nick Clifton  <nickc@redhat.com>
20059
20060         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
20061
20062 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
20063
20064         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
20065         to simplify a + ~a.
20066
20067 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20068
20069         * tree-parloops.c (loop_parallel_p): New argument
20070         parloop_obstack.  Pass it down.
20071         (parallelize_loops): New variable parloop_obstack.  Initialize it,
20072         pass it down, free it.
20073
20074         * tree-loop-linear.c (linear_transform_loops): Pass down
20075         lambda_obstack.
20076
20077         * tree-data-ref.h (lambda_compute_access_matrices): New argument
20078         of type struct obstack *.
20079
20080         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
20081         scratch_obstack.  Initialize it, pass down, free it.
20082
20083         * lambda.h (lambda_loop_new): Remove.
20084         (lambda_matrix_new, lambda_matrix_inverse)
20085         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
20086         argument of type struct obstack *.
20087
20088         * lambda-trans.c (lambda_trans_matrix_new): New argument
20089         lambda_obstack.  Pass it down, use obstack allocation for ret.
20090         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
20091         it down.
20092
20093         * lambda-mat.c (lambda_matrix_get_column)
20094         (lambda_matrix_project_to_null): Remove.
20095         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
20096         allocation for mat.
20097         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
20098         lambda_obstack.
20099
20100         * lambda-code.c (lambda_loop_new): New function.
20101         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
20102         (lambda_compute_auxillary_space, lambda_compute_target_space)
20103         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
20104         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
20105         (build_access_matrix): New argument lambda_obstack.  Use obstack
20106         allocation for am.
20107         (lambda_compute_step_signs, lambda_compute_access_matrices): New
20108         argument lambda_obstack.  Pass it down.
20109
20110 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
20111
20112         * optabs.h (expand_widening_mult): Declare.
20113
20114 2010-04-22  Richard Guenther  <rguenther@suse.de>
20115
20116         PR tree-optimization/43845
20117         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
20118         lookup the CALL_EXPR function and arguments.
20119
20120 2010-04-22  Nick Clifton  <nickc@redhat.com>
20121
20122         * config/stormy16/stormy16.c
20123         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
20124         * config/stormy16/stormy16.h: Tidy up formatting.
20125         (DONT_USE_BUILTIN_SETJMP): Remove definition.
20126         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
20127         (ineqbranchsi): Delete pattern.
20128         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
20129         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
20130         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
20131         stormy16-lib2-ucmpsi2.c.
20132
20133 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
20134
20135         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
20136         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
20137         extra set merge_set_noclobber, and use it to relax the final test
20138         slightly.
20139         * df.h (df_simulate_find_noclobber_defs): Declare.
20140         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
20141         conditional defs.
20142         (df_simulate_find_noclobber_defs): New function.
20143
20144 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
20145
20146         * config/i386/i386.md: Use {} around multi-line preparation statements.
20147
20148 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20149
20150         * c-tree.h (push_init_level, pop_init_level, set_init_index)
20151         (process_init_element): New argument of type struct obstack *.
20152
20153         * c-typeck.c (push_init_level, pop_init_level, set_designator)
20154         (set_init_index, set_init_label, set_nonincremental_init)
20155         (set_nonincremental_init_from_string, find_init_member)
20156         (output_init_element, output_pending_init_elements)
20157         (process_init_element): New argument braced_init_obstack.  Pass it
20158         down.
20159         (push_range_stack, add_pending_init): New argument
20160         braced_init_obstack.  Use obstack allocation.
20161
20162         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
20163         braced_init_obstack.  Pass it down.
20164         (c_parser_braced_init): New variables ret, braced_init_obstack.
20165         Initialize obstack, pass it down and finally free it.
20166
20167 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
20168
20169         PR middle-end/29274
20170         * tree-pass.h (pass_optimize_widening_mul): Declare.
20171         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
20172         gate_optimize_widening_mul): New static functions.
20173         (pass_optimize_widening_mul): New.
20174         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
20175         <case MULT_EXPR>: Remove support for widening multiplies.
20176         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
20177         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
20178         simplify_gen_unary rather than directly building extensions.
20179         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
20180         WIDEN_MULT_EXPR.
20181         * expmed.c (expand_widening_mult): New function.
20182         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
20183
20184 2010-04-21  Jan Hubicka  <jh@suse.cz>
20185
20186         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
20187         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
20188         * lto-wpa-fixup.c: Remove.
20189         * Makefile.in (lto-wpa-fixup.o): Remove.
20190         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
20191         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
20192         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
20193
20194 2010-04-21  Jan Hubicka  <jh@suse.cz>
20195
20196         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
20197         add write_optimization_summary, read_optimization_summary.
20198         (ipa_write_summaries_of_cgraph_node_set): Remove.
20199         (ipa_write_optimization_summaries): Declare.
20200         (ipa_read_optimization_summaries): Declare.
20201         * ipa-cp.c (pass_ipa_cp): Update.
20202         * ipa-reference.c (pass_ipa_reference): Update.
20203         * ipa-pure-const.c (pass_ipa_pure_const): Update.
20204         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
20205         Update.
20206         * ipa-inline.c (pass_ipa_inline): Update.
20207         * ipa.c (pass_ipa_whole_program): Update.
20208         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
20209         * passes.c (ipa_write_summaries_1): Do not test wpa.
20210         (ipa_write_optimization_summaries_1): New.
20211         (ipa_write_optimization_summaries): New.
20212         (ipa_read_summaries): Do not test ltrans.
20213         (ipa_read_optimization_summaries_1): New.
20214         (ipa_read_optimization_summaries): New.
20215
20216 2010-04-21  Jan Hubicka  <jh@suse.cz>
20217
20218         * lto-cgraph.c (lto_output_node): Do not output comdat groups
20219         for boundary nodes.
20220         (output_cgraph): Do not arrange comdat groups for boundary nodes.
20221
20222 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
20223
20224         PR debug/40040
20225         * dwarf2out.c (add_name_and_src_coords_attributes): Add
20226         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
20227
20228 2010-04-21  Jan Hubicka  <jh@suse.cz>
20229
20230         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
20231
20232 2010-04-21  Jan Hubicka  <jh@suse.cz>
20233
20234         * varpool.c (decide_is_variable_needed): Variable is always needed
20235         during ltrans.
20236
20237 2010-04-21  Jan Hubicka  <jh@suse.cz>
20238
20239         * opts.c (decode_options): Enable pure-const pass for whopr.
20240
20241 2010-04-21  Jan Hubicka  <jh@suse.cz>
20242
20243         * cgraph.c (dump_cgraph_node): Dump also assembler name.
20244         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
20245         at WPA dumping.
20246         (cgraph_decide_inlining): Do not expect callee to be removed in all
20247         cases.
20248
20249 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
20250
20251         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
20252
20253 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
20254
20255         * config/i386/i386.md (x86_shrd): Add athlon_decode and
20256         amdfam10_decode attributes.
20257
20258 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
20259
20260         PR middle-end/43570
20261         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
20262         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
20263         (lower_copyprivate_clauses): Use private var in outer
20264         context instead of original var.  Make sure the types
20265         are correct for VLAs.
20266
20267 2010-04-21  Richard Guenther  <rguenther@suse.de>
20268
20269         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
20270         to non-pointer objects.
20271
20272 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
20273
20274         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
20275         last chain entry if it starts with the still current label.
20276         (add_location_or_const_value_attribute): Check that
20277         loc_list->first->next is NULL instead of comparing ->first with ->last.
20278         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
20279         to add_var_loc_to_decl.
20280
20281         * dwarf2out.c (output_call_frame_info): For dw_cie_version
20282         >= 4 add also address size and segment size fields into CIE header.
20283
20284         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
20285         long as address size is the same as sizeof (void *) and
20286         segment size is 0.
20287         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
20288         address size or segment size is unexpected, return DW_EH_PE_omit.
20289         (classify_object_over_fdes): If get_cie_encoding returned
20290         DW_EH_PE_omit, return -1.
20291         (init_object): If classify_object_over_fdes returned -1,
20292         pretend there were no FDEs at all.
20293
20294 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
20295
20296         * config/i386/i386.md (bswap<mode>2): Macroize expander from
20297         bswap{si,di}2 using SWI48 mode iterator.
20298         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
20299         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
20300         set modrm attribute of bswap insn to 0 and remove length attribute.
20301         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
20302         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
20303         set mode attribute to <MODE> and remove length attribute.
20304
20305 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
20306
20307         PR rtl-optimization/43520
20308         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
20309         zero available registers.
20310
20311 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20312
20313         * builtins.c (fold_builtin_cproj): Fold more cases.
20314
20315 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20316
20317         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
20318         (fold_builtin_1): Fold builtin cproj.
20319         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
20320         Use ATTR_CONST_NOTHROW_LIST.
20321
20322 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
20323
20324         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
20325         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
20326         ffsi2_no_cmove for !TARGET_CMOVE.
20327         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
20328         (ffssi2): Remove expander.
20329         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
20330         mode iterator.
20331         (ctz<mode>2): Ditto from ctz{si,di}2.
20332         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
20333         mode iterator.
20334         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
20335         mode iterator.
20336
20337 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
20338
20339         * dwarf2out.c (AT_linkage_name): Define.
20340         (clone_as_declaration): Handle DW_AT_linkage_name.
20341         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
20342         of DW_AT_MIPS_linkage_name.
20343         (move_linkage_attr): Likewise.
20344         (dwarf2out_finish): Likewise.
20345
20346 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
20347
20348         PR middle-end/41952
20349         * fold-const.c (fold_comparison): New folding rule.
20350
20351 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
20352
20353         * double-int.h (double_int_setbit): Declare.
20354         * double-int.c (double_int_setbit): New function.
20355         * rtl.h (immed_double_int_const): Declare.
20356         * emit-rtl.c (immed_double_int_const): New function.
20357         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
20358         and immed_double_int_const functions.
20359         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
20360         expand_copysign_bit): (Ditto.).
20361         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
20362         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
20363         * dojump.c (prefer_and_bit_test): (Ditto.).
20364         * expr.c (convert_modes, reduce_to_bit_field_precision,
20365         const_vector_from_tree): (Ditto.).
20366         * expmed.c (mask_rtx, lshift_value): (Ditto.).
20367
20368 2010-04-20  Jan Hubicka  <jh@suse.cz>
20369
20370         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
20371         (dump_cgraph_node): Dump new flags.
20372         * cgraph.h (struct cgraph_node): Add flags
20373         reachable_from_other_partition and in_other_partition.
20374         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
20375         other partition can not be removed.
20376         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
20377         the other partition must be output; silence sanity checking on
20378         leaking functions bodies from other paritition.
20379         * lto-cgraph.c (reachable_from_other_partition_p): New function.
20380         (lto_output_node): Output new flags; do not sanity check that inline
20381         clones are output; drop lto_forced_extern_inline_p code; do not mock
20382         visibility flags at partition boundaries.
20383         (add_node_to): New function.
20384         (output_cgraph): Use it to sort functions so masters appear before
20385         clones.
20386         (input_overwrite_node): Input new flags.
20387         * passes.c (ipa_write_summaries): Do not call
20388         lto_new_extern_inline_states.
20389         * lto-section-out.c (forced_extern_inline,
20390         lto_new_extern_inline_states lto_delete_extern_inline_states,
20391         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
20392         * lto-streamer.h (lto_new_extern_inline_states,
20393         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
20394         lto_forced_extern_inline_p): Kill.
20395
20396 2010-04-20  Richard Guenther  <rguenther@suse.de>
20397
20398         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
20399         from vars that can have pointers.
20400         (process_constraint): Dump useless constraints.
20401
20402 2010-04-20  Richard Guenther  <rguenther@suse.de>
20403
20404         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
20405         (dump_sa_points_to_info): Remove asserts.
20406         (init_base_vars): nothing_id isn't an escape point nor does it
20407         have pointers.
20408
20409 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
20410
20411         * tree.h (TYPE_REF_IS_RVALUE): Define.
20412         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
20413         should_move_die_to_comdat, prune_unused_types_walk): Handle
20414         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
20415         (modified_type_die, gen_reference_type_die): Emit
20416         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
20417         if TYPE_REF_IS_RVALUE and -gdwarf-4.
20418
20419 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20420
20421         PR target/43635
20422         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
20423         calls for -fpic -m31 if they have been sibcall optimized.
20424
20425 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
20426
20427         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
20428         ar.lc fixed and call-used.
20429
20430         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
20431
20432 2010-04-19  Jan Hubicka  <jh@suse.cz>
20433
20434         * opts.c (decode_options): Disable whpr incompatible passes.
20435         * lto/lto.c (lto_1_to_1_map): Skip clones.
20436         (read_cgraph_and_symbols): Do not mark everything as needed.
20437         (do_whole_program_analysis): Do map only after optimizing;
20438         set proper cgraph_state; use passmanager.
20439
20440 2010-04-19  DJ Delorie  <dj@redhat.com>
20441
20442         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
20443         POINTER_PLUS_EXPR and fix them.
20444
20445 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
20446
20447         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
20448         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
20449         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
20450         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
20451         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
20452         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
20453         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
20454         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
20455         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
20456         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
20457         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
20458
20459 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20460
20461         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
20462         (check_cond_move_block): Likewise.
20463         (cond_move_process_if_block): Likewise.
20464         (noce_find_if_block): Improve formatting.
20465         (find_if_header): Pass 0 to memset and tweak conditions.
20466         (cond_exec_find_if_block): Fix long lines and tweak conditions.
20467
20468 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
20469
20470         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
20471         for -gdwarf-4.
20472
20473         PR middle-end/43337
20474         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
20475         with non-local decl doesn't need chain.
20476
20477 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
20478
20479         * ira-color.c (allocno_reload_assign): Avoid accumulating
20480         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
20481
20482 2010-04-19  Martin Jambor  <mjambor@suse.cz>
20483
20484         * gimple.h (create_tmp_reg): Declare.
20485         * gimplify.c (create_tmp_reg): New function.
20486         (gimplify_return_expr): Use create_tmp_reg.
20487         (gimplify_omp_atomic): Likewise.
20488         (gimple_regimplify_operands): Likewise.
20489         * tree-dfa.c (make_rename_temp): Likewise.
20490         * tree-predcom.c (predcom_tmp_var): Likewise.
20491         (reassociate_to_the_same_stmt): Likewise.
20492         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
20493         (get_replaced_param_substitute): Likewise.
20494         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
20495         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
20496         * tree-ssa-pre.c (get_representative_for): Likewise.
20497         (create_expression_by_pieces): Likewise.
20498         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
20499         (create_tailcall_accumulator): Likewise.
20500
20501 2010-04-19  Martin Jambor  <mjambor@suse.cz>
20502
20503         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
20504         new_stmt.
20505         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
20506
20507 2010-04-19  Richard Guenther  <rguenther@suse.de>
20508
20509         PR tree-optimization/43796
20510         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
20511         from SCEV in the lattice.
20512         (vrp_visit_phi_node): Dump change.
20513
20514 2010-04-19  Richard Guenther  <rguenther@suse.de>
20515
20516         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
20517         * configure: Re-generated.
20518
20519 2010-04-19  Richard Guenther  <rguenther@suse.de>
20520
20521         PR tree-optimization/43783
20522         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
20523         constant ARRAY_REF operands two and three if possible.
20524
20525 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
20526
20527         PR target/43766
20528         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
20529
20530 2010-04-19  Jie Zhang  <jie@codesourcery.com>
20531
20532         PR target/43662
20533         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
20534
20535 2010-04-19  Ira Rosen  <irar@il.ibm.com>
20536
20537         PR tree-optimization/37027
20538         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
20539         and macro to access it.
20540         (vectorizable_reduction): Add argument.
20541         (vect_get_slp_defs): Likewise.
20542         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
20543         statements for possible use in SLP.
20544         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
20545         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
20546         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
20547         add new argument.
20548         (vectorizable_reduction): Likewise.
20549         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
20550         vect_get_slp_defs.
20551         (vectorizable_type_demotion, vectorizable_type_promotion,
20552         vectorizable_store): Likewise.
20553         (vect_analyze_stmt): Update call to vectorizable_reduction.
20554         (vect_transform_stmt): Likewise.
20555         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
20556         (vect_build_slp_tree): Fix indentation. Check that there are no loads
20557         from different interleaving chains in same node.
20558         (vect_slp_rearrange_stmts): New function.
20559         (vect_supported_load_permutation_p): Allow load permutations for
20560         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
20561         inside SLP nodes if necessary.
20562         (vect_analyze_slp_instance): Handle reductions.
20563         (vect_analyze_slp): Try to build SLP instances originating from groups
20564         of reductions.
20565         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
20566         (vect_get_constant_vectors): Create initial vectors for reductions
20567         according to reduction code. Add new argument.
20568         (vect_get_slp_defs): Add new argument, pass it to
20569         vect_get_constant_vectors.
20570         (vect_schedule_slp_instance): Remove SLP tree root statements.
20571
20572 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
20573
20574         * tree.h (ENUM_IS_SCOPED): Define.
20575         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
20576         for ENUM_IS_SCOPED enums.
20577
20578 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20579
20580         * fold-const.c (fold_comparison): Use ssizetype.
20581         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
20582         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
20583         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
20584         * tree-object-size.c (compute_object_sizes): Use size_type_node.
20585
20586         * tree.h (initialize_sizetypes): Remove parameter.
20587         (build_common_tree_nodes): Remove second parameter.
20588         * stor-layout.c (initialize_sizetypes): Remove parameter.
20589         Always create an unsigned type.
20590         (set_sizetype): Assert that the passed type is unsigned and simplify.
20591         * tree.c (build_common_tree_nodes): Remove second parameter.
20592         Adjust call to initialize_sizetypes.
20593         * c-decl.c (c_init_decl_processing): Remove second argument in call to
20594         build_common_tree_nodes.
20595
20596 2010-04-18  Matthias Klose  <doko@ubuntu.com>
20597
20598         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
20599
20600 2010-04-18  Ira Rosen  <irar@il.ibm.com>
20601
20602         PR tree-optimization/43771
20603         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
20604         load permutation doesn't have gaps.
20605
20606 2010-04-18  Jan Hubicka  <jh@suse.cz>
20607
20608         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
20609         (sse_prologue_save_insn expander): Use new pattern.
20610         (sse_prologue_save_insn1): New pattern and splitter.
20611         (sse_prologue_save_insn): Update to deal also with 64bit aligned
20612         blocks.
20613         * i386.c (setup_incoming_varargs_64): Do not compute jump
20614         destination here.
20615         (ix86_gimplify_va_arg): Update alignment needed.
20616         (ix86_local_alignment): Do not align all local arrays to 128bit.
20617
20618 2010-04-17  Jan Hubicka  <jh@suse.cz>
20619
20620         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
20621
20622 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20623
20624         * arm.md (negdi2): Remove redundant code to force values into a
20625         register.
20626
20627 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20628
20629         * arm/bpabi.S: Add EABI alignment attributes to objects.
20630         * arm/bpabi-v6m.S: Likewise.
20631         * arm/crti.asm: Likewise.
20632         * arm/crtn.asm: Likewise.
20633         * arm/lib1funcs.asm: Likewise.
20634         * arm/libunwind.S: Likewise.
20635
20636 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20637
20638         * arm-protos.h (tune_params): New structure.
20639         * arm.c (current_tune): New variable.
20640         (arm_constant_limit): Delete.
20641         (struct processors): Add pointer to the tune parameters.
20642         (arm_slowmul_tune): New tuning option.
20643         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
20644         (all_cores): Adjust to pick up the tuning model.
20645         (arm_constant_limit): New function.
20646         (arm_override_options): Select the appropriate tuning model.  Delete
20647         initialization of arm_const_limit.
20648         (arm_split_constant): Use the new constant-limit model.
20649         (arm_rtx_costs): Pick up the current tuning model.
20650         * arm.md (is_strongarm, is_xscale): Delete.
20651         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
20652         for Xscale variant architectures.
20653         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
20654
20655 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20656
20657         * config/arm/arm.c (arm_gen_constant): Remove unused variable
20658         can_shift.
20659         (arm_rtx_costs_1): Remove unused variable extra_cost.
20660         (arm_unwind_emit_set): Use variable offset.
20661         (thumb1_output_casesi): Remove unused variable flags.
20662
20663 2010-04-16  Jeff Law  <law@redhat.com>
20664
20665         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
20666         needing assignment rather than doing a two-phase assignment.  Remove
20667         unused variable 'm'.
20668
20669 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20670
20671         PR bootstrap/43767
20672         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
20673
20674 2010-04-16  Doug Kwan  <dougkwan@google.com>
20675
20676         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
20677         (next_operand_entry_id): New static variable.
20678         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
20679         (add_to_ops_vec): Assigned unique ID to operand entry.
20680         (struct oecount_s): New field ID.
20681         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
20682         (undistribute_ops_list): Assign unique IDs to oecounts.
20683         (init_reassoc): reset next_operand_entry_id.
20684
20685 2010-04-16  Doug Kwan  <dougkwan@google.com>
20686
20687         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
20688         missing left parenthesis.
20689
20690 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
20691
20692         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
20693         *btdi_rex64 using SWI48 mode iterator.
20694         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
20695         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
20696         *jcc_btdi_mask_rex64.
20697
20698 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
20699
20700         * double-int.h (tree_to_double_int): Convert to macro.
20701         * double-int.c (tree_to_double_int): Remove.
20702
20703 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20704
20705         PR debug/43762
20706         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
20707         with want_address 2 and in case a single element list might be
20708         possible, call it again with want_address 0.
20709
20710 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20711
20712         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
20713         case 'W' print operands for HI mode.
20714         * config/h8300/h8300.h (Y0, Y2) : New constraints.
20715         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
20716         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
20717         * config/h8300/predicate.md (bit_register_indirect_operand): New.
20718
20719         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
20720
20721         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
20722         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
20723         #xx:3 and #xx:4 mode.
20724
20725         * config/h8300/h8300.md (inverted load with HImode dest): Add
20726         support for H8300SX.
20727
20728         * config/h8300/predicate.md (bit_operand): Allow immediate values that
20729         satisfy 'U' constraint.
20730
20731 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20732
20733         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
20734         * configure: Regenerate.
20735         * config.in: Regenerate.
20736         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
20737         works.
20738
20739 2010-04-16  Richard Guenther  <rguenther@suse.de>
20740
20741         * tree.h (struct tree_decl_minimal): Move pt_uid ...
20742         (struct tree_decl_common): ... here.
20743         (DECL_PT_UID): Adjust.
20744         (SET_DECL_PT_UID): Likewise.
20745         (DECL_PT_UID_SET_P): Likewise.
20746
20747 2010-04-16  Richard Guenther  <rguenther@suse.de>
20748
20749         PR tree-optimization/43572
20750         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
20751         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
20752         * tree-flow.h (is_call_clobbered): Remove.
20753         * tree-flow-inline.h (is_call_clobbered): Likewise.
20754         * tree-dfa.c (dump_variable): Do not dump call clobber state.
20755         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
20756         (execute_return_slot_opt): Adjust.
20757         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
20758         check for call clobbered vars here.
20759         (find_tail_calls): Move tailcall verification to the
20760         proper place.
20761
20762 2010-04-16  Diego Novillo  <dnovillo@google.com>
20763
20764         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
20765
20766 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20767
20768         PR target/40603
20769         * config/arm/arm.md (cbranchqi4): New pattern.
20770         * config/arm/predicates.md (const0_operand,
20771         cbranchqi4_comparison_operator): New predicates.
20772
20773 2010-04-16  Richard Guenther  <rguenther@suse.de>
20774
20775         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
20776         (dump_gimple_stmt): Likewise.
20777
20778 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20779
20780         * recog.h (struct recog_data): New field is_operator.
20781         (struct insn_operand_data): New field is_operator.
20782         * recog.c (extract_insn): Set recog_data.is_operator.
20783         * genoutput.c (output_operand_data): Emit code to set the
20784         is_operator field.
20785         * reload.c (find_reloads): Use it rather than testing for an
20786         empty constraint string.
20787
20788         PR target/41514
20789         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
20790         If the previous insn is a cbranchsi4_insn with the same arguments,
20791         omit the compare instruction.
20792
20793         * config/arm/arm.md (addsi3_cbranch): If destination is a high
20794         register, inputs must be low registers and we need a low register
20795         scratch.  Handle alternative 2 like alternative 3.
20796
20797 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20798
20799         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
20800         don't call get_addr on both.  If one expression is a VALUE and
20801         the other a REG, check VALUE's locs if the REG isn't among them.
20802
20803 2010-04-16  Christian Bruel  <christian.bruel@st.com>
20804
20805         * config/sh/sh.h (sh_frame_pointer_required): New function.
20806         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
20807         (flag_omit_frame_pointer) Set.
20808         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
20809         (rounded_frame_size): Adjust size with outgoing_args_size.
20810         (sh_set_return_address): Must return from stack pointer.
20811         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
20812         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
20813         (ACCUMULATE_OUTGOING_ARGS): Define.
20814         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
20815         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
20816
20817 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
20818
20819         PR target/43471
20820         * config/sh/sh.c (sh_legitimize_reload_address): Use
20821         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
20822         Remove a unneeded check for offset_base.
20823
20824 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20825
20826         * configure: Regenerated.
20827
20828 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20829
20830         * config/s390/s390.c (s390_call_save_register_used): Switch back
20831         to HARD_REGNO_NREGS.
20832
20833 2010-04-15  Richard Guenther  <rguenther@suse.de>
20834
20835         * alias.c (alias_set_subset_of): Handle alias-set zero
20836         child properly.
20837
20838 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
20839             Julian Brown  <julian@codesourcery.com>
20840
20841         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
20842         alternatives according to use of high and low regs.
20843         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
20844         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
20845         optimizing for size on Thumb-2.
20846
20847 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
20848
20849         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
20850
20851 2010-04-15  Richard Guenther  <rguenther@suse.de>
20852
20853         * tree-ssa-structalias.c (struct variable_info): Add
20854         is_fn_info flag.
20855         (new_var_info): Initialize it.
20856         (dump_constraints): Support printing last added constraints.
20857         (debug_constraints): Adjust.
20858         (dump_constraint_graph): Likewise.
20859         (make_heapvar_for): Check for NULL cfun.
20860         (get_function_part_constraint): New function.
20861         (get_fi_for_callee): Likewise.
20862         (find_func_aliases): Properly implement IPA PTA constraints.
20863         (process_ipa_clobber): New function.
20864         (find_func_clobbers): Likewise.
20865         (insert_into_field_list_sorted): Remove.
20866         (create_function_info_for): Properly allocate vars for IPA mode.
20867         Do not use insert_into_field_list_sorted.
20868         (create_variable_info_for): Properly generate constraints for
20869         global vars in IPA mode.
20870         (dump_solution_for_var): Always dump the solution.
20871         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
20872         (find_what_var_points_to): Adjust.
20873         (pt_solution_set): Change.
20874         (pt_solution_ior_into): New function.
20875         (pt_solution_empty_p): Export.
20876         (pt_solution_includes_global): Adjust.
20877         (pt_solution_includes_1): Likewise.
20878         (pt_solutions_intersect_1): Likewise.
20879         (dump_sa_points_to_info): Check some invariants.
20880         (solve_constraints): Move constraint dumping ...
20881         (compute_points_to_sets): ... here.
20882         (ipa_pta_execute): ... and here.
20883         (compute_may_aliases): Do not re-compute points-to info
20884         locally if IPA info is available.
20885         (ipa_escaped_pt): New global var.
20886         (ipa_pta_execute): Properly implement IPA PTA.
20887         * tree-into-ssa.c (dump_decl_set): Support dumping
20888         decls not in referenced-vars.
20889         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
20890         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
20891         (dump_points_to_solution): Likewise.
20892         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
20893         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
20894         (remap_gimple_stmt): Reset call clobber/use information if necessary.
20895         (copy_decl_to_var): Copy DECL_PT_UID.
20896         (copy_result_decl_to_var): Likewise.
20897         * tree.c (make_node_stat): Initialize DECL_PT_UID.
20898         (copy_node_stat): Copy it.
20899         * tree.h (DECL_PT_UID): New macro.
20900         (SET_DECL_PT_UID): Likewise.
20901         (DECL_PT_UID_SET_P): Likewise.
20902         (struct tree_decl_minimal): Add pt_uid member.
20903         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
20904         (pt_solution_empty_p): Declare.
20905         (pt_solution_set): Adjust.
20906         (ipa_escaped_pt): Declare.
20907         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
20908         * gimple-pretty-print.c (pp_points_to_solution): New function.
20909         (dump_gimple_call): Dump call clobber/use information.
20910         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
20911         * tree-pass.h (TDF_ALIAS): New dump option.
20912         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
20913         * doc/invoke.texi (-fipa-pta): Update documentation.
20914
20915 2010-04-15  Richard Guenther  <rguenther@suse.de>
20916
20917         * Makefile.in (OBJS-common): Add gimple-fold.o.
20918         (gimple-fold.o): New rule.
20919         * tree.h (maybe_fold_offset_to_reference,
20920         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
20921         prototypes ...
20922         * gimple.h: ... here.
20923         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
20924         may_propagate_address_into_dereference): Move prototypes ...
20925         * gimple.h: ... here.
20926         * tree-ssa-ccp.c (get_symbol_constant_value,
20927         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
20928         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
20929         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
20930         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
20931         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
20932         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
20933         gimplify_and_update_call_from_tree): Move ...
20934         * gimple-fold.c: ... here.  New file.
20935         (ccp_fold_builtin): Rename to ...
20936         (gimple_fold_builtin): ... this.
20937         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
20938
20939 2010-04-15  Richard Guenther  <rguenther@suse.de>
20940
20941         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
20942         fit_double_type, force_fit_type_double, add_double_with_sign,
20943         neg_double, mul_double_with_sign, lshift_double, rshift_double,
20944         lrotate_double, rrotate_double, div_and_round_double): Move ...
20945         * double-int.c: ... here.
20946         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
20947         add_double, neg_double, mul_double_with_sign, mul_double,
20948         lshift_double, rshift_double, lrotate_double, rrotate_double,
20949         div_and_round_double): Move prototypes ...
20950         * double-int.h: ... here.
20951
20952 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
20953
20954         PR target/43742
20955         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
20956         matching constraints to ensure inputs match the output.
20957
20958 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
20959
20960         PR target/43742
20961         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
20962         in an input-only operand.
20963
20964 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
20965
20966         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
20967         (double_int_not, double_int_lshift, double_int_rshift): Declare.
20968         (double_int_negative_p): Convert to static inline function.
20969         * double-int.c (double_int_lshift, double_int_lshift): New functions.
20970         (double_int_negative_p): Remove.
20971         * tree.h (lshift_double, rshift_double):
20972         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
20973         * fold-const.c (fold_convert_const_int_from_real,
20974         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
20975         (lshift_double): Change type of arith argument to bool.
20976         (rshift_double): Change type of arith argument to bool. Correct
20977         comment.
20978         * expmed.c (mask_rtx, lshift_value): (Ditto.).
20979
20980 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
20981
20982         PR target/21803
20983         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
20984         at the start and end of the then/else blocks, and omit them from the
20985         conversion.
20986         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
20987         argument; all callers changed.  Pass zero to old_insns_match_p instead.
20988         (flow_find_head_matching_sequence): New function.
20989         (old_insns_match_p): Check REG_EH_REGION notes for calls.
20990         * basic-block.h (flow_find_cross_jump,
20991         flow_find_head_matching_sequence): Declare functions.
20992
20993 2010-04-14  Jason Merrill  <jason@redhat.com>
20994
20995         PR c++/36625
20996         * c-common.c (attribute_takes_identifier_p): New fn.
20997         * c-common.h: Declare it.
20998
20999 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21000
21001         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
21002         splitter condition.
21003         (*udivmod<mode>4): Ditto.
21004
21005 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21006
21007         * config/i386/i386.md (maxmin_int): Rename code attribute from
21008         maxminiprefix and update all users.
21009         (maxmin_float): Ditto from maxminfprefix.
21010         (logic): Ditto from logicprefix.
21011         (absneg_mnemonic): Ditto from absnegprefix.
21012         * config/i386/mmx.md: Update all users of maxminiprefix,
21013         maxminfprefix and logicprefix for rename.
21014         * config/i386/sse.md: Ditto.
21015         * config/i386/sync.md (sync_<code><mode>): Update for
21016         logicprefix rename.
21017
21018 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21019
21020         PR 42966
21021         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
21022         warnings converted to errors.
21023
21024 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21025
21026         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
21027         used insn_type variable.
21028         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
21029         to avoid set-but-not-used warning.
21030
21031 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21032
21033         * df-core.c (df_ref_debug): Change format string placeholder
21034         from 0x%x to %#x.
21035         * dwarf2asm.c (dw2_asm_output_data_raw,
21036         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
21037         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
21038         * dwarf2out.c (output_cfi, output_cfi_directive,
21039         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
21040         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
21041         Ditto.
21042         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
21043         * print-rtl.c (print_rtx): Ditto.
21044
21045 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21046
21047         PR middle-end/42694
21048         * builtins.c (expand_builtin_pow_root): New function to expand pow
21049         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
21050         series of sqrt and cbrt calls under -ffast-math.
21051         (expand_builtin_pow): Call it.
21052
21053 2010-04-14  Michael Matz  <matz@suse.de>
21054
21055         PR tree-optimization/42963
21056         * tree-cfg.c (touched_switch_bbs): New static variable.
21057         (group_case_labels_stmt): New function broken out from ...
21058         (group_case_labels): ... here, use the above.
21059         (start_recording_case_labels): Allocate touched_switch_bbs.
21060         (end_recording_case_labels): Deallocate it, call
21061         group_case_labels_stmt.
21062         (gimple_redirect_edge_and_branch): Remember index of affected BB.
21063
21064 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21065
21066         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
21067         from insn template.
21068
21069 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21070
21071         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
21072
21073 2010-04-13  Jan Hubicka  <jh@suse.cz>
21074
21075         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
21076         of optimized out static functions.
21077         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
21078         cost computation.  Also sanity check for overflows.
21079         (update_caller_keys): Update cgraph_edge_badness call; properly
21080         update fibheap and sanity check that it is up to date.
21081         (add_new_edges_to_heap): Update cgraph_edge_badness.
21082         (cgraph_decide_inlining_of_small_function): Likewise;
21083         add sanity checking that badness in heap is up to date;
21084         improve dumping of reason; Update badness of calls to the
21085         offline copy of function currently inlined; dump badness
21086         of functions not inlined because of unit growth limits.
21087
21088 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
21089
21090         PR middle-end/32628
21091         * c-common.c (pointer_int_sum): Disregard overflow that occured only
21092         because of sign-extension change when converting to sizetype here...
21093         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
21094
21095         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
21096         the folding to constants.  Remove redundant final conversion.
21097         (fold_binary) <associate>: Do not associate if the re-association of
21098         constants alone overflows.
21099         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
21100         to the end of the list.
21101         (multiple_of_p) <COND_EXPR>: New case.
21102
21103 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21104
21105         * opt-functions.awk (opt_sanitized_name): New.
21106         (opt_enum): New.
21107         * optc-gen.awk: Use it
21108         * opth-gen.awk: Use it.
21109
21110 2010-04-13  Martin Jambor  <mjambor@suse.cz>
21111
21112         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
21113         (sra_modify_assign): Delete stmts loading dead data even if racc has no
21114         children.  Call replace_uses_with_default_def_ssa_name to handle
21115         SSA_NAES on lhs.
21116
21117 2010-04-13  Michael Matz  <matz@suse.de>
21118
21119         PR middle-end/43730
21120         * builtins.c (expand_builtin_interclass_mathfn): Also create
21121         a register if the predicate doesn't match.
21122
21123 2010-04-13  Diego Novillo  <dnovillo@google.com>
21124
21125         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
21126         * c-pch.c: Include timevar.h.
21127         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
21128         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
21129         * ggc-common.c: Include timevar.h.
21130         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
21131         * timevar.def (TV_PCH_SAVE): Define.
21132         (TV_PCH_CPP_SAVE): Define.
21133         (TV_PCH_PTR_REALLOC): Define.
21134         (TV_PCH_PTR_SORT): Define.
21135         (TV_PCH_RESTORE): Define.
21136         (TV_PCH_CPP_RESTORE): Define.
21137
21138 2010-04-13  Michael Matz  <matz@suse.de>
21139
21140         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
21141         into MINUS_EXPRs.
21142         (can_reassociate_p): New function.
21143         (break_up_subtract_bb, reassociate_bb): Use it.
21144
21145 2010-04-13  Richard Guenther  <rguenther@suse.de>
21146
21147         PR bootstrap/43737
21148         * builtins.c (c_readstr): Fix assert.
21149
21150 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
21151
21152         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
21153         when generating cltd insn.
21154
21155         (*ashl<mode>3_1): Remove special handling for register operand 2.
21156         (*ashlsi3_1_zext): Ditto.
21157         (*ashlhi3_1): Ditto.
21158         (*ashlhi3_1_lea): Ditto.
21159         (*ashlqi3_1): Ditto.
21160         (*ashlqi3_1_lea): Ditto.
21161         (*<shiftrt_insn><mode>3_1): Ditto.
21162         (*<shiftrt_insn>si3_1_zext): Ditto.
21163         (*<shiftrt_insn>qi3_1_slp): Ditto.
21164         (*<rotate_insn><mode>3_1): Ditto.
21165         (*<rotate_insn>si3_1_zext): Ditto.
21166         (*<rotate_insn>qi3_1_slp): Ditto.
21167
21168 2010-04-13  Richard Guenther  <rguenther@suse.de>
21169
21170         * tree-ssa-structalias.c (callused_id): Remove.
21171         (call_stmt_vars): New.
21172         (get_call_vi): Likewise.
21173         (lookup_call_use_vi): Likewise.
21174         (lookup_call_clobber_vi): Likewise.
21175         (get_call_use_vi): Likewise.
21176         (get_call_clobber_vi): Likewise.
21177         (make_transitive_closure_constraints): Likewise.
21178         (handle_const_call): Adjust to do per-call call-used handling.
21179         (handle_pure_call): Likewise.
21180         (find_what_var_points_to): Remove general callused handling.
21181         (init_base_vars): Likewise.
21182         (init_alias_vars): Initialize call_stmt_vars.
21183         (compute_points_to_sets): Process call-used and call-clobbered
21184         vars for call statements.
21185         (delete_points_to_sets): Free call_stmt_vars.
21186
21187 2010-04-13  Richard Guenther  <rguenther@suse.de>
21188
21189         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21190         Only add RW dependence for dependence distance zero.
21191         Adjust maximal vectorization factor according to dependences.
21192         Move alignment handling ...
21193         (vect_find_same_alignment_drs): ... here.  New function.
21194         (vect_analyze_data_ref_dependences): Adjust.
21195         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
21196         (vect_analyze_data_refs): Adjust minimal vectorization factor
21197         according to data references.
21198         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
21199         dependences before determining the vectorization factor.
21200         Analyze alignment after determining the vectorization factor.
21201         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
21202         dependences before alignment.
21203         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
21204         Adjust prototype.
21205         (vect_analyze_data_refs): Likewise.
21206         (MAX_VECTORIZATION_FACTOR): New define.
21207
21208 2010-04-13  Duncan Sands  <baldrick@free.fr>
21209
21210         * except.h (lang_eh_type_covers): Remove.
21211         * except.c (lang_eh_type_covers): Likewise.
21212
21213 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21214             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21215
21216         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
21217         * config/s390/s390.c: Replace UNTIS_PER_WORD with
21218         UNITS_PER_LONG where it is ABI relevant.
21219         (s390_return_addr_rtx): Likewise.
21220         (s390_back_chain_rtx): Likewise.
21221         (s390_frame_area): Likewise.
21222         (s390_frame_info): Likewise.
21223         (s390_initial_elimination_offset): Likewise.
21224         (save_gprs): Likewise.
21225         (s390_emit_prologue): Likewise.
21226         (s390_emit_epilogue): Likewise.
21227         (s390_function_arg_advance): Likewise.
21228         (s390_function_arg): Likewise.
21229         (s390_va_start): Likewise.
21230         (s390_gimplify_va_arg): Likewise.
21231         (s390_function_profiler): Likewise.
21232         (s390_optimize_prologue): Likewise.
21233         (s390_rtx_costs): Likewise.
21234         (s390_secondary_reload): Likewise.
21235         (s390_promote_function_mode): Likewise.
21236         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
21237         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
21238         registers available.
21239         (s390_unwind_word_mode): New function.
21240         (s390_function_value): Split 64 bit values into register pair if
21241         used as return value.
21242         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
21243         function call parameters.  Handle parallels.
21244         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
21245         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
21246         (DWARF_CIE_DATA_ALIGNMENT): New macro.
21247         (s390_expand_setmem): Remove unused variable src_addr.
21248         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
21249         deal with 64 bit registers.
21250         * config/s390/s390.h: Define __zarch__ predefined macro.
21251         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
21252         (UNITS_PER_LONG): New macro.
21253         * libjava/include/s390-signal.h: Define extended ucontext
21254         structure containing the upper halfs of the 64 bit registers.
21255
21256 2010-04-13  Simon Baldwin  <simonb@google.com>
21257
21258         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
21259
21260 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
21261
21262         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
21263         rvalue on the RHS if the LHS is of a non-renamable type.
21264         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
21265
21266 2010-04-13  Matthias Klose  <doko@ubuntu.com>
21267
21268         * gcc.c (cc1_options): Handle -iplugindir before processing
21269         the cc1 spec. Only add -iplugindir once.
21270         (cpp_unique_options): Add -iplugindir option if -fplugin* options
21271         found.
21272         * common.opt (iplugindir): Remove `Separate' property, initialize.
21273         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
21274         option.
21275         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
21276         (distclean): Remove plugin dir.
21277         * doc/invoke.texi: Document -iplugindir.
21278
21279 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
21280
21281         * doc/plugins.texi (Loading Plugins): Document short
21282         -fplugin=foo option.
21283         (Plugin API): Mention default_plugin_dir_name function.
21284
21285         * gcc.c (find_file_spec_function): Add new declaration.
21286         (static_spec_func): Use it for "find-file".
21287         (find_file_spec_function): Add new function.
21288         (cc1_options): Add -iplugindir option if -fplugin* options found.
21289
21290         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
21291
21292         * plugin.c (add_new_plugin): Updated comment, and handle short
21293         plugin name.
21294         (default_plugin_dir_name): Added new function.
21295
21296         * common.opt (iplugindir): New option to set the plugin directory.
21297
21298 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
21299
21300         * config/i386/i386.md (any_rotate): New code iterator.
21301         (rotate_insn): New code attribute.
21302         (rotate): Ditto.
21303         (SWIM124): New mode iterator.
21304         (<rotate_insn>ti3): New expander.
21305         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
21306         any_rotate code iterator.
21307         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
21308         using any_rotate code iterator and SWIM124 mode iterator.
21309         (ix86_rotlti3): New insn_and_split pattern.
21310         (ix86_rotrti3): Ditto.
21311         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
21312         ix86_rotl{di,ti}3 patterns.
21313         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
21314         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
21315         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
21316         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
21317         code iterator and SWI mode iterator.
21318         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
21319         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
21320         code iterator.
21321         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
21322         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
21323         (bswap rotatert splitter): Add splitter.
21324         (bswap splitter): Macroize splitter using any_rotate code iterator.
21325         Add insn predicate to split only for TARGET_USE_XCHGB or when
21326         optimizing function for size.
21327
21328 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
21329
21330         * config/pa/pa.c (emit_move_sequence): Remove use of
21331         deleted variable flag_argument_noalias.
21332
21333 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21334
21335         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
21336         configurations.
21337         Add to unsupported targets list.
21338         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
21339         sparc*-sun-solaris2.[567]* from target lists.
21340         * configure: Regenerate.
21341         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
21342         removal.
21343         Remove Solaris 7 patch references.
21344         (Specific, sparc-sun-solaris2.7): Removed.
21345         (sparc-sun-solaris2*): Update Solaris 7 example.
21346         (sparc64-*-solaris2*): Likewise.
21347
21348 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21349
21350         * config.build (alpha*-dec-osf4*): Remove.
21351         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
21352         of obsolete configurations.
21353         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
21354         support.
21355         * config/alpha/t-osf4: Renamed to ...
21356         * config/alpha/t-osf5: ... this.
21357         * config/alpha/osf.h: Renamed to ...
21358         * config/alpha/osf5.h: ... this.
21359         Merged old osf5.h contents.
21360         Update comments.
21361         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
21362         (EXTRA_SPECS): Removed.
21363         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
21364         reflect removal of Tru64 UNIX V4.0/V5.0 support.
21365         Document that.
21366
21367 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21368
21369         * doc/contrib.texi (Contributors, Rainer Orth): Update.
21370
21371 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
21372
21373         PR/43702
21374         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
21375         __thiscall convention.
21376
21377 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
21378
21379         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
21380         orig_base.
21381         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
21382
21383 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
21384
21385         * function.c (assign_parms_initialize_all): Add unused attribute
21386         to fntype.
21387
21388 2010-04-12  Richard Guenther  <rguenther@suse.de>
21389
21390         * gsstruct.def (GSS_CALL): New.
21391         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
21392         * gimple.h: Include tree-ssa-alias.h.
21393         (struct gimple_statement_call): New.
21394         (union gimple_statement_struct_d): Add gimple_call member.
21395         (gimple_call_reset_alias_info): Declare.
21396         (gimple_call_use_set): New function.
21397         (gimple_call_clobber_set): Likewise.
21398         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
21399         * gimple.c (gimple_call_reset_alias_info): New function.
21400         (gimple_build_call_1): Call it.
21401         * lto-streamer-in.c (input_gimple_stmt): Likewise.
21402         * tree-inline.c (remap_gimple_stmt): Likewise.
21403         (expand_call_inline): Remove callused handling.
21404         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
21405         * tree-dfa.c (dump_variable): Likewise.
21406         * tree-parloops.c (parallelize_loops): Likewise.
21407         * tree-ssa.c (init_tree_ssa): Likewise.
21408         (delete_tree_ssa): Likewise.
21409         * tree-flow-inline.h (is_call_used): Remove.
21410         * tree-flow.h (struct gimple_df): Remove callused member.
21411         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
21412         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
21413         (ref_maybe_used_by_call_p_1): Simplify.
21414         (call_may_clobber_ref_p_1): Likewise.
21415         * tree-ssa-structalias.c (compute_points_to_sets): Set
21416         the call stmt used and clobbered sets.
21417         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
21418         (find_tail_calls): Verify the tail call.
21419
21420 2010-04-12  Richard Guenther  <rguenther@suse.de>
21421
21422         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
21423         single-iteration always-inline inlining.
21424         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
21425         (cgraph_decide_inlining): Do not handle always-inline specially.
21426         (try_inline): Remove always-inline cycle detection special case.
21427         Do not recurse on always-inlines.
21428         (cgraph_early_inlining): Do not iterate if not optimizing.
21429         (cgraph_gate_early_inlining): remove.
21430         (pass_early_inline): Run unconditionally.
21431         (gate_cgraph_decide_inlining): New function.
21432         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
21433         not inlining or optimizing.
21434         (cgraph_decide_inlining_of_small_functions): Also consider
21435         always-inline functions.
21436         (cgraph_default_inline_p): Return true for nodes which should
21437         disregard inline limits.
21438         (estimate_function_body_sizes): Assume zero size and time for
21439         nodes which are marked as disregarding inline limits.
21440         (cgraph_decide_recursive_inlining): Do not perform recursive
21441         inlining on always-inline nodes.
21442
21443 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
21444
21445         PR bootstrap/43699
21446         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
21447         for exprs satisfying handled_component_p.
21448
21449 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21450
21451         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
21452         non-constant aggregate elements.
21453
21454         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
21455         is a real initialization.
21456
21457 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
21458
21459         PR c/36774
21460         * c-decl.c (start_function): Move forward check for nested function.
21461
21462 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
21463
21464         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
21465         * config/sh/sh.c: Include reload.h.
21466         (sh_legitimize_reload_address): New.
21467         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
21468         sh_legitimize_reload_address.
21469
21470 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
21471
21472         * config/sh/sh.md (*movqi_pop): New insn pattern.
21473         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
21474
21475 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21476
21477         * config/i386/i386.md (any_shiftrt): New code iterator.
21478         (shiftrt_insn): New code attribute.
21479         (shiftrt): Ditto.
21480         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
21481         using any_shiftrt code iterator.
21482         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
21483         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
21484         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
21485         pattern from corresponding peephole2 patterns.
21486         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
21487         using any_shiftrt code iterator.
21488         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
21489         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
21490         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
21491         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
21492         *{ashr,lshr}<mode>3_cmp_zext.
21493         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
21494
21495 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21496
21497         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
21498         scratch register.
21499         (*lshr<mode>3_cconly): Ditto.
21500
21501 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21502
21503         * config/i386/i386.md (lshr<mode>3): Macroize expander from
21504         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
21505         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21506         pattern from *lshr{di,ti}3_1 and corresponding splitters using
21507         DWI mode iterator.
21508         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
21509         from corresponding peephole2 patterns.
21510         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
21511         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
21512         and *lshrdi3_1_rex64 using SWI mode iterator.
21513         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
21514         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
21515         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
21516         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
21517         and *lshrdi3_cmp_rex64 using SWI mode iterator.
21518         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
21519         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
21520         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
21521         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
21522         SWI mode iterator.
21523
21524 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
21525
21526         * config/i386/i386.md (ashr<mode>3): Macroize expander from
21527         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
21528         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21529         pattern from *ashr{di,ti}3_1 and corresponding splitters using
21530         DWI mode iterator.
21531         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
21532         from corresponding peephole2 patterns.
21533         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
21534         (ashrsi3_cvt): Rename from ashrsi3_31.
21535         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
21536         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
21537         and x86_64_shift_adj_3 using SWI48 mode iterator.
21538         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
21539         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
21540         and *ashrdi3_1_rex64 using SWI mode iterator.
21541         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
21542         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
21543         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
21544         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
21545         and *ashrdi3_cmp_rex64 using SWI mode iterator.
21546         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
21547         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
21548         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
21549         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
21550         SWI mode iterator.
21551         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
21552         * config/i386/i386.c (ix86_split_ashr): Update for renamed
21553         x86_shift<mode>_adj_3 expanders.
21554
21555 2010-04-10  Wei Guozhi  <carrot@google.com>
21556
21557         PR target/42601
21558         * config/arm/arm.c (arm_pic_static_addr): New function.
21559         (legitimize_pic_address): Call arm_pic_static_addr when it detects
21560         a static symbol.
21561         (arm_output_addr_const_extra): Output expression for new pattern.
21562         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
21563
21564 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
21565
21566         * ira-costs.c (record_reg_classes): Ignore alternatives that are
21567         not enabled.
21568
21569         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
21570         * web.c: Include "insn-config.h" and "recog.h".
21571         (union_match_dups): New function.
21572         (web_main): Call it.
21573         (union_defs): Don't try to recognize match_dups.
21574
21575         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
21576         if doing so would replace the entire pattern.
21577
21578 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
21579
21580         PR target/43707
21581         PR target/43709
21582         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
21583         and splitter pattern.  Change splitter operand 1 predicate to
21584         nonmemory_operand.
21585
21586 2010-04-09  Martin Jambor  <mjambor@suse.cz>
21587
21588         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
21589         lattices are addresses of CONST_DECLs with the same initial value.
21590         (ipcp_print_all_lattices): Print values of CONST_DECLs.
21591         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
21592
21593 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
21594             Bernd Schmidt  <bernds@codesourcery.com>
21595
21596         * loop-invariant.c (replace_uses): New static function.
21597         (move_invariant_reg): Use it to ensure we can replace the uses.
21598
21599 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
21600
21601         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
21602         function template.
21603         (picochip_override_options): Enable section anchors only above -O1.
21604         (picochip_reorg): Fixed a couple of build warnings.
21605
21606 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21607
21608         * configure.ac (plugin -rdynamic test): Log result.
21609         * configure: Regenerate.
21610         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
21611         (RDYNAMIC_SPEC): Define.
21612         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
21613
21614 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21615
21616         * configure.ac: Determine Sun ld version numbers.
21617         (comdat_group): Restrict GNU ld version checks to gld.
21618         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
21619         (enable_comdat): Support --enable-comdat.
21620         * configure: Regenerate.
21621         * doc/install.texi (Configuration): Document --enable-comdat.
21622
21623 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21624
21625         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
21626         * config/sol2-gld.h: ... here.
21627         * config.gcc (sparc*-*-solaris2*): Reflect this.
21628         (i[34567]86-*-solaris2*): Use it.
21629
21630 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
21631
21632         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
21633         setup_clocks_p.
21634         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
21635
21636 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21637
21638         PR 42965
21639         * diagnostic.c (diagnostic_initialize): Initialize
21640         some_warnings_are_errors.
21641         (diagnostic_finish): New.
21642         (diagnostic_action_after_output): Call it before exiting.
21643         (diagnostic_report_diagnostic): Do not print message here. Set
21644         some_warnings_are_errors.
21645         * diagnostic.h (diagnostic_context): Delete
21646         issue_warnings_are_errors_message. Add some_warnings_are_errors.
21647         (diagnostic_finish): Declare.
21648         * toplev.c (toplev_main): Call it before exit.
21649
21650 2010-04-09  Jason Merrill  <jason@redhat.com>
21651
21652         PR c++/42623
21653         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
21654         for incomplete type.
21655
21656         PR c++/41788
21657         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
21658         based on a warning flag.
21659
21660 2010-04-09  Richard Guenther  <rguenther@suse.de>
21661
21662         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
21663
21664 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
21665
21666         PR bootstrap/43684
21667         * varasm.c (default_assemble_visibility): Wrap vars that are
21668         set, but unused, by targets without GAS.
21669         * config/rs6000/rs6000.c (paired_emit_vector_compare):
21670         Remove set, but unused, vars.
21671         (rs6000_legitimize_tls_address): Likewise.
21672         (altivec_expand_dst_builtin): Likewise.
21673         * config/darwin.c (machopic_classify_symbol): Likewise.
21674         (machopic_indirection_name): Likewise.
21675
21676 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
21677
21678         * config/i386/i386.md (DWI): New mode iterator.
21679         (S): New mode attribute.
21680         (shift_operand): Ditto.
21681         (shift_immediate_operand): Ditto.
21682         (ashl_input_operand): Ditto.
21683         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
21684         using SDWIM mode iterator.
21685         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21686         pattern from *ashl{di,ti}3_1 and corresponding splitters using
21687         DWI mode iterator.
21688         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
21689         from corresponding peephole2 patterns.
21690         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
21691         and x86_64_shift_adj_1 using SWI48 mode iterator.
21692         (x86_shift<mode>_adj_2): Ditto.
21693         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
21694         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
21695         using SWI48 mode iterator.
21696         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
21697         *ashldi3_cmp_rex64 using SWI mode iterator.
21698         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
21699         *ashldi3_cconly_rex64 using SWI mode iterator.
21700         * config/i386/i386.c (ix86_split_ashl): Update for renamed
21701         x86_shift<mode>_adj_{1,2}.
21702         (ix86_split_ashr): Ditto.
21703         (ix86_split_lshr): Ditto.
21704
21705 2010-04-09  Richard Guenther  <rguenther@suse.de>
21706
21707         * target.h (builtin_conversion): Pass in input and output types.
21708         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
21709         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
21710         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
21711         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
21712
21713         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
21714         Handle AVX modes.
21715         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
21716
21717 2010-04-09  Richard Guenther  <rguenther@suse.de>
21718
21719         PR target/43152
21720         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
21721
21722 2010-04-09  Richard Guenther  <rguenther@suse.de>
21723
21724         * tree-vectorizer.h (struct _stmt_vec_info): Document
21725         that vectype is the type of the LHS.
21726         (supportable_widening_operation, supportable_narrowing_operation):
21727         Get both input and output vector types as arguments.
21728         (vect_is_simple_use_1): Declare.
21729         (get_same_sized_vectype): Likewise.
21730         * tree-vect-loop.c (vect_determine_vectorization_factor):
21731         Set STMT_VINFO_VECTYPE to the vector type of the def.
21732         (vectorizable_reduction): Adjust.
21733         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
21734         Adjust.  Specify the output vector type.
21735         (vect_pattern_recog_1): Adjust.
21736         * tree-vect-stmts.c (get_same_sized_vectype): New function.
21737         (vectorizable_call): Adjust.
21738         (vectorizable_conversion): Likewise.
21739         (vectorizable_operation): Likewise.
21740         (vectorizable_type_demotion): Likewise.
21741         (vectorizable_type_promotion): Likewise.
21742         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
21743         the def.
21744         (vect_is_simple_use_1): New function.
21745         (supportable_widening_operation): Get both input and output
21746         vector types.
21747         (supportable_narrowing_operation): Likewise.
21748         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
21749
21750 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
21751
21752         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
21753         __thiscall and _thiscall as predefined macros.
21754         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
21755         thiscall attribute handling.
21756         (ix86_comp_type_attributes): Likewise.
21757         (ix86_function_regparm): Likewise.
21758         (ix86_return_pops_args): Likewise.
21759         (init_cumulative_args): Likewise.
21760         (find_drap_reg): Likewise.
21761         (ix86_static_chain): Likewise.
21762         (x86_this_parameter): Likewise.
21763         (x86_output_mi_thunk): Likewise.
21764         (ix86_attribute_table): Add description for thiscall attribute.
21765         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
21766         * doc/extend.texi: Add documentation for thiscall.
21767
21768 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21769
21770         PR c++/28584
21771         * c.opt (Wint-to-pointer-cast): Available in C++.
21772         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
21773
21774 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
21775
21776         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
21777         * calls.c (expand_call): Pass the function type to aggregate_value_p.
21778         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
21779         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
21780         function type instead.  Reorder and simplify checks.
21781
21782         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
21783
21784 2010-04-08  Jing Yu  <jingyu@google.com>
21785             Zdenek Dvorak  <ook@ucw.cz>
21786
21787         PR tree-optimization/42720
21788         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
21789         loop unswitch conditions here from ...
21790         (tree_unswitch_single_loop): ... here.
21791
21792 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
21793
21794         * tree-if-conv.c: Fix comments and simplify logic.
21795
21796 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
21797
21798         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
21799         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
21800         (main_tree_if_conversion): Update call to tree_if_conversion.
21801
21802 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21803
21804         PR 42485
21805         * doc/invoke.texi (-b,-V): Delete.
21806         * doc/tm.texi: Do not mention -b.
21807         * gcc.c (display_help): Delete -b and -V.
21808         (process_command): Delete -b and -V.
21809         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
21810
21811 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
21812             Wolfgang Gellerich  <gellerich@de.ibm.com>
21813
21814         Implement target hook for loop unrolling
21815         * target.h (loop_unroll_adjust): Add a new target hook function.
21816         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
21817         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
21818         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
21819         (s390_loop_unroll_adjust): Implement the new target hook for s390.
21820         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
21821         target hook.
21822         (decide_unroll_stupid): Likewise.
21823
21824 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21825
21826         PR target/43643
21827         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
21828
21829 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21830
21831         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
21832         (Specific, *-*-solaris2*): Likewise.
21833         Don't prefer Sun as over GNU as.
21834
21835 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
21836
21837         * config/s390/s390.c (override_options): Adjust the z10 defaults
21838         for max-unroll-times, max-completely-peeled-insns
21839         and max-completely-peel-times.
21840
21841 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21842
21843         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
21844         instructions for z10.
21845         (s390_expand_setmem): Likewise.
21846         (s390_expand_cmpmem): Likewise.
21847
21848 2010-04-08  Richard Guenther  <rguenther@suse.de>
21849
21850         PR tree-optimization/43679
21851         * tree-ssa-pre.c (eliminate): Only propagate copies.
21852
21853 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
21854
21855         PR bootstrap/43681
21856         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
21857         set but not used variable warning.
21858
21859 2010-04-08  Wei Guozhi  <carrot@google.com>
21860
21861         PR target/41653
21862         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
21863         (arm_size_rtx_costs): Call the new function when optimized for size.
21864
21865 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
21866
21867         PR debug/43670
21868         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
21869         op0 is not a MEM, just return NULL instead of assertion
21870         failure.
21871         (discover_nonconstant_array_refs): Don't walk debug stmts.
21872
21873 2010-04-08  Doug Kwan  <dougkwan@google.com>
21874
21875         * configure.ac: Recognize gold and do not use its version number
21876         to test ld features.
21877         * configure: Regenerate.
21878
21879 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
21880
21881         PR middle-end/40815
21882         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
21883         (negate_value): Move code to push elements to broken_up_substracts ...
21884         (eliminate_plus_minus_pair): ... here.  Push operands that have no
21885         negative pair to plus_negates.
21886         (repropagate_negates, init_reassoc, fini_reassoc): Update.
21887
21888 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21889
21890         * doc/install.texi (Configuration): Move description of
21891         --enable-lto, --with-libelf*, --enable-gold from Java section to
21892         general section.
21893
21894         * doc/generic.texi (Working with declarations)
21895         (Function Properties, C and C++ Trees): Fix typos.
21896         * doc/sourcebuild.texi (Top Level): Likewise.
21897
21898 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
21899
21900         PR c/18624
21901         * tree.h (DECL_READ_P): Define.
21902         (struct tree_decl_common): Add decl_read_flag.
21903         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
21904         a set but not used warning.
21905         (merge_decls): Merge DECL_READ_P flag.
21906         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
21907         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
21908         * c-common.c (handle_used_attribute, handle_unused_attribute):
21909         Likewise.
21910         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
21911         New prototypes.
21912         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
21913         New functions.
21914         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
21915         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
21916         c_parser_binary_expression, c_parser_cast_expression,
21917         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
21918         Call default_function_array_read_conversion instead of
21919         default_function_array_conversion where needed.
21920         (c_parser_unary_expression, c_parser_conditional_expression,
21921         c_parser_postfix_expression_after_primary, c_parser_initelt):
21922         Likewise.  Call mark_exp_read where needed.
21923         (c_parser_statement_after_labels, c_parser_asm_operands,
21924         c_parser_typeof_specifier, c_parser_sizeof_expression,
21925         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
21926         where needed.
21927         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
21928         New.
21929         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
21930         (warn_unused_but_set_parameter): Default to warn_unused
21931         && extra_warnings.
21932         * doc/invoke.texi: Document -Wunused-but-set-variable and
21933         -Wunused-but-set-parameter.
21934
21935         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
21936         used count variable.
21937         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
21938         when operandN variables aren't used in the body of the expander
21939         or splitter.
21940         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
21941         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
21942         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
21943         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
21944         FOR_EACH_IMM_USE_ON_STMT): Likewise.
21945         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
21946         * tree.c (PROCESS_ARG): Likewise.
21947
21948 2010-04-07  Simon Baldwin  <simonb@google.com>
21949
21950         * diagnostic.h (diagnostic_override_option_index): New macro to
21951         set a diagnostic's option_index.
21952         * c-tree.h (c_cpp_error): Add warning reason argument.
21953         * opts.c (_warning_as_error_callback): New.
21954         (register_warning_as_error_callback): Store callback for
21955         warnings enabled via enable_warning_as_error.
21956         (enable_warning_as_error): Call callback, minor code tidy.
21957         * opts.h (register_warning_as_error_callback): Declare.
21958         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
21959         response to -Werror=.
21960         (c_common_init_options): Register warning_as_error_callback in opts.c.
21961         * common.opt: Add -Wno-cpp option.
21962         * c-common.c (struct reason_option_codes_t): Map cpp warning
21963         reason codes to gcc option indexes.
21964         * (c_option_controlling_cpp_error): New function, lookup the gcc
21965         option index for a cpp warning reason code.
21966         * (c_cpp_error): Add warning reason argument, call
21967         c_option_controlling_cpp_error for diagnostic_override_option_index.
21968         * doc/invoke.texi: Document -Wno-cpp.
21969
21970 2010-04-07  Richard Guenther  <rguenther@suse.de>
21971
21972         * ipa-reference.c (mark_load): Use get_base_address.
21973         (mark_store): Likewise.
21974
21975         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
21976         inserting GIMPLE_NOPs into the IL.
21977         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21978         Explicitly strip handled components and indirect references.
21979
21980         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
21981         folding address expressions.
21982         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
21983         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
21984         operand_equal_p to compare decls.
21985         (ptr_deref_may_alias_decl_p): Likewise.
21986         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
21987         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
21988         Handle reversed comparison ops.
21989         * tree-sra.c (asm_visit_addr): Use get_base_address.
21990         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
21991         * ipa-reference.c (mark_address): Use get_base_address.
21992
21993 2010-04-07  Richard Guenther  <rguenther@suse.de>
21994
21995         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
21996         Propagate constants everywhere.
21997
21998 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
21999
22000         PR debug/43516
22001         * tree.c (MAX_INT_CACHED_PREC): Define.
22002         (nonstandard_integer_type_cache): New array.
22003         (build_nonstandard_integer_type): Cache results for precision
22004         <= MAX_INT_CACHED_PREC.
22005
22006 2010-04-07  Richard Guenther  <rguenther@suse.de>
22007
22008         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
22009         -fargument-noalias-global, -fargument-noalias-anything): Remove.
22010         * common.opt: Likewise.
22011         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
22012         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
22013         (nonoverlapping_memrefs_p): Likewise.
22014         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
22015         * opts.c (common_handle_option): Handle OPT_fargument_alias,
22016         OPT_fargument_noalias, OPT_fargument_noalias_anything and
22017         OPT_fargument_noalias_global for backward compatibility.
22018
22019 2010-04-07  Richard Guenther  <rguenther@suse.de>
22020
22021         PR tree-optimization/43270
22022         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
22023         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
22024         * tree-ssa-pre.c (phi_translate_1): Adjust.
22025         (fully_constant_expression): Split out vn_reference handling to ...
22026         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
22027         Fold reads from constant strings.
22028         (vn_reference_lookup): Handle fully constant references.
22029         (vn_reference_lookup_pieces): Likewise.
22030         * Makefile.in (expmed.o-warn): Add -Wno-error.
22031
22032 2010-04-07  Martin Jambor  <mjambor@suse.cz>
22033
22034         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
22035
22036 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
22037
22038         PR driver/41594
22039         * gcc.c: Add -static-libstdc++ to list of recognized options.
22040
22041 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22042
22043         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
22044
22045 2010-04-07  Richard Guenther  <rguenther@suse.de>
22046
22047         PR middle-end/42617
22048         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
22049         bases build simple mem attributes to retain points-to information.
22050
22051 2010-04-07  Richard Guenther  <rguenther@suse.de>
22052
22053         PR middle-end/42617
22054         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
22055         preserve points-to related information.
22056
22057 2010-04-07  Richard Guenther  <rguenther@suse.de>
22058
22059         PR middle-end/42617
22060         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
22061         discard plain indirect references.
22062         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
22063         * tree.c (tree_nop_conversion): Likewise.
22064
22065 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
22066
22067         PR debug/43628
22068         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
22069
22070 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
22071
22072         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
22073         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
22074
22075 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
22076
22077         * tree-if-conv.c: Fix indentation and comments.
22078
22079 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
22080
22081         * tree-if-conv.c: Sort static functions in topological order.
22082
22083 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
22084
22085         * tree-if-conv.c: Fix indentation and comments.
22086
22087 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22088
22089         PR middle-end/43519
22090         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
22091         lang_hooks.types.type_for_size instead of
22092         build_nonstandard_integer_type.
22093         When converting an unsigned type to signed, double its precision.
22094         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
22095         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
22096         (graphite_create_new_loop_guard): When ub + 1 wraps around,
22097         use lb <= ub.
22098
22099 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22100
22101         PR middle-end/43519
22102         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
22103         POINTER_PLUS_EXPR for pointer types.
22104
22105 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22106
22107         PR middle-end/43519
22108         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
22109         * graphite-clast-to-gimple.c: Include langhooks.h.
22110         (max_signed_precision_type): New.
22111         (max_precision_type): Takes two types as arguments.
22112         (precision_for_value): New.
22113         (precision_for_interval): New.
22114         (gcc_type_for_interval): New.
22115         (gcc_type_for_value): New.
22116         (gcc_type_for_clast_term): New.
22117         (gcc_type_for_clast_red): New.
22118         (gcc_type_for_clast_bin): New.
22119         (gcc_type_for_clast_expr): Split up into several functions.
22120         (gcc_type_for_clast_eq): Rewritten.
22121         (compute_bounds_for_level): New.
22122         (compute_type_for_level_1): New.
22123         (compute_type_for_level): New.
22124         (gcc_type_for_cloog_iv): Removed.
22125         (gcc_type_for_iv_of_clast_loop): Rewritten.
22126         (graphite_create_new_loop): Compute the lower and upper bound types
22127         with gcc_type_for_clast_expr.
22128         (graphite_create_new_loop_guard): Same.
22129         (find_cloog_iv_in_expr): Removed.
22130         (compute_cloog_iv_types_1): Removed.
22131         (compute_cloog_iv_types): Removed.
22132         (gloog): Do not call compute_cloog_iv_types.
22133         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
22134         GBB_CLOOG_IV_TYPES.
22135         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
22136         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
22137         (GBB_CLOOG_IV_TYPES): Removed.
22138
22139 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22140
22141         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
22142         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
22143         (detect_commutative_reduction): Same.
22144
22145 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22146
22147         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
22148         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
22149         argument.
22150         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
22151         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
22152         (rewrite_commutative_reductions_out_of_ssa): Same.
22153         * passes.c (execute_function_todo): Call verify_ssa for every pass
22154         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
22155         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
22156         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
22157         with an extra argument.
22158         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
22159         verify_ssa only when the extra argument is true.
22160         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
22161         with an extra argument.
22162         (tree_transform_and_unroll_loop): Same.
22163
22164 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22165
22166         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
22167         for all the passes of the LNO having LOOP_CLOSED_SSA.
22168         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
22169         * tree-loop-distribution.c (pass_loop_distribution): Same.
22170         * tree-pass.h (TODO_verify_loops): Removed.
22171         * tree-ssa-loop.c (pass_tree_loop_init): Same.
22172         (pass_lim): Same.
22173         (pass_tree_unswitch): Same.
22174         (pass_predcom): Same.
22175         (pass_vectorize): Same.
22176         (pass_linear_transform): Same.
22177         (pass_graphite_transforms): Same.
22178         (pass_iv_canon): Same.
22179         (pass_complete_unroll): Same.
22180         (pass_complete_unrolli): Same.
22181         (pass_parallelize_loops): Same.
22182         (pass_loop_prefetch): Same.
22183         (pass_iv_optimize): Same.
22184
22185 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
22186
22187         PR middle-end/32824
22188         * passes.c (init_optimization_passes): Move pass_lim before
22189         pass_copy_prop and pass_dce_loop.
22190
22191 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
22192
22193         PR target/43667
22194         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
22195         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
22196         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
22197         MULTI_* defines for 4 argument vpermil2p* builtins.
22198
22199 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
22200
22201         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
22202         * config/i386/i386.c (x86_maybe_negate_const_int): New.
22203         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
22204         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
22205         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
22206         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
22207         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
22208         Use x86_maybe_negate_const_int to output insn mnemonic.
22209         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
22210         check from instruction predicate.  Update comments.
22211         * config/i386/sync.md (sync_add<mode>): Use
22212         x86_maybe_negate_const_int to output insn mnemonic.
22213
22214 2010-04-06  Jan Hubicka  <jh@suse.cz>
22215
22216         PR tree-optimization/42906
22217         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
22218         IGNORE_SELF argument.  Set visited_control_parents for fully
22219         processed BBs.
22220         (find_obviously_necessary_stmts): Update call of
22221         mark_control_dependent_edges_necessary.
22222         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
22223
22224 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
22225
22226         * config/i386/i386.md: Remove comment about 'e' and 'E'
22227         operand modifier.
22228
22229 2010-04-06  Richard Guenther  <rguenther@suse.de>
22230
22231         PR tree-optimization/43627
22232         * tree-vrp.c (extract_range_from_unary_expr): Widenings
22233         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
22234         not varying.
22235
22236 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
22237
22238         * BASE-VER: Change to 4.6.0.
22239
22240         PR target/43638
22241         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
22242         handling.
22243
22244 2010-04-06  Richard Guenther  <rguenther@suse.de>
22245
22246         PR middle-end/43661
22247         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
22248
22249 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22250
22251         * doc/invoke.texi (Optimize Options): Document that LTO
22252         won't remove object access purely due to incompatible
22253         declarations.
22254
22255 2010-04-04  Matthias Klose  <doko@ubuntu.com>
22256
22257         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
22258         Initialize variable.
22259
22260 2010-04-03  Richard Guenther  <rguenther@suse.de>
22261
22262         PR middle-end/42509
22263         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
22264         require a non-NULL MEM_OFFSET.
22265
22266 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
22267
22268         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
22269         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
22270         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
22271         config/alpha/predicates.md, config/arm/arm.md,
22272         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
22273         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
22274         config/darwin9.h, config/darwin.c, config/darwin.h,
22275         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
22276         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
22277         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
22278         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
22279         config/mips/mips.md, config/mn10300/mn10300.c,
22280         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
22281         config/rs6000/aix.h, config/rs6000/dfp.md,
22282         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
22283         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
22284         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
22285         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
22286         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
22287         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
22288         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
22289         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
22290         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
22291         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
22292         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
22293         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
22294         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
22295         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
22296         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
22297         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
22298         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
22299         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
22300         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
22301         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
22302         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
22303         opt-functions.awk, opth-gen.awk, params.def, passes.c,
22304         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
22305         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
22306         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
22307         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
22308         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
22309         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
22310         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
22311         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
22312         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
22313         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
22314         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
22315         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
22316         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
22317         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
22318
22319 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22320
22321         PR other/43620
22322         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
22323         * aclocal.m4: Regenerate.
22324
22325 2010-04-02  Richard Guenther  <rguenther@suse.de>
22326
22327         PR tree-optimization/43629
22328         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
22329         if we have seen a constant value.
22330
22331 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
22332
22333         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
22334
22335 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
22336
22337         PR target/43469
22338         * arm.c (legitimize_tls_address): Adjust call to
22339         gen_tls_load_dot_plus_four.
22340         (arm_note_pic_base): New function.
22341         (arm_cannot_copy_insn_p): Use it.
22342         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
22343         constraint.
22344
22345 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22346
22347         PR bootstrap/43531
22348
22349         Revert:
22350         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22351
22352         * Makefile.in ($(out_object_file)): Depend on
22353         gt-$(basename $(notdir $(out_file))).h.
22354
22355 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
22356
22357         * config.gcc (lm32-*-rtems*): Add t-lm32.
22358
22359 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
22360
22361         * config.gcc: Add lm32-*-rtems*.
22362         * config/lm32/rtems.h: New file.
22363
22364 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
22365
22366         PR target/42609
22367         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
22368
22369 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
22370
22371         * dwarf2out.c (output_compilation_unit_header): For
22372         -gdwarf-4 use version 4 instead of version 3.
22373         (output_line_info): For version 4 and above emit additional
22374         maximum ops per insn header field.
22375         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
22376
22377         * dwarf2out.c (is_c_family, is_java): Remove.
22378         (lower_bound_default): New function.
22379         (add_bound_info, gen_descr_array_type_die): Use it.
22380
22381 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
22382
22383         PR debug/43325
22384         * dwarf2out.c (gen_variable_die): Allow debug info for variable
22385         re-declaration when it happens in a function.
22386
22387 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
22388
22389         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
22390         (cgraph_remove_function_insertion_hook): Same.
22391         (cgraph_call_function_insertion_hooks): Same.
22392
22393 2010-04-01  Richard Guenther  <rguenther@suse.de>
22394
22395         PR middle-end/43614
22396         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
22397         and TREE_THIS_VOLATILE.
22398         (copy_ref_info): Likewise.
22399         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
22400         * tree.c (build6_stat): Ignore side-effects of all but arg5
22401         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
22402         TARGET_MEM_REF.
22403
22404 2010-04-01  Richard Guenther  <rguenther@suse.de>
22405
22406         PR tree-optimization/43607
22407         * ipa-type-escape.c (check_call): Do not access non-existing
22408         arguments.
22409
22410 2010-04-01  Richard Guenther  <rguenther@suse.de>
22411
22412         PR middle-end/43602
22413         Revert
22414         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
22415                     Jack Howarth  <howarth@bromo.med.uc.edu>
22416
22417         * tree-profile.c (tree_init_ic_make_global_vars): Make static
22418         variables TLS.
22419
22420 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22421
22422         * doc/install.texi (Prerequisites): Document libelf usability on
22423         IRIX 5/6 and Solaris 2.
22424         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
22425         Update GNU as, GNU ld requirements.
22426         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
22427         Document Sun Studio compiler download.
22428         Update and simplify as, ld recommendations.
22429         (Specific, *-*-solaris2.7): Note obsoletion, removal.
22430
22431 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22432
22433         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
22434         with_tune_32 to pentium4.
22435
22436 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
22437
22438         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
22439
22440 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22441
22442         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
22443         obsoletion, removal.
22444         Update IDO URL.
22445         Document GNU as requirement.
22446         Update configure requirements.
22447         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
22448         Recomment IRIX 6.5.18+.
22449         Document IDF/IDL requirement.
22450         Document GNU as requirement.
22451         Document GNU ld bootstrap failure.
22452         Remove freeware.sgi.com reference.
22453
22454 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22455
22456         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
22457         UNIX V4.0, V5.0 obsoletion, removal.
22458         Remove --with-gc=simple reference.
22459         Update VM requirements during bootstrap.
22460         Remove -oldas bootstrap description.
22461         Update binutils reference.
22462         Remove comparison failure note.
22463
22464 2010-03-31  Richard Guenther  <rguenther@suse.de>
22465             Zdenek Dvorak  <ook@ucw.cz>
22466             Sebastian Pop  <sebastian.pop@amd.com>
22467
22468         PR middle-end/43464
22469         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
22470         with multiple arguments.
22471         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
22472
22473 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22474
22475         * graphite-dependences.c (print_pddr): Call print_pdr with an
22476         extra argument.
22477         * graphite-poly.c (debug_pdr): Add an extra argument for the
22478         verbosity level.
22479         (print_pdr): Same.
22480         (print_pbb_domain): Same.
22481         (print_pbb): Same.
22482         (print_scop_context): Same.
22483         (print_scop): Same.
22484         (print_cloog): Same.
22485         (debug_pbb_domain): Same.
22486         (debug_pbb): Same.
22487         (print_pdrs): Same.
22488         (debug_pdrs): Same.
22489         (debug_scop_context): Same.
22490         (debug_scop): Same.
22491         (debug_cloog): Same.
22492         (print_scop_params): Same.
22493         (debug_scop_params): Same.
22494         (print_iteration_domain): Same.
22495         (print_iteration_domains): Same.
22496         (debug_iteration_domain): Same.
22497         (debug_iteration_domains): Same.
22498         (print_scattering_function): Same.
22499         (print_scattering_functions): Same.
22500         (debug_scattering_function): Same.
22501         (debug_scattering_functions): Same.
22502         * graphite-poly.h (debug_pdr): Update declaration.
22503         (print_pdr): Same.
22504         (print_pbb_domain): Same.
22505         (print_pbb): Same.
22506         (print_scop_context): Same.
22507         (print_scop): Same.
22508         (print_cloog): Same.
22509         (debug_pbb_domain): Same.
22510         (debug_pbb): Same.
22511         (print_pdrs): Same.
22512         (debug_pdrs): Same.
22513         (debug_scop_context): Same.
22514         (debug_scop): Same.
22515         (debug_cloog): Same.
22516         (print_scop_params): Same.
22517         (debug_scop_params): Same.
22518         (print_iteration_domain): Same.
22519         (print_iteration_domains): Same.
22520         (debug_iteration_domain): Same.
22521         (debug_iteration_domains): Same.
22522         (print_scattering_function): Same.
22523         (print_scattering_functions): Same.
22524         (debug_scattering_function): Same.
22525         (debug_scattering_functions): Same.
22526
22527 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22528
22529         * graphite-poly.c (print_scattering_function_1): New.
22530         (print_scattering_function): Call it.
22531         (print_scop_params): Remove spaces at the end of lines.
22532         (print_cloog): New.
22533         (debug_cloog): New.
22534         * graphite-poly.h (print_cloog): Declared.
22535         (debug_cloog): Declared.
22536
22537 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22538
22539         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
22540         in loop->header.
22541         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
22542         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
22543         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
22544         to switch between adding the IV bump in loop->latch or in loop->header.
22545
22546 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22547
22548         * graphite-poly.c (print_scattering_function): Pretty print following
22549         the scoplib format.
22550         (print_pdr): Same.
22551         (print_pbb_domain): Same.
22552         (dump_gbb_cases): Same.
22553         (dump_gbb_conditions): Same.
22554         (print_pdrs): Same.
22555         (print_pbb): Same.
22556         (print_scop_params): Same.
22557         (print_scop_context): Same.
22558         (print_scop): Same.
22559         (print_pbb_body): New.
22560         (lst_indent_to): New.
22561         (print_lst): Start new lines with a #.
22562         * graphite-poly.h (pbb_bb): New.
22563         (pbb_index): Use pbb_bb.
22564         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
22565         disjuncts.
22566         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
22567
22568 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
22569
22570         * dwarf2out.c (size_of_die): For -gdwarf-4 use
22571         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
22572         and 0 instead of 1 for dw_val_class_flag.
22573         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
22574         dw_val_class_range_list, dw_val_class_loc_list,
22575         dw_val_class_lineptr and dw_val_class_macptr, use
22576         DW_FORM_flag_present for dw_val_class_flag and
22577         DW_FORM_exprloc for dw_val_class_loc.
22578         (output_die): For -gdwarf-4 print dw_val_class_loc
22579         size as uleb128 instead of 1 or 2 bytes and don't print
22580         anything for dw_val_class_flag.
22581
22582         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
22583         instead of cselib_lookup following by tweaking locs->setting_insn.
22584
22585         PR bootstrap/43596
22586         * cselib.c (cselib_process_insn): Clear cselib_current_insn
22587         even before returning from label, setjmp call or volatile asm
22588         handling.
22589
22590 2010-03-31  Richard Guenther  <rguenther@suse.de>
22591
22592         PR middle-end/43600
22593         * cgraphunit.c (cgraph_output_in_order): Do not allocate
22594         temporary data on stack.
22595
22596 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22597
22598         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
22599         (PUSHSECTION_ASM_OP): Remove.
22600         (POPSECTION_ASM_OP): Remove.
22601         (PUSHSECTION_FORMAT): Remove.
22602         * config/sol2.h (PUSHSECTION_FORMAT): Define.
22603         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
22604         * config/sol2.c (solaris_output_init_fini): Use it.
22605
22606 2010-03-31  Jie Zhang  <jie@codesourcery.com>
22607
22608         PR 43574
22609         * opt-functions.awk (var_type_struct): Use signed char type
22610         for simple variables.
22611
22612 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22613
22614         * config/sol2.c: Include output.h.
22615         (solaris_assemble_visibility): New function.
22616         * config/t-sol2 (sol2.o): Add output.h dependency.
22617         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
22618         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
22619         Redefine.
22620
22621 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
22622
22623         PR target/43580
22624         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
22625         V2SImode or XFmode on PRE_DEC.
22626
22627         PR debug/43557
22628         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
22629         BLKmode.
22630
22631 2010-03-31  Jie Zhang  <jie@codesourcery.com>
22632
22633         PR 43562
22634         * reload.h (caller_save_initialized_p): Declare.
22635         * toplev.c (backend_init_target): Don't call
22636         init_caller_save but set caller_save_initialized_p to false.
22637         * caller-save.c (caller_save_initialized_p): Define.
22638         (init_caller_save): Check caller_save_initialized_p.
22639         * ira.c (ira): Call init_caller_save if flag_caller_saves.
22640
22641 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22642
22643         PR target/39048
22644         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
22645         and soft-fp/t-softfp to tmake_file.
22646         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
22647         (LIBGCC2_TF_CEXT): Define.
22648         (TF_SIZE): Define.
22649
22650 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
22651
22652         PR debug/42977
22653         * cselib.c (n_useless_values): Document handling of debug locs.
22654         (n_useless_debug_values, n_debug_values): New variables.
22655         (new_elt_loc_list): Don't add to debug values, keep count.
22656         (promote_debug_loc): New.
22657         (cselib_reset_table): Zero new variables.
22658         (entry_and_rtx_equal_p): Promote debug locs.
22659         (discard_useless_locs): Increment n_useless_debug_values for
22660         debug values.
22661         (remove_useless_values): Adjust n_useless_values and n_debug_values
22662         with n_useless_debug_values.
22663         (add_mem_for_addr): Promote debug locs.
22664         (cselib_lookup_mem): Likewise.
22665         (cselib_lookup_addr): Renamed to...
22666         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
22667         (cselib_log_lookup): ... this.  Turn into...
22668         (cselib_lookup_addr): ... new wrapper.
22669         (cselib_lookup_from_insn): New.
22670         (cselib_invalidate_regno): Increment n_useless_debug_values for
22671         debug values.
22672         (cselib_invalidate_mem): Likewise.
22673         (cselib_process_insn): Take n_deleted and n_debug_values into
22674         account to guard remove_useless_value call.
22675         (cselib_finish): Zero n_useless_debug_values.
22676         * cselib.h (cselib_lookup_from_insn): Declare.
22677         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
22678         (sched_analyze_2): Likewise.
22679
22680 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
22681
22682         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
22683         functions.
22684         (adjust_mems): Replace narrowing SUBREG of expression containing
22685         just PLUS, MINUS, MULT and ASHIFT of registers and constants
22686         with operations in the narrower mode.
22687
22688         PR debug/43593
22689         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
22690         regs_invalidated_by_call instead all call_used_reg_set registers.
22691
22692 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
22693
22694         PR middle-end/43430
22695         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
22696         pointer comparisons with types_compatible_p.
22697         * tree-vect-stmts.c (vectorizable_call): Same.
22698         (vectorizable_condition): Same.
22699
22700 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22701
22702         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
22703         stack check if the mask would be zero.
22704
22705 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
22706             Jack Howarth  <howarth@bromo.med.uc.edu>
22707
22708         * tree-profile.c (tree_init_ic_make_global_vars): Make static
22709         variables TLS.
22710
22711 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
22712
22713         PR other/25232
22714         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
22715         and __unordtf2.
22716         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
22717         Include ___unordxf2 and ___unordtf2.
22718         * config/i386/libgcc-glibc.ver: Do not define inheritance from
22719         GCC_4.4.0 here.
22720
22721 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
22722
22723         * config/lm32/t-lm32: New file.
22724         * config.gcc: Use the above file when targetting lm32.
22725
22726 2010-03-28  Duncan Sands  <baldrick@free.fr>
22727
22728         * Makefile.in (PLUGIN_HEADERS): Add except.h.
22729
22730 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
22731
22732         PR middle-end/43431
22733         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
22734         Improve vectorization cost model diagnostic.
22735
22736 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
22737
22738         PR middle-end/43436
22739         * tree-vect-data-refs.c (vect_analyze_data_refs): When
22740         compute_data_dependences_for_loop returns false, early exit
22741         and output an extra diagnostic for the failed data reference
22742         analysis.
22743
22744 2010-03-29  Richard Guenther  <rguenther@suse.de>
22745
22746         PR tree-optimization/43560
22747         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
22748         (can_sm_ref_p): Treat stores to readonly locations as trapping.
22749
22750 2010-03-29  Jie Zhang  <jie@codesourcery.com>
22751
22752         PR 43564
22753         * toplev.c (process_options): Set optimization_default_node
22754         and optimization_current_node.
22755         * opts.c (decode_options): Don't set optimization_default_node
22756         and optimization_current_node.
22757
22758 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
22759
22760         * config/rtems.h: Abandon -qrtems_debug.
22761
22762 2010-03-28  Jan Hubicka  <jh@suse.cz>
22763
22764         PR tree-optimization/43505
22765         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
22766         map should not be copied.
22767
22768 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22769
22770         PR middle-end/41674
22771         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
22772         cdtors, set DECL_PRESERVE_P.
22773         * ipa.c (cgraph_externally_visible_p): Return true if declaration
22774         should be preseved.
22775
22776 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
22777
22778         PR tree-optimization/43528
22779         * stor-layout.c (place_field): Check that constant fits into
22780         unsigned HWI when skipping calculation of MS bitfield layout.
22781
22782 2010-03-27  Jan Hubicka  <jh@suse.cz>
22783
22784         PR middle-end/43391
22785         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
22786         notice_global_symbol work.
22787
22788 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
22789
22790         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
22791         instead of dwarf2out_decl.
22792         (struct var_loc_node): Remove section_label field.
22793         (dwarf2out_function_decl): New function.
22794         (dwarf2out_var_location): Don't set section_label field.
22795         (dwarf2out_begin_function): Don't empty decl_loc_table here.
22796
22797 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22798
22799         PR tree-optimization/43544
22800         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22801         First argument for builtin vectorized function hook is now a
22802         tree to be able to distinguish between machine specific and
22803         standard builtins.
22804         * targhooks.c (default_builtin_vectorized_function): Ditto.
22805         * targhooks.h (default_builtin_vectorized_function): Ditto.
22806         * target.h (struct gcc_target): Ditto.
22807         * tree-vect-stmts.c (vectorizable_function): Ditto.
22808         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
22809         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
22810         Ditto.
22811
22812 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
22813
22814         PR c/43381
22815         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
22816         nested binding iff it is a FUNCTION_DECL.
22817         (store_parm_decls_newstyle): Pass nested=true to bind for
22818         FUNCTION_DECLs amongst parameters.
22819
22820 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
22821
22822         * var-tracking.c (vt_expand_loc_callback): Don't run
22823         cselib_expand_value_rtx_cb in dummy mode if
22824         cselib_dummy_expand_value_rtx_cb returned false.
22825
22826         * var-tracking.c (emit_note_insn_var_location): For one part
22827         notes with offset 0, don't add EXPR_LIST around the location.
22828         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
22829         add_location_or_const_value_attribute): Adjust for that change.
22830
22831         PR debug/43540
22832         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
22833         into first operand and location into second.
22834         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
22835         dw_cfi_oprnd_loc for DW_CFA_expression.
22836         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
22837         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
22838         assume first argument is regnum and second argument is location.
22839
22840 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
22841
22842         PR target/42113
22843         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
22844         of scratch register to DImode.  Split to DImode comparison operator.
22845         Use SImode subreg of scratch register in the multiplication.
22846         (*cmp_sadd_sidi): Ditto.
22847         (*cmp_ssub_si): Ditto.
22848         (*cmp_ssub_sidi): Ditto.
22849
22850 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
22851
22852         PR target/43524
22853         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
22854         Remove invalid assert and wrong comment.
22855
22856 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
22857
22858         PR debug/43516
22859         * flags.h (final_insns_dump_p): New extern.
22860         * final.c (final_insns_dump_p): New variable.
22861         (rest_of_clean_state): Set it before -fdump-final-insns=
22862         dumping, clear afterwards.
22863         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
22864         MEM_ALIAS_SET on MEMs.
22865
22866 2010-03-26  David S. Miller  <davem@davemloft.net>
22867
22868         * configure.ac: Fix sparc GOTDATA_OP bug check.
22869         * configure: Rebuild.
22870
22871 2010-03-26  Alan Modra  <amodra@gmail.com>
22872
22873         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
22874
22875 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22876
22877         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
22878         TLS_SECTION_ASM_FLAG.
22879
22880 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
22881
22882         PR bootstrap/43511
22883         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
22884         Clear first_function_block_is_cold.
22885
22886         PR c/43385
22887         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
22888         argument if the argument is truth_value_p.
22889
22890 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22891
22892         * config/rs6000/constraints.md: Update copyright year for my changes.
22893
22894         PR target/43484
22895         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
22896         used in reg+reg addressing, swap registers.
22897
22898 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22899
22900         PR debug/43293
22901         * target.h (struct gcc_target): Add code_end hook.
22902         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
22903         if not yet defined.
22904         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
22905         * toplev.c (compile_file): Call targetm.asm_out.code_end
22906         hook before unwind info/debug info output.
22907         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
22908         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
22909         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
22910         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
22911         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
22912         * config/i386/i386.c (ix86_file_end): Renamed to...
22913         (ix86_code_end): ... this.  Make static.  Don't call
22914         file_end_indicate_exec_stack.  Emit unwind info using
22915         final_start_function/final_end_function.
22916         (darwin_x86_file_end): Remove.
22917         (TARGET_ASM_CODE_END): Define.
22918         * config/i386/i386.h (TARGET_ASM_FILE_END,
22919         NEED_INDICATE_EXEC_STACK): Don't define.
22920         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
22921         (TARGET_ASM_FILE_END): Define to darwin_file_end.
22922         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
22923         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
22924
22925         PR target/43498
22926         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
22927         at the beginning and final_end_function at the end.
22928         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
22929
22930 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22931
22932         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
22933         and Sun as TLS syntax.
22934         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
22935         * configure: Regenerate.
22936         * config.in: Regenerate.
22937         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
22938         (default_elf_asm_named_section): Use it.
22939         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
22940         (i386_output_dwarf_dtprel): Likewise.
22941         (output_addr_const_extra): Likewise.
22942         (output_pic_addr_const): Lowercase @GOTTPOFF.
22943         (output_addr_const_extra): Likewise.
22944         (output_pic_addr_const): Lowercase @GOTNTPOFF.
22945         (output_addr_const_extra): Likewise.
22946         (output_pic_addr_const): Lowercase @INDNTPOFF.
22947         (output_addr_const_extra): Likewise.
22948         (output_pic_addr_const): Lowercase @NTPOFF.
22949         (output_addr_const_extra): Likewise.
22950         (output_pic_addr_const): Lowercase @TPOFF.
22951         (output_addr_const_extra): Likewise.
22952         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
22953         (*tls_global_dynamic_64): Likewise.
22954         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
22955         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
22956
22957         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
22958         (ASM_OUTPUT_TLS_COMMON): Use it.
22959         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
22960
22961         PR target/38118
22962         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
22963         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22964         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
22965         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
22966         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22967         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
22968
22969 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22970
22971         * config/i386/i386.c (override_options): Don't accept
22972         -mtls-dialect=sun any longer.
22973         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
22974         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
22975         (*tls_local_dynamic_base_32_sun): Likewise.
22976         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22977
22978 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22979
22980         PR debug/43508
22981         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22982         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
22983
22984         PR debug/43479
22985         * ira.c (adjust_cleared_regs): New function.
22986         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
22987
22988         PR debug/19192
22989         PR debug/43479
22990         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
22991         from gimple_block.
22992         * expr.c (expand_expr_real): Restore previous
22993         curr_insn_source_location and curr_insn_block after
22994         expand_expr_real_1 call.
22995         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
22996         instead of expand_expr_real_1.
22997
22998 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
22999
23000         PR rtl-optimization/43413
23001         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
23002         hard regs too.
23003
23004 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
23005
23006         PR target/43348
23007         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
23008         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
23009
23010 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23011
23012         * config/i386/i386.c (ix86_target_string): Add -mfma.
23013         Fix a typo in comment.
23014
23015 2010-03-22  Mike Stump  <mikestump@comcast.net>
23016
23017         PR target/23071
23018         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
23019         Don't overly align based upon packed packed fields.
23020
23021 2010-03-22  Jason Merrill  <jason@redhat.com>
23022
23023         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
23024         Use () rather than [], and move before the element type.
23025
23026 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23027
23028         * doc/configfiles.texi (Configuration Files): Removed
23029         fixinc/Makefile*, intl/Makefile.*.
23030         * doc/makefile.texi: Fixed markup. Abstract from version
23031         control system used.
23032         (Makefile): Removed obsolete java/parse.y example.
23033         * doc/sourcebuild.texi: Likewise.
23034         (Top Level): Added config, gnattools, libdecnumber, libgcc,
23035         libgomp, libssp.  Removed fastjar.
23036         (Miscellaneous Docs): Clarify location.
23037         Added COPYING3, COPYING3.LIB.
23038         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
23039
23040 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23041
23042         PR target/38085
23043         * config/i386/i386.c (x86_function_profiler)
23044         [!NO_PROFILE_COUNTERS]: Fix typo.
23045         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
23046         instead of callq.
23047
23048 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
23049             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23050
23051         * doc/sourcebuild.texi (Test Directives): Split into six
23052         subsections, with most of the current text in new subsections
23053         Directives, Selectors, and Final Actions.
23054         (Directives): Split list of test directives into multiple
23055         subsubsections.
23056         (Selectors): Describe use and syntax of selectors.
23057         (Effective-Target Keywords): Describe all existing keywords.
23058         (Add Options): Describe features for dg-add-options.
23059         (Require Support): Describe variants of dg-require-support.
23060         (Final Actions): Describe commands to use in dg-final.
23061
23062 2010-03-22  Michael Matz  <matz@suse.de>
23063
23064         PR middle-end/43475
23065         * recog.c (validate_replace_rtx_group): Replace also in
23066         REG_EQUAL and REG_EQUIV notes.
23067
23068 2010-03-22  Richard Guenther  <rguenther@suse.de>
23069
23070         PR tree-optimization/43390
23071         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
23072         sure vector extracts are type correct.
23073
23074 2010-03-22  Richard Guenther  <rguenther@suse.de>
23075
23076         PR middle-end/40106
23077         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
23078         x * sqrt (x) even when optimizing for size if the target
23079         has native support for sqrt.
23080
23081 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
23082
23083         * varasm.c (make_decl_rtl_for_debug): Also clear
23084         flag_mudflap for the duration of make_decl_rtl call.
23085
23086         PR debug/43443
23087         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
23088         locs from preserved VALUEs.
23089
23090 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23091
23092         PR middle-end/42718
23093         * pa.md (movmemsi): Set align to one if zero.
23094         (movmemdi): Likewise.
23095
23096 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
23097
23098         PR target/42321
23099         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
23100         with their corresponding prologue pushes.
23101
23102 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
23103
23104         PR target/43156
23105         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
23106         at the begining or end.
23107         (spu_expand_epilogue): Likewise.
23108
23109 2010-03-20  Richard Guenther  <rguenther@suse.de>
23110
23111         PR rtl-optimization/43438
23112         * combine.c (make_extraction): Properly zero-/sign-extend an
23113         extraction of the low part of a CONST_INT.  Also handle
23114         CONST_DOUBLE.
23115
23116 2010-03-19  Mike Stump  <mikestump@comcast.net>
23117
23118         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
23119         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
23120         (override_options): Use SUBTARGET32_DEFAULT_CPU.
23121
23122 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
23123
23124         PR c/43211
23125         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
23126         an error.
23127
23128 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
23129
23130         PR rtl-optimization/42258
23131         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
23132         use that may match DEF.
23133
23134         PR target/40697
23135         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
23136         the cost of loading the constant rather than assuming
23137         COSTS_N_INSNS (1).
23138         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
23139         outer code is AND, do the same tests as the andsi3 expander and
23140         return COSTS_N_INSNS (1) if and is cheap.
23141
23142         * optabs.c (avoid_expensive_constant): Fix formatting.
23143
23144 2010-03-19  Michael Matz  <matz@suse.de>
23145
23146         PR c++/43116
23147         * attribs.c (decl_attributes): When rebuilding a function pointer
23148         type use the same qualifiers as the original pointer type.
23149
23150 2010-03-19  Martin Jambor  <mjambor@suse.cz>
23151
23152         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
23153         and is_gimple_ip_invariant_address.
23154
23155 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23156
23157         Revert
23158         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23159
23160         * config/arm/arm.c (arm_override_options): Turn off
23161         flag_dwarf2_cfi_asm for AAPCS variants.
23162
23163 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23164
23165         PR target/43399
23166         * config/arm/arm.c (emit_multi_reg_push): Update comments.
23167         Use PRE_MODIFY instead of PRE_DEC.
23168         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
23169         (vfp_emit_fstmd): Likewise.
23170
23171 2010-03-19  Michael Matz  <matz@suse.de>
23172
23173         PR target/43305
23174         * builtins.c (expand_builtin_interclass_mathfn,
23175         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
23176         if that fails.
23177
23178 2010-03-19  Richard Guenther  <rguenther@suse.de>
23179
23180         PR tree-optimization/43415
23181         * tree-ssa-pre.c (phi_translate): Split out worker to ...
23182         (phi_translate_1): ... this.
23183         (phi_translate): Move all caching here.  Cache all NARY
23184         and REFERENCE translations.
23185
23186 2010-03-19  David S. Miller  <davem@davemloft.net>
23187
23188         With help from Eric Botcazou.
23189         * config/sparc/sparc.c: Include dwarf2out.h.
23190         (emit_pic_helper): Delete.
23191         (pic_helper_symbol_name): Delete.
23192         (pic_helper_emitted_p): Delete.
23193         (pic_helper_needed): New.
23194         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
23195         (get_pc_thunk_name): New.
23196         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
23197         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
23198         Set pic_helper_needed to true.  Don't call emit_pic_helper.
23199         (sparc_expand_prologue): Update load_pic_register call.
23200         (sparc_output_mi_thunk): Likewise.
23201         (sparc_file_end): Emit a hidden comdat symbol for the PIC
23202         thunk if possible.  Output CFI information as needed.
23203
23204 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23205             Jack Howarth  <howarth@bromo.med.uc.edu>
23206
23207         PR target/36399
23208         * config/i386/i386.h: Fix ABI on darwin x86-32.
23209
23210 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
23211
23212         * tree.h: Declare make_decl_rtl_for_debug.
23213         * varasm.c (make_decl_rtl_for_debug): New.
23214         * dwarf2out.c (rtl_for_decl_location): Call it.
23215         * cfgexpand.c (expand_debug_expr): Call it.
23216
23217 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
23218
23219         PR bootstrap/43399
23220         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
23221         mem_mode.
23222
23223         PR bootstrap/43403
23224         * var-tracking.c (vt_init_cfa_base): Do nothing if
23225         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
23226
23227 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
23228
23229         PR debug/42873
23230         * var-tracking.c (canonicalize_vars_star): New.
23231         (dataflow_post_merge_adjust): Use it.
23232
23233 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
23234
23235         PR debug/43058
23236         * var-tracking.c (non_suitable_const): New function.
23237         (add_uses): For DEBUG_INSNs with constants, don't record any
23238         value, instead just the constant value itself.
23239         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
23240         is not VAR_LOC_UNKNOWN_P, set var to the constant.
23241         (emit_notes_in_bb): Likewise.
23242         (emit_note_insn_var_location): For onepart variables if
23243         cur_loc is a VOIDmode constant, use DECL_MODE.
23244
23245 2010-03-18  Martin Jambor  <mjambor@suse.cz>
23246
23247         PR middle-end/42450
23248         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
23249         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
23250         all non-clones.  Moved call redirection...
23251         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
23252         (cgraph_materialize_all_clones): Dispose of all
23253         combined_args_to_skip bitmaps.
23254         (verify_cgraph_node): Do not check for edges pointing to wrong
23255         nodes in inline clones.
23256         * tree-inline.c (copy_bb): Call
23257         cgraph_redirect_edge_call_stmt_to_callee.
23258         * ipa.c (cgraph_remove_unreachable_nodes): Call
23259         cgraph_node_remove_callees even when there are used clones.
23260
23261 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
23262
23263         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
23264
23265 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
23266
23267         PR target/43383
23268         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
23269         for 32bit.
23270
23271 2010-03-18  Michael Matz  <matz@suse.de>
23272
23273         PR middle-end/43419
23274         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
23275         into sqrt(x) if we need to preserve signed zeros.
23276
23277 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
23278             Eric Botcazou  <ebotcazou@adacore.com>
23279
23280         PR rtl-optimization/43360
23281         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
23282         note if we don't know its invariant status.
23283
23284 2010-03-18  Michael Matz  <matz@suse.de>
23285
23286         PR tree-optimization/43402
23287         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
23288         PHI chains of ssa names registered for update.
23289
23290 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
23291
23292         PR target/42427
23293         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
23294         non-offsettable and pre_modify update addressing.
23295         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
23296         and "2" alternatives "#".
23297         (*movdd_softfloat32): Make all alternatives "#";
23298         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
23299         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
23300         (*movdf_softfloat32): Make all alternatives "#";
23301         (movdi): Use the new DIFD mode iterator to create a common splitter
23302         for movdi, movdf and movdd patterns.
23303
23304 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
23305
23306         * common.opt (dumpdir): Remove redundant tab.
23307
23308 2010-03-17  Martin Jambor  <mjambor@suse.cz>
23309
23310         PR tree-optimization/43347
23311         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
23312         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
23313
23314 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
23315
23316         PR rtl-optimization/42216
23317         * regrename.c (create_new_chain): New function, broken out from...
23318         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
23319         appending a use to an empty chain.
23320         (build_def_use): Remove previous changes that convert OP_INOUT to
23321         OP_OUT operands; instead detect the case where an OP_INOUT operand
23322         uses a previously untracked register and create an empty chain for it.
23323
23324 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23325
23326         * doc/extend.texi (Function Attributes): Rewrite unfinished
23327         sentence in ms_abi documentation.
23328
23329 2010-03-17  Alan Modra  <amodra@gmail.com>
23330
23331         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
23332         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
23333         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
23334         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
23335
23336 2010-03-16  Richard Henderson  <rth@redhat.com>
23337
23338         PR middle-end/43365
23339         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
23340         (lower_try_finally): Save and restore eh_seq around the expansion
23341         of the try-finally.
23342
23343 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
23344
23345         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
23346         statements before splitting block.
23347
23348 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23349
23350         * doc/sourcebuild.texi (Testsuites): Fix markup.
23351         Use pathnames relative to gcc/testsuite.
23352         (Test Directives): Move description of how timeout is determined.
23353         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
23354         (C Tests): Correct gcc.misc-tests directory.
23355         Framework tests now live in gcc.test-framework.
23356
23357 2010-03-16  Richard Guenther  <rguenther@suse.de>
23358
23359         PR middle-end/43379
23360         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
23361         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
23362
23363 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
23364             Alexandre Oliva  <aoliva@redhat.com>
23365
23366         PR tree-optimization/42917
23367         * lambda-code.c (remove_iv): Skip debug statements.
23368         (lambda_loopnest_to_gcc_loopnest): Likewise.
23369         (not_interesting_stmt): Debug statements are not interesting.
23370
23371 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
23372
23373         PR debug/43051
23374         PR debug/43092
23375         * cselib.c (cselib_preserve_constants,
23376         cfa_base_preserved_val): New static variables.
23377         (preserve_only_constants): New function.
23378         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
23379         clear its REG_VALUES.  If cselib_preserve_constants, don't
23380         empty the whole hash table, but preserve there VALUEs with constants,
23381         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
23382         (cselib_preserve_cfa_base_value): New function.
23383         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
23384         (cselib_init): Change argument to int bitfield.  Set
23385         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
23386         is in it.
23387         (cselib_finish): Clear cselib_preserve_constants and
23388         cfa_base_preserved_val.
23389         * cselib.h (enum cselib_record_what): New enum.
23390         (cselib_init): Change argument to int.
23391         (cselib_preserve_cfa_base_value): New prototype.
23392         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
23393         * dse.c (dse_step1): Likewise.
23394         * cfgcleanup.c (thread_jump): Likewise.
23395         * sched-deps.c (sched_analyze): Likewise.
23396         * gcse.c (local_cprop_pass): Likewise.
23397         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
23398         If FN is non-NULL, call the callback always and whenever it returns
23399         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
23400         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
23401         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
23402         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
23403         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
23404         * var-tracking.c: Include recog.h.
23405         (bb_stack_adjust_offset): Remove.
23406         (vt_stack_adjustments): Don't call it, instead just gather the
23407         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
23408         (adjust_stack_reference): Remove.
23409         (compute_cfa_pointer): New function.
23410         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
23411         (struct adjust_mem_data): New type.
23412         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
23413         functions.
23414         (get_address_mode): New function.
23415         (replace_expr_with_values): Use it.
23416         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
23417         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
23418         (adjust_sets): Remove.
23419         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
23420         Use get_address_mode.
23421         (get_adjusted_src): Remove.
23422         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
23423         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
23424         (add_with_sets): Don't call adjust_sets.
23425         (fp_setter, vt_init_cfa_base): New functions.
23426         (vt_initialize): Change return type to bool.  Move most of pool etc.
23427         initialization to the beginning of the function from end.  Pass
23428         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
23429         If !frame_pointer_needed, call vt_stack_adjustment before mos
23430         vector is filled, call vt_init_cfa_base if argp/framep has been
23431         eliminated to sp.  If frame_pointer_needed and argp/framep has
23432         been eliminated to hard frame pointer, set
23433         hard_frame_pointer_adjustment and call vt_init_cfa_base after
23434         encountering fp setter in the prologue.  For MO_ADJUST, call
23435         log_op_type before pusing the op into mos vector, not afterwards.
23436         Call adjust_insn before cselib_process_insn/add_with_sets,
23437         call cancel_changes (0) afterwards.
23438         (variable_tracking_main_1): Adjust for vt_initialize calling
23439         vt_stack_adjustments and returning whether it succeeded or not.
23440
23441 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
23442
23443         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
23444         debug statements.
23445
23446 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
23447
23448         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
23449         has been set.
23450         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
23451         drap_reg has not been set.
23452
23453 2010-03-15  Michael Matz  <matz@suse.de>
23454
23455         PR middle-end/43300
23456         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
23457         use it to expand block copies.
23458         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
23459         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
23460         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
23461
23462 2010-03-15  Richard Guenther  <rguenther@suse.de>
23463
23464         PR tree-optimization/43367
23465         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
23466         elimination check.
23467
23468 2010-03-15  Richard Guenther  <rguenther@suse.de>
23469
23470         PR tree-optimization/43317
23471         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
23472
23473 2010-03-15  Martin Jambor  <mjambor@suse.cz>
23474
23475         PR tree-optimization/43141
23476         * tree-sra.c (create_abstract_origin): New function.
23477         (modify_function): Call create_abstract_origin.
23478
23479 2010-03-15  Chris Demetriou  <cgd@google.com>
23480
23481         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
23482         wasn't copied.
23483
23484 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23485
23486         PR middle-end/43354
23487         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
23488         call insert_out_of_ssa_copy for default definitions.
23489
23490 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23491
23492         * graphite-clast-to-gimple.c (my_long_long): Defined.
23493         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
23494         * graphite-sese-to-poly.c (my_long_long): Defined.
23495         (scop_ivs_can_be_represented): Use it.
23496
23497 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23498
23499         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
23500         graphite-max-bbs-per-function, and loop-block-tile-size.
23501         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
23502         with "maximum".
23503         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
23504
23505 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23506
23507         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
23508         forward declaration.
23509         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
23510         (add_upper_bounds_from_estimated_nit): New.
23511         (build_loop_iteration_domains): Use it.
23512
23513 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23514
23515         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
23516
23517 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23518
23519         PR middle-end/43306
23520         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
23521         should be an INTEGER_CST.  Also handle CASE_CONVERT.
23522
23523 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23524
23525         * graphite.c (graphite_initialize): To bound the number of bbs per
23526         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
23527         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
23528         * doc/invoke.texi: Document it.
23529
23530 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23531
23532         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
23533         * graphite-sese-to-poly.h (build_poly_scop): Same.
23534
23535 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23536
23537         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
23538         the number of parameters in the scop.  Use as an upper bound
23539         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
23540         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
23541         * doc/invoke.texi: Document it.
23542
23543 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
23544
23545         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
23546         * doc/c-tree.texi: Remove.
23547         * doc/generic.texi: Merge c-tree.texi here.
23548         * doc/gccint.texi (Trees): Remove menu entry.
23549         (c-tree.texi): Remove @include.
23550         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
23551         * doc/languages.texi (Reading RTL): Ditto.
23552
23553 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
23554
23555         PR target/42869
23556         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
23557
23558 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23559
23560         PR middle-end/42431
23561         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
23562         code added to work around reload clobbering CONST insns.
23563
23564 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
23565
23566         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
23567         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
23568         (cselib_preserve_only_values): Remove retain argument, don't
23569         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
23570         * cselib.h (cselib_preserve_only_values): Remove retain argument.
23571         * var-tracking.c (micro_operation): Move insn field before union.
23572         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
23573         (struct variable_tracking_info_def): Remove n_mos field, change
23574         mos into a vector of micro_operations.
23575         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
23576         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
23577         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
23578         changing into a vector.
23579         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
23580         come before all other uops generated by add_stores.
23581         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
23582         argument removal.
23583         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
23584         a vector.  Run just one pass over the bbs instead of separate counting
23585         and computation phase.
23586         (vt_finalize): Free VTI (bb)->mos vector instead of array.
23587
23588         PR debug/43329
23589         * tree-inline.c (remap_decls): Put old_var rather than origin_var
23590         into *nonlocalized_list vector.
23591         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
23592         even if origin is non-NULL.
23593         (gen_variable_die): Likewise.
23594         (process_scope_var): Don't change origin.
23595         (gen_decl_die): Likewise.
23596         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
23597         before adding new edges instead of after it, fix moving over
23598         debug stmts.
23599
23600 2010-03-11  David S. Miller  <davem@davemloft.net>
23601
23602         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
23603         of four.
23604         * configure: Rebuild.
23605
23606 2010-03-11  Martin Jambor  <mjambor@suse.cz>
23607
23608         PR tree-optimization/43257
23609         * tree.c (assign_assembler_name_if_neeeded): New function.
23610         (free_lang_data_in_cgraph): Assembler name assignment moved to the
23611         above new function.
23612         * tree.h (assign_assembler_name_if_neeeded): Declare.
23613         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
23614         the function if needed.
23615
23616 2010-03-11  Chris Demetriou  <cgd@google.com>
23617
23618         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
23619         include/stdint-gcc.h, and include/stdint.h world-readable.
23620
23621 2010-03-11  Richard Guenther  <rguenther@suse.de>
23622
23623         PR tree-optimization/43255
23624         * tree-vrp.c (process_assert_insertions_for): Do not insert
23625         asserts for trivial conditions.
23626
23627 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23628
23629         PR tree-optimization/43280
23630         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
23631         generation.  Move calculation of size out of the if branch.
23632         (find_bswap): Modify compare number generation.
23633
23634 2010-03-11  Richard Guenther  <rguenther@suse.de>
23635
23636         PR lto/43200
23637         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
23638         (input_gimple_stmt): Fixup handled component types during
23639         operand read.  Also fix up decls in ADDR_EXPRs.
23640
23641 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
23642
23643         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
23644         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
23645
23646 2010-03-10  Jan Hubicka  <jh@suse.cz>
23647
23648         PR c/43288
23649         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
23650         * varasm.c (get_variable_section): Don't do that here...
23651         (make_decl_rtl): ... and here.
23652         (do_assemble_alias): Produce decl RTL.
23653         (assemble_alias): Likewise.
23654
23655 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
23656
23657         PR debug/43290
23658         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
23659         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
23660         of fde->vdrap_reg.
23661         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
23662         (based_loc_descr): Only express drap or vdrap regno based expressions
23663         using DW_OP_fbreg when not optimizing.
23664         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
23665         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
23666         REG_CFA_SET_VDRAP note.
23667
23668 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
23669
23670         PR tree-optimization/43236
23671         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
23672         error in calculation of base address in reverse iteration case.
23673         (generate_builtin): Take number of latch executions if the statement
23674         is in the latch.
23675
23676 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
23677
23678         PR middle-end/42859
23679         * tree-eh.c: Include pointer-set.h.
23680         (lower_eh_dispatch): Filter out duplicate case labels and
23681         remove the unneeded edge when the label is unused.  Return
23682         true when some edges are removed.
23683         (execute_lower_eh_dispatch): When any lowering resulted in
23684         removing an edge, also delete unreachable blocks.
23685
23686 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
23687
23688         PR bootstrap/43287
23689         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23690         UNSPEC_MACHOPIC_OFFSET.
23691
23692 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
23693
23694         PR target/43294
23695         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
23696         (m68k_delegitimize_address): New function.
23697
23698 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
23699
23700         PR debug/43299
23701         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
23702
23703         PR debug/43299
23704         * var-tracking.c (adjust_sets): New function.
23705         (count_with_sets, add_with_sets): Use it.
23706         (get_adjusted_src): New inline function.
23707         (add_stores): Use it.
23708
23709         PR debug/43304
23710         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
23711         call cselib_dummy_expand_value_rtx_cb instead of
23712         cselib_expand_value_rtx_cb.
23713
23714         PR debug/43293
23715         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
23716         * config/i386/i386.c: Include debug.h and dwarf2out.h.
23717         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
23718         and .cfi_endproc around the pic thunks.
23719         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
23720         all queued unwind info register saves are saved before the call.
23721         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
23722         considered as sp-=4 for unwind info and the pop as sp+=4 which
23723         also clobbers dest, but doesn't actually restore it.
23724
23725         PR debug/43290
23726         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
23727         RTX_FRAME_RELATED_P.
23728
23729 2010-03-09  Jie Zhang  <jie@codesourcery.com>
23730
23731         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
23732         whitespaces in output template.
23733
23734 2010-03-09  Jie Zhang  <jie@codesourcery.com>
23735
23736         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
23737         out array boundary.
23738
23739 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
23740
23741         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
23742         builtins.exp in a separate job.
23743
23744 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23745
23746         * graphite-sese-to-poly.c (add_param_constraints): Use
23747         lower_bound_in_type and upper_bound_in_type.
23748
23749 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23750
23751         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
23752         instead of unsigned_type_node.
23753
23754 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23755             Reza Yazdani  <reza.yazdani@amd.com>
23756
23757         PR middle-end/43065
23758         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
23759         on pointer type parameters.
23760
23761 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
23762
23763         PR middle-end/42644
23764         PR middle-end/42130
23765         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
23766         handle conversions from pointer to integers.
23767         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
23768         induction variable, to be able to work with code generated by CLooG.
23769         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
23770         (build_poly_scop): Bail out if we cannot codegen a loop.
23771
23772 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
23773
23774         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
23775         code generation with gloog_error.
23776
23777 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23778
23779         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
23780         Call fold_convert on all the returned values.
23781         (expand_scalar_variables_expr): Pass to
23782         expand_scalar_variables_ssa_name the type of the resulting expression.
23783
23784 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23785
23786         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
23787         ppl_min_for_le_pointset.
23788         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
23789         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
23790
23791 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23792
23793         * graphite-dependences.c (map_into_dep_poly): Removed.
23794         (dependence_polyhedron_1): Use combine_context_id_scat.
23795
23796 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23797
23798         * graphite-poly.h (struct poly_scattering): Add layout documentation.
23799         (struct poly_bb): Same.
23800         (combine_context_id_scat): New.
23801
23802 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23803
23804         PR middle-end/42326
23805         * sese.c (name_defined_in_loop_p): Return false for default
23806         definitions.
23807
23808 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23809
23810         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
23811         and clean up the logic.
23812
23813 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23814
23815         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
23816         early return.
23817
23818 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
23819
23820         * var-tracking.c (remove_cselib_value_chains): Define only for
23821         ENABLE_CHECKING.
23822         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
23823         delete_slot_part, emit_notes_for_differences_1): Don't call
23824         remove_cselib_value_chains here.
23825         (set_slot_part, emit_notes_for_differences_2): Don't call
23826         add_cselib_value_chains here.
23827         (preserved_values): New vector.
23828         (preserve_value): New function.
23829         (add_uses, add_stores, vt_add_function_parameters): Use it
23830         instead of cselib_preserve_value.
23831         (changed_values_stack): New vector.
23832         (check_changed_vars_0): New function.
23833         (check_changed_vars_1, check_changed_vars_2): Use it.
23834         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
23835         changed_values_stack VALUEs.
23836         (vt_emit_notes): For all preserved_values call
23837         add_cselib_value_chains.  If ENABLE_CHECKING call
23838         remove_cselib_value_chains before verifying value_chains is empty.
23839         Initialize and free changed_values_stack.
23840         (vt_initialize): Initialize preserved_values.
23841         (vt_finalize): Free preserved_values.
23842
23843 2010-03-08  Richard Guenther  <rguenther@suse.de>
23844
23845         PR tree-optimization/43269
23846         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
23847         region detection.
23848
23849 2010-03-08  Martin Jambor  <mjambor@suse.cz>
23850
23851         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
23852         (ipa_is_param_called): Removed.
23853         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
23854         (ipa_print_node_params): Do not print the called flag.
23855         (ipa_write_node_info): Do not stream the called flag.
23856         (ipa_read_node_info): Likewise.
23857
23858 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
23859
23860         PR debug/43176
23861         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
23862         * cselib.c (struct expand_value_data): Add dummy field.
23863         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
23864         dummy to false.
23865         (cselib_dummy_expand_value_rtx_cb): New function.
23866         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
23867         any rtl.
23868         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
23869         * var-tracking.c: Include pointer-set.h.
23870         (variable): Change n_var_parts to char from int.  Add
23871         cur_loc_changed and in_changed_variables fields.
23872         (variable_canonicalize): Remove.
23873         (shared_var_p): New inline function.
23874         (unshare_variable): Maintain cur_loc_changed and
23875         in_changed_variables fields.  If var was in changed_variables,
23876         replace it there with new_var.  Just copy cur_loc instead of
23877         resetting it to something else.
23878         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
23879         (dataflow_set_union): Don't call variable_canonicalize.
23880         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
23881         of their DEBUG_EXPR_TREE_DECLs.
23882         (canonicalize_loc_order_check): Verify that cur_loc is NULL
23883         and in_changed_variables and cur_loc_changed is false.
23884         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
23885         and cur_loc_changed.  Don't update cur_loc here.
23886         (variable_merge_over_src): Don't call variable_canonicalize.
23887         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
23888         removing loc that is equal to cur_loc, clear cur_loc,
23889         set cur_loc_changed and ensure variable_was_changed is called.
23890         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
23891         compare pointers in cur_loc check, if it is equal to loc,
23892         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
23893         (variable_different_p): Remove compare_current_location argument,
23894         don't compare cur_loc.
23895         (dataflow_set_different_1): Adjust variable_different_p caller.
23896         (variable_was_changed): If dv had some var in changed_variables
23897         already, reset in_changed_variables flag for it and propagate
23898         cur_loc_changed over to the new variable.  On empty var
23899         always set cur_loc_changed.  Set in_changed_variables on whatever
23900         var is added to changed_variables.
23901         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
23902         Use shared_var_p.  When removing loc that is equal to cur_loc,
23903         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
23904         end, don't set it to something else, just call variable_was_changed.
23905         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
23906         loc being removed, clear cur_loc and set cur_loc_changed.
23907         Set cur_loc_changed if all locations have been removed.
23908         (struct expand_loc_callback_data): New type.
23909         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
23910         allocated.  Always create SUBREGs if simplify_subreg failed.
23911         Prefer to use cur_loc, when that fails and still in
23912         changed_variables (and seen first time) recompute it.  Set
23913         cur_loc_changed of variables which had to change cur_loc and
23914         compute elcd->cur_loc_changed if any of the subexpressions used
23915         had to change cur_loc.
23916         (vt_expand_loc): Adjust to pass arguments in
23917         expand_loc_callback_data structure.
23918         (vt_expand_loc_dummy): New function.
23919         (emitted_notes): New variable.
23920         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
23921         that weren't used for any other decl in current
23922         emit_notes_for_changes call call vt_expand_loc_dummy to update
23923         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
23924         first loc_chain location if NULL before.  Always use just
23925         cur_loc instead of first loc_chain location.  When cur_loc_changed
23926         is false, when not --enable-checking=rtl just don't emit any note.
23927         When rtl checking, compute the note and assert it is the same
23928         as previous note.  Clear cur_loc_changed and in_changed_variables
23929         at the end before removing from changed_variables.
23930         (check_changed_vars_3): New function.
23931         (emit_notes_for_changes): Traverse changed_vars to call
23932         check_changed_vars_3 on each changed var.
23933         (emit_notes_for_differences_1): Clear cur_loc_changed and
23934         in_changed_variables.  Recompute cur_loc of new_var.
23935         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
23936         (vt_emit_notes): Initialize and destroy emitted_notes.
23937
23938 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
23939
23940         PR rtl-optimization/42220
23941         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
23942         Use verify_reg_tracked to determine if we should use OP_OUT rather
23943         than OP_INOUT.
23944         (build_def_use): If we see an in-out operand for a register that we
23945         know nothing about, treat is an output if possible, fail the block if
23946         not.
23947
23948 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23949
23950         PR debug/42897
23951         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
23952         permanently.
23953
23954 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23955
23956         PR debug/42897
23957         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
23958         uses of relevant DEFs that are dead outside the loop too.
23959
23960 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23961
23962         * var-tracking.c (dataflow_set_merge): Swap src and src2.
23963         Reverted:
23964         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23965         PR debug/41371
23966         * var-tracking.c (values_to_unmark): New variable.
23967         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23968         values_to_unmark vector.  Moved body to...
23969         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23970         instead queue it into values_to_unmark vector.
23971         (vt_find_locations): Free values_to_unmark vector.
23972
23973 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
23974
23975         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
23976         (site.exp): Export them when plugins are enabled.
23977
23978 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
23979
23980         PR middle-end/42326
23981         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
23982         that contain scevs.
23983         (chrec_fold_multiply): Same.
23984
23985 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
23986
23987         PR c/43248
23988         * c-decl.c (build_compound_literal): Return early if init is
23989         an error_mark_node.
23990
23991 2010-03-04  Martin Jambor  <mjambor@suse.cz>
23992
23993         PR tree-optimization/43164
23994         PR tree-optimization/43191
23995         * tree-sra.c (type_consists_of_records_p): Reject records with
23996         zero-size bit-fields at the end.
23997
23998 2010-03-04  Mike Stump  <mikestump@comcast.net>
23999
24000         * Makefile.in (TAGS): Remove *.y.
24001
24002 2010-03-04  Richard Guenther  <rguenther@suse.de>
24003
24004         PR tree-optimization/40761
24005         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
24006         in reverse order.
24007         (my_rev_post_order_compute): New function.
24008         (init_pre): Call it.
24009
24010 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
24011
24012         PR middle-end/43209
24013         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
24014         decrease the cost of an IV candidate when the cost is infinite.
24015
24016 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24017
24018         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
24019         Use '3DNow!' for the extension of that name, ensure normal space
24020         after the string.
24021         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
24022
24023 2010-03-03  Jeff Law  <law@redhat.com>
24024
24025         * PR middle-end/32693
24026         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
24027         than gen_rtx_SUBREG.
24028         (extract_bit_field_1): Likewise.
24029
24030 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
24031
24032         * doc/sourcebuild.texi (Test directives): Document that arguments
24033         include-opts and exclude-opts are now optional for dg-skip-if,
24034         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
24035
24036 2010-03-03  Jason Merrill  <jason@redhat.com>
24037
24038         PR c++/12909
24039         * cgraph.h (varpool_node): Add extra_name field.
24040         * varpool.c (varpool_extra_name_alias): New.
24041         (varpool_assemble_decl): Emit extra name aliases.
24042         (varpool_mark_needed_node): Look past an extra name alias.
24043         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
24044         * lto-streamer-in.c (lto_input_tree): Read it.
24045         * lto-streamer-out.c (output_unreferenced_globals): Write it.
24046
24047 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
24048
24049         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
24050         (sparc*-*-solaris2*): ...this.
24051
24052 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
24053
24054         PR debug/43229
24055         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
24056         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
24057         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
24058         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
24059
24060         PR debug/43237
24061         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
24062         fallthrough to default handling, just with want_address 0 instead of 2.
24063         For single element lists, add_AT_loc directly, otherwise create an
24064         artificial variable DIE and stick location list to it.
24065
24066         PR debug/43177
24067         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
24068         (VAL_EXPR_HAS_REVERSE): Define.
24069         (reverse_op): New function.
24070         (add_stores): For reversible operations add an extra MO_VAL_USE.
24071
24072 2010-03-02  Jason Merrill  <jason@redhat.com>
24073
24074         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
24075
24076 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
24077
24078         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
24079         (sparc64-*-linux*): Likewise.
24080         (sparc64-*-solaris2*): Include assembler files before linker ones.
24081         (sparc-*-solaris2*): Simplify and reorder to match previous case.
24082         * config/sparc/gas.h: Delete.
24083         * config/sparc/sol2-64.h: Add copyright notice.
24084         * config/sparc/sol2-gas-bi.h: Likewise.
24085         * config/sparc/sol2-gld.h: Likewise.
24086         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
24087         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
24088         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
24089         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
24090         (sparc_elf_asm_named_section): Rename into...
24091         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
24092
24093 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
24094
24095         * config/alpha/alpha.c (override_options): Fix -mtune error message.
24096
24097 2010-03-02  Jeff Law  <law@redhat.com>
24098
24099         PR middle-end/42431
24100         * reload1.c (rtx_p, substitute_stack): Declare.
24101         (substitute): Record addresses of changed rtxs.
24102         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
24103         Restore the original rtx when complete.
24104         (reload): Free subsitute_stack when complete.
24105
24106 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
24107
24108         * doc/gccint.texi (menu): Add Testsuites as a chapter.
24109         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
24110         new chapter.
24111         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
24112         LTO Testing, gcov Testing, profopt Testing, compat Testing,
24113         Torture Tests): Change from subsection to section.
24114
24115 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
24116             Steven Bosscher  <steven@gcc.gnu.org>
24117
24118         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
24119         instead of bb.
24120
24121 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
24122
24123         PR middle-end/42640
24124         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
24125         the assignment from the new induction variable to the assignment
24126         of the value from the original loop PHI function.
24127
24128 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
24129             Daniel Jacobowitz  <dan@codesourcery.com>
24130
24131         * doc/sourcebuild.texi (Test directives): Clarify options to
24132         dg-skip-if.
24133
24134 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24135
24136         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
24137         Disable cfi directives unless GCC and gas agree on using read-only
24138         .eh_frame sections for 64-bit.
24139         * configure: Regenerate.
24140
24141 2010-03-01  Richard Guenther  <rguenther@suse.de>
24142
24143         PR tree-optimization/43220
24144         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
24145         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
24146
24147 2010-03-01  Richard Guenther  <rguenther@suse.de>
24148             Martin Jambor  <mjambor@suse.cz>
24149
24150         PR middle-end/41250
24151         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
24152         gimplified parameters.
24153
24154 2010-03-01  Christian Bruel  <christian.bruel@st.com>
24155
24156         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
24157
24158 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
24159
24160         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
24161
24162 2010-03-01  Richard Guenther  <rguenther@suse.de>
24163
24164         PR middle-end/43213
24165         * expr.c (expand_assignment): Use the alias-oracle to tell
24166         if the rhs aliases the result decl.
24167
24168 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24169
24170         PR pch/14940
24171         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
24172         to sol_gt_pch_get_address.
24173         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
24174         64-bit, SPARC and x86.
24175         (sol_gt_pch_get_address): New function.
24176
24177 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
24178
24179         * toplev.h (inform_n, error_n): Declare.
24180         * diagnostic.c (inform_n, error_n): New function.
24181
24182 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
24183
24184         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
24185         has no rtl yet when processing local_decls, queue it and recheck
24186         if deferred stack allocation hasn't assigned it rtl.
24187
24188 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
24189
24190         * config/sh/sh.c (unspec_bbr_uid): New.
24191         (gen_block_redirect): Use it instead of INSN_UID.
24192         (gen_far_branch): Likewise.
24193
24194 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
24195
24196         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
24197         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
24198
24199 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24200
24201         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
24202         (Warning Options): -Wno-conversion-null is valid for
24203         Objective-C++ as well.
24204         * doc/tm.texi (Named Address Spaces): Likewise.
24205         * doc/plugins.texi (Plugins): Replace TABs with spaces.
24206         * doc/tree-ssa.texi (Tree SSA): Likewise.
24207
24208 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24209
24210         PR bootstrap/43202
24211         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
24212         by default.  Don't set the default arch for
24213         i[34567]86-*-darwin*|x86_64-*-darwin*.
24214
24215 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24216
24217         PR bootstrap/43202
24218         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
24219         default.  Set the default 32bit/64bit archs with $with_arch
24220         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
24221
24222 2010-02-27  Richard Guenther  <rguenther@suse.de>
24223
24224         PR tree-optimization/43186
24225         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
24226         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
24227         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
24228         unroller iterations.
24229
24230 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24231
24232         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
24233         required and i[34567]86-*-* targets don't support 64bit ISA.
24234
24235 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
24236
24237         PR ada/43096
24238         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
24239         the same alias set.
24240
24241 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
24242
24243         * config.gcc: Set the default arch at least to Prescott for
24244         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
24245         if SSE math is enabled.
24246
24247 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24248
24249         * diagnostic.c (diagnostic_initialize): Update.
24250         (diagnostic_report_diagnostic): Test inhibit_notes_p for
24251         informative notes.
24252         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
24253         (diagnostic_inhibit_notes): New.
24254         * toplev.c (process_options): inhibit notes with -fcompare-debug.
24255
24256 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24257
24258         PR c/20631
24259         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
24260         * doc/standards.texi: Likewise.
24261         * doc/extend.texi: Likewise.
24262         * doc/trouble.texi: Likewise.
24263         * doc/cppopts.texi: Likewise.
24264         * doc/install.texi: Likewise.
24265         * c.opt (std=c90,std=gnu90): New options.
24266         * c-opts.c (c_common_handle_option): Handle them.
24267
24268 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24269
24270         PR c/24577
24271         * c-decl.c (undeclared_variable): Use an informative note.
24272
24273 2010-02-26  Richard Guenther  <rguenther@suse.de>
24274
24275         PR tree-optimization/43186
24276         * gimple.h (gimple_fold): Remove.
24277         * gimple.c (gimple_fold): Remove.  Inline into single user ...
24278         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
24279         Try harder for conditions.
24280
24281 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
24282
24283         PR debug/43190
24284         * function.c (used_types_insert): Don't skip through named pointer
24285         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
24286         and it is different from the main variant's type.
24287
24288 2010-02-26  Nick Clifton  <nickc@redhat.com>
24289
24290         * config/rx/rx.md (sminsi3): Remove bogus alternative.
24291
24292 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
24293
24294         * config.gcc: Support --with-fpmath=sse for x86.
24295
24296         * config/i386/ssemath.h: New.
24297
24298         * doc/install.texi (--with-fpmath=sse): Documented.
24299
24300 2010-02-26  Richard Guenther  <rguenther@suse.de>
24301
24302         PR tree-optimization/43188
24303         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
24304         vector types of over-aligned element type.
24305
24306 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
24307
24308         PR target/43175
24309         * config/i386/i386.c (expand_vec_perm_blend): Use correct
24310         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
24311
24312 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
24313
24314         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
24315
24316 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
24317
24318         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
24319         * var-tracking.c: Include diagnostic.h.
24320         (debug_dv): New function.
24321         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
24322
24323         PR debug/43160
24324         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
24325         (add_value_chain, add_value_chains, remove_value_chain,
24326         remove_value_chains): Handle DEBUG_EXPRs.
24327         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
24328
24329         PR debug/43161
24330         * regcprop.c (struct queued_debug_insn_change): New type.
24331         (struct value_data_entry): Add debug_insn_changes field.
24332         (struct value_data): Add n_debug_insn_changes field.
24333         (debug_insn_changes_pool): New variable.
24334         (free_debug_insn_changes, apply_debug_insn_changes,
24335         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
24336         (kill_value_one_regno): Call free_debug_insn_changes if needed.
24337         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
24338         fields.
24339         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
24340         changes for them.
24341         (copyprop_hardreg_forward_1): Don't call apply_change_group for
24342         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
24343         changes, call cprop_find_used_regs via note_stores.
24344         (copyprop_hardreg_forward): When copying vd from predecessor
24345         which has any queued DEBUG_INSN changes, make sure the pointers are
24346         cleared.  At the end call df_analyze and then if there are any
24347         DEBUG_INSN changes queued at the end of some basic block for still
24348         live registers, apply them.
24349         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
24350
24351 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
24352
24353         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
24354         (arm*-*-*): Ditto.
24355
24356 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
24357
24358         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
24359         targets.  Set the default with_cpu/with_arch from arch/cpu.
24360         Allow x86-64 and native for with_cpu/with_arch.
24361
24362 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
24363
24364         * ebitmap.c: Change calls to verify_popcount with calls to
24365         sbitmap_verify_popcount.
24366         (ebitmap_clear_bit): Fixed map->cacheindex test and
24367         map>cache update when bit clearing results in an empty
24368         element.
24369
24370 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
24371
24372         PR target/43154
24373         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
24374         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
24375         and support both V2DF and V2DI modes.
24376         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
24377         support both V2DF and V2DI modes.
24378         (general): Delete trailing whitespace from a few patterns.
24379
24380         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24381         V2DF/V2DI interleave high/low builtins.
24382
24383         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
24384         new VSX builtins.
24385
24386         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
24387         interleave high/low functions.
24388
24389 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
24390
24391         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
24392         #pragma extern_prefix.
24393
24394 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
24395
24396         PR debug/43166
24397         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
24398         BLKmode, assert op0 is a MEM and just adjust its mode.
24399
24400         PR debug/43165
24401         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
24402         if bitpos isn't multiple of mode's bitsize.
24403
24404 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24405
24406         * c.opt (-ftemplate-depth=): New.
24407         (-ftemplate-depth-): Deprecate.
24408         * optc-gen.awk: Handle -ftemplate-depth=.
24409         * opth-gen.awk: Likewise.
24410         * c-opts.c (c_common_handle_option): Likewise.
24411         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
24412
24413 2010-02-24  Jason Merrill  <jason@redhat.com>
24414
24415         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
24416
24417 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24418
24419         * cfg.c (alloc_aux_for_block): Remove inline.
24420         (alloc_aux_for_edge): Likewise.
24421
24422 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24423
24424         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
24425
24426 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24427
24428         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
24429         * config/i386/sol2-gas.h: New file.
24430         * config.gcc (i[34567]86-*-solaris2*): Use it.
24431
24432 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24433
24434         PR c/43128
24435         * c-typeck.c (ep_convert_and_check): New.
24436         (build_conditional_expr): Use it.
24437         (build_binary_op): Likewise.
24438
24439 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
24440
24441         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
24442
24443         PR debug/43150
24444         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
24445         bounds even for -O+.
24446         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
24447         expr needs to have DECL_NAME set.
24448
24449 2010-02-24  Nick Clifton  <nickc@redhat.com>
24450
24451         * config/mep/mep.c: Include gimple.h.
24452         (mep_function_uses_sp): Delete unused function.
24453         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
24454         parameters.  Use unsigned integers to count args.  Return a
24455         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
24456
24457 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
24458
24459         PR target/43107
24460         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
24461         greater or equal to nelt instead of 2 * nelt.
24462         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
24463         with nelt - 1.
24464
24465 2010-02-23  Jason Merrill  <jason@redhat.com>
24466
24467         PR debug/42800
24468         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
24469         in cfun->local_decls even if they have register types.
24470
24471         PR c++/42837
24472         * stor-layout.c (place_field): Don't warn about unnecessary
24473         DECL_PACKED if the type is packed.
24474
24475 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
24476
24477         PR target/43139
24478         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
24479         GOTOFF relocs, even when the base reg isn't pic pointer.
24480
24481 2010-02-23  Michael Matz  <matz@suse.de>
24482
24483         PR debug/43077
24484         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
24485         (expand_gimple_basic_block): Generate and use debug temps if there
24486         are debug uses left after the last real use of TERed ssa names.
24487         Unlink debug immediate uses when they are expanded.
24488
24489 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24490
24491         PR 43123
24492         * config/i386/i386.c (override_options): Reorganise to provide
24493         better error messages.
24494
24495 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24496
24497         PR middle-end/43083
24498         * graphite-scop-detection.c (create_single_exit_edge): Move
24499         the call to find_single_exit_edge to....
24500         (create_sese_edges): ...here.  Don't handle multiple edges
24501         exiting the function.
24502         (build_graphite_scops): Don't handle multiple edges
24503         exiting the function.
24504
24505 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24506
24507         PR middle-end/43097
24508         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
24509         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
24510
24511 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24512
24513         PR middle-end/43026
24514         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
24515
24516 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24517
24518         PR c++/43126
24519         * c-typeck.c (convert_arguments): Print declaration location.
24520         * c-common.c (validate_nargs): Rename as
24521         builtin_function_validate_nargs.
24522         (check_builtin_function_arguments): Update.
24523
24524 2010-02-22  Richard Guenther  <rguenther@suse.de>
24525
24526         PR lto/43045
24527         * tree-inline.c (declare_return_variable): Use the type of
24528         the call stmt lhs if available.
24529
24530 2010-02-22  Duncan Sands  <baldrick@free.fr>
24531
24532         * passes.c (register_pass): Always consider all pass lists when
24533         ref_pass_instance_number is zero.
24534
24535 2010-02-22  Richard Guenther  <rguenther@suse.de>
24536
24537         PR tree-optimization/42749
24538         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
24539         parameter.  Do arithmetic in the original type.
24540         (update_accumulator_with_ops): Likewise.
24541         (adjust_accumulator_values): Adjust.
24542
24543 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24544
24545         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
24546         (QI to BLKmode splitter): New splitter.
24547
24548 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
24549
24550         * config/i386/i386.c (initial_ix86_tune_features): Turn on
24551         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
24552
24553 2010-02-22  Richard Guenther  <rguenther@suse.de>
24554
24555         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
24556
24557 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
24558
24559         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
24560         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
24561         ($(T)crti.o, $(T)crtn.o): Remove rules.
24562
24563 2010-02-21  Tobias Burnus  <burnus@net-b.de>
24564
24565         PR fortran/35259
24566         * doc/invoke.texi (-fassociative-math): Document that this
24567         option is automatically enabled for Fortran.
24568
24569 2010-02-20  David S. Miller  <davem@davemloft.net>
24570
24571         * configure.ac: Test if linker and assembler properly support
24572         GOTDATA_OP relocations.
24573         * configure: Rebuild.
24574         * config.in: Likewise.
24575         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
24576         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
24577         (movsi_high_pic): Likewise.
24578         (movdi_lo_sum_pic): Likewise.
24579         (movdi_high_pic): Likewise.
24580         (movsi_pic_gotdata_op): New pattern.
24581         (movdi_pic_gotdata_op): Likewise.
24582         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
24583         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
24584
24585 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
24586
24587         PR target/43067
24588         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
24589         attribute to ssemul.
24590         (xop_mulv2div2di3_high): Ditto.
24591
24592 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24593
24594         PR c++/35669
24595         * c.opt (Wconversion-null): New option.
24596         * doc/invoke.texi (Wconversion-null): Document.
24597
24598 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24599
24600         * common.opt (Wlarger-than-): Add Undocumented.
24601
24602 2010-02-19  Mike Stump  <mikestump@comcast.net>
24603
24604         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
24605
24606 2010-02-19  Jason Merrill  <jason@redhat.com>
24607
24608         PR target/40332
24609         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
24610         * configure: Likewise.
24611
24612 2010-02-20  Alan Modra  <amodra@gmail.com>
24613
24614         PR middle-end/42344
24615         * cgraph.h (cgraph_make_decl_local): Declare.
24616         * cgraph.c (cgraph_make_decl_local): New function.
24617         (cgraph_make_node_local): Use it.
24618         * cgraphunit.c (cgraph_function_versioning): Likewise.
24619         * ipa.c (function_and_variable_visibility): Likewise.
24620
24621 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24622
24623         PR bootstrap/43121
24624         * except.c (sjlj_emit_function_enter): Don't call
24625         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
24626         directly.
24627         * rtl.h (add_reg_br_prob_note): Remove prototype.
24628
24629 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24630
24631         PR 41779
24632         * c-common.c (conversion_warning): Remove widening conversions
24633         before checking the conversion of integers to reals.
24634
24635 2010-02-19  Mike Stump  <mikestump@comcast.net>
24636
24637         PR middle-end/43125
24638         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
24639
24640         PR objc/43061
24641         * cgraphunit.c (process_function_and_variable_attributes): Check
24642         DECL_PRESERVE_P instead of looking up attribute "used".
24643         * ipa-pure-const.c (check_decl): Likewise.
24644         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
24645         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
24646         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
24647         instead of attribute "used".
24648         * config/sol2-c.c (solaris_pragma_init): Likewise.
24649         (solaris_pragma_fini): Likewise.
24650
24651 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24652
24653         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
24654         Use XCNEW instead of xcalloc.
24655         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
24656         XNEW instead of xmalloc.
24657         (get_fields): Use XNEWVEC instead of xmalloc.
24658
24659         PR debug/43084
24660         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
24661         populate vars array.
24662         (create_new_general_access): For debug stmts just reset value.
24663         (get_stmt_accesses): For accesses within debug stmts just record them
24664         using add_access_to_acc_sites instead of preventing the peeling or
24665         counting them as accesses.
24666
24667         PR middle-end/42233
24668         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
24669
24670 2010-02-19  Richard Guenther  <rguenther@suse.de>
24671
24672         PR tree-optimization/42916
24673         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
24674         instructions.
24675
24676 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
24677
24678         * configure.ac: Replace all uses of changequote in macro arguments
24679         with proper quoting.
24680
24681 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24682
24683         PR middle-end/42233
24684         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
24685
24686 2010-02-19  Richard Guenther  <rguenther@suse.de>
24687
24688         PR tree-optimization/42944
24689         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
24690         test for aliasing with errno.
24691
24692 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24693
24694         PR middle-end/42233
24695         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
24696         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
24697         * dojump.c: Include output.h.
24698         (inv): New inline function.
24699         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
24700         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
24701         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
24702         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
24703         argument, pass it down to other calls.
24704         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
24705         add REG_BR_PROB note to the conditional jump.
24706         * cfgexpand.c (add_reg_br_prob_note): Removed.
24707         (expand_gimple_cond): Don't call it, add the probability
24708         as last argument to jumpif_1/jumpifnot_1.
24709         * Makefile.in (dojump.o): Depend on output.h.
24710         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
24711         callers.
24712         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
24713         * stmt.c (do_jump_if_equal): Likewise.
24714         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
24715         * loop-unswitch.c (compare_and_jump_seq): Likewise.
24716         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
24717         Likewise.
24718         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
24719         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
24720         jumpifnot_1 callers.
24721         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
24722         callers.
24723         (store_expr): Adjust jumpifnot caller.
24724         (store_constructor): Adjust jumpif caller.
24725
24726         PR middle-end/42233
24727         * gimplify.c (gimple_boolify): For __builtin_expect call
24728         gimple_boolify also on its first argument.
24729
24730 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
24731
24732         * configure.ac (gnu-unique-object): Wrap regexps using [] in
24733         changequote block.
24734         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
24735         * configure: Regenerated.
24736
24737 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24738
24739         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
24740         lang_hooks.types_compatible_p instead of comptypes.
24741
24742 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24743
24744         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
24745         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
24746         if __prefer_thumb__ is defined.
24747
24748 2010-02-18  Martin Jambor  <mjambor@suse.cz>
24749
24750         PR tree-optimization/43066
24751         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
24752         array with zero-sized element type.
24753
24754 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
24755
24756         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
24757         rtx, allocate struct var_loc_node here and return it to the
24758         caller, and only if it is actually needed.
24759         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
24760         move it earlier and return immediately if it returns NULL.
24761
24762 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
24763
24764         * config/sparc/gas.h: New file.  Restore
24765         TARGET_ASM_NAMED_SECTION to its ELF default.
24766         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
24767         check !HAVE_GNU_AS.
24768         * config/sparc/sparc.c (sparc_elf_asm_named_section):
24769         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
24770         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
24771         after sparc/sysv4.h.
24772
24773 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
24774
24775         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
24776
24777 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
24778
24779         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
24780         patterns from predicated pattern.
24781
24782 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
24783
24784         PR target/43103
24785         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
24786         for insn mnemonic suffix.
24787
24788 2010-02-17  Richard Guenther  <rguenther@suse.de>
24789
24790         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
24791         to loop PHI nodes.
24792
24793 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
24794
24795         PR debug/42918
24796         * caller-save.c (save_call_clobbered_regs): If BB ends with
24797         a DEBUG_INSN, move any notes in between last real insn and the last
24798         DEBUG_INSN after the last DEBUG_INSN.
24799
24800 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
24801
24802         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
24803         Fix return type.  Fix argument type.  Explain meaning of return value.
24804
24805 2010-02-16  Richard Guenther  <rguenther@suse.de>
24806
24807         PR tree-optimization/41043
24808         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
24809         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
24810         statements ...
24811         (vrp_visit_phi_node): ... but only for loop PHI nodes.
24812
24813 2010-02-16  Ira Rosen  <irar@il.ibm.com>
24814
24815         PR tree-optimization/43074
24816         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
24817         * tree-vect-loop.c (vect_analyze_loop_operations): Add
24818         vectorizable cycles in hybrid SLP check.
24819         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
24820
24821 2010-02-16  Richard Guenther  <rguenther@suse.de>
24822
24823         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
24824         (true_dependence): If memrefs_conflict_p computes must-alias
24825         trust it.  Move TBAA check after offset-based disambiguation.
24826         (canon_true_dependence): Likewise.
24827
24828 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
24829
24830         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
24831         * doc/invoke.texi: Document it.
24832         * var-tracking.c: Include toplev.h and params.h.
24833         (vt_find_locations): Return bool indicating success.  Compute
24834         hash sizes unconditionally.  Check new parameter, report.
24835         (variable_tracking_main_1): Check vt_find_locations results and
24836         retry.  Renamed from...
24837         (variable_tracking_main): ... this.  New wrapper to preserve
24838         flag_var_tracking_assignments.
24839         * Makefile.in (var-tracking.o): Adjust dependencies.
24840
24841 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
24842             Jakub Jelinek  <jakub@redhat.com>
24843
24844         PR target/42854
24845         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
24846         if weak_import attribute is present.
24847         * config/darwin.c (machopic_select_section): Likewise.
24848
24849 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
24850
24851         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
24852         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
24853         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
24854         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
24855
24856         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
24857         types.
24858
24859         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24860         Fix argument types.
24861
24862         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
24863         Rewrite text to refer to the names.
24864
24865 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
24866
24867         * config/i386/i386-builtin-types.def
24868         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
24869         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
24870         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
24871         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
24872         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
24873         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
24874         IX86_BUILTIN_VPERMIL2PS256.
24875         (MULTI_ARG_4_DF2_DI_I): Defined.
24876         (MULTI_ARG_4_DF2_DI_I1): Defined.
24877         (MULTI_ARG_4_SF2_SI_I): Defined.
24878         (MULTI_ARG_4_SF2_SI_I1): Defined.
24879         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
24880         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
24881         __builtin_ia32_vpermil2ps256.
24882         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
24883         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
24884         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
24885         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
24886         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
24887         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
24888         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
24889         CODE_FOR_xop_vpermil2v8sf3.
24890         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
24891         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
24892         * config/i386/xopintrin.h (_mm_permute2_pd): New.
24893         (_mm256_permute2_pd): New.
24894         (_mm_permute2_ps): New.
24895         (_mm256_permute2_ps): New.
24896
24897 2010-02-15  Nick Clifton  <nickc@redhat.com>
24898
24899         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
24900         boolean parameters.  Use emit_jump_insn when emitting a pop
24901         instruction containing a return insn.
24902         (push): Use 'true' rather than '1' as second parameter to F.
24903         (h8300_expand_prologue): Likewise.
24904         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
24905         (h8300_expand_epilogue): Likewise.
24906
24907 2010-02-15  Richard Guenther  <rguenther@suse.de>
24908
24909         PR middle-end/43068
24910         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
24911         if that is zero.
24912
24913 2010-02-15  Nick Clifton  <nickc@redhat.com>
24914
24915         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
24916         delta.
24917
24918 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
24919
24920         * intl.c (fake_ngettext): New function.
24921         * intl.h (fake_ngettext): Declare.
24922         (ngettext): Define macro.
24923         * collect2.c (notice_translated): New function.
24924         (main): Use notice_translated and ngettext.
24925         * collect2.h (notice_translated): Declare.
24926
24927 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
24928
24929         * reorg.c (delete_computation): Comment fixes.
24930         * caller-save.c (setup_save_areas): Idem.
24931         * sel-sched-dump.c (dump_lv_set): Idem.
24932         * rtl.def: Idem.
24933
24934 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24935
24936         * config/s390/s390.c (s390_sched_init): New function.
24937         (TARGET_SCHED_INIT): Target hook defined.
24938
24939 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
24940             Jack Howarth  <howarth@bromo.med.uc.edu>
24941             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
24942
24943         PR target/42982
24944         Partial revert of unintended change in fix for PR41605.
24945         * config/darwin.h: Fix typo.
24946         * config/darwin9.h: Same.
24947
24948 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
24949
24950         * c-pch.c (pch_init): Clear v.
24951
24952 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24953
24954         PR middle-end/42930
24955         * graphite-scop-detection.c (graphite_can_represent_scev): Call
24956         graphite_can_represent_init for MULT_EXPR.
24957
24958 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24959
24960         PR middle-end/42914
24961         PR middle-end/42530
24962         * graphite-sese-to-poly.c (remove_phi): New.
24963         (translate_scalar_reduction_to_array): Call remove_phi.
24964
24965 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24966
24967         PR middle-end/42771
24968         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
24969         * graphite-clast-to-gimple.h (gloog): Update declaration.
24970         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
24971         * graphite-poly.h (struct poly_bb): Add missing comments.
24972         (struct scop): Add poly_scop_p field.
24973         (POLY_SCOP_P): New.
24974         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
24975         * graphite.c (graphite_transform_loops): Build the polyhedral
24976         representation for each scop before code generation.
24977         * sese.c (rename_variables_in_operand): Removed.
24978         (rename_variables_in_expr): Return the renamed expression.
24979         (rename_sese_parameters): New.
24980         * sese.h (rename_sese_parameters): Declared.
24981
24982 2010-02-11  Richard Guenther  <rguenther@suse.de>
24983
24984         PR tree-optimization/42998
24985         * tree-ssa-pre.c (create_expression_by_pieces): Treat
24986         POINTER_PLUS_EXPR properly.
24987
24988 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24989             Changpeng Fang  <changpeng.fang@amd.com>
24990
24991         PR middle-end/40886
24992         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
24993         the cost of an IV candidate when the IV is used in a test against zero.
24994
24995         * gcc.dg/tree-ssa/ivopts-3.c: New.
24996
24997 2010-02-11  Richard Guenther  <rguenther@suse.de>
24998
24999         PR lto/41664
25000         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
25001         pointer-vs-decl case by swapping refs.  Handle some cases
25002         of pointer-vs-decl disambiguations more conservatively.
25003         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
25004         to false after expanding.
25005
25006 2010-02-11  Richard Guenther  <rguenther@suse.de>
25007
25008         PR driver/43021
25009         * gcc.c (process_command): Handle LTO file@offset case more
25010         appropriately.
25011
25012 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
25013
25014         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
25015         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
25016         of DEBUG_INSNs.
25017         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
25018
25019         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
25020         if MEM's mode size isn't DWARF2_ADDR_SIZE.
25021         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
25022         Optimize eq/ne comparisons when both arguments are known to be
25023         zero-extended.
25024         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
25025         Don't mask operands unnecessarily if they are known to be already
25026         zero-extended.
25027
25028 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
25029
25030         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
25031         instead of loop.
25032
25033 2010-02-10  Richard Guenther  <rguenther@suse.de>
25034
25035         PR tree-optimization/43017
25036         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
25037         for wrapping signed arithmetic.
25038
25039 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
25040
25041         PR debug/43010
25042         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
25043         if no debug info should be emitted for it.
25044
25045 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
25046
25047         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
25048         note when flag_exceptions is set.
25049
25050 2010-02-10  Duncan Sands  <baldrick@free.fr>
25051
25052         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
25053
25054 2010-02-10  Richard Guenther  <rguenther@suse.de>
25055
25056         PR c/43007
25057         * tree.c (get_unwidened): Handle constants.
25058         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
25059
25060 2010-02-10  Martin Jambor  <mjambor@suse.cz>
25061
25062         PR lto/42985
25063         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
25064         check for variable argument counts independently.
25065
25066 2010-02-10  Christian Bruel  <christian.bruel@st.com>
25067
25068         PR target/42841
25069         * config/sh/sh.c (find_barrier): Increase length for non delayed
25070         conditional branches.
25071
25072 2010-02-10  Christian Bruel  <christian.bruel@st.com>
25073
25074         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
25075
25076 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
25077
25078         * builtins.c (set_builtin_user_assembler_name): Also handle
25079         ffs if int is smaller than word.
25080
25081 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
25082
25083         PR middle-end/42973
25084         * ira-conflicts.c (get_dup): Remove.
25085         (process_reg_shuffles): Add new parameter.  Use it as an
25086         additional guard for copy generation.
25087         (add_insn_allocno_copies): Rewrite.
25088
25089 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
25090
25091         * common.opt (fsched2-use-traces): Preserved for backward
25092         compatibility.
25093         * doc/invoke.texi: Remove the documentation about option
25094         -fsched2-use-traces.
25095         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
25096         flag_sched2_use_traces.
25097         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
25098         the backward compatibility flag section.
25099
25100 2010-02-09  Richard Guenther  <rguenther@suse.de>
25101
25102         PR tree-optimization/43008
25103         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
25104         make HEAP variables initialized from global memory if they
25105         are not known builtin functions.
25106         (find_func_aliases): Adjust.
25107
25108 2010-02-09  Richard Guenther  <rguenther@suse.de>
25109
25110         PR tree-optimization/43000
25111         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
25112         arithmetic manually.
25113
25114 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
25115
25116         PR tree-optimization/42931
25117         * tree-loop-linear.c (try_interchange_loops): Don't call
25118         double_int_mul if estimated_loop_iterations failed.
25119
25120 2010-02-08  Martin Jambor  <mjambor@suse.cz>
25121
25122         PR middle-end/42898
25123         * tree-sra.c (build_accesses_from_assign): Do not mark in
25124         should_scalarize_away_bitmap if stmt has volatile ops.
25125         (sra_modify_assign): Do not process assigns piecemeal if if stmt
25126         has volatile ops.
25127
25128 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
25129
25130         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
25131
25132 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
25133
25134         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
25135         before the pattern.
25136
25137 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
25138
25139         PR middle-end/42946
25140         * df-core.c (df_finish_pass): Change type of saved_flags to int.
25141
25142 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
25143
25144         PR middle-end/42988
25145         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
25146         to unknown_dependence.
25147         (graphite_legal_transform_dr): Handle the unknown_dependence.
25148         (graphite_carried_dependence_level_k): Same.
25149
25150 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
25151
25152         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
25153
25154 2010-02-07  Richard Guenther  <rguenther@suse.de>
25155
25156         PR middle-end/42991
25157         * expr.c (get_inner_reference): Always initialize *pbitsize.
25158
25159 2010-02-07  Richard Guenther  <rguenther@suse.de>
25160
25161         PR middle-end/42956
25162         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
25163         new ARRAY_REFs on variable size element or minimal index arrays.
25164         Complete.
25165         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
25166         gimple_fold_indirect_ref.
25167
25168 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
25169
25170         PR target/42957
25171         * arm.c (arm_override_options): Just return if the user has specified
25172         an invalid fpu name.
25173
25174 2010-02-03  Jason Merrill  <jason@redhat.com>
25175
25176         PR c++/42870
25177         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
25178         i386_pe_maybe_record_exported_symbol.
25179
25180 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
25181
25182         PR target/42924
25183         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
25184         (pa_delegitimize_address): New function.
25185
25186 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
25187
25188         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
25189         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
25190
25191 2010-02-05  Richard Guenther  <rguenther@suse.de>
25192
25193         PR lto/42762
25194         * lto-streamer-in.c (get_resolution): Deal with references
25195         to undefined functions.
25196
25197 2010-02-05  Richard Guenther  <rguenther@suse.de>
25198
25199         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
25200         (fold_const_aggregate_ref): Likewise.
25201         (ccp_fold_stmt): Substitute loads.
25202         (maybe_fold_reference): Verify types before substituting.
25203         Unshare properly.
25204         (fold_gimple_assign): Unshare properly.
25205         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
25206
25207 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
25208
25209         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
25210         for rs6000_gen_cell_microcode.
25211
25212 2010-02-04  Richard Guenther  <rguenther@suse.de>
25213
25214         PR rtl-optimization/42952
25215         * dse.c (const_or_frame_p): Remove MEM handling.
25216
25217 2010-02-04  Nick Clifton  <nickc@redhat.com>
25218
25219         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
25220         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
25221         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
25222         (mn10300_asm_output_mi_thunk): New function.
25223         (mn10300_can_output_mu_thunk): New function.
25224         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
25225         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
25226         (FUNCTION_ARG): Delete incorrect comment.
25227
25228 2010-02-03  Jason Merrill  <jason@redhat.com>
25229
25230         PR c++/40138
25231         * fold-const.c (operand_equal_p): Handle erroneous types.
25232
25233 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25234
25235         * config/h8300/h8300.md (can_delay): Fix attibute condition.
25236
25237 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
25238
25239         PR rtl-optimization/42941
25240         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
25241         of xmalloc.
25242
25243 2010-02-03  Jason Merrill  <jason@redhat.com>
25244
25245         PR c++/35652
25246         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
25247
25248 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
25249
25250         PR debug/42896
25251         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
25252         (cselib_reset_table): Renamed from...
25253         (cselib_reset_table_with_next_value): ... this.
25254         (cselib_get_next_uid): Renamed from...
25255         (cselib_get_next_unknown_value): ... this.
25256         * cselib.c (next_uid): Renamed from...
25257         (next_unknown_value): ... this.
25258         (cselib_clear_table): Adjust.
25259         (cselib_reset_table): Adjust.  Renamed from...
25260         (cselib_reset_table_with_next_value): ... this.
25261         (cselib_get_next_uid): Adjust.  Renamed from...
25262         (cselib_get_next_unknown_value): ... this.
25263         (get_value_hash): Use hash.
25264         (cselib_hash_rtx): Likewise.
25265         (new_cselib_val): Adjust.  Set and dump uid.
25266         (cselib_lookup_mem): Pass next_uid as hash.
25267         (cselib_subst_to_values): Likewise.
25268         (cselib_log_lookup): Dump uid.
25269         (cselib_lookup): Pass next_uid as hash.  Adjust.
25270         (cselib_process_insn): Adjust.
25271         (cselib_init): Initialize next_uid.
25272         (cselib_finish): Adjust.
25273         (dump_cselib_table): Likewise.
25274         * dse.c (canon_address): Dump value uid.
25275         * print-rtl.c (print_rtx): Print value uid.
25276         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
25277         (dvuid): New type.
25278         (dv_uid): New function, sort of renamed from...
25279         (dv_htab_hash): ... this, reimplemented in terms of it and...
25280         (dv_uid2hash): ... this.  New.
25281         (variable_htab_eq): Drop excess assertions.
25282         (tie_break_pointers): Removed.
25283         (canon_value_cmp): Compare uids.
25284         (variable_post_merge_New_vals): Print uids.
25285         (vt_add_function_parameters): Adjust.
25286         (vt_initialize): Reset table.  Adjust.
25287
25288 2010-02-03  Richard Guenther  <rguenther@suse.de>
25289
25290         PR tree-optimization/42944
25291         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
25292         (call_may_clobber_ref_p_1): Likewise.  Properly handle
25293         malloc and calloc clobbering errno.
25294
25295 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
25296
25297         * doc/invoke.texi: Fix name of sched1 dump.
25298
25299         * opts.c (decode_options): Set flag_tree_switch_conversion
25300         only conditionally on optimize >= 2.
25301
25302         * gcse.c: Assorted comment fixes in pass description.
25303
25304 2010-02-03  Anthony Green  <green@moxielogic.com>
25305
25306         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
25307         nop padding in order to maintain alignment of storage location of
25308         target function address.
25309         (moxie_trampoline_init): Store target function address at newly
25310         aligned location.
25311         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
25312         to 32.
25313         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
25314
25315 2010-02-03  Richard Guenther  <rguenther@suse.de>
25316
25317         PR middle-end/42927
25318         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
25319
25320 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25321
25322         * config.gcc: Reenable check for obsolete targets.
25323         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
25324         mips-sgi-irix6.[0-4]*.
25325
25326 2010-02-02  Nick Clifton  <nickc@redhat.com>
25327
25328         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
25329         constant size of 4 as being the same as 0.
25330         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
25331         can take values in the range 0..4.
25332
25333 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
25334
25335         PR java/41991
25336         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
25337         as _darwin10_Unwind_FindEnclosingFunction().
25338         * libgcc-libsystem.ver: New.
25339
25340 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
25341
25342         PR target/41399
25343         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
25344         implicitly set registers.
25345
25346 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
25347
25348         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
25349         (arm_override_options): Allow automatic selection of the thread
25350         pointer register if thumb2.
25351         (legitimize_pic_address): Improve code sequences for Thumb2.
25352         (arm_call_tls_get_addr): Likewise.
25353         (legitimize_tls_address): Likewise.
25354         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
25355         (pic_load_addr_32bit): ... this.  New named pattern.
25356         * thumb2.md (pic_load_addr_thumb2): Delete.
25357         (pic_load_dot_plus_four): Delete.
25358         (tls_load_dot_plus_four): New named pattern.
25359
25360 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25361
25362         PR libgomp/29986
25363         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
25364         Document fix for TLS bug.
25365
25366 2010-01-31  Richard Guenther  <rguenther@suse.de>
25367
25368         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
25369         conservatively correct.
25370
25371 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25372
25373         PR target/42850
25374         Revert:
25375         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25376
25377         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
25378
25379 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25380
25381         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
25382
25383 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
25384
25385         * config.gcc: Adjust order of makefile fragments for mingw targets.
25386
25387 2010-01-31  Richard Guenther  <rguenther@suse.de>
25388
25389         PR middle-end/42898
25390         * gimplify.c (gimplify_init_constructor): For volatile LHS
25391         initialize a temporary.
25392
25393 2010-01-31  Matthias Klose  <doko@ubuntu.com>
25394
25395         * configure.ac: Fix __stack_chk_fail check for cross builds configured
25396         --with-headers
25397         * configure: Regenerate.
25398
25399 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
25400
25401         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
25402         the same alias set and their sizes different constantness.
25403         (aliasing_component_refs_p): Revert 2009-10-24 change.
25404
25405 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25406
25407         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
25408         unused.
25409
25410 2010-01-29  Richard Guenther  <rguenther@suse.de>
25411
25412         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
25413         Assert we successfully updated the call.
25414
25415 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
25416
25417         PR rtl-optimization/42889
25418         * df.h (df_set_bb_dirty_nonlr): New prototype.
25419         * df-core.c (df_set_bb_dirty_nonlr): New function.
25420         * df-scan.c (df_insn_rescan): Call it instead of
25421         df_set_bb_dirty for DEBUG_INSNs.
25422
25423 2010-01-29  Richard Guenther  <rguenther@suse.de>
25424
25425         PR middle-end/37448
25426         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
25427         quadratic behavior in most cases.
25428
25429 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
25430
25431         PR target/42891
25432         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
25433         in the call to gen_x86_movsicc_0_m1.
25434
25435 2010-01-28  Richard Guenther  <rguenther@suse.de>
25436
25437         PR tree-optimization/42871
25438         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
25439
25440 2010-01-28  Richard Guenther  <rguenther@suse.de>
25441
25442         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
25443         into call arguments.
25444
25445 2010-01-28  Richard Guenther  <rguenther@suse.de>
25446
25447         PR middle-end/42883
25448         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
25449         the forwarder if the destination is an EH landing pad.
25450
25451 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
25452
25453         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
25454         block list passed to gimple_duplicate_sese_tail.
25455         (parallelize_loops): Avoid parallelization when the function
25456         has_nonlocal_label.
25457         Avoid parallelization when the preheader is IRREDUCIBLE.
25458         Try to optimize when estimated_loop_iterations_int is unresolved.
25459         Add the loop's location to the dump file.
25460         * tree-cfg.c (add_phi_args_after_redirect): Remove.
25461         (gimple_duplicate_sese_tail): Remove the check for the latch.
25462         Redirect nexits to the exit block.
25463         Remove handling of the incoming edges to the latch.
25464         Redirect the backedge from the copied latch to the exit bb.
25465
25466 2010-01-28  Michael Matz  <matz@suse.de>
25467
25468         PR target/42881
25469         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
25470         Wrap force_reg into a sequence, emit it before user.
25471
25472 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
25473
25474         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
25475         (arm_rev): New.
25476         (arm_legacy_rev): Likewise.
25477         (thumb_legacy_rev): Likewise.
25478
25479 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
25480
25481         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
25482         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
25483         on MEM's address failed, try avoid_constant_pool_reference and
25484         recurse if it returned something different.
25485         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
25486         address, try avoid_constant_pool_reference and recurse if it
25487         returned something different.
25488         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
25489         address and avoid_constant_pool_reference returned something
25490         different, don't set have_address.
25491
25492 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
25493
25494         PR debug/42861
25495         * var-tracking.c (val_store): Add modified argument, obey it.
25496         Adjust callers.
25497         (count_uses): Move down logging of main.
25498         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
25499         don't need resolution.
25500         (emit_notes_in_bb): Likewise.
25501
25502 2010-01-27  Richard Guenther  <rguenther@suse.de>
25503
25504         PR middle-end/42878
25505         * tree-inline.c (remap_decl): Delay remapping of SSA name
25506         default definitions until we need them.
25507
25508 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
25509
25510         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
25511         (rs6000_delegitimize_address): New function.
25512
25513         * config/s390/s390.c (s390_delegitimize_address): Call
25514         delegitimize_mem_from_attrs.
25515
25516         PR middle-end/42874
25517         * tree-inline.c (cannot_copy_type_1): Removed.
25518         (copy_forbidden): Don't forbid copying of functions containing
25519         records/unions with variable length fields.
25520
25521 2010-01-27  Christian Bruel  <christian.bruel@st.com>
25522
25523         Revert:
25524         PR target/42841
25525         * config/sh/sh.c (find_barrier): Increase length for non delayed
25526         conditional branches.
25527
25528 2010-01-27  Matthias Klose  <doko@ubuntu.com>
25529
25530         * configure.ac (gnu-unique-object): Fix ldd version check.
25531         * configure: Regenerate.
25532
25533 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25534
25535         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
25536         HAVE_GNU_AS value.
25537         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
25538         Test for HAVE_GNU_AS value.
25539
25540 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25541
25542         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
25543         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
25544         INT64_TYPE): Define.
25545         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
25546         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25547         INT_LEAST64_TYPE): Define.
25548         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
25549         UINT_LEAST64_TYPE): Define.
25550         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
25551         INT_FAST64_TYPE): Define.
25552         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25553         UINT_FAST64_TYPE): Define.
25554         (INTMAX_TYPE, UINTMAX_TYPE): Define.
25555         (INTPTR_TYPE, UINTPTR_TYPE): Define.
25556         (SIG_ATOMIC_TYPE): Define.
25557
25558 2010-01-26  Richard Guenther  <rguenther@suse.de>
25559
25560         * df-scan.c (df_scan_set_bb_info): Remove assert.
25561         (df_insn_rescan_debug_internal): Merge asserts.
25562         (df_install_ref): Likewise.
25563         (df_mark_reg): Use bitmap_set_range.
25564         (df_hard_reg_used_p): Remove assert.
25565         (df_hard_reg_used_count): Likewise.
25566
25567 2010-01-26  Richard Guenther  <rguenther@suse.de>
25568
25569         PR rtl-optimization/42685
25570         * web.c (web_main): Ignore DEBUG_INSNs.
25571
25572 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
25573
25574         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
25575
25576         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
25577         Fix types of fndecl and arglist parameters.
25578
25579 2010-01-26  Richard Guenther  <rguenther@suse.de>
25580
25581         PR middle-end/42806
25582         * tree-eh.c (unsplit_eh): Skip debug insns.
25583
25584 2010-01-26  Richard Guenther  <rguenther@suse.de>
25585
25586         PR tree-optimization/42250
25587         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
25588
25589 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
25590
25591         PR fortran/42866
25592         * omp-low.c (expand_omp_sections): Only use single_pred if
25593         l2_bb is single_pred_p.
25594
25595 2010-01-25  Christian Bruel  <christian.bruel@st.com>
25596
25597         PR target/42841
25598         * config/sh/sh.c (find_barrier): Increase length for non delayed
25599         conditional branches.
25600         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
25601
25602 2010-01-24  David S. Miller  <davem@davemloft.net>
25603
25604         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
25605         define if not using GAS.
25606         * config/sparc/sparc.c (sparc_elf_asm_named_section):
25607         Likewise.  Delete SECTION_MERGE code, which is only applicable
25608         when using GAS.
25609
25610 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
25611
25612         PR c++/42748
25613         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
25614         mangling of va_list in system headers.
25615
25616 2010-01-23  Toon Moene  <toon@moene.org>
25617
25618         * tree-predcom.c (combine_chains): Return NULL, not false.
25619
25620 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
25621
25622         * tree-loop-distribution.c (distribute_loop): Fix declaration and
25623         initialization of variable res to agree with return type.
25624
25625 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
25626
25627         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
25628         * tree-sra.c: Add include of expr.h.
25629
25630 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
25631
25632         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
25633         insert the debug stmt on the single non-EH edge from the stmt.
25634
25635 2010-01-22  Richard Henderson  <rth@redhat.com>
25636
25637         PR tree-opt/42833
25638         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
25639         the RHS until after generate_subtree_copies has insertted its
25640         code before the current statement.
25641
25642 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
25643
25644         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
25645
25646         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
25647
25648 2010-01-21  Martin Jambor  <mjambor@suse.cz>
25649
25650         PR tree-optimization/42585
25651         * tree-sra.c (struct access): New field grp_total_scalarization.
25652         (dump_access): Dump the new field.
25653         (should_scalarize_away_bitmap): New variable.
25654         (cannot_scalarize_away_bitmap): Likewise.
25655         (sra_initialize): Allocate new bitmaps.
25656         (sra_deinitialize): Free new bitmaps.
25657         (create_access_1): New function.
25658         (create_access): Parts moved to create_access_1.
25659         (type_consists_of_records_p): New function.
25660         (completely_scalarize_record): Likewise.
25661         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
25662         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
25663         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
25664         access.
25665         (analyze_all_variable_accesses): Completely scalarize small eligible
25666         records.
25667
25668 2010-01-21  Martin Jambor  <mjambor@suse.cz>
25669
25670         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
25671
25672 2010-01-21  Andrew Haley  <aph@redhat.com>
25673
25674         * gcc.c (process_command): Move lang_specific_driver before
25675         setting cc_libexec_prefix.
25676
25677 2010-01-21  Richard Guenther  <rguenther@suse.de>
25678
25679         PR middle-end/19988
25680         * fold-const.c (negate_expr_p): Pretend only negative
25681         real constants are easily negatable.
25682
25683 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
25684             Jason Merrill  <jason@redhat.com>
25685
25686         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
25687         (TYPE_TRANSPARENT_AGGR): this, for union and record.
25688         * calls.c (initialize argument_information): Handle it.
25689         * c-common.c (handle_transparent_union_attribute): Use new name.
25690         * c-decl.c (finish_struct): Ditto.
25691         * c-typeck.c (type_lists_compatible_p): Ditto.
25692         (convert_for_assignment): Use new name and also handle record.
25693         * function.c (aggregate_value_p): Handle it.
25694         (pass_by_reference): Ditto.
25695         (assign_parm_data_types): Ditto.
25696         * print-tree.c (print_node): Ditto.
25697         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
25698         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
25699         * tree.c (first_field): New fn.
25700
25701 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
25702
25703         PR target/42818
25704         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
25705         even when linking statically, for now.
25706
25707 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
25708
25709         PR debug/42715
25710         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
25711         without a cselib val.
25712         (count_uses): Accept MO_VAL_SET with no val on stores.
25713         (add_stores): Likewise.
25714
25715 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25716
25717         * var-tracking.c (check_value_val): Add a compile time assertion.
25718         (dv_is_decl_p): Simplify.
25719         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
25720         gcc_assert if ENABLE_CHECKING.
25721
25722 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
25723
25724         PR debug/42782
25725         * var-tracking.c: Include tree-flow.h.
25726         (mem_dies_at_call): New.
25727         (dataflow_set_preserve_mem_locs): Use it.
25728         (dataflow_set_remove_mem_locs): Likewise.
25729         (dump_var): Renamed from dump_variable.  Adjust all callers.
25730         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
25731         * Makefile.in (var-tracking.o): Adjust deps.
25732
25733 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
25734
25735         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
25736
25737 2010-01-20  Richard Guenther  <rguenther@suse.de>
25738
25739         PR tree-optimization/42717
25740         * tree-ssa-dce.c (get_live_post_dom): Remove.
25741         (forward_edge_to_pdom): Take an arbitrary edge to copy
25742         degenerate PHI args from.
25743         (remove_dead_stmt): Use the first post-dominator even if it
25744         does not contain live statements as redirection destination.
25745
25746 2010-01-20  Richard Guenther  <rguenther@suse.de>
25747
25748         * tree-inline.c (estimate_num_insns): Handle EH builtins.
25749
25750 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25751
25752         * sel-sched.c (create_speculation_check): Remove set but not used
25753         variable twin.
25754         (try_transformation_cache): Remove set but not used variable ds.
25755         (calculate_privileged_insns): Remove set but not used variables
25756         cur_insn and min_spec_insn.
25757         (find_best_expr): Remove set but not used variable avail_n.
25758         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
25759         variable e.
25760         * cgraphunit.c (assemble_thunk): Remove set but not used variable
25761         false_label.
25762         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
25763         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
25764         new_scop_exit_edge.
25765
25766 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
25767
25768         PR bootstrap/42786
25769         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
25770         cpu types.  Add support for *-sse3 cpu types.
25771         (x86_64-*-*): Ditto.
25772
25773 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25774
25775         PR middle-end/42803
25776         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
25777         argument, call initializer_constant_valid_p_1 instead of
25778         initializer_constant_valid_p, pass CACHE to it, return NULL
25779         immediately if first call returns NULL.
25780         (initializer_constant_valid_p_1): New function.
25781         (initializer_constant_valid_p): Use it.
25782
25783 2010-01-20  Thomas Quinot  <quinot@adacore.com>
25784
25785         * tree.def (PLACEHOLDER_EXPR): Fix comment.
25786
25787 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25788
25789         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
25790         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
25791         (loc_list_from_tree): Don't handle unsigned division.  Handle
25792         signed modulo using DW_OP_{over,over,div,mul,minus}.
25793         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
25794         modulo instead of signed.
25795
25796 2010-01-20  DJ Delorie  <dj@redhat.com>
25797
25798         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
25799         (Fpa): Pass it
25800         (h8300_emit_stack_adjustment): Propogate it.
25801         (push): Pass it.
25802         (h8300_expand_prologue): Likewise.
25803         (h8300_expand_epilogue): Likewise.
25804
25805 2010-01-19  Michael Matz  <matz@suse.de>
25806
25807         PR tree-optimization/41783
25808         * tree-data-ref.c (toplevel): Include flags.h.
25809         (dump_data_dependence_relation):  Also dump the inputs if the
25810         result will be unknown.
25811         (split_constant_offset_1): Look through some conversions.
25812         * tree-predcom.c (determine_roots_comp): Restart a new chain if
25813         the offset from last element is too large.
25814         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
25815         (reassociate_to_the_same_stmt): Handle vector registers.
25816         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
25817         (e.g. conversions).
25818         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
25819         wide_prolog_niters argument, emit widening instructions.
25820         (vect_do_peeling_for_alignment): Adjust caller, use widened
25821         variant of the iteration cound.
25822         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
25823
25824 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25825
25826         PR target/38697
25827         * config/arm/neon-testgen.m (emit_automatics): New parameter
25828         features. Adjust for Fixed_return_reg feature.
25829         (test_intrinsic): Call emit_automatics with new feature.
25830         * config/arm/neon.ml: Update copyright years.
25831         (features): New Fixed_return_reg feature.
25832         (ops): Update feature for Vget_low.
25833
25834 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
25835
25836         PR tree-optimization/42719
25837         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
25838         stmt uses.
25839
25840         PR debug/42728
25841         * fwprop.c (all_uses_available_at): Return false if def_set dest
25842         is a REG that is used in def_insn.
25843
25844 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
25845
25846         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
25847
25848         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
25849         Add argument names.
25850
25851         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
25852
25853         * target.h (struct gcc_target) <secondary_reload>: Change type
25854         of last argument to secondary_reload_info *.
25855
25856 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
25857
25858         PR target/42774
25859         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
25860         memory references with unaligned offsets.  Remove CQImode handling.
25861         (unaligned_memory_operand): Return 1 for memory references with
25862         unaligned offsets.  Remove CQImode handling.
25863
25864 2010-01-18  Richard Guenther  <rguenther@suse.de>
25865
25866         PR middle-end/39954
25867         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
25868         builtin calls.
25869
25870 2010-01-18  Richard Guenther  <rguenther@suse.de>
25871
25872         PR tree-optimization/42781
25873         * tree-ssa-structalias.c (find_what_var_points_to): Skip
25874         restrict processing only if the original variable was artificial.
25875
25876 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
25877
25878         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
25879         find number of popped argument bytes.
25880
25881         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
25882         Fix the text that describes the return value for invalid insns.
25883
25884         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
25885
25886         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
25887         Clarify what 'cost of the -dependence' is.  Fix quoting.
25888
25889         * toplev.c (default_get_pch_validity): Rename argument to "sz".
25890         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
25891
25892 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
25893
25894         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25895         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
25896
25897 2010-01-17  Richard Guenther  <rguenther@suse.de>
25898
25899         PR middle-end/42248
25900         * function.c (split_complex_args): Take a VEC to modify.
25901         (assign_parms_augmented_arg_list): Build a VEC instead of
25902         a chain of PARM_DECLs.
25903         (assign_parms_unsplit_complex): Take a VEC of arguments.
25904         Do not fixup unmodified parms.
25905         (assign_parms): Deal with the VEC.
25906         (gimplify_parameters): Likewise.
25907
25908 2010-01-17  Richard Guenther  <rguenther@suse.de>
25909
25910         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
25911         node existence check.
25912         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
25913         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
25914         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
25915         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
25916         (gimple_execute_on_growing_pred): Likewise.
25917
25918 2010-01-17  Richard Guenther  <rguenther@suse.de>
25919
25920         PR tree-optimization/42773
25921         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
25922         (compute_antic_aux): Likewise.
25923         (compute_partial_antic_aux): Likewise.
25924
25925 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
25926
25927         PR debug/42767
25928         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
25929         and US_TRUNCATE.
25930
25931 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
25932
25933         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
25934         appearance.
25935
25936         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
25937         Fix markup for strict argument.
25938
25939         (TARGET_SCHED_REORDER2): Fix argument types.
25940
25941         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
25942         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
25943
25944         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
25945         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
25946
25947         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
25948         Add argument name.
25949
25950         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
25951         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
25952         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
25953         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
25954         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
25955
25956         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
25957
25958         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
25959
25960         (TARGET_ASM_RELOC_RW_MASK): Add return type.
25961         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
25962
25963         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
25964
25965         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
25966         Use prototype.
25967
25968         (TARGET_ASM_NAMED_SECTION): Fix argument list.
25969
25970         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
25971         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
25972
25973         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
25974
25975         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
25976
25977         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
25978         referring to it.  Fix language.
25979
25980         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
25981
25982         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
25983
25984         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
25985
25986         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
25987
25988         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
25989         '@var{stream}.  Remove stray 'and'.
25990
25991         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
25992
25993         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
25994
25995         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
25996
25997         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
25998         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
25999
26000         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
26001         Fix description of return value.
26002         Rename argument "sz" to "len."
26003
26004         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
26005         Clarify meaning of 'true' return value.
26006
26007         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
26008
26009         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
26010         rep_mode versus mode_rep.
26011
26012         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
26013
26014         (TARGET_BUILTIN_DECL): Fix name.
26015
26016         (TARGET_COMMUTATIVE_P): Fix type of first argument.
26017
26018         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
26019
26020         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
26021
26022         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
26023
26024         (TARGET_RELAXED_ORDERING): Use @deftypevr.
26025
26026         (TARGET_GET_DRAP_RTX): Note that this is a hook.
26027         Clarify language.
26028
26029         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
26030         Rename argument tm_fn to md_fn.
26031
26032         (TARGET_OPTION_PRINT): Fix argument list.
26033
26034 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
26035
26036         PR target/42664
26037         * config/i386/i386.c (ix86_fixup_binary_operands):
26038         Revert FMA4 fixup of operands.
26039
26040 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26041
26042         PR gcc/42525
26043         * Makefile.in (write_entries_to_file, install-plugin):
26044         Use \012 instead of \n with tr.
26045
26046 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
26047
26048         * configure.ac (HAVE_AS_REF): New C macro.
26049         * configure: Regenerate.
26050         * config.in: Likewise.
26051         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
26052         if HAVE_AS_REF.
26053         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
26054         if HAVE_AS_REF.
26055
26056 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
26057
26058         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
26059
26060         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
26061
26062         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
26063
26064         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
26065
26066         (TARGET_IN_SMALL_DATA_P): Fix argument type.
26067
26068         (TARGET_BINDS_LOCAL_P): Fix argument type.
26069
26070         (TARGET_ASM_FILE_END): Use prototype.
26071
26072         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
26073
26074         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
26075
26076         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
26077
26078         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
26079
26080         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
26081         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
26082
26083         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
26084         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
26085
26086         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
26087         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
26088         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
26089         (TARGET_ADDR_SPACE_CONVERT): Likewise.
26090
26091         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
26092
26093         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
26094
26095         (TARGET_INIT_BUILTINS): Use prototype.
26096
26097         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
26098         Put 'const char *' in braces.  Fix parameter types.
26099         (TARGET_INVALID_CONVERSION): Fix parameter types.
26100         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
26101         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
26102
26103         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
26104         Fix argument type.
26105
26106         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
26107
26108         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
26109
26110 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
26111
26112         * doc/tm.texi (TARGET_HELP): Fix return type.
26113
26114         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
26115         in braces.  Fix argument types.
26116
26117         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
26118
26119         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
26120
26121         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
26122
26123         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
26124         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
26125
26126         (TARGET_MANGLE_TYPE): Fix argument types.
26127
26128         (TARGET_IRA_COVER_CLASSES): Use prototype.
26129
26130         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
26131
26132         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
26133
26134         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
26135
26136         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
26137
26138         (TARGET_CALLEE_COPIES): Fix argument types.
26139
26140         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
26141
26142         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
26143
26144         (TARGET_FUNCTION_VALUE): Fix argument types.
26145
26146         (TARGET_RETURN_IN_MSB): Fix argument type.
26147
26148         (TARGET_RETURN_IN_MEMORY): Fix argument types.
26149
26150         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
26151
26152         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
26153
26154         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
26155         agree with return type.
26156
26157         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
26158
26159 2010-01-15  Jing Yu  <jingyu@google.com>
26160
26161         PR rtl-optimization/42691
26162         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
26163         a pseudo to a constant and are merged, and adjust comments.
26164
26165 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26166
26167         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
26168
26169 2010-01-15  Richard Guenther  <rguenther@suse.de>
26170
26171         PR middle-end/42739
26172         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
26173         labels of computed or non-local gotos to the destination.
26174         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
26175         landing pad label is the first label.
26176
26177 2010-01-15  Richard Guenther  <rguenther@suse.de>
26178
26179         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
26180
26181 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26182
26183         PR target/42747
26184         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
26185         to allow generation of the xssqrtdp instruction on power7.
26186         (sqrtdf2_fpr): Ditto.
26187
26188 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
26189
26190         PR middle-end/42674
26191         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
26192         functions with noreturn attribute.
26193
26194         PR c++/42608
26195         * varasm.c (declare_weak): Add weak attribute to decl if it
26196         doesn't have one already.
26197         (assemble_external): Only add decls to weak_decls if they also
26198         have weak attribute.
26199
26200 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
26201
26202         * var-tracking.c (var_reg_delete): Don't delete the association
26203         between REGs and values or one-part variables if the register
26204         isn't clobbered.
26205
26206 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
26207
26208         PR debug/42657
26209         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
26210         because its first operand is a non-localized variable.
26211
26212 2010-01-14  Martin Jambor  <mjambor@suse.cz>
26213
26214         PR tree-optimization/42706
26215         * tree-sra.c (encountered_recursive_call): New variable.
26216         (encountered_unchangable_recursive_call): Likewise.
26217         (sra_initialize): Initialize both new variables.
26218         (callsite_has_enough_arguments_p): New function.
26219         (scan_function): Call decl and flags check only for IPA-SRA, check
26220         whether there is a recursive call and whether it has enough arguments.
26221         (all_callers_have_enough_arguments_p): New function.
26222         (convert_callers): Look for recursive calls only when
26223         encountered_recursive_call is set.
26224         (ipa_early_sra): Bail out either if
26225         !all_callers_have_enough_arguments_p or
26226         encountered_unchangable_recursive_call.
26227
26228 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26229
26230         * sel-sched.c: Add 2010 to copyright years.
26231         * sel-sched-ir.c: Likewise.
26232         * sel-sched-ir.h: Likewise.
26233
26234 2010-01-14  Martin Jambor  <mjambor@suse.cz>
26235
26236         PR tree-optimization/42714
26237         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
26238         constructors specially.
26239
26240 2010-01-14  Andi Kleen  <ak@linux.intel.com>
26241
26242         * config/i386/drivers-i386.c (detect_caches_intel):
26243         Add l2sizekb parameter and fill in.
26244         (host_detect_local_cpu): Add l2sizekb, fill in.
26245         Add Atom small cache heuristic.
26246
26247 2010-01-14  Andi Kleen  <ak@linux.intel.com>
26248
26249         * config/i386/drivers-i386.c (detect_caches_cpuid4):
26250         Add level3 parameter and fill in.
26251         (detect_caches_intel): Handle level3 cache.
26252
26253 2010-01-14  Andi Kleen  <ak@linux.intel.com>
26254
26255         * config/i386/drivers-i386.c (host_detect_local_cpu):
26256         Fix core duo detection.
26257
26258 2010-01-14  Andi Kleen  <ak@linux.intel.com>
26259
26260         * config/i386/drivers-i386.c (host_detect_local_cpu):
26261         Fix Atom detection.
26262
26263 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26264
26265         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
26266         (rs6000_variable_issue_1): this.  Use...
26267         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
26268
26269 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26270
26271         * sel-sched-ir.c (sel_restore_other_notes): Rename to
26272         sel_restore_notes.  Update all callers.  Call reemit_notes
26273         for all insns.
26274
26275 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26276
26277         PR rtl-optimization/42246
26278         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
26279         loops.
26280
26281 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26282
26283         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
26284         all successors is the same as number of successors in current region.
26285
26286 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26287
26288         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
26289         to rename is not separable.  Otherwise check that its LHS is not NULL.
26290
26291 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26292
26293         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
26294
26295 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26296
26297         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
26298         available registers when failed to discover LHS register class.
26299         Fix indentation.  Update comment.
26300
26301 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26302             Alexander Monakov  <amonakov@ispras.ru>
26303
26304         PR rtl-optimization/42389
26305         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
26306         to can_issue_more.
26307         (advance_state_on_fence): Likewise.
26308         (sel_target_adjust_priority): Print debug output only when
26309         sched_verbose >= 4, not 2.
26310         (get_expr_cost): Do not issue all unique insns on the next cycle.
26311         (fill_insns): Initialize can_issue_more from the value saved
26312         with the fence.
26313         * sel-sched-ir.c (flist_add): New parameter issue_more.
26314         Init FENCE_ISSUE_MORE with it.
26315         (merge_fences): Likewise.
26316         (init_fences): Update call to flist_add.
26317         (add_to_fences, add_clean_fence_to_fences)
26318         (add_dirty_fence_to_fences): Likewise.
26319         (move_fence_to_fences): Update call to merge_fences.
26320         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
26321         sched groups.
26322         * sel-sched-ir.h (struct _fence): New field issue_more.
26323         (FENCE_ISSUE_MORE): New accessor macro.
26324
26325 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26326
26327         PR rtl-optimization/42388
26328         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
26329         that have no predecessors nor successors.  Do not call move_bb_info
26330         for empty blocks outside of current region.
26331
26332 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26333
26334         PR rtl-optimization/42294
26335         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
26336         * sel-sched.c (move_exprs_to_boundary): Transitively add all
26337         originators' originators.
26338
26339 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26340
26341         PR rtl-optimization/39453
26342         PR rtl-optimization/42246
26343         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
26344         for pipelining_p.
26345         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
26346
26347 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26348             Alexander Monakov  <amonakov@ispras.ru>
26349
26350         PR middle-end/42245
26351         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
26352         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
26353         argument.  Update all callers.
26354         (tidy_control_flow): ... and here.  Recompute topological order
26355         of basic blocks in region if necessary.
26356         (sel_redirect_edge_and_branch): Change return type.  Return true
26357         if topological order might have been invalidated.
26358         (purge_empty_blocks): Export and move from...
26359         * sel-sched.c (purge_empty_blocks): ... here.
26360         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
26361         (maybe_tidy_empty_bb): Delete prototype.
26362         (purge_empty_blocks): Declare.
26363
26364 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26365
26366         PR rtl-optimization/42249
26367         * sel-sched.c (try_replace_dest_reg): When chosen register
26368         and original register is the same, do not bail out early, but
26369         still check all original insns for validity of replacing destination
26370         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
26371         in this case.
26372
26373 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
26374
26375         PR c/42721
26376         Port from no-undefined-overflow branch:
26377         2009-03-09  Richard Guenther  <rguenther@suse.de>
26378
26379         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
26380
26381 2010-01-14  Richard Guenther  <rguenther@suse.de>
26382
26383         PR lto/42665
26384         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
26385
26386 2010-01-14  Ira Rosen  <irar@il.ibm.com>
26387
26388         PR tree-optimization/42709
26389         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
26390         as scalar type in creation of constant vector operand.
26391
26392 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26393
26394         PR testsuite/42414
26395         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
26396         (check-parallel-%): Match `testsuite' directory component only
26397         at the end.
26398
26399 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
26400
26401         PR translation/39521
26402         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
26403         strings with _().
26404
26405 2010-01-13  Richard Guenther  <rguenther@suse.de>
26406
26407         PR tree-optimization/42730
26408         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
26409         offset zero.
26410
26411 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
26412
26413         PR target/pr42542
26414         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
26415         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
26416         them signed.
26417
26418 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
26419
26420         * config/bfin/libgcc-bfin.ver: Regenerate based on current
26421         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
26422         ___umulsi3_highpart.
26423
26424         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
26425         rather than schedule_insns if the pass is enabled.
26426
26427 2010-01-13  Martin Jambor  <mjambor@suse.cz>
26428
26429         PR tree-optimization/42704
26430         * tree-sra.c (sra_modify_assign): Do not delete assignments to
26431         SSA_NAMEs.
26432
26433 2010-01-13  Martin Jambor  <mjambor@suse.cz>
26434
26435         PR tree-optimization/42703
26436         * tree-sra.c (analyze_access_subtree): Check that we can build a
26437         reference to the original data within the aggregate.
26438
26439 2010-01-13  Richard Guenther  <rguenther@suse.de>
26440
26441         PR tree-optimization/42705
26442         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
26443
26444 2010-01-13  Richard Guenther  <rguenther@suse.de>
26445
26446         PR middle-end/42716
26447         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
26448
26449 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
26450
26451         PR debug/41371
26452         * var-tracking.c (values_to_unmark): New variable.
26453         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26454         values_to_unmark vector.  Moved body to...
26455         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
26456         instead queue it into values_to_unmark vector.
26457         (vt_find_locations): Free values_to_unmark vector.
26458
26459 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
26460
26461         * config/s390/s390.c (override_options): Set
26462         default of max-pending-list-length to 256
26463
26464 2010-01-13  Richard Guenther  <rguenther@suse.de>
26465
26466         PR lto/42678
26467         * tree-pass.h (PROP_gimple_lcx): New.
26468         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
26469         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
26470         before the final cleanup_eh.
26471         (dump_properties): Dump PROP_gimple_lcx.
26472         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
26473         (tree_lower_complex_O0): Remove.
26474         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
26475         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
26476         tree_lower_complex, schedule TODO_update_ssa.
26477         * lto-streamer-out.c (output_function): Stream the functions
26478         properties.
26479         * lto-streamer-in.c (input_function): Likewise.
26480         (lto_read_body): Do not override them here.
26481
26482 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
26483
26484         PR c/42708
26485         * c-typeck.c (build_c_cast): Fold value cast to union type before
26486         wrapping it in a CONSTRUCTOR.
26487
26488 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
26489
26490         PR rtl-optimization/42699
26491         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
26492         involved.
26493
26494 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26495
26496         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
26497         SUBTARGET_WARN_UNUSED_SPEC): Move ...
26498         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
26499         SUBTARGET_WARN_UNUSED_SPEC): ... here
26500         * config/mips/iris5.h (LIBGCC_SPEC): Define.
26501
26502 2010-01-12  Julian Brown  <julian@codesourcery.com>
26503
26504         * config/arm/neon-schedgen.ml (Utils): Don't try to
26505         open missing module.
26506         (find_with_result): New.
26507
26508 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
26509
26510         PR debug/42662
26511         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
26512         sharing when canonicalizing ({lt,ge}u (plus a b) b).
26513
26514         PR tree-optimization/42645
26515         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
26516         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
26517         decl_map, set processing_debug_stmt to -1 and return name without
26518         any remapping.
26519
26520 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
26521
26522         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
26523         binutils version, and reword target configuration description.
26524
26525 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
26526
26527         * config/avr/avr.h (LINKER_NAME): Remove.
26528
26529 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
26530
26531         PR target/42416
26532         * config/rs6000/rs6000.c (rs6000_override_options): On targets
26533         that support VSX, warn for -mno-altivec if vsx is not disabled,
26534         and disable vsx.
26535
26536 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
26537             Shujing Zhao  <pearly.zhao@oracle.com>
26538
26539         PR translation/42469
26540         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
26541         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
26542         character between option name and help text.
26543         * c.opt (imultilib): Likewise.
26544
26545 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
26546
26547         * lto-streamer-out.c (output_unreferenced_globals): Output static
26548         variables.
26549
26550 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
26551
26552         PR rtl-optimization/42621
26553         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
26554         optimizing for size.
26555         (duplicate_computed_gotos): Remove now-redundant check.
26556
26557 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
26558
26559         PR target/37454
26560         * configure.ac: Save and restore LDFLAGS and LIBS
26561         * configure: Regenerate.
26562
26563 2010-01-10  Richard Guenther  <rguenther@suse.de>
26564
26565         PR middle-end/42667
26566         * builtins.c (fold_builtin_strlen): Add type argument and
26567         convert the resulting length to it.
26568         (fold_builtin_1): Adjust.
26569
26570 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
26571
26572         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
26573         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
26574         1 insn.
26575         (num_insns_constant_wide): Adjust for that change.
26576
26577 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26578
26579         PR debug/42631
26580         * web.c (union_defs): Add used argument, to combine uses of
26581         uninitialized regs.
26582         (entry_register): Adjust type and tests of used argument.
26583         (web_main): Widen used for new use.  Pass it to union_defs.
26584         * df.h (union_defs): Adjust prototype.
26585
26586 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26587
26588         PR debug/42630
26589         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
26590         uses in new incoming argument.  Free body.
26591         (reset_debug_uses_in_loop): New.
26592         (analyze_insn_to_expand_var): Call the latter if the former found
26593         anything.  Fix whitespace.  Reject invalid dest overlaps before
26594         going through all insns in the loop.
26595
26596 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26597
26598         PR debug/42629
26599         * haifa-sched.c (dying_use_p): Debug insns don't count.
26600
26601 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26602
26603         PR middle-end/42363
26604         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
26605         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
26606         (verify_gimple_call): Reject LHS in noreturn calls.
26607
26608 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26609
26610         PR debug/42604
26611         PR debug/42395
26612         * tree-vect-loop-manip.c (adjust_info): New type.
26613         (adjust_vec): New pointer to vector.
26614         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
26615         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
26616         (slpeel_update_phis_for_duplicate_loop): Use them.
26617         (slpeel_update_phi_nodes_for_guard1): Likewise.
26618         (slpeel_update_phi_nodes_for_guard2): Likewise.
26619         (slpeel_tree_peel_loop_to_edge): Likewise.
26620         (vect_update_ivs_after_vectorizer): Likewise.
26621
26622 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26623
26624         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
26625         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
26626
26627 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26628
26629         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
26630         bogus uninitialized warning.
26631
26632 2010-01-09  Richard Guenther  <rguenther@suse.de>
26633
26634         PR middle-end/42512
26635         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
26636         the evolution is compatible with the initial condition.
26637
26638 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
26639
26640         * gcc.c (process_command): Update copyright notice dates.
26641         * gcov.c (print_version): Likewise.
26642         * gcov-dump.c (print_version): Likewise.
26643         * mips-tfile.c (main): Likewise.
26644         * mips-tdump.c (main): Likewise.
26645
26646 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
26647
26648         PR target/41885
26649         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
26650         (rotlhi3): Delete.
26651         (rotlhi3_8): Delete.
26652         (rotlsi3): Delete.
26653         (rotlsi3_8): Delete.
26654         (rotlsi3_16): Delete.
26655         (rotlsi3_24): Delete.
26656         (rotl<mode>3): New.
26657         (*rotw<mode>3): New.
26658         (*rotb<mode>3): New.
26659         * config/avr/avr.c (avr_rotate_bytes): New function.
26660         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
26661
26662 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
26663
26664         PR target/37454
26665         * configure.ac: Modify -rdynamic check.
26666         * configure: Regenerate.
26667
26668 2010-01-08  DJ Delorie  <dj@redhat.com>
26669
26670         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
26671         register popping order.
26672
26673 2010-01-08  Richard Guenther  <rguenther@suse.de>
26674
26675         PR lto/42528
26676         * c.opt (fsigned-char): Also let LTO handle this option.
26677         (funsigned-char): Likewise.
26678
26679 2010-01-07  Richard Guenther  <rguenther@suse.de>
26680
26681         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
26682         (gimple_op): Likewise.
26683         (gimple_op_ptr): Likewise.
26684         (gimple_assign_set_lhs): Remove gcc_assert.
26685         (gimple_assign_set_rhs1): Likewise.
26686         (gimple_assign_set_rhs2): Likewise.
26687         (gimple_call_set_lhs): Likewise.
26688         (gimple_call_set_fn): Likewise.
26689         (gimple_call_set_fndecl): Likewise.
26690         (gimple_call_fndecl): Likewise.
26691         (gimple_call_return_type): Likewise.
26692         (gimple_call_set_chain): Likewise.
26693         (gimple_call_num_args): Likewise.
26694         (gimple_call_set_arg): Likewise.
26695         (gimple_cond_set_code): Likewise.
26696         (gimple_cond_set_lhs): Likewise.
26697         (gimple_cond_set_rhs): Likewise.
26698         (gimple_cond_set_true_label): Likewise.
26699         (gimple_cond_set_false_label): Likewise.
26700         (gimple_label_set_label): Likewise.
26701         (gimple_goto_set_dest): Likewise.
26702         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
26703         (gimple_debug_bind_get_value): Likewise.
26704         (gimple_debug_bind_get_value_ptr): Likewise.
26705         (gimple_debug_bind_set_var): Likewise.
26706         (gimple_debug_bind_set_value): Likewise.
26707         (gimple_debug_bind_reset_value): Likewise.
26708         (gimple_debug_bind_has_value_p): Likewise.
26709         (gimple_return_retval_ptr): Remove gcc_assert.
26710         (gimple_return_retval): Likewise.
26711         (gimple_return_set_retval): Likewise.
26712         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
26713         (safe_referenced_var_iterator): Remove.
26714         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
26715         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
26716         (fill_referenced_var_vec): Remove.
26717         (first_readonly_imm_use): Remove redundant gcc_assert.
26718         (phi_arg_index_from_use): Combine gcc_asserts.
26719         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
26720         (first_imm_use_stmt): Remove redundant gcc_assert.
26721         * tree-cfg.c (verify_gimple_call): Verify function and chain
26722         operands.  Verify arguments.
26723         (verify_types_in_gimple_stmt): Verify condition code and labels.
26724
26725 2010-01-07  Richard Guenther  <rguenther@suse.de>
26726
26727         PR tree-optimization/42641
26728         * sese.c (rename_map_elt_info): Use the SSA name version, do
26729         not hash pointers.
26730
26731 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
26732
26733         PR tree-optimization/42625
26734         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
26735         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
26736
26737 2010-01-07  Duncan Sands  <baldrick@free.fr>
26738
26739         * Makefile.in (PLUGIN_HEADERS): Add version.h.
26740
26741 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
26742
26743         PR target/42511
26744         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
26745         note itself is not function_invariant_p.
26746
26747 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
26748
26749         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
26750         Do not add the DF_NOTE problem.
26751         * store-motion.c (execute_rtl_store_motion): Likewise.
26752
26753 2010-01-07  Martin Jambor  <mjambor@suse.cz>
26754
26755         PR tree-optimization/42157
26756         * tree-sra.c (compare_access_positions): Stabilize sort if both
26757         accesses have integer types, return zero immediately if they are the
26758         same.
26759
26760 2010-01-06  Richard Henderson  <rth@redhat.com>
26761
26762         PR middle-end/41883
26763         * haifa-sched.c (add_to_note_list): Merge into ...
26764         (concat_note_lists): ... here, and ...
26765         (unlink_other_notes, rm_other_notes): Merge into...
26766         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
26767         NOTE_INSN_EPILOGUE_BEG.
26768
26769 2010-01-06  Richard Guenther  <rguenther@suse.de>
26770
26771         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
26772         not inline regular functions into always-inline functions.
26773
26774 2010-01-06  Nick Clifton  <nickc@redhat.com>
26775
26776         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
26777         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
26778         used together.
26779         (OVERRIDE_OPTIONS): Delete.
26780         (OPTIMIZATION_OPTIONS): Define.
26781         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
26782         * config/rx/rx.c (rx_handle_option): Issue an error message if
26783         -mcpu=rx200 and -fpu are used together.
26784         (rx_set_optimization_options): New function.  Issue an error
26785         message if an optimization attribute attempts to reset the FPU/
26786         math optimization pairing.
26787         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
26788         * config/rx/rx.opt: Set the default to 32-bit doubles.
26789         * config/rx/t-rx: Add multilibs for -nofpu option.
26790         * doc/invoke.texi: Update documentation of RX options.
26791
26792 2010-01-06  Richard Guenther  <rguenther@suse.de>
26793
26794         * tree-ssa-pre.c (name_to_id): New global.
26795         (alloc_expression_id): Simplify SSA name handling.
26796         (lookup_expression_id): Likewise.
26797         (init_pre): Zero name_to_id.
26798         (fini_pre): Free it.
26799
26800 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
26801
26802         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
26803
26804 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
26805
26806         PR target/42542
26807         * config/i386/sse.md (smaxv2di3): New.
26808         (umaxv2di3): Likewise.
26809         (sminv2di3): Likewise.
26810         (uminv2di3): Likewise.
26811
26812 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
26813
26814         PR target/42564
26815         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
26816         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
26817         (legitimize_tls_address): Likewise.
26818         (sparc_tls_referenced_p): Likewise.
26819         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
26820         and adjust calls to legitimize_pic_address.
26821         (legitimate_constant_p) Use sparc_tls_referenced_p.
26822         (legitimate_pic_operand_p): Likewise.
26823         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
26824         (sparc_tls_symbol_ref_1): Delete.
26825         (sparc_tls_referenced_p): Make static, recognize specific patterns.
26826         (legitimize_tls_address): Make static, handle CONST patterns.
26827         (legitimize_pic_address): Make static, remove unused parameter and
26828         adjust recursive calls.
26829         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
26830         and adjust call to legitimize_pic_address.
26831         (sparc_output_mi_thunk): Likewise.
26832
26833 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
26834             H.J. Lu  <hongjiu.lu@intel.com>
26835
26836         PR target/42542
26837         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
26838         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
26839         operands to make them signed.
26840
26841         Revert:
26842         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26843
26844         PR target/42542
26845         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26846         GTU to GT for V4SI and V2DI.
26847
26848         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26849         (umin<mode>3): Removed.
26850         (uminv8hi3): New.
26851         (uminv4si3): Likewise.
26852
26853 2010-01-05  Martin Jambor  <mjambor@suse.cz>
26854
26855         PR tree-optimization/42462
26856         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
26857         current_function_decl to helper functions and macros.
26858
26859 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26860
26861         PR bootstrap/41771
26862         * flags.h: Don't include real.h.
26863         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
26864         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
26865         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
26866         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
26867         * dominance.c: Update copyright.
26868         * gimple.c (walk_gimple_op): Remove inline.
26869         * tree-ssa-reassoc.c: Include real.h.
26870         * Makefile.in (FLAGS_H): Remove $(REAL_H).
26871         (tree-ssa-reassoc.o): Depend on $(REAL_H).
26872
26873 2010-01-05  Nick Clifton  <nickc@redhat.com>
26874
26875         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
26876         register to push into the stack frame when the accumulator has to
26877         be saved during interrupts.
26878
26879 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
26880
26881         * doc/invoke.texi: Remove the documentation about option
26882         -Wunreachable-code.
26883         * common.opt (Wunreachable-code):  Preserved for backward
26884         compatibility.
26885         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
26886         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
26887         the backward compatibility flag section.
26888
26889 2010-01-05  Richard Guenther  <rguenther@suse.de>
26890
26891         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
26892
26893 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
26894
26895         PR other/42611
26896         * cfgexpand.c (expand_one_var): Diagnose too large variables.
26897
26898         PR tree-optimization/42508
26899         * tree-sra.c (convert_callers): Check for recursive call
26900         by comparing cgraph nodes instead of decls.
26901         (modify_function): Call ipa_modify_formal_parameters also
26902         on all same_body aliases.
26903
26904         * cgraphunit.c (cgraph_materialize_all_clones): Compare
26905         cgraph nodes when checking for same_body aliases.
26906
26907 2010-01-05  Richard Guenther  <rguenther@suse.de>
26908
26909         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
26910         allocation and lookup.
26911         (get_or_alloc_expr_for_constant): Likewise.
26912         (phi_translate): Sink allocation.
26913
26914 2010-01-04  Richard Guenther  <rguenther@suse.de>
26915
26916         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
26917         a new entry only if needed.
26918         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
26919         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
26920         hashtable lookup.
26921         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
26922         the result array.
26923         (phi_translate): Handle CONSTANTs early.
26924
26925 2010-01-04  Martin Jambor  <mjambor@suse.cz>
26926
26927         PR tree-optimization/42398
26928         * tree-sra.c (struct access): Removed flag grp_different_types.
26929         (dump_access): Do not dump the removed flag.
26930         (sort_and_splice_var_accesses): Do not set the removed flag.
26931         (sra_modify_expr): Check for type compatibility directly.
26932
26933 2010-01-04  Martin Jambor  <mjambor@suse.cz>
26934
26935         PR tree-optimization/42366
26936         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
26937         edges with variable number of parameters.
26938         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
26939         flag instead of asserting it.
26940         (ipa_read_node_info): Read uses_analysis_done flag.
26941
26942 2010-01-04  Richard Guenther  <rguenther@suse.de>
26943
26944         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
26945         iterative_hash_* as intended.
26946         (vn_reference_compute_hash): Likewise.  Simplify hashing
26947         SSA names.
26948         (vn_reference_lookup_2): Likewise.
26949         (vn_nary_op_compute_hash): Likewise.
26950         (vn_phi_compute_hash): Likewise.
26951         (expressions_equal_p): Remove strange code.
26952         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
26953         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
26954         (bitmap_insert_into_set_1): Take value-id as parameter.
26955         (add_to_value): Pass it.
26956         (bitmap_insert_into_set): Likewise.
26957         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
26958
26959 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
26960
26961         PR driver/42442
26962         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
26963         (do_self_spec): For switches with SWITCH_IGNORE set set also
26964         SWITCH_IGNORE_PERMANENTLY.
26965         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
26966         of SWITCH_IGNORE.
26967
26968 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
26969
26970         * lto-streamer-out.c (output_unreferenced_globals): Output the full
26971         tree of an unreferenced global var.
26972
26973 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26974
26975         PR target/42542
26976         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26977         GTU to GT for V4SI and V2DI.
26978
26979         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26980         (umin<mode>3): Removed.
26981         (uminv8hi3): New.
26982         (uminv4si3): Likewise.
26983
26984 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26985
26986         PR lto/42581
26987         * collect2.c (main): Turn on trace in collect2 if -v is passed
26988         to gcc with LTO.
26989
26990 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
26991
26992         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
26993         description of expression operand.
26994
26995 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
26996
26997         * configure.ac: Add install-html to target_list for Make-hooks.
26998         * configure: Regenerate.
26999         * fortran/Make-lang.in (F95_HTMLFILES): New.
27000         (fortran.html): Use it.
27001         (fortran.install-html): New.
27002         * Makefile.in (install-html): Add lang.install-html.
27003         * java/Make-lang.in (JAVA_HTMLFILES): New.
27004         (java.html): Use it.
27005         (java.install-html): New.
27006         * objc/Make-lang.in (objc.install-html): New.
27007         * objcp/Make-lang.in (obj-c++.install-html): New.
27008         * cp/Make-lang.in (c++.install-html): New.
27009         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
27010         * lto/Make-lang.in (lto.install-html): New.
27011
27012 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27013
27014         PR lto/42520
27015         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
27016
27017 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
27018
27019         PR rtl-optimization/41862
27020         * store-motion.c (store_killed_in_insn, compute_store_table,
27021         remove_reachable_equiv_notes, replace_store_insn,
27022         build_store_vectors): Ignore all DEBUG_INSNs.
27023
27024 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27025
27026         PR lto/41564
27027         * common.opt: Add dumpdir.
27028
27029         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
27030         isn't specified.
27031         (option_map): Add --dumpdir.
27032
27033         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
27034
27035         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
27036
27037         * opts.c (decode_options): Try dump_dir_name first if
27038         dump_base_name isn't an absolute path.
27039         (common_handle_option): Handle OPT_dumpdir.
27040
27041         * toplev.c (dump_dir_name): New.
27042         (print_switch_values): Also ignore -dumpdir.
27043
27044         * toplev.h (dump_dir_name): New.
27045
27046 2010-01-03  Richard Guenther  <rguenther@suse.de>
27047
27048         PR tree-optimization/42589
27049         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
27050         double-word expansion of bswap32.
27051
27052 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
27053
27054         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
27055         with BLOCK_FOR_INSN.
27056         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
27057         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
27058         noce_process_if_block): Likewise.
27059         * gcse.c (compute_local_properties, insert_expr_in_table,
27060         insert_set_in_table, canon_list_insert, find_avail_set,
27061         pre_insert_copy_insn): Likewise.
27062
27063         * basic-block.h (BLOCK_NUM): Move from here...
27064         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
27065
27066 2010-01-03  Richard Guenther  <rguenther@suse.de>
27067
27068         PR tree-optimization/42438
27069         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
27070         contains_may_not_return_call flag.
27071         (BB_MAY_NOTRETURN): New.
27072         (valid_in_sets): Trapping nary operations are not valid
27073         in blocks that may not return.
27074         (insert_into_preds_of_block): Remove check for trapping expressions.
27075         (compute_avail): Compute also BB_MAY_NOTRETURN.
27076
27077 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
27078
27079         * doc/invoke.texi: Add 2010 to copyright years.
27080
27081 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
27082
27083         * config/sparc/sparc.c: Fix formatting nits.
27084
27085 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
27086             Alexander Monakov  <amonakov@ispras.ru>
27087
27088         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
27089
27090 2010-01-02  Richard Guenther  <rguenther@suse.de>
27091
27092         PR middle-end/42577
27093         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
27094         (simplify_switch_using_ranges): Mark to be removed edges
27095         as non-executable.
27096
27097 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27098
27099         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27100
27101         * collect2.c (scan_libraries): Add missing argument in call to
27102         scan_prog_file.
27103
27104 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
27105
27106         PR target/42448
27107         * config/alpha/predicates.md (aligned_memory_operand): Return false
27108         for CQImode.
27109         (unaligned_memory_operand): Return true for CQImode.
27110         * config/alpha/alpha.c (get_aligned_mem): Assert that location
27111         doesn not cross aligned SImode word boundary.
27112
27113 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
27114
27115         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
27116         Remove.
27117         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
27118         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
27119
27120 2010-01-02  Richard Guenther  <rguenther@suse.de>
27121
27122         PR lto/41597
27123         * toplev.c (compile_file): Emit LTO marker properly.  Change
27124         it to __gnu_lto_v1.
27125         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
27126
27127 2010-01-01  Richard Guenther  <rguenther@suse.de>
27128
27129         PR debug/42455
27130         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
27131
27132 2010-01-01  Richard Guenther  <rguenther@suse.de>
27133
27134         PR c/42570
27135         * c-decl.c (grokdeclarator): For zero-size arrays force
27136         structural equality checks as layout_type does.
27137
27138 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
27139
27140         * builtins.c: Update copyright to 2010.
27141
27142 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
27143
27144         PR lto/42531
27145         * lto-streamer-out.c (produce_asm): Revert the last change.
27146         (copy_function): Likewise.
27147
27148         * lto-streamer.c (lto_get_section_name): Skip any leading
27149         asterisk in name.
27150
27151 2010-01-01  Richard Guenther  <rguenther@suse.de>
27152
27153         PR middle-end/42559
27154         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
27155         for LABEL_DECLs.
27156
27157 \f
27158 Copyright (C) 2010 Free Software Foundation, Inc.
27159
27160 Copying and distribution of this file, with or without modification,
27161 are permitted in any medium without royalty provided the copyright
27162 notice and this notice are preserved.