OSDN Git Service

04eeac74099ba027f56bb4e128060f3277701433
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-09-17  Richard Guenther  <rguenther@suse.de>
2
3         PR middle-end/45678
4         * builtins.c (fold_builtin_memory_op): Always properly adjust
5         alignment of memory accesses.
6
7 2010-09-16  Jan Hubicka  <jh@suse.cz>
8
9         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
10         processing clone.
11
12 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
13
14         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
15
16         * config/i386/i386.c (predict_jump): Add prototype.
17         (flag_opts): Add -m8bit-idiv.
18         (ix86_split_idivmod): New.
19
20         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
21         Add 2 splitters for SI/DI mode divide.
22         (divmod<mode>4_1): New pattern.
23         (udivmod<mode>4_1): Likewise.
24         (testdi_ccno_1): Likewise.
25
26         * config/i386/i386.opt (m8bit-idiv): New.
27
28         * doc/invoke.texi: Document -m8bit-idiv.
29
30 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
31
32         PR bootstrap/45680
33         * config/i386/i386.c (min_insn_size): Moved out of the
34         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
35
36 2010-09-16  Jan Hubicka  <jh@suse.cz>
37
38         * lto-cgraph.c (lto_output_node): Fix handling of clones.
39         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
40         unreachable clones with reachable clones.
41         * tree-inline.c (copy_bb): Fix sanity checking when producing
42         unreachable clone.
43
44 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
45
46         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
47         (TARGET_MEMORY_MOVE_COST): Define.
48         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
49
50 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
51
52         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
53         maybe_tidy_empty_bb.
54
55         Revert:
56         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
57         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
58
59 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
60
61         * target.def (target_option.optimization): New hook.
62         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
63         TARGET_OPTION_OPTIMIZATION hook.
64         * doc/tm.texi: Regenerate.
65         * hooks.c (hook_void_int_int): New.
66         * hooks.h (hook_void_int_int): Declare.
67         * opts.c: Don't include tm_p.h.
68         (decode_options): Use targetm.target_option.optimization instead
69         of OPTIMIZATION_OPTIONS.
70         * system.h (OPTIMIZATION_OPTIONS): Poison.
71         * config/arm/arm-protos.h (arm_optimization_options): Remove.
72         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
73         (arm_optimization_options): Rename to arm_option_optimization.
74         Make static.
75         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
76         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
77         (cris_option_optimization): New.
78         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
79         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
80         (crx_option_optimization): New.
81         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
82         * config/frv/frv-protos.h (frv_optimization_options): Remove.
83         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
84         (frv_optimization_options): Rename to frv_option_optimization.
85         Make static.
86         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
87         * config/h8300/h8300.c (h8300_option_optimization): New.
88         (TARGET_OPTION_OPTIMIZATION): Define.
89         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
90         * config/i386/i386-protos.h (optimization_options): Remove.
91         * config/i386/i386.c (optimization_options): Rename to
92         ix86_option_optimization.  Make static.
93         (TARGET_OPTION_OPTIMIZATION): Define.
94         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
95         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
96         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
97         (ia64_optimization_options): Rename to ia64_option_optimization.
98         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
99         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
100         commented-out definition.
101         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
102         instead of OPTIMIZATION_OPTIONS.
103         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
104         (m32r_option_optimization): New.
105         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
106         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
107         Remove.
108         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
109         (mcore_option_optimization): New.
110         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
111         * config/mep/mep-protos.h (mep_optimization_options): Remove.
112         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
113         (mep_optimization_options): Rename to mep_option_optimization.
114         Make static.  Take unused level and size parameters.
115         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
116         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
117         (mmix_option_optimization): New.
118         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
119         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
120         (pdp11_option_optimization): New.
121         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
122         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
123         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
124         (optimization_options): Rename to rs6000_option_optimization.
125         Make static.
126         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
127         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
128         * config/rx/rx.c (rx_set_optimization_options): Rename to
129         rx_option_optimization.  Make static.  Take unused level and size
130         parameters.
131         (TARGET_OPTION_OPTIMIZATION): Define.
132         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
133         * config/s390/s390-protos.h (optimization_options): Remove.
134         * config/s390/s390.c (optimization_options): Rename to
135         s390_option_optimization.  Make static.  Don't mark size parameter
136         unused.
137         (TARGET_OPTION_OPTIMIZATION): Define.
138         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
139         * config/sh/sh-protos.h (sh_optimization_options): Remove.
140         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
141         (sh_optimization_options): Rename to sh_option_optimization.  Make
142         static.  Don't mark parameters unused.
143         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
144         * config/spu/spu-protos.h (spu_optimization_options): Remove.
145         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
146         (spu_optimization_options): Rename to spu_option_optimization.
147         Make static.
148         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
149         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
150         (v850_option_optimization): New.
151         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
152         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
153         (xtensa_option_optimization): New.
154         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
155
156 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
157
158         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
159         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
160         * doc/tm.texi: Regenerate.
161         * system.h (OVERRIDE_OPTIONS): Poison.
162         * target.def (override): Default to hook_void_void.
163         * targhooks.c (default_target_option_override): Remove.
164         * genmodes.c, machmode.def: Update comments mentioning
165         OVERRIDE_OPTIONS.
166         * config/alpha/alpha-modes.def: Update comment mentioning
167         alpha_override_options.
168         * config/alpha/alpha-protos.h (override_options): Remove.
169         * config/alpha/alpha.c (override_options): Rename to
170         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make
171         static.
172         (TARGET_OPTION_OVERRIDE): Define.
173         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
174         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
175         of OVERRIDE_OPTIONS.
176         * config/arc/arc-protos.h (arc_init): Remove.
177         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
178         (arc_init): Rename to arc_option_override.  Make static.
179         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
180         (OVERRIDE_OPTIONS): Remove.
181         * config/arm/arm-protos.h (arm_override_options): Remove.
182         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
183         (arm_override_options): Rename to arm_option_override.  Make
184         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
185         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
186         * config/arm/arm.md: Update comment referring to
187         arm_override_options.
188         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
189         instead of OVERRIDE_OPTIONS.
190         * config/avr/avr-protos.h (avr_override_options): Remove.
191         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
192         (avr_override_options): Rename to avr_option_override.  Make
193         static.
194         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
195         * config/bfin/bfin-protos.h (override_options): Remove (twice).
196         * config/bfin/bfin.c (override_options): Rename to
197         bfin_option_override.  Make static.
198         (TARGET_OPTION_OVERRIDE): Define.
199         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
200         * config/cris/cris-protos.h (cris_override_options): Remove.
201         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
202         (cris_override_options): Rename to cris_option_override.  Make
203         static.
204         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
205         * config/frv/frv-protos.h (frv_override_options): Remove.
206         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
207         (frv_override_options): Rename to frv_option_override.  Make
208         static.
209         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
210         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
211         * config/h8300/h8300.c (h8300_init_once): Rename to
212         h8300_option_override.  Make static.
213         (TARGET_OPTION_OVERRIDE): Define.
214         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
215         * config/i386/i386-protos.h (override_options): Remove.
216         * config/i386/i386.c (override_options): Rename to
217         ix86_option_override_internal.  Make static.  Comments referring
218         to this function and callers changed.
219         (ix86_option_override): New.
220         (TARGET_OPTION_OVERRIDE): Define.
221         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
222         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update
223         comment.
224         * config/ia64/ia64.c (ia64_file_start): Update comment referring
225         to ia64_override_options.
226         * config/iq2000/iq2000-protos.h (override_options): Remove.
227         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
228         (override_options): Rename to iq2000_option_override.  Make
229         static.
230         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
231         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
232         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
233         (lm32_override_options): Rename to lm32_option_override.  Make
234         static.
235         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
236         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
237         (m32r_option_override): New.
238         (m32r_init): Update comment.
239         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
240         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options):
241         Remove.
242         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
243         (m68hc11_override_options): Rename to m68hc11_option_override.
244         Make static.  Return void.
245         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
246         * config/m68k/m68k-protos.h (override_options): Remove.
247         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
248         (override_options): Rename to m68k_option_override.  Make static.
249         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
250         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
251         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
252         (mcore_override_options): Rename to mcore_option_override.  Make
253         static.
254         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
255         * config/mep/mep-protos.h (mep_override_options): Remove.
256         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
257         (mep_override_options): Rename to mep_option_override.  Make
258         static.
259         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
260         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
261         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
262         (mmix_override_options): Rename to mmix_option_override.  Make
263         static.
264         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
265         * config/mn10300/mn10300-protos.h (mn10300_override_options):
266         Remove.
267         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
268         (mn10300_override_options): Rename to mn10300_option_override.
269         Make static.
270         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
271         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
272         * config/moxie/moxie.c (moxie_override_options): Rename to
273         moxie_option_override.  Make static.
274         (TARGET_OPTION_OVERRIDE): Define.
275         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
276         * config/picochip/picochip-protos.h (picochip_override_options):
277         Remove.  Update comment referring to picochip_override_options.
278         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
279         (picochip_override_options): Rename to picochip_option_override.
280         Make static.  Update comment and definition of
281         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
282         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
283         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update
284         comment.
285         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update
286         comment.
287         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update
288         comment.
289         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update
290         comment.
291         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update
292         comment.
293         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
294         instead of OVERRIDE_OPTIONS.
295         * config/rs6000/rs6000-modes.def: Update comment referring to
296         rs6000_override_options.
297         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
298         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
299         (rs6000_override_options): Rename to
300         rs6000_option_override_internal.  Make static.  Commented
301         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
302         (rs6000_option_override): New.
303         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
304         instead of OVERRIDE_OPTIONS.
305         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update
306         comment.
307         * config/s390/s390-protos.h (override_options): Remove.
308         * config/s390/s390.c (override_options): Rename to
309         s390_option_override.  Make static.
310         (TARGET_OPTION_OVERRIDE): Define.
311         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
312         * config/score/score-protos.h (score_override_options): Remove.
313         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
314         (score_override_options): Rename to score_option_override.  Make
315         static.
316         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
317         Update comment referring to override_options.
318         * config/score/score3.c (score3_override_options): Rename to
319         score3_option_override.
320         * config/score/score3.h (score3_override_options): Rename to
321         score3_option_override.
322         * config/score/score7.c (score7_override_options): Rename to
323         score7_option_override.
324         * config/score/score7.h (score7_override_options): Rename to
325         score7_option_override.
326         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
327         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
328         (sparc_override_options): Rename to sparc_option_override.  Make
329         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
330         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
331         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
332         instead of OVERRIDE_OPTIONS.
333         * config/spu/spu-protos.h (spu_override_options): Remove.
334         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
335         (spu_override_options): Rename to spu_option_override.  Make
336         static.
337         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
338         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
339         OVERRIDE_OPTIONS.
340         * config/vax/vax-protos.h (override_options): Remove.
341         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
342         (override_options): Rename to vax_option_override.  Make static.
343         Call SUBTARGET_OVERRIDE_OPTIONS.
344         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
345         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
346         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
347         * config/xtensa/xtensa-protos.h (override_options): Remove.
348         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
349         (override_options): Rename to xtensa_option_override.  Make
350         static.
351         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
352
353 2010-09-16  Richard Guenther  <rguenther@suse.de>
354
355         PR tree-optimization/45623
356         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
357         (get_constraint_for_component_ref): If computing a constraint
358         for the rhs handle type punning through unions.
359         (get_constraint_for_address_of): Adjust.
360         (get_constraint_for_1): Likewise.
361         (get_constraint_for): Likewise.
362         (get_constraint_for_rhs): New function.
363         (do_structure_copy): Adjust.
364         (make_constraint_to): Likewise.
365         (handle_const_call): Likewise.
366         (find_func_aliases): Likewise.
367         (process_ipa_clobber): Likewise.
368         (create_variable_info_for): Likewise.
369
370 2010-09-16  Ira Rosen  <irar@il.ibm.com>
371
372         * tree-vectorizer.c: Fix documentation.
373         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
374         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
375         is_pattern_stmt_p, is_loop_header_bb_p,
376         stmt_vinfo_set_inside_of_loop_cost,
377         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
378         known_alignment_for_access_p): Likewise.
379         * tree-vect-loop.c: Fix documentation.
380         (vect_get_cost): Start function name from new line.
381         * tree-vect-data-refs.c: Fix documentation.
382         * tree-vect_stmts.c: Likewise.
383         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
384         (vectorizable_store): Free vec_oprnds if allocated.
385         (vectorizable_condition): Initialize several variables to avoid
386         warnings.
387         * tree-vect-slp.c: Fix documentation.
388
389 2010-09-16  Richard Guenther  <rguenther@suse.de>
390
391         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
392         is TS_TRANSLATION_UNIT_DECL.
393         (initialize_tree_contains_struct): Adjust.
394         (all_translation_units): New global vector.
395         (build_translation_unit_decl): New function.
396         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
397         (struct tree_translation_unit_decl): New.
398         (all_translation_units): Declare.
399         (union tree_node): Add translation_unit_decl member.
400         (build_translation_unit_decl): Declare.
401         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
402         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
403         New function.
404         (pack_value_fields): Call it.
405         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
406         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
407         (lto_output_tree_pointers): Call it.
408         * lto-streamer-in.c (lto_input_tree_ref): Handle references
409         to TRANSLATION_UNIT_DECL.
410         (unpack_ts_translation_unit_decl_value_fields): New function.
411         (unpack_value_fields): Call it.
412         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
413         (lto_input_tree_pointers): Call it.
414         * lto-streamer.c (check_handled_ts_structures): Adjust.
415         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
416         * c-decl.c (all_translation_units): Remove.
417         (pop_scope): Use build_translation_unit_decl.
418         (collect_all_refs): Adjust.
419         (for_each_global_decl): Likewise.
420         (c_write_global_declarations): Likewise.
421
422 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
423
424         PR bootstrap/45686
425         * fold-const.c (fold_checksum_tree): Change slot from const void **
426         to void **, use CONST_CAST_TREE to store into *slot.
427
428 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
429
430         * config/i386/i386.md: Remove unneeded empty conditions and
431         preparation statements from expanders.
432         * config/i386/mmx.md: Ditto.
433         * config/i386/sse.md: Ditto.
434
435 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
436
437         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
438
439 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
440
441         PR rtl-optimization/45593
442         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
443         insns that were in delay slots as stand-alone insns.
444
445 2010-09-15  Ian Lance Taylor  <iant@google.com>
446
447         * incpath.c (remove_duplicates): If name is not a directory, issue
448         a warning rather than an error.
449
450 2010-09-15  Martin Jambor  <mjambor@suse.cz>
451
452         PR middle-end/45644
453         * tree-sra.c (create_access): Check for bit-fields directly.
454
455 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
456
457         PR tree-optimization/45633
458         * tree-cfg.c (verify_gimple_assign_binary): Allow
459         MINUS_EXPR with lhs and rhs1 pointer vector and
460         rhs2 sizetype vector.
461         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
462         or vector pointer use TER to optimize pointer subtraction.
463
464 2010-09-15  Jie Zhang  <jie@codesourcery.com>
465
466         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
467         fcmpd to fcmps.
468
469 2010-09-15  Ian Lance Taylor  <iant@google.com>
470
471         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
472
473 2010-09-15  Ian Lance Taylor  <iant@google.com>
474
475         * function.c (get_arg_pointer_save_area): Set
476         arg_pointer_save_area_init to true.
477
478 2010-09-15  Martin Jambor  <mjambor@suse.cz>
479
480         * tree-sra.c (generate_subtree_copies): Updated comment.
481         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
482         obtained from the statement iterator instead.
483         (load_assign_lhs_subreplacements): Removed parameters lhs and
484         right_offset, which is obtained from top_racc instead.  Parameter lacc
485         is now expected to be the root of the processed tree rather than root's
486         first child.  Updated all callers.
487
488 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
489
490         * config/pdp11/pdp11.c (register_move_cost): Rename to
491         pdp11_register_move_cost.
492         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
493         pdp11_register_move_cost.
494         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
495         pdp11_register_move_cost instead of register_move_cost.
496
497 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
498
499         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
500         pattern for vmovn. Expansion in case of non 
501         -mvectorize-with-neon-quad.
502         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
503         non- -mvectorize-with-neon-quad case.
504         (move_lo_quad_<mode>): New expansion to vmov into low part.
505         (move_hi_quad_<mode>): New expansion to vmov into high part.
506         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
507         (move_lo_quad_v4sf): Likewise.
508         (move_lo_quad_v8hi): Likewise.
509         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
510         low part.
511         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
512         high part.
513         * config/arm/iterators.md (ANY128): New mode iterator.
514         (V_narrow_pack): New mode attribute.
515         (V_HALF): Add attribute.
516         (V_DOUBLE): Add attribute.
517         (V_mode_nunits): Add attribute.
518
519 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
520
521         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
522         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
523
524 2010-09-15  Olivier Hainque  <hainque@adacore.com>
525             Jose Ruiz  <ruiz@adacore.com>
526
527         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
528         * config/alpha/osf5-unwind.h: New file.
529
530 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
531
532         PR bootstrap/45672
533         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
534         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
535         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
536
537 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
538
539         * c-lang.h (struct lang_type): Add variable_size GTY option.
540
541 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
542
543         PR bootstrap/45672
544         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
545
546 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
547
548         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
549         result isn't used in memory address.
550
551 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
552
553         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
554         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
555         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
556         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
557         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
558         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
559
560         * target.def: Add units_per_simd_word to vectorize.
561
562         * targhooks.c (default_units_per_simd_word): New.
563         * targhooks.h (default_units_per_simd_word): Likewise.
564         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
565         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
566         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
567         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
568         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
569         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
570         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
571         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
572
573         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
574         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
575
576         * tree-vect-stmts.c: Don't include "tm_p.h".
577         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
578         with targetm.vectorize.units_per_simd_word.
579
580         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
581
582         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
583
584         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
585         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
586
587         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
588         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
589
590         * doc/tm.texi: Regenerated.
591
592 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
593
594         * tree-vect-stmts.c: Include "tm_p.h".
595
596         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
597         out of RTX_CODE.
598
599 2010-09-14  Martin Jambor  <mjambor@suse.cz>
600
601         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
602         location of generated statement.  Changed all callers.
603         (build_ref_for_model): New parameter loc which used to set location of
604         all generated expressions.  Changed all callers.
605         (generate_subtree_copies): Likewise.
606         (init_subtree_with_zero): Likewise.
607         (sra_modify_expr): Set locations of all generated statements and
608         expressions to the location the original statement.
609         (handle_unscalarized_data_in_subtree): Likewise.
610         (load_assign_lhs_subreplacements): Likewise.
611         (sra_modify_constructor_assign): Likewise.
612         (sra_modify_assign): Likewise.
613
614 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
615
616         PR target/45277
617         PR target/45363
618         PR target/45407
619         * doc/install.texi (sparc*-*-*): New section.
620         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
621
622 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
623
624         PR middle-end/45567
625         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
626         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
627         (expand_builtin): Adjust caller.
628         (expand_builtin_unop): Only use subtarget if it has the right mode.
629
630 2010-09-14  Tristan Gingold  <gingold@adacore.com>
631
632         * configure.ac (plugins): Fix typos.
633         * configure: Regenerate.
634
635 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
636
637         PR debug/45660
638         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
639         gen_type_die for function/method return type.
640
641 2010-09-14  Ira Rosen  <irar@il.ibm.com>
642
643         PR tree-optimization/45470
644         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
645         can throw an exception.
646         * tree-vect-stmts.c (vectorizable_call): Likewise.
647
648 2010-09-14  DJ Delorie  <dj@redhat.com>
649
650         PR target/44749
651         * config/mep/mep-protos.h (mep_save_register_info,
652         mep_reinit_regs, mep_init_regs): Declare.
653
654         * config/mep/mep.c: Move all target definitions to the end of the
655         file to avoid the need for duplicate declarations.
656         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
657         (mep_reorg_erepeat): Remove unused variables.
658         (mep_expand_builtin): Likewise.
659
660         * config/mep/mep-pragma.c: Don't include rtl.h.
661         (INVALID_REGNUM): New.
662         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
663         functions.
664         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
665         Avoid enum/integer math.
666
667 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
668
669         PR target/44749
670         * config/mep/t-mep (GTM_H): Add insn-constants.h.
671         * config/mep/mep.c (mep_conditional_register_usage): Take no
672         parameters.
673         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
674         prototype.
675         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
676         call to mep_conditional_register_usage.
677
678 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
679
680         PR debug/43937
681         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
682         the DECL as well.
683
684 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
685
686         PR rtl-optimization/45617
687         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
688         even if low N bits of X aren't known to be zero.
689
690 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
691
692         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
693
694         * config/i386/i386.c (initial_ix86_tune_features): Add
695         X86_TUNE_VECTORIZE_DOUBLE.
696         (ix86_units_per_simd_word): New.
697
698         * config/i386/i386.h (ix86_tune_indices): Add
699         X86_TUNE_VECTORIZE_DOUBLE.
700         (TARGET_VECTORIZE_DOUBLE): New.
701         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
702
703 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
704
705         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
706         (new_temp_expr_table): Allocate call_cnt vector.
707         (free_temp_expr_table): Free it.
708         (process_replaceable): Add call_cnt parm and set in vector.
709         (find_replaceable_in_bb): Skip replacement if def/use span a call.
710         (debug_ter): Dump call_cnt value, remove stderr uses.
711
712 2010-09-13  Jan Hubicka  <jh@suse.cz>
713
714         * tree.c (build_zero_cst): New.
715         * tree.h (build_zero_cst): Declare.
716         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
717         (get_base_constructor): Break out from ...
718         (fold_const_aggregate_ref): Here; handle empty constructors.
719
720 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
721
722         * config/arm/arm.md: (define_attr "conds"): Update comment.
723         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
724         conds attribute to clob.
725         (arm_sync_compare_and_swapsi): Likewise.
726         (arm_sync_compare_and_swap<mode>): Likewise.
727         (arm_sync_lock_test_and_setsi): Likewise.
728         (arm_sync_lock_test_and_set<mode>): Likewise.
729         (arm_sync_new_<sync_optab>si): Likewise.
730         (arm_sync_new_nandsi): Likewise.
731         (arm_sync_new_<sync_optab><mode>): Likewise.
732         (arm_sync_new_nand<mode>): Likewise.
733         (arm_sync_old_<sync_optab>si): Likewise.
734         (arm_sync_old_nandsi): Likewise.
735         (arm_sync_old_<sync_optab><mode>): Likewise.
736         (arm_sync_old_nand<mode>): Likewise.
737
738 2010-09-13  Olivier Hainque  <hainque@adacore.com>
739
740         * fwprop.c (forward_propagate_and_simplify): Only attach a
741         REG_EQUAL note to an insn if the destination is a register.
742         * gcse.c (try_replace_reg): Likewise.
743
744 2010-09-13  Richard Guenther  <rguenther@suse.de>
745
746         PR tree-optimization/45611
747         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
748         (copy_ref_info): Likewise.
749
750 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
751
752         PR debug/45604
753         PR debug/45419
754         PR debug/45408
755         * tree-pretty-print.c (dump_generic_node): Disregard top-level
756         types of MEM_REF pointer types to the same type.
757
758 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
759
760         PR rtl-optimization/41087
761         * ifcvt.c (noce_get_condition): Don't allow conditions with
762         side-effects.
763
764 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
765
766         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
767         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
768         * config/frv/frv.c (frv_register_move_cost): Make static. Change
769         arguments type to reg_class_t. Add mode argument.
770         (frv_memory_move_cost): New.
771         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
772
773 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
774
775         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
776         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
777
778 2010-09-10  Jan Hubicka  <jh@suse.cz>
779
780         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
781
782 2010-09-10  Richard Guenther  <rguenther@suse.de>
783
784         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
785         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
786         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
787         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
788         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
789
790 2010-09-10  Richard Guenther  <rguenther@suse.de>
791
792         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
793         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
794         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
795         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
796
797 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
798
799         PR middle-end/45634
800         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
801         of string folding is of integral type.
802
803 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
804
805         * doc/invoke.texi (-x): Fix typo.
806
807 2010-09-10  Richard Guenther  <rguenther@suse.de>
808
809         PR debug/44115
810         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
811         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
812         Output DECL_DEBUG_EXPR.
813         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
814         Input DECL_DEBUG_EXPR.
815
816 2010-09-10  Richard Guenther  <rguenther@suse.de>
817
818         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
819         (build_index_type): Implement in terms of build_range_type.
820         (build_range_type): Do not allow NULL_TREE type, improve
821         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
822         if we didn't hash.
823         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
824         create a distinct copy of the type.
825
826 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
827
828         * configure: Regenerated.
829         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
830
831 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
832
833         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
834         * config/arm/cortex-a9-neon.md: New and partially generated.
835         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
836
837 2010-09-10  Richard Guenther  <rguenther@suse.de>
838
839         * tree.h (build_index_2_type): Remove.
840         * tree.c (build_index_2_type): Remove.
841
842 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
843
844         PR bootstrap/45630
845         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
846         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
847         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
848
849 2010-09-10  Martin Jambor  <mjambor@suse.cz>
850
851         PR tree-optimization/44972
852         * tree-sra.c: Include toplev.h.
853         (build_ref_for_offset): Entirely reimplemented.
854         (build_ref_for_model): New function.
855         (build_user_friendly_ref_for_offset): New function.
856         (analyze_access_subtree): Removed build_ref_for_offset check.
857         (propagate_subaccesses_across_link): Likewise.
858         (create_artificial_child_access): Use
859         build_user_friendly_ref_for_offset.
860         (propagate_subaccesses_across_link): Likewise.
861         (ref_expr_for_all_replacements_p): Removed.
862         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
863         (sra_modify_expr): Use build_ref_for_model.
864         (load_assign_lhs_subreplacements): Likewise.
865         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
866         checks for return values of build_ref_for_offset.
867         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
868         build_ref_for_offset.
869         * ipa-prop.h: Include gimple.h
870         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
871         (ipa_analyze_indirect_call_uses): Update comment.
872         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
873         (IPA_PROP_H): Likewise.
874
875 2010-09-10  Martin Jambor  <mjambor@suse.cz>
876
877         PR tree-optimization/44972
878         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
879         calling build_ref_for_offset.
880
881 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
882
883         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
884         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
885         * config/arm/arm-tune.md: Regenerate.
886         * doc/invoke.texi (ARM Options): Document it.
887
888 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
889
890         * config/i386/i386.c: Include sched-int.h.
891         (TARGET_SCHED_DISPATCH): Defined.
892         (TARGET_SCHED_DISPATCH_DO): Defined.
893         (DISPATCH_WINDOW_SIZE): Defined.
894         (MAX_DISPATCH_WINDOWS): Defined.
895         (MAX_INSN): Defined.
896         (MAX_IMM): Defined.
897         (MAX_IMM_SIZE): Defined.
898         (MAX_IMM_32): Defined.
899         (MAX_IMM_64): Defined.
900         (MAX_LOAD): Defined.
901         (MAX_STORE): Defined.
902         (BIG): Defined.
903         (dispatch_group): New.
904         (num_allowable_groups): New.
905         (group_name): New.
906         (sched_insn_info_s): New.
907         (dispatch_windows_s): New.
908         (imm_info_s): New.
909         (dispatch_window_list): New.
910         (dispatch_window_list1): New.
911         (get_mem_group): New.
912         (is_cmp): New.
913         (dispatch_violation): New.
914         (is_branch): New.
915         (is_prefetch): New.
916         (init_window): New.
917         (allocate_window): New.
918         (init_dispatch_sched): New.
919         (is_end_basic_block): New.
920         (process_end_window): New.
921         (allocate_next_window): New.
922         (find_constant_1): New.
923         (find_constant): New.
924         (get_num_immediates): New.
925         (has_immediate): New.
926         (get_insn_path): New.
927         (get_insn_group): New.
928         (count_num_restricted): New.
929         (fits_dispatch_window): New.
930         (add_insn_window): New.
931         (add_to_dispatch_window): New.
932         (debug_dispatch_window_file): New.
933         (debug_dispatch_window): New.
934         (debug_insn_dispatch_info_file): New.
935         (debug_ready_dispatch): New.
936         (do_dispatch): New.
937         (has_dispatch): New.
938         * config/i386/i386.h (debug_ready_dispatch): Declared.
939         (debug_dispatch_window): Declared.
940         * config/i386/i386.opt (mdispatch-scheduler): New flag.
941         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
942         (TARGET_SCHED_DISPATCH_DO): New.
943         * doc/tm.texi: Regererated.
944         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
945         ready_remove_first_dispatch
946         (schedule_block): Call targetm.sched.dispatch and
947         targetm.sched.dispatch_do.
948         (sched_init): Call targetm.sched.dispatch and
949         targetm.sched.dispatch_do.
950         (ready_remove_first_dispatch): New.
951         (number_in_ready): New.
952         (get_ready_element): New.
953         * hooks.c (hook_bool_rtx_int_false): New.
954         (hook_void_rtx_int): New.
955         * hooks.h (hook_bool_rtx_int_false): Declared.
956         (hook_void_rtx_int): Declared.
957         * sched-int.h (IS_DISPATCH_ON): Defined.
958         (IS_CMP): Defined.
959         (DISPATCH_VIOLATION): Defined.
960         (FITS_DISPATCH_WINDOW): Defined.
961         (DISPATCH_INIT): Defined.
962         (ADD_TO_DISPATCH_WINDOW): Defined.
963         (get_ready_element): Declared.
964         (number_in_ready): Declared.
965         * target.def (dispatch): Defined.
966         (dispatch_do): Defined.
967
968 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
969
970         PR middle-end/45312
971         * reload1.c (merge_assigned_reloads): Remove.
972         (reload_as_needed): Don't call it.
973
974 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
975
976         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
977         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
978         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
979
980 2010-09-09  Matthias Klose  <doko@ubuntu.com>
981
982         PR bootstrap/43847
983         * configure.ac (--enable-plugin): Enhance for cross builds.
984         * configure: Regenerate.
985
986 2010-09-09  Jan Hubicka  <jh@suse.cz>
987
988         PR tree-optimization/45598
989         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
990         string folding is of integral type.
991
992 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
993
994         * configure.ac (gnu_indirect_function): New test.
995         * configure: Rebuilt.
996         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
997         * defaults.h (IFUNC_ASM_TYPE): Provide default.
998
999         * doc/extend.texi (Function Attributes): Document ifunc.
1000         * varasm.c (do_assemble_alias): Deal with ifuncs too.
1001
1002 2010-09-09  Hariharan Sandanagobalane <hariharan@picochip.com>
1003
1004         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
1005         epilogue instruction move.
1006
1007 2010-09-09  Jan Hubicka  <jh@suse.cz>
1008
1009         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
1010         command line to allow more partitions than input files.
1011
1012 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
1013
1014         PR middle-end/44554
1015         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
1016
1017 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
1018
1019         PR middle-end/40386
1020         * ira.c (pseudo_for_reload_consideration_p): Don't use
1021         flag_ira_share_spill_slots.
1022
1023 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1024
1025         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
1026         point zero operands that fit into a single GPR.
1027         (s390_preferred_reload_class): Ensure we only return general-purpose
1028         register classes.
1029         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
1030         floating-point zero operands into GPRs.
1031         ("*mov<mode>_64"): Likewise.
1032         ("mov<mode>"): Likewise using lhi.
1033
1034 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1035
1036         * config/s390/s390.c (s390_symref_operand_p): Return false for
1037         literal pool references.
1038         (s390_check_qrst_address): Update caller.
1039
1040 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
1041
1042         * config/i386/predicates.md (ext_register_operand): Check that
1043         SUBREG_REG is really a register before looking for REGNO.
1044         (reg_not_xmm0_operand): Handle SUBREGs correctly.
1045         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
1046
1047 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
1048
1049         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
1050         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
1051         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
1052         * print-rtl.c (print_rtx): Likewise.
1053         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
1054         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
1055         for ADDR_EXPR with non-addressable object.
1056         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
1057         (struct dw_val_struct): Add v.val_decl_ref.
1058         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
1059         Handle DW_OP_GNU_implicit_pointer.
1060         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
1061         (get_ref_die_offset_label): New function.
1062         (implicit_ptr_descriptor): New function.
1063         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
1064         (loc_descriptor): Likewise.
1065         (gen_variable_die): Put even definitions into decl_die_table.
1066         (resolve_addr_in_expr): Resolve still unresolved
1067         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
1068         return false.
1069         (dwarf2out_finish): Call output_location_lists after outputting
1070         .debug_info and .debug_abbrev instead of before.
1071
1072 2010-09-09  Roland McGrath  <roland@redhat.com>
1073
1074         * dwarf2out.c (DWARF_REF_SIZE): Define.
1075         (size_of_loc_descr): Use it for DW_OP_call_ref.
1076
1077 2010-09-09  Alan Modra  <amodra@gmail.com>
1078
1079         * doc/invoke.text: Reinstate mcmodel=medium.
1080         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1081         CMODEL_MEDIUM as default.
1082         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
1083         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
1084         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
1085         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
1086
1087 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1088
1089         PR target/45250
1090         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
1091         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
1092         (builtin_longjmp): Likewise.
1093         (allocate_stack): Use hard_frame_pointer_rtx instead of
1094         frame_pointer_rtx.
1095         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
1096         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
1097         (pa_can_eliminate): Likewise.
1098         (TARGET_INTERNAL_ARG_POINTER): Define.
1099         (TARGET_CAN_ELIMINATE): Define.
1100         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
1101         pointer.
1102         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
1103         (pa_internal_arg_pointer, pa_can_eliminate,
1104         pa_initial_elimination_offset): New.
1105         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
1106         (HARD_FRAME_POINTER_REGNUM): Set to register three.
1107         (INITIAL_FRAME_POINTER_OFFSET): Delete.
1108         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
1109         Define.
1110         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
1111         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
1112         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
1113         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
1114         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
1115         new soft frame pointer.
1116         * config/pa/pa64-regs.h: Likewise.
1117
1118 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
1119
1120         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
1121         numerical constant.
1122         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
1123
1124 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
1125
1126         PR debug/45531
1127         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
1128
1129 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
1130
1131         PR debug/45419
1132         PR debug/45408
1133         * tree-pretty-print.c (dump_generic_node): Disregard top-level
1134         qualifiers in otherwise equal MEM_REF pointer types.
1135         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
1136         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
1137
1138 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1139
1140         PR target/44392
1141         * config/arm/arm.md (bswapsi2): Handle condition correctly
1142         for armv6 and optimize_size.
1143
1144 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1145
1146         PR other/18555
1147         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
1148
1149 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
1150
1151         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
1152         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
1153         ix86_expand_strlen, legitimate_pic_address_disp_p,
1154         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
1155         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
1156         ix86_check_movabs, ix86_secondary_memory_needed): Change function
1157         prototype to bool.
1158         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
1159         return_in_memory_ms_64, ix86_check_movabs,
1160         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
1161         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
1162         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
1163         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
1164         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
1165         ix86_secondary_memory_needed): Change to bool.  Return
1166         "true" and "false" values.
1167         * config/i386/i386.md: Return "true" and "false" values.
1168
1169 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1170
1171         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1172         run_expensive_tests.
1173
1174 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1175
1176         * toplev.c (output_stack_usage): Use lbasename instead of basename.
1177
1178 2010-09-08  Martin Jambor  <mjambor@suse.cz>
1179
1180         PR other/45443
1181         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
1182         at -O3.
1183
1184 2010-09-08  Richard Guenther  <rguenther@suse.de>
1185
1186         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
1187         (visit): Adjust.
1188         (iterative_hash_gimple_type): Likewise.
1189         (gimple_type_hash): Likewise.
1190         (gimple_register_type): Likewise.
1191         (print_gimple_types_stats): Likewise.
1192         (free_gimple_type_tables): Likewise.
1193
1194 2010-09-08  Michael Matz  <matz@suse.de>
1195
1196         PR tree-optimization/43430
1197         * tree-vect-stmts.c (vectorizable_condition): Support multiple
1198         copies for conditional statements if it's not part of a reduction.
1199
1200 2010-09-08  Michael Matz  <matz@suse.de>
1201
1202         PR tree-optimization/33244
1203         * tree-ssa-sink.c (statement_sink_location): Don't sink into
1204         empty loop latches.
1205
1206 2010-09-08  Richard Guenther  <rguenther@suse.de>
1207
1208         PR tree-optimization/45578
1209         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
1210         Be more careful when transfering alignment information to
1211         the new induction variable.
1212         (copy_ref_info): Likewise.
1213
1214 2010-09-08  Richard Guenther  <rguenther@suse.de>
1215
1216         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
1217         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
1218
1219 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
1220
1221         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
1222         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
1223
1224 2010-09-08  Kenneth Zadeck <zadeck@naturalbridge.com>
1225
1226         PR doc/45587
1227         * doc/md.texi: Fixed modes on several standard pattern names.
1228
1229 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
1230
1231         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
1232         (ashl<mode>3): ...this.
1233         (loongson_psra<V_suffix>): Rename to...
1234         (ashr<mode>3): ...this.
1235         (loongson_psrl<V_suffix>): Rename to...
1236         (lshr<mode>3): ...this.
1237         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
1238         (CODE_FOR_loongson_psllw): Define.
1239         (CODE_FOR_loongson_psrlh): Define.
1240         (CODE_FOR_loongson_psrlw): Define.
1241         (CODE_FOR_loongson_psrah): Define.
1242         (CODE_FOR_loongson_psraw): Define.
1243
1244 2010-09-07  Richard Henderson  <rth@redhat.com>
1245
1246         * tree-vect-data-refs.c: Include tm_p.h.
1247         * Makefile.in (tree-vect-data-refs.o): Update deps.
1248         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
1249         Move delarations outside #ifdef RTX_CODE.
1250
1251 2010-09-07  Richard Henderson  <rth@redhat.com>
1252
1253         * final.c (rest_of_handle_final): Unconditionally do
1254         output_function_exception_table before assemble_end_function.
1255
1256 2010-09-07  Jan Hubicka  <jh@suse.cz>
1257
1258         * tree-inline.c (tree_inlinable_function_p): Do not test
1259         DECL_REPLACEABLE_P.
1260         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
1261         update_callee_keys, cgraph_decide_inlining): Test function availability.
1262         * cif-code.def (OVERWRITABLE): New code.
1263
1264 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
1265             Jack Howarth <howarth@bromo.med.uc.edu>
1266
1267         PR target/36502
1268         PR target/42313
1269         PR target/44651
1270         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
1271         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
1272         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
1273         MAX macro.
1274
1275 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1276
1277         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
1278         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
1279
1280 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1281
1282         * config.gcc: Don't append t-android for Android targets.
1283
1284         * config/t-android: Removed.
1285
1286 2010-09-07  Richard Henderson  <rth@redhat.com>
1287
1288         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
1289         * doc/tm.texi.in: Add doc marker.
1290         * doc/tm.texi: Rebuild.
1291         * except.c (switch_to_exception_section): Always build.
1292         (output_one_function_exception_table): Move section switch,
1293         personality output, and label output ...
1294         (output_function_exception_table): ... here.  Use the new
1295         personality hook.
1296
1297         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
1298         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
1299         TARGET_ASM_INIT_SECTIONS): New.
1300         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
1301         make static.
1302         (TARGET_ASM_UNWIND_EMIT): Update to match.
1303         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
1304
1305         * config/arm/arm.c (arm_asm_emit_except_personality): New.
1306         (arm_asm_init_sections): New.
1307         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
1308
1309 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1310
1311         * config/arm/arm.md: Remove unused variable.
1312
1313 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
1314
1315         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1316         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
1317         (m32r_memory_move_cost): New function.
1318
1319 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1320
1321         * config.gcc: Append t-android for Android targets.
1322
1323         * config/t-android: New.
1324
1325 2010-09-07  Richard Henderson  <rth@redhat.com>
1326
1327         * target.def (unwind_emit_before_insn): New hook.
1328         * doc/tm.texi.in: Add @hook marker for it.
1329         * doc/tm.texi: Rebuild.
1330         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
1331
1332 2010-09-07  Martin Jambor  <mjambor@suse.cz>
1333
1334         PR fortran/43665
1335         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
1336         are any type attributes.
1337
1338 2010-09-07  Jan Hubicka  <jh@suse.cz>
1339
1340         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
1341         array_ref_low_bound in string access folding.
1342
1343 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
1344
1345         PR target/45206
1346         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
1347         eh_return fixup sequence.
1348
1349 2010-09-07  Jan Hubicka  <jh@suse.cz>
1350
1351         * gimple-fold.c (maybe_fold_reference): Verify that operand is
1352         gimple_min_invariant.
1353
1354 2010-09-07  Richard Guenther  <rguenther@suse.de>
1355
1356         PR middle-end/45569
1357         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
1358         nor CONSTRUCTOR can trap.
1359         * tree-complex.c (update_complex_assignment): Update EH info.
1360
1361 2010-09-07  Richard Guenther  <rguenther@suse.de>
1362
1363         PR middle-end/45569
1364         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
1365         * passes.c (execute_function_todo): Do not verify anything if
1366         we saw errors.
1367
1368 2010-09-07  Richard Guenther  <rguenther@suse.de>
1369
1370         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
1371
1372 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
1373
1374         PR target/43137
1375         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
1376         New define_mode_attrs.
1377         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
1378         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
1379         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
1380         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
1381         Remove pool_range attribute.
1382         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
1383         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
1384         pool_range and neg_pool_range attributes.
1385         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
1386         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
1387         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
1388
1389 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1390
1391         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
1392         check glibc.
1393
1394 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
1395
1396         PR target/22152
1397         * config/i386/mmx.md (*mov<mode>_internal_rex64,
1398         *mov<mode>_internal_avx, *mov<mode>_internal,
1399         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
1400         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
1401
1402 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
1403
1404         * c-typeck.c (do_warn_double_promotion): Remove.
1405         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
1406         Objective-C++ too.
1407
1408 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
1409
1410         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
1411         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
1412         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
1413         argument type to reg_class_t. Change result type to bool.
1414         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1415
1416 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1417
1418         PR libobjc/19850
1419         * gthr-posix.h (__gthread_objc_thread_detach): Use
1420         _objc_thread_attribs when detaching a thread.
1421         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
1422
1423 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1424
1425         PR target/45524
1426         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
1427         * configure: Regenerated.
1428
1429 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1430
1431         * combine.c (try_combine): Set subst_low_luid to i0.
1432
1433 2010-09-06  Richard Guenther  <rguenther@suse.de>
1434
1435         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
1436         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
1437         (build_aligned_type): Declare.
1438         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
1439         (check_aligned_type): New function.
1440         (build_aligned_type): Likewise.
1441         * expr.c (expand_assignment): Handle misaligned stores via
1442         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
1443         (expand_expr_real_1): Likewise.
1444         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
1445         * tree-vect-stmts.c (vectorizable_store): Do not build
1446         MISALIGNED_INDIRECT_REF but initialize alignment information.
1447         (vectorizable_load): Likewise.
1448         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
1449         handling.
1450         * cfgexpand.c (expand_debug_expr): Likewise.
1451         * dwarf2out.c (loc_list_from_tree): Likewise.
1452         * fold-const.c (maybe_lvalue_p): Likewise.
1453         (operand_equal_p): Likewise.
1454         (build_fold_addr_expr_with_type_loc): Likewise.
1455         * gimplify.c (gimplify_addr_expr): Likewise.
1456         (gimplify_expr): Likewise.
1457         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1458         (verify_gimple_assign_single): Likewise.
1459         * tree-dump.c (dequeue_and_dump): Likewise.
1460         (tree_could_trap_p): Likewise.
1461         * tree-predcom.c (ref_at_iteration): Likewise.
1462         * tree-pretty-print.c (dump_generic_node): Likewise.
1463         (op_code_prio): Likewise.
1464         (op_symbol_code): Likewise.
1465         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1466         * tree-ssa-loop-im.c (for_each_index): Likewise.
1467         (gen_lsm_tmp_name): Likewise.
1468         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1469         (find_interesting_uses_address): Likewise.
1470         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1471         * tree-ssa-operands.c (get_expr_operands): Likewise.
1472         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1473         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1474         (ao_ref_init_from_vn_reference): Likewise.
1475         * tree.c (staticp): Likewise.
1476         (build1_stat): Likewise.
1477         (reference_alias_ptr_type): Likewise.
1478         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1479         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
1480         MISALIGNED_INDIRECT_REF handling.
1481
1482 2010-09-06  Richard Guenther  <rguenther@suse.de>
1483
1484         PR tree-optimization/45534
1485         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
1486         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
1487         on the target.
1488         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
1489         valid on the target.
1490
1491 2010-09-06  Andreas Schwab  <schwab@redhat.com>
1492
1493         * configure.ac: Quote argument of AC_MSG_WARN.
1494         * configure: Regenerate.
1495
1496 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
1497
1498         * sel-sched.c (move_cond_jump): Correct arguments to
1499         maybe_tidy_empty_bb.
1500         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
1501
1502 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
1503
1504         PR rtl-optimization/44919
1505         * sel-sched.c (move_cond_jump): Remove assert, check that
1506         the several blocks case can only happen with mutually exclusive
1507         insns instead.  Rewrite the movement code to support moving through
1508         several basic blocks.
1509
1510 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
1511
1512         * config/i386/i386.md (iptrsize): New mode attribute.
1513         (tp_seg): Ditto.
1514         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
1515         mode iterator.
1516         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
1517         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
1518         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
1519         (stack_tls_protect_set_<mode>): Ditto from
1520         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
1521         of thread base pointer load.
1522         (stack_tls_protect_test_<mode>): Ditto from
1523         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
1524         of thread base pointer load.
1525         (stack_protect_set): Rewrite using indirect functions.
1526         (stack_protect_test): Ditto.
1527         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
1528         (ix86_print_operand): Handle '@'.
1529
1530 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
1531
1532         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
1533         MINUS_EXPR.
1534
1535 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
1536
1537         * doc/invoke.texi: Document -Wdouble-promotion.
1538         * c-typeck.c (convert_arguments): Check for implicit conversions
1539         from float to double.
1540         (do_warn_double_promotion): New function.
1541         (build_conditional_expr): Use it.
1542         (build_binary_op): Likewise.
1543
1544 2010-09-05  Richard Guenther  <rguenther@suse.de>
1545
1546         PR tree-optimization/45535
1547         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
1548         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
1549         dereferencing it.
1550         (indirect_refs_may_alias_p): Likewise.
1551
1552 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
1553
1554         * config/sh/sh.c (sh_option_override): Make static.
1555         Adjust comments.  Declare.
1556         (sh_function_value_regno_p): Likewise.
1557         (sh_register_move_cost): Modify the arguments, make static.
1558         Adjust comments.  Declare.
1559         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
1560         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1561         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
1562         REGISTER_MOVE_COST): Delete.
1563         * config/sh/sh-protos.h (sh_override_options): Delete.
1564         (sh_register_move_cost): Delete.
1565         (sh_function_value_regno_p): Delete.
1566
1567 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
1568
1569         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
1570         m32r_function_value_regno_p): New functions.
1571         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1572         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
1573         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
1574         FUNCTION_VALUE_REGNO_P): Remove.
1575
1576 2010-09-04  Jan Hubicka  <jh@suse.cz>
1577
1578         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
1579         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
1580         fold_read_from_constant_string.
1581
1582         * gimple.h (canonicalize_constructor_val): Declare.
1583         * gimple-fold.c (canonicalize_constructor_val): New function.
1584         (get_symbol_constant_value):Use it.
1585         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1586
1587 2010-09-04  Jan Hubicka  <jh@suse.cz>
1588
1589         * tree-switch-conversion.c (build_one_array): Set constructor to be
1590         static.
1591         * varpool.c (varpool_finalize_decl): Compute const_value_known.
1592
1593 2010-09-04  Richard Guenther  <rguenther@suse.de>
1594
1595         PR bootstrap/45519
1596         * tree-flow.h (force_gimple_operand_1): Declare.
1597         (force_gimple_operand_gsi_1): Likewise.
1598         * gimplify.c (force_gimple_operand_1): New worker taking a
1599         gimple predicate for ...
1600         (force_gimple_operand): ... which now wraps it.
1601         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
1602         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
1603         last change.
1604         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
1605         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
1606         (create_mem_ref): Likewise.
1607
1608 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
1609
1610         * config/i386/predicates.md (sse_reg_operand): New predicate.
1611         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
1612         predicate for operand 1.
1613         (XFmode push splitter): Use fp_register_operand predicate
1614         for operand 1.
1615         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
1616         (SF-DF float_extend push splitter): Add reload_completed insn
1617         predicate.
1618         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
1619         MODEF mode macro.  Add reload_completed insn predicate.
1620
1621 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
1622
1623         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
1624         (struct df_extract_ref): Remove.
1625         (union df_ref_d): Remove extract_ref member.
1626         (df_ref_create): Remove last three arguments.
1627         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
1628         * df-scan.c (df_ref_record): Remove last three arguments, do not
1629         pass them to df_ref_create_structure.
1630         (df_uses_record): Remove first and last three arguments.  Replace
1631         first argument with DF_REF_REGULAR, adjust calls to remove the
1632         width, offset and mode.  Always call recursively on the second
1633         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
1634         (df_ref_create_structure): Remove first argument.
1635         (struct df_scan_problem_data): Remove ref_extract_pool.
1636         (df_scan_free_internal): Do not free it.
1637         (df_scan_alloc): Do not allocate it.
1638         (df_ref_create): Remove last three arguments, do not pass them to
1639         df_ref_create_structure.
1640         (df_free_ref): Remove DF_REF_EXTRACT case.
1641         (df_notes_rescan): Adjust call to df_uses_record.
1642         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
1643         Remove DF_REF_EXTRACT case.
1644         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
1645         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
1646         and SUBREG definitions.
1647         (df_get_conditional_uses): Remove references to width/offset/mode,
1648         adjust call to df_ref_create_structure.
1649         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
1650         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
1651         calls to df_uses_record and df_ref_record.
1652         * fwprop.c (update_df): Remove references to width/offset/mode,
1653         adjust call to df_ref_create.
1654
1655 2010-09-03  Jan Hubicka  <jh@suse.cz>
1656
1657         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
1658         (build_cdtor_fns): Update use of build_cdtor.
1659
1660 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
1661
1662         * doc/options.texi (SeparateAlias): Document.
1663         * opt-functions.awk (switch_flags): Handle SeparateAlias.
1664         * opth-gen.awk: Generate enumeration names for options marked
1665         SeparateAlias, but not for those marked Ignore.
1666         * opts-common.c (generate_canonical_option): Don't output separate
1667         argument for options marked CL_SEPARATE_ALIAS.
1668         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
1669         * opts.h (CL_SEPARATE_ALIAS): New.
1670         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1671         CL_COMMON): Adjust definitions.
1672         * config/i386/darwin.opt, config/mips/sde.opt: New.
1673         * common.opt (fdump-final-insns): New.
1674         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1675         i386/darwin.opt.
1676         (mips*-sde-elf*): Add mips/sde.opt.
1677         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
1678         -mno-data-in-code and -mcode-xonly here.
1679         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
1680         * gcc.c (option_map): Add "j" to --dump entry.
1681         (translate_options): Don't translate -d to -foutput-class-dir= here.
1682
1683 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
1684
1685         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
1686         DR_IS_WRITE.
1687         (compute_all_dependences): Same.
1688         (create_rdg_edge_for_ddr): Same.
1689         * tree-data-ref.h (DR_IS_WRITE): New.
1690         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
1691         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
1692         (write_memrefs_written_at_least_once): Same.
1693         * tree-predcom.c (suitable_component_p): Same.
1694         (determine_roots_comp): Same.
1695         (execute_load_motion): Same.
1696         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
1697         (vect_enhance_data_refs_alignment): Same.
1698         (vect_analyze_group_access): Same.
1699
1700 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
1701
1702         PR testsuite/42843
1703         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
1704         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
1705
1706 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
1707
1708         * dwarf2out.c (file scope): Remove #if0'd code.
1709         (gen_subprogram_die): Same.
1710
1711 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
1712
1713         PR middle-end/45484
1714         * dwarf2out.c (flush_queued_reg_saves): Rename to...
1715         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
1716         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
1717         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
1718         * config/i386/i386.c (output_set_got): Call it.
1719
1720 2010-09-03  Michael Matz  <matz@suse.de>
1721
1722         PR middle-end/45415
1723         * tree-sra.c (sra_modify_assign): If we modify the statement,
1724         say so.
1725
1726         * tree-ssa.c (verify_ssa): Check number of operands and links
1727         per statement to agree.
1728
1729 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
1730             Iain Sandoe  <iains@gcc.gnu.org>
1731
1732         PR target/45476
1733         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
1734         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
1735         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
1736
1737 2010-09-03  Richard Guenther  <rguenther@suse.de>
1738
1739         * lto-streamer-out.c (output_function): Output function
1740         start and end loci.
1741         * lto-streamer-in.c (input_function): Input function start
1742         and end loci.
1743
1744 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1745
1746         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
1747         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
1748         * configure: Regenerate.
1749         * aclocal.m4: Regenerate.
1750
1751 2010-09-03  Jan Hubicka  <jh@suse.cz>
1752
1753         PR lto/44812
1754         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
1755         on functions/variables in other partition.
1756
1757 2010-09-03  Jan Hubicka  <jh@suse.cz>
1758
1759         * cgraph.h (struct varpool_node): Add const_value_known.
1760         (varpool_decide_const_value_known): Declare.
1761         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
1762         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
1763         (input_varpool_node): Restore const_value_known.
1764         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
1765         initializer folding.
1766         * ipa.c (ipa_discover_readonly_nonaddressable_var,
1767         function_and_variable_visibility): Compute const_value_known.
1768         * gimple-fold.c (get_symbol_constant_value): Use varpool for
1769         initializer folding.
1770         * varpool.c (varpool_decide_const_value_known): New function.
1771
1772 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
1773
1774         * config/i386/i386.md: Remove empty preparation statements
1775         from splitters.
1776
1777 2010-09-03  Jan Hubicka  <jh@suse.cz>
1778
1779         * passes.c (rest_of_decl_compilation): Do not add local vars into
1780         varpool.
1781         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
1782         static or extern vars are in varpool.
1783         (varpool_finalize_decl): Sanity check that only static vars are
1784         finalized.
1785
1786 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
1787
1788         PR debug/45500
1789         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
1790         not just generic vectors with BLKmode.
1791
1792 2010-09-03  Richard Guenther  <rguenther@suse.de>
1793
1794         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
1795         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
1796         * tree.h (TMR_SYMBOL): Remove.
1797         (TMR_BASE, TMR_OFFSET): Adjust.
1798         (TMR_INDEX2): New.
1799         * alias.c (ao_ref_from_mem): Use TMR_BASE.
1800         * builtins.c (get_object_alignment): Merge TMR_BASE and
1801         TMR_SYMBOL handling.
1802         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
1803         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
1804         handling.  Also allow TARGET_MEM_REF as base address.
1805         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
1806         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
1807         base.  Gimplify TMR_INDEX2.
1808         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
1809         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1810         (get_addr_base_and_unit_offset): Likewise.
1811         * tree-eh.c (tree_could_trap_p): Likewise.
1812         * tree-pretty-print.c (dump_generic_node): Likewise.
1813         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
1814         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
1815         base to index2.
1816         (get_address_description): Reconstruct addres description
1817         from merged TMR_BASE and TMR_INDEX2.
1818         (maybe_fold_tmr): Fold propagated addresses.
1819         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
1820         MEM_REF and TARGET_MEM_REF paths.
1821         (indirect_refs_may_alias_p): Likewise.
1822         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
1823         instead of TMR_SYMBOL.
1824         * tree-ssa-operands.c (get_tmr_operands): Simplify.
1825         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
1826         according to changes ...
1827         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
1828         Split TARGET_MEM_REF into two fields plus the base.
1829         * tree.c (mem_ref_offset): Simplify.
1830         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
1831         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
1832         Strip NOPs when folding MEM_REF addresses.
1833         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
1834         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
1835         (fold_gimple_assign): ... not here.
1836
1837 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
1838
1839         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
1840         * config/mips/mips.c (mips_shift_truncation_mask): New function.
1841         (TARGET_SHIFT_TRUNCATION_MASK): Define.
1842
1843 2010-09-02  Richard Henderson  <rth@redhat.com>
1844
1845         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
1846         instead of readelf in the test.
1847         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
1848         in the .debug_frame section for coff targets.
1849         * configure: Rebuild.
1850
1851 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
1852
1853         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
1854         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
1855         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1856         (m32c_class_likely_spilled_p): Make static. Change argument type to
1857         reg_class_t. Change result type to bool.
1858
1859 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1860
1861         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
1862         to convert (double)(long) into a single FRIZ instruction or not
1863         when -ffast-math is used.
1864
1865         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
1866         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
1867         or FRIZ instruction if -ffast-math.
1868         * config/rs6000/rs6000.md (friz): Ditto.
1869
1870         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
1871
1872 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1873
1874         * opth-gen.awk (quote, comma): Remove unused variables.
1875
1876 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
1877
1878         * arm.c (arm_override_options): Correct fall-back code to use
1879         SUBTARGET_CPU_DEFAULT.
1880
1881 2010-09-02  Julian Brown  <julian@codesourcery.com>
1882
1883         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
1884         unspecs.
1885         (vcond<mode>, vcondu<mode>): New expanders.
1886         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
1887         comparisons with zero.
1888         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
1889         * config/arm/constraints.md (Dz): New constraint.
1890
1891 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
1892
1893         * target.def (class_likely_spilled_p): New hook.
1894         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
1895         * doc/tm.texi: Regenerate.
1896         * targhooks.c (default_class_likely_spilled_p): New function.
1897         * targhooks.h (default_class_likely_spilled_p): Declare.
1898         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
1899         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
1900         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
1901         Use fixed_reg_set instead of fixed_regs.
1902         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
1903         * calls.c (avoid_likely_spilled_reg): Ditto.
1904         * ira-conflicts.c (ira_build_conflicts): Ditto.
1905         * ira.c (update_equiv_regs): Ditto.
1906         * mode-switching.c (create_pre_exit): Ditto.
1907         * regmove.c (find_matches): Ditto.
1908         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
1909         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
1910         (small_register_class_p): New inline function.
1911         (push_secondary_reload, find_reusable_reload, find_reloads): Use
1912         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
1913
1914         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
1915         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
1916         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1917
1918 2010-09-02  Richard Guenther  <rguenther@suse.de>
1919
1920         PR tree-optimization/44937
1921         PR tree-optimization/45412
1922         * ipa-split.c (split_function): Properly remove PHI nodes.
1923
1924 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1925
1926         * opts.h (struct cl_option): Add warn_message field.
1927         (struct cl_decoded_option): Add warn_message field.
1928         * doc/options.texi (Ignore, Warn): Document.
1929         * opt-functions.awk (needs_state_p): Don't consider aliases or
1930         ignored options to need state saved.
1931         * optc-gen.awk: Handle Warn and Ignore.
1932         * opth-gen.awk: Output OPT_SPECIAL_ignore.
1933         * opts-common.c (decode_cmdline_option): Set warn_message field.
1934         Handle ignored options.
1935         (decode_cmdline_options_to_array, generate_option,
1936         generate_option_input_file): Set warn_message field.
1937         (read_cmdline_option): Generate warnings from warn_message field.
1938         Handle ignored options.
1939         * common.opt (Wunreachable-code, fargument-alias,
1940         fargument-noalias, fargument-noalias-global,
1941         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
1942         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
1943         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
1944         ftree-salias): Mark Ignore.
1945         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
1946         -mintel-syntax and -mno-intel-syntax here.
1947         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
1948         using Warn.
1949         * opts.c (common_handle_option): Don't handle options marked as
1950         ignored.
1951         (enable_warning_as_error): Handle ignored options.
1952
1953 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1954
1955         PR driver/44076
1956         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
1957         alias_target fields.
1958         * opt-functions.awk (opt_sanitized_name): Don't handle
1959         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
1960         * optc-gen.awk: Generate alias fields.
1961         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
1962         Don't generate such constants for aliases.
1963         * opts-common.c (generate_canonical_option): New.
1964         (decode_cmdline_option): Handle aliases.  Use
1965         generate_canonical_option for known options instead of copying the
1966         input option text.
1967         * doc/options.texi (Alias): Document.
1968         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
1969         fstack-check, specs): Mark as aliases.
1970         * gcc.c (driver_handle_option): Canonicalize -L options to joined
1971         arguments.
1972         (driver_handle_option): Don't handle OPT_specs.
1973         * opts.c (common_handle_option): Don't handle options marked as
1974         aliases.
1975         (enable_warning_as_error): Handle aliases.
1976         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
1977         OPT_Wlarger_than_eq.
1978         * tree-optimize.c (tree_rest_of_compilation): Use
1979         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
1980
1981 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
1982
1983         * config/i386/i386.md (nonmemory_operand): New mode attribute.
1984         (push memory peephole2): Macroize peepholes using SWI mode iterator.
1985         (move immediate to memory peephole2): Macroize peepholes using
1986         SWI124 mode iterator.
1987         (non-pairable NOT peephole2): Macroize peepholes using SWI124
1988         mode iterator.
1989         (simple lea add peephole2): Macroize peepholes using SWI48
1990         mode iterator.
1991         (simple lea mult peephole2): Ditto.
1992         (imul by 3,5,9 to lea peephole2): Ditto.
1993         (mov $-1, reg peephole2): Macroize peepholes using SWI248
1994         mode iterator.
1995         (imul $32bit_imm,mem,reg peephole2): Ditto.
1996         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
1997
1998 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
1999
2000         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
2001
2002 2010-09-02  Olivier Hainque  <hainque@adacore.com>
2003
2004         PR middle-end/44763
2005         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
2006         (allocno_priority_compare_func): Use it instead of a straight
2007         difference computation over priorities.
2008
2009 2010-09-02  Andi Kleen  <ak@linux.intel.com>
2010
2011         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
2012
2013 2010-09-02  Ira Rosen  <irar@il.ibm.com>
2014
2015         * tree-vectorizer.h (get_later_stmt): New function.
2016         (vect_analyze_data_ref_dependences): Add argument.
2017         * tree-vect-loop.c (vect_analyze_loop): Update call to
2018         vect_analyze_data_ref_dependences.
2019         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
2020         New function.
2021         (vect_analyze_data_ref_dependence): Add argument for basic block
2022         dependencies. Check dependencies in basic block vectorization.
2023         (vect_analyze_data_ref_dependences): Add argument and update call to
2024         vect_analyze_data_ref_dependences.
2025         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
2026         (vect_bb_vectorizable_with_dependencies): New.
2027         (vect_slp_analyze_bb): Check dependencies in basic block.
2028         (vect_schedule_slp_instance): Insert stores before the last store in
2029         SLP instance.
2030
2031 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
2032
2033         PR target/45476
2034         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
2035         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
2036
2037 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
2038
2039         PR middle-end/45458
2040         * bb-reorder.c (add_labels_and_missing_jumps): Treat
2041         bbs ending with throwing insns like blocks ending with a call.
2042         (fix_up_fall_thru_edges): Likewise.
2043
2044 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
2045
2046         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
2047         (m32c_function_arg_advance): Delete.
2048         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2049         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
2050         comments.  Take a const_tree and a bool.  Declare.
2051         (m32c_function_arg_advance): Likewise.
2052         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2053
2054 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
2055
2056         PR target/45476
2057         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
2058         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
2059         * config/i386/mingw32.h: ... here.
2060
2061 2010-09-01  Andi Kleen  <ak@linux.intel.com>
2062
2063         PR lto/45475
2064         * lto-streamer-in.c (lto_input_ts_target_option): Add.
2065         (lto_input_tree_pointers): Call lto_input_ts_target_option.
2066         * lto-streamer-out (lto_output_ts_target_option): Add.
2067         (lto_output_tree_pointers): Call lto_output_ts_target_option.
2068
2069 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
2070
2071         PR/target 45452
2072         * config/i386/cygwin.h: Change order of specified import libraries.
2073         * config/i386/mingw32.h: Likewise.
2074         * config/i386/t-cygwin: Likewise.
2075         * config/i386/t-mingw32: Likewise.
2076         * config/i386/t-mingw-w32: Likewise.
2077         * config/i386/t-mingw-w64: Likewise.
2078
2079 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2080
2081         * config/arm/neon-schedgen.ml (core): New type.
2082         (allCores): List of supported cores.
2083         (availability_table): Add supported cores.
2084         (collate_bypasses): Accept core as a parameter.
2085         (worst_case_latencies_and_bypasses): Accept core as a parameter.
2086         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
2087         and coreStr to get tune attribute and prefix for functional units.
2088         (emit_bypasses): Accept core name and use it.
2089         (calculate_per_core_availability_table): New.
2090         (filter_core): New.
2091         (calculate_core_availability_table): New.
2092         (main): Use calculate_core_availablity_table.
2093         * config/arm/cortex-a8-neon.md: Update copyright year.
2094         Regenerated from ml file and merged in.
2095         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
2096         cortex_a8_neon_mrc.
2097
2098 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
2099
2100         * Makefile.in (tree-switch-conversion.o): Update dependencies.
2101
2102 2010-09-01  Richard Guenther  <rguenther@suse.de>
2103
2104         * alias.c (ao_ref_from_mem): Adjust.
2105         * builtins.c (get_object_alignment): Likewise.
2106         * cfgexpand.c (expand_debug_expr): Likewise.
2107         * gimple.c (get_base_address): Likewise.
2108         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2109         (get_addr_base_and_unit_offset): Likewise.  Fix for
2110         both TMR_SYMBOL and TMR_BASE being set.
2111         * tree-eh.c (tree_could_trap_p): Likewise.
2112         * gimplify.c (gimplify_expr): Do not attempt to gimplify
2113         TMR_SYMBOL.  Always gimplify TMR_BASE.
2114         * tree-cfg.c (verify_types_in_gimple_reference): Verify
2115         TMR_BASE if there is a TMR_SYMBOL.
2116         * tree-pretty-print.c (dump_generic_node): Adjust.
2117         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
2118         (tree_mem_ref_addr): Likewise.
2119         (create_mem_ref_raw): Likewise.
2120         (move_fixed_address_to_symbol): Likewise.
2121         (create_mem_ref): Likewise.
2122         (dump_mem_address): Likewise.
2123         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
2124         Fix for both TMR_SYMBOL and TMR_BASE being set.
2125         (indirect_refs_may_alias_p): Likewise.
2126         * tree-ssa-operands.c (get_tmr_operands): Adjust.
2127         * tree.def (TARGET_MEM_REF): Adjust documentation.
2128
2129 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
2130
2131         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
2132         Rename from X86_TUNE_ADD_ESP_4.
2133         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
2134         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
2135         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
2136         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
2137         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
2138         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
2139         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
2140         * config/i386/i386.c (initial_ix86_tune_features)
2141         <X86_TUNE_SINGLE_POP>: Invert members.
2142         <X86_TUNE_DOUBLE_POP>: Ditto.
2143         <X86_TUNE_SINGLE_PUSH>: Ditto.
2144         <X86_TUNE_DOUBLE_PUSH>: Ditto.
2145         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
2146         No longer exported.
2147         (push peephole2 patterns): Macroize peepholes using P mode iterator.
2148         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
2149         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
2150         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
2151
2152 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2153
2154         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
2155         a volatile LHS if the constructor has only one element.
2156
2157 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
2158
2159         PR bootstrap/45321
2160         * tree.c (stdarg_p): Make fntype parameter const.
2161         * tree.h (stdarg_p): Likewise.
2162         (function_args_iterator): Remove unused fntype field.
2163         (function_args_iter_init): Do not initialize fntype
2164         field.  Make fntype parameter const.
2165
2166 2010-09-01  Richard Guenther  <rguenther@suse.de>
2167
2168         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
2169         estimate.
2170         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
2171         (execute_vrp): Compute number of iteration estimates.
2172         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
2173         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
2174         * tree-data-ref.c (estimated_loop_iterations): Adjust.
2175         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2176         Infer loop bounds from undefined behavior based on a new parameter.
2177         (estimate_numbers_of_iterations): Likewise.
2178         (scev_probably_wraps_p): Adjust.
2179         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
2180
2181 2010-09-01  Nick Clifton  <nickc@redhat.com>
2182
2183         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
2184         where appropriate.
2185         (xstormy16_legitimate_address_p): Use true and false instead of 1
2186         and 0.
2187         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
2188         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
2189         magic constant 2.
2190         (xstormy16_expand_call): Fix comment at start of function.
2191
2192 2010-09-01  Nick Clifton  <nickc@redhat.com>
2193
2194         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
2195         when pushing accumulator register.
2196         (rx_get_stack_layout): Always save call clobbered registers inside
2197         interrupt handlers.
2198         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
2199
2200 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
2201
2202         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
2203         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
2204
2205         * libgcc-std.ver (GCC_4.6.0): Define version.
2206
2207 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
2208
2209         * tree-nested.c (convert_all_function_calls): Iterate until after the
2210         sum of static chains in the nest doesn't change.
2211
2212 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
2213
2214         * config/m32c/m32c.c (classes_intersect): Remove.
2215         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
2216         reg_classes_intersect_p instead of classes_intersect.
2217         (class_can_hold_mode): Change arguments type from enum reg_class to
2218         reg_class_t.  Use reg_class_contents instead of class_contents.
2219         (m32c_register_move_cost): Make static. Change arguments type from
2220         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
2221         classes_intersect. Use reg_class_contents instead of class_contents.
2222         (m32c_memory_move_cost): Make static. Change arguments type from
2223         enum reg_class to reg_class_t.
2224         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2225         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2226         * config/m32c/m32c-protos.h (m32c_register_move_cost,
2227         m32c_memory_move_cost): Remove.
2228
2229 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2230
2231         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
2232         (arm_function_arg): Delete.
2233         (arm_needs_doubleword_align): Take a const_tree.
2234         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2235         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
2236         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
2237         (arm_function_arg): Make static.  Take a const_tree and a bool.
2238         (arm_function_arg_advance): Likewise.
2239         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2240
2241 2010-08-31  Andi Kleen  <ak@linux.intel.com>
2242
2243         * common.opt (fwhopr=): Update for -fwhopr=jobserver
2244         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
2245         * lto-wrapper.c (run_gcc): Add jobserver mode.
2246         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
2247         argument.
2248
2249 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
2250
2251         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
2252         (popsi1): Ditto.
2253         (*popdi1_epilogue): Ditto.
2254         (*popsi1_epilogue): Ditto.
2255         (popsi, popdi peephole2 patterns): Update peepholes for changed
2256         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
2257
2258         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
2259         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
2260
2261         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
2262         (override_options): Do not initialize removed ix86_gen_pop1.
2263         (gen_pop): New static function.
2264         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
2265         (release_scratch_register_on_entry): Ditto.
2266         (ix86_restore_reg_using_pop): Ditto.
2267         (ix86_expand_epilogue): Ditto.
2268
2269 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
2270
2271         PR middle-end/45461
2272         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
2273
2274 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2275
2276         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
2277         semicolons.
2278
2279 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2280
2281         * doc/extend.texi: Fix documentation of the return value of
2282         __builtin_choose_expr.
2283
2284 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2285
2286         * config/v850/v850-protos.h (function_arg): Delete.
2287         * config/v850/v850.h (FUNCTION_ARG): Delete.
2288         (FUNCTION_ARG_ADVANCE): Move code to...
2289         * config/v850/v850.c (v850_function_arg_advance): ...here.
2290         (v850_function_arg): Make static.  Take a const_tree and a bool.
2291         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2292
2293 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2294
2295         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
2296         these...
2297         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
2298         ...and these...
2299         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
2300         ..to here..
2301         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
2302         ...and here.
2303         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2304
2305 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
2306
2307         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
2308         Delete.
2309         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2310         * config/rx/rx.c (rx_function_arg_size): Make static.
2311         (rx_function_arg): Likewise.
2312         (rx_function_arg_advance): New function.
2313         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2314
2315 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
2316
2317         * config/arm/arm.c (arm_override_options): Remove superfluous test.
2318         Fix indentation.
2319
2320 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
2321
2322         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
2323         (dwarf2out_decl) <CONST_DECL>: Likewise.
2324
2325 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
2326
2327         Stack usage support
2328         * common.opt (-fstack-usage): New option.
2329         * doc/invoke.texi (Debugging options): Document it.
2330         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
2331         allocate_dynamic_stack_space.
2332         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
2333         and propagate it to allocate_dynamic_stack_space.
2334         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
2335         * calls.c (initialize_argument_information): Pass TRUE as 4th
2336         argument to allocate_dynamic_stack_space.
2337         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
2338         to 1 when pushing a variable-sized argument onto the stack.  Pass
2339         TRUE as 4th argument to allocate_dynamic_stack_space.
2340         Update current_function_pushed_stack_size.
2341         (emit_library_call_value_1): Likewise.
2342         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
2343         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
2344         attempt to find an upper bound.  Remove redundant code for the
2345         SETJMP_VIA_SAVE_AREA case.
2346         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
2347         * function.h (struct stack_usage): New structure.
2348         (current_function_static_stack_size): New macro.
2349         (current_function_dynamic_stack_size): Likewise.
2350         (current_function_pushed_stack_size): Likewise.
2351         (current_function_dynamic_alloc_count): Likewise.
2352         (current_function_has_unbounded_dynamic_stack_size): Likewise.
2353         (current_function_allocates_dynamic_stack_space): Likewise.
2354         (struct function): Add new field 'su'.
2355         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
2356         add the value of the dynamic offset to the dynamic stack usage.
2357         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
2358         for variable-sized objects.
2359         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
2360         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
2361         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
2362         BUILT_IN_ALLOCA for variable-sized objects.
2363         * output.h (output_stack_usage): Declare.
2364         * toplev.c (stack_usage_file): New file pointer.
2365         (output_stack_usage): New function.
2366         (open_auxiliary_file): Likewise.
2367         (lang_dependent_init): Open file if flag_stack_usage is set.
2368         (finalize): Close file if stack_usage_file is not null.
2369         * tree.h (ALLOCA_FOR_VAR_P): New macro.
2370         * config/alpha/alpha.c (compute_frame_size): New function.
2371         (alpha_expand_prologue): Use it.
2372         (alpha_start_function): Likewise.
2373         (alpha_expand_epilogue): Likewise.  Set stack usage info.
2374         * config/i386/i386.c (ix86_expand_prologue): Likewise.
2375         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2376         * config/mips/mips.c (mips_expand_prologue): Likewise.
2377         * config/pa/pa.c (hppa_expand_prologue): Likewise.
2378         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2379         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2380
2381 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
2382
2383         PR tree-optimization/45427
2384         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
2385         Handle the case that the exit is never taken correctly.
2386         (number_of_iterations_ne): Pass exit_must_be_taken to
2387         number_of_iterations_ne_max.
2388
2389 2010-08-30  Catherine Moore  <clm@codesourcery.com>
2390
2391         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
2392         Infer -mdspr2 for the the 74K.
2393
2394 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
2395
2396         PR debug/45419
2397         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
2398
2399         PR middle-end/45423
2400         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
2401         and TRUTH_{AND,OR,XOR}_EXPR.
2402         * c-parser.c (c_parser_omp_atomic): Handle boolean
2403         {PRE,POST}_{INC,DEC}REMENT.
2404
2405 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
2406
2407         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
2408         (function_arg): Delete.
2409         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2410         (FUNCTION_INCOMING_ARG): Delete.
2411         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
2412         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
2413         and a bool.
2414         (function_arg): Rename to...
2415         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
2416         a bool.
2417         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
2418         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2419         (TARGET_FUNCTION_INCOMING_ARG): Define.
2420
2421 2010-08-30  Richard Guenther  <rguenther@suse.de>
2422
2423         PR tree-optimization/21602
2424         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
2425         using points-to information.
2426
2427 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
2428
2429         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
2430
2431 2010-08-30  Richard Guenther  <rguenther@suse.de>
2432
2433         PR tree-optimization/45449
2434         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
2435         variables.
2436
2437 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
2438
2439         * opts.h (CL_ERR_NEGATIVE): Define.
2440         * opts.c (unknown_option_callback): Don't postpone warnings for
2441         options marked with CL_ERR_NEGATIVE.
2442         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
2443         for negative versions of CL_REJECT_NEGATIVE options.
2444
2445 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
2446
2447         * config/i386/i386.md (zero_extendsidi2_1): Rename from
2448         zero_extendsidi2_32.
2449         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
2450         using SWI12 mode iterator.
2451         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
2452         to define_insn_and_split pattern.
2453         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
2454         using SWI24 mode iterator.
2455         (*zero_extendqi<mode>2_and): Macroize insn from
2456         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
2457         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
2458         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
2459         SWI24 mode iterator.
2460         (*zero_extendqi<mode>2_movzbl): Ditto from
2461         *zero_extendqi{hi,si}2_movzbl.
2462         (extendsidi2_1): Rename from extendsidi2_32.
2463         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
2464         SWI12 mode iterator.
2465
2466 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
2467
2468         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
2469         general purpose registers.
2470         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
2471         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
2472         with general purpose registers and memory operands.  Add associated
2473         CCImode post-reload splitter.
2474         * config/ia64/div.md: Change BImode to CCImode throughout.
2475
2476 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
2477
2478         * config/ia64/ia64.md (cstorebi4): Fix thinko.
2479
2480 2010-08-28  Hariharan Sandanagobalane <hariharan@picochip.com>
2481
2482         * config/picochip/picochip.c (reorder_var_tracking_notes): This
2483         function was dropping debug insns which caused PR45299.
2484
2485 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
2486
2487         * config/i386/sse.md (extsuffix): New code attribute.
2488         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
2489         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
2490         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
2491         and sse4_1_zero_extendv4qiv4si2.
2492         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
2493         and sse4_1_zero_extendv2qiv2di2.
2494         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
2495         and sse4_1_zero_extendv4hiv4si2.
2496         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
2497         and sse4_1_zero_extendv2hiv2di2.
2498         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
2499         and sse4_1_zero_extendv2siv2di2
2500
2501         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
2502         using any_extend code iterator.
2503         (*avx_<s>mulv8hi3_highpart): Macroize insn from
2504         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
2505         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
2506
2507         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
2508         gen_sse4_1_sign_extend* functions.
2509         (struct builtin_description bdesc_args): Ditto.
2510
2511 2010-08-27  Xinliang David Li  <davidxl@google.com>
2512
2513         PR/45422
2514         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
2515         (iv_ca_set_no_cp): Update used inv expr count.
2516         (iv_ca_set_cp): Ditto.
2517         (iv_ca_new): Initialize new member.
2518         (iv_ca_free): Free memory.
2519
2520 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2521
2522         * config/sh/sh-protos.h (sh_function_arg): Delete.
2523         (sh_function_arg_advance): Delete.
2524         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2525         (PASS_IN_REG_P): Eliminate cast.
2526         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
2527         const_tree and a bool.
2528         (sh_function_arg): Likewise.
2529         (sh_output_mi_thunk): Call sh_function_arg_advance) and
2530         sh_function_arg.
2531         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2532
2533 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
2534             Kaz Kojima  <kkojima@gcc.gnu.org>
2535
2536         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
2537         when possible.
2538         (sh_expand_epilogue): Likewise.
2539         * config/sh/sh.md (movml_push_banked): New insn.
2540         (movml_pop_banked): Likewise.
2541
2542 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
2543
2544         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
2545         gen_regexp_oneof, gen_regexp_sequence): Use the string found
2546         in vector element 0 rather than the original string when there's
2547         only one element.
2548         (gen_regexp): Remove extra semicolon.
2549
2550         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
2551         thumb2_movsf_vfp): Set attribute "insn".
2552         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
2553         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
2554         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
2555         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
2556         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
2557         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
2558         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
2559         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
2560         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
2561         if_not_arith, if_arith_not, cond_move_not): Likewise.
2562
2563 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2564
2565         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
2566         New declaration.
2567         (rs6000_allocate_stack_temp): Ditto.
2568         (rs6000_expand_convert_si_to_sfdf): Ditto.
2569
2570         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
2571         line.  Update the options set if power6 or power7 server/embedded
2572         type options are used.  If we give a warning for no vsx under
2573         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
2574         (rs6000_allocate_stack_temp): New function to allocate a stack
2575         tempoary and adjust the address so it meets either REG+OFFSET or
2576         REG+REG addressing requirements.
2577         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
2578         that they can be used with the LFIWAX/LFIWZX instrucitons.
2579         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
2580         converting signed/unsigned SImode to either SFmode/DFmode.
2581
2582         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
2583         whether certain instructions can be generated.
2584         (TARGET_FCTIDZ): Ditto.
2585         (TARGET_STFIWX): Ditto.
2586         (TARGET_LFIWAX): Ditto.
2587         (TARGET_LFIWZX): Ditto.
2588         (TARGET_FCFIDS): Ditto.
2589         (TARGET_FCFIDU): Ditto.
2590         (TARGET_FCFIDUS): Ditto.
2591         (TARGET_FCTIDUZ): Ditto.
2592         (TARGET_FCTIWUZ): Ditto.
2593
2594         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
2595         (UNSPEC_FCTID): Ditto.
2596         (UNSPEC_LFIWAX): Ditto.
2597         (UNSPEC_LFIWZX): Ditto.
2598         (UNSPEC_FCTIWUZ): Ditto.
2599         (rreg): Use correct constraints.
2600         (SI_CONVERT_FP): New mode attribute for floating point conversion
2601         tests.
2602         (E500_CONVERT): Ditto.
2603         (lfiwax): New insns for converting from integer to floating point
2604         utilizing newer instructions.  Attempt to optimize conversions
2605         that come from memory so that we don't load the value into a GPR,
2606         spill it to the stack and reload it into a FPR.
2607         (floatsi<mode>2_lfiwax): Ditto.
2608         (floatsi<mode>2_lfiwax_mem): Ditto.
2609         (floatsi<mode>2_lfiwax_mem2): Ditto.
2610         (lfiwzx): Ditto.
2611         (floatunssi<mode>2_lfiwzx): Ditto.
2612         (floatunssi<mode>2_lfiwzx_mem): Ditto.
2613         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
2614         (floatdidf2_mem): Ditto.
2615         (floatunsdidf2_fcfidu): Ditto.
2616         (floatunsdidf2_mem): Ditto.
2617         (floatunsdisf2): Ditto.
2618         (floatunsdisf2_fcfidus): Ditto.
2619         (floatunsdisf2_mem): Ditto.
2620         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
2621         Use FCFID on 32-bit hosts that support it.
2622         (floatsidf2_internal): Ditto.
2623         (floatunssisf2): Ditto.
2624         (floatunssidf2): Ditto.
2625         (floatunssidf2_internal): Ditto.
2626         (floatsisf2): Ditto.
2627         (floatdidf2): Ditto.
2628         (floatdidf2_fpr): Ditto.
2629         (floatunsdidf2): Ditto.
2630         (floatdisf2): Ditto.
2631         (floatdisf2_fcfids): Ditto.
2632         (floatdisf2_internal1): Ditto.
2633         (fixuns_truncsfsi2): Delete, merge into common pattern for both
2634         SF/DF.  Add power7 support.
2635         (fix_truncsfsi2): Ditto.
2636         (fixuns_truncdfsi2): Ditto.
2637         (fixuns_truncdfdi2): Ditto.
2638         (fix_truncdfsi2): Ditto.
2639         (fix_truncdfsi2_internal): Ditto.
2640         (fix_truncdfsi2_internal_gfxopt): Ditto.
2641         (fix_truncdfsi2_mfpgpr): Ditto.
2642         (fctiwz): Ditto.
2643         (btruncdf2): Ditto.
2644         (btruncdf2_fpr): Ditto.
2645         (btructsf2): Ditto.
2646         (ceildf2): Ditto.
2647         (ceildf2_fpr): Ditto.
2648         (ceilsf2): Ditto.
2649         (floordf2): Ditto.
2650         (floordf2_fpr): Ditto.
2651         (floorsf2): Ditto.
2652         (rounddf2): Ditto.
2653         (rounddf2_fpr): Ditto.
2654         (roundsf2): Ditto.
2655         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
2656         (fix_trunc<mode>di2): Ditto.
2657         (fixuns_trunc<mode>si2): Ditto.
2658         (fixuns_trunc<mode>di2): Ditto.
2659         (fctiwz_<mode>): Ditto.
2660         (btrunc<mode>2): Ditto.
2661         (btrunc<mode>2_fpr): Ditto.
2662         (ceil<mode>2): Ditto.
2663         (ceil<mode>2_fpr): Ditto.
2664         (floor<mode>2): Ditto.
2665         (float<mode>2_fpr): Ditto.
2666         (round<mode>2): Ditto.
2667         (round<mode>2_fpr): Ditto.
2668         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
2669         (fixuns_trunc<mode>si2_stfiwx): Ditto.
2670         (fix_truncdfsi2_internal): Ditto.
2671         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
2672         converted value on stack, loaded into GPR, and then stored into
2673         the final destination.
2674         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
2675         FCTIDZ.
2676         (lrint<mode>di2): New insn, provide the lrint builtin functions.
2677         (ftruncdf2): Delete, unused.
2678         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
2679
2680         * config/rs6000/vsx.md (toplevel): Update copyright year.
2681         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
2682         (VSr3): Ditto.
2683
2684 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
2685             Jeremie Salvucci  <jeremie.salvucci@free.fr>
2686
2687         * gengtype.c (output_type_enum): Test the right union member.
2688
2689 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
2690
2691         PR target/41484
2692         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
2693         operands for operand 1.
2694         (sse4_1_extendv4qiv4si2): Ditto.
2695         (sse4_1_extendv2qiv2di2): Ditto.
2696         (sse4_1_extendv4hiv4si2): Ditto.
2697         (sse4_1_extendv2hiv2di2): Ditto.
2698         (sse4_1_extendv2siv2di2): Ditto.
2699         (sse4_1_zero_extendv8qiv8hi2): Ditto.
2700         (sse4_1_zero_extendv4qiv4si2): Ditto.
2701         (sse4_1_zero_extendv2qiv2di2): Ditto.
2702         (sse4_1_zero_extendv4hiv4si2): Ditto.
2703         (sse4_1_zero_extendv2hiv2di2): Ditto.
2704         (sse4_1_zero_extendv2siv2di2): Ditto.
2705         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
2706         (*sse4_1_extendv4qiv4si2): Ditto.
2707         (*sse4_1_extendv2qiv2di2): Ditto.
2708         (*sse4_1_extendv4hiv4si2): Ditto.
2709         (*sse4_1_extendv2hiv2di2): Ditto.
2710         (*sse4_1_extendv2siv2di2): Ditto.
2711         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
2712         (*sse4_1_zero_extendv4qiv4si2): Ditto.
2713         (*sse4_1_zero_extendv2qiv2di2): Ditto.
2714         (*sse4_1_zero_extendv4hiv4si2): Ditto.
2715         (*sse4_1_zero_extendv2hiv2di2): Ditto.
2716         (*sse4_1_zero_extendv2siv2di2): Ditto.
2717
2718 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2719
2720         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
2721         (mips_function_arg): Delete.
2722         (mips_function_arg_boundary): Take a const_tree.
2723         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
2724         (mips_arg_info): Likewise.
2725         (mips_setup_incoming_varargs): Call mips_function_arg_advance
2726         instead of FUNCTION_ARG_ADVANCE.
2727         (mips_function_arg_advance): Adjust prototype.  Make static.
2728         (mips_function_arg): Likewise.
2729         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2730         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
2731
2732 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2733
2734         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2735         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
2736         (function_arg): Delete.
2737         (function_arg_boundary): Take a const_tree.
2738         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
2739         (rs6000_spe_function_arg): Likewise.
2740         (rs6000_parm_start): Likewise.
2741         (rs6000_arg_size): Likewise.
2742         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
2743         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
2744         (rs6000_mixed_function_arg): Likewise.
2745         (function_arg): Rename to...
2746         (rs6000_function_arg): ...this.
2747         (function_arg_advance): Rename to...
2748         (rs6000_function_arg_advance_1): ...this
2749         (rs6000_function_arg_advance): New function.  Call it.
2750         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
2751         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
2752         (rs6000_function_value): Likewise.
2753         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2754
2755 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2756
2757         * config/arm/arm.md (enabled): Test the value of arch_enabled
2758         rather than just using it.
2759
2760 2010-08-27  Olivier Hainque  <hainque@adacore.com>
2761             Eric Botcazou  <ebotcazou@adacore.com>
2762
2763         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
2764         cover all the possible offsets from this base.
2765         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
2766
2767 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
2768
2769         PR tree-optimization/44485
2770         * calls.c (flags_from_decl_or_type): For const or pure
2771         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
2772         together with ECF_CONST resp. ECF_PURE.
2773         * builtins.c (expand_builtin): Use flags_from_decl_or_type
2774         instead of querying flags directly.
2775         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
2776         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
2777
2778 2010-08-26  Richard Guenther  <rguenther@suse.de>
2779
2780         PR tree-optimization/45255
2781         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
2782         and externals are also invariant.
2783
2784 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2785
2786         PR rtl-optimization/44858
2787         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
2788         newi2pat, make sure they don't affect newpat.
2789
2790         PR rtl-optimization/45400
2791         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
2792         SUBREG_REG if both modes are of MODE_INT class.
2793
2794 2010-08-25  Julian Brown  <julian@codesourcery.com>
2795
2796         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
2797         * config/arm/arm.md (generic_sched): No for Cortex-A5.
2798         (generic_vfp): Likewise.
2799         (cortex-a5.md): Include.
2800         * config/arm/cortex-a5.md: New.
2801
2802 2010-08-25  Richard Guenther  <rguenther@suse.de>
2803
2804         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
2805         * gimple.c (gimple_get_alias_set): Remove special handling
2806         for pointers.
2807
2808 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2809
2810         PR middle-end/45355
2811         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
2812         dead_or_set_p when computing i0_feeds_i2_n.
2813
2814         * combine.c (find_split_point): Undo canonicalization of multiply-add
2815         to (minus x (mult)) when it seems likely that this will increase the
2816         chances of a split.
2817
2818 2010-08-25  Richard Guenther  <rguenther@suse.de>
2819
2820         PR lto/44562
2821         * lto-streamer.c (lto_record_common_node): Do not mess with
2822         TYPE_CANONICAL when not in lto.
2823         * gimple.c (gimple_register_type): Likewise.
2824
2825 2010-08-25  Richard Guenther  <rguenther@suse.de>
2826
2827         PR tree-optimization/45316
2828         * tree-ssa-pre.c (eliminate): Properly clean EH info.
2829
2830 2010-08-25  Richard Guenther  <rguenther@suse.de>
2831
2832         PR tree-optimization/45393
2833         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
2834         and clean EH info.  Avoid SSA update.
2835         (execute_cse_sincos): Cleanup the CFG if it has changed.
2836
2837 2010-08-25  Richard Guenther  <rguenther@suse.de>
2838
2839         PR middle-end/45379
2840         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
2841         TARGET_MEM_REF in alignment computation.
2842
2843 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2844
2845         PR tree-optimization/45059
2846         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
2847         type conversions from newop{1,2}.  Assert t is a comparison and
2848         newop{1,2} after the stripping are gimple vals.
2849
2850 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
2851
2852         * config/arm/iterators.md (VU, SE, V_widen_l): New.
2853         (V_unpack, US): New.
2854         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
2855         (vec_unpack<US>_lo_<mode>): Likewise.
2856         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
2857         (neon_vec_unpack<US>_lo_<mode>): Likewise.
2858         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
2859         (vec_widen_<US>mult_hi_<mode>): Likewise.
2860         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
2861         (neon_vec_<US>mult_hi_<mode>"): Likewise.
2862         (neon_unpack<US>_<mode>): Widening move intermediate step for
2863         vectorizing without -mvectorize-with-neon-quad.
2864         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
2865         for vectorizing without -mvectorize-with-neon-quad.
2866         * config/arm/predicates.md (vect_par_constant_high): Check for
2867         high-half lanes of a vector.
2868         (vect_par_constant_low): Check for low-half lanes of a vector.
2869
2870 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2871
2872         * tree-if-conv.c (struct ifc_dr): New.
2873         (IFC_DR): New.
2874         (DR_WRITTEN_AT_LEAST_ONCE): New.
2875         (DR_RW_UNCONDITIONALLY): New.
2876         (memref_read_or_written_unconditionally): Use the cached values
2877         when possible.
2878         (write_memref_written_at_least_once): Same.
2879         (if_convertible_loop_p): Initialize and free DR->aux fields.
2880
2881 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2882
2883         * gimple.c (gimple_could_trap_p_1): Not static anymore.
2884         Pass an extra bool parameter include_mem.
2885         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
2886         (gimple_assign_rhs_could_trap_p): Same.
2887         * gimple.h (gimple_could_trap_p_1): Declared.
2888         * tree-data-ref.h (same_data_refs_base_objects): New.
2889         (same_data_refs): New.
2890         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
2891         (write_memrefs_written_at_least_once): New.
2892         (ifcvt_memrefs_wont_trap): New.
2893         (operations_could_trap): New.
2894         (ifcvt_could_trap_p): New.
2895         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
2896         Gets a vector of data refs.
2897         (if_convertible_stmt_p): Same.
2898         (if_convertible_loop_p_1): New.
2899         (if_convertible_loop_p): Call if_convertible_loop_p_1.
2900
2901 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2902
2903         * common.opt (ftree-loop-if-convert-stores): New flag.
2904         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
2905         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
2906         the created statement before GSI.
2907         (if_convertible_phi_p): Allow virtual phi nodes when
2908         flag_loop_if_convert_stores is set.
2909         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
2910         Do not handle types that do not match is_gimple_reg_type.
2911         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
2912         when flag_loop_if_convert_stores is set, as LHS can contain
2913         memory refs.
2914         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
2915         to if_convertible_gimple_assign_stmt_p.
2916         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
2917         (replace_phi_with_cond_gimple_assign_stmt): Renamed
2918         predicate_scalar_phi.  Do not handle virtual phi nodes.
2919         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
2920         Call predicate_scalar_phi.
2921         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
2922         just after the labels for flag_loop_if_convert_stores, otherwise
2923         insert the predicate in the end of the BB.
2924         (predicate_mem_writes): New.
2925         (combine_blocks): Call predicate_all_scalar_phis.  When
2926         flag_loop_if_convert_stores is set, call predicate_mem_writes.
2927         (tree_if_conversion): Call mark_sym_for_renaming when
2928         flag_loop_if_convert_stores is set.
2929         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
2930         flag_loop_if_convert_stores is set.
2931
2932 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
2933
2934         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
2935         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
2936         (pa_function_value): Make static.
2937         (override_options): Rename to...
2938         (pa_option_override): ...this. Make static.
2939         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
2940         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
2941         TARGET_OPTION_OVERRIDE): Define.
2942         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
2943         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
2944         Remove.
2945         * config/pa/pa-protos.h (override_options): Remove.
2946
2947 2010-08-24  Richard Guenther  <rguenther@suse.de>
2948
2949         PR middle-end/45379
2950         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
2951         if addr->index is NULL or zero.
2952         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
2953         TARGET_MEM_REF more properly.
2954         (indirect_ref_may_alias_decl_p): Likewise.
2955         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
2956         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
2957
2958 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
2959
2960         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
2961         (m32c_override_options): Rename to...
2962         (m32c_option_override): ...this. Make static.
2963         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
2964         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
2965         Remove.
2966         * config/m32c/m32c-protos.h (m32c_override_options,
2967         m32c_function_value_regno_p): Remove.
2968
2969 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2970
2971         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
2972         Fix a typo in a previous commit.
2973
2974 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
2975
2976         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
2977         Pre-initialize innerloop_iters to one.
2978
2979 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2980
2981         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
2982         existing static function global.
2983
2984         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
2985         is changed to global.
2986
2987         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
2988         may_be_nonaddressable_p on base, and don't collect this reference
2989         if the address of the base could not be taken.
2990
2991 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2992
2993         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
2994         enable the compiler to autovectorize mathmetical functions for
2995         power7 using the Mathematical Acceleration Subsystem library.
2996
2997         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
2998         handle which vector math library we have.
2999         (rs6000_override_options): Add -mveclibabi=mass support.
3000         (rs6000_builtin_vectorized_libmass): New function to handle auto
3001         vectorizing math functions that are in the MASS library.
3002         (rs6000_builtin_vectorized_function): Call it.
3003
3004         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3005         -mveclibabi=mass.
3006
3007 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3008
3009         PR boehm-gc/34544
3010         * gthr-posix.h (__gthread_active_init): Delete.
3011         (__gthread_active_p): Do activity check here.
3012         Don't include errno.h on hppa-hpux.  Update comment.
3013         * gthr-posix95.h (__gthread_active_init): Delete.
3014         (__gthread_active_p): Do activity check here.
3015         Don't include errno.h on hppa-hpux.  Update comment.
3016         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
3017         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
3018         add -lpthread when -mt or -pthread is specified.
3019         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
3020         (LINK_GCC_C_SEQUENCE_SPEC): Define.
3021         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
3022         (stublib.c, pthread_default_stacksize_np-stub.o,
3023         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
3024         $(T)libgcc_stub.a): Add methods.
3025         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
3026         (stublib.c, pthread_default_stacksize_np-stub.o,
3027         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
3028         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3029         pthread_mutex_unlock): New stubs.
3030
3031 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
3032
3033         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
3034         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
3035         options.
3036         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
3037         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
3038         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
3039         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
3040         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
3041         "-l".
3042         * cppspec.c: Include opts.h.
3043         (lang_specific_driver): Use cl_decoded_option structures.
3044         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
3045         * doc/tm.texi: Regenerate.
3046         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
3047         (driver_handle_option): Allow driver options needing no special
3048         processing.
3049         (process_command): Decode options before call to
3050         lang_specific_driver.  Pass decoded options to
3051         lang_specific_driver.
3052         * gcc.h (lang_specific_driver): Update prototype.
3053         * gccspec.c: Include opts.h.
3054         (lang_specific_driver): Use cl_decoded_option structures.
3055         * opts-common.c (option_ok_for_language, generate_option,
3056         generate_option_input_file): New.
3057         (decode_cmdline_option): Use option_ok_for_language.
3058         (decode_cmdline_options_to_array): Use generate_option_input_file.
3059         (handle_generated_option): Use generate_option.
3060         * opts.h (generate_option, generate_option_input_file): Declare.
3061
3062 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
3063
3064         * config/mips/mips.c (mips_override_options): Rename to...
3065         (mips_option_override): ...this. Make static.
3066         (TARGET_OPTION_OVERRIDE): Define.
3067         (mips_in_small_data_p): Update comment.
3068         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
3069         (FIXED_REGISTERS): Update comment.
3070         * config/mips/mips-protos.h (mips_override_options): Remove.
3071
3072 2010-08-21  Olivier Hainque  <hainque@adacore.com>
3073
3074         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
3075
3076 2010-08-21  Olivier Hainque  <hainque@adacore.com>
3077
3078         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
3079         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
3080
3081 2010-08-20  Jan Hubicka  <jh@suse.cz>
3082
3083         * tree-pass.h (pass_ipa_cdtor_merge): New function.
3084         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
3085         heap allocated.
3086         (record_cdtor_fn): Move to ipa.c; do not test for
3087         have_ctors_dtors.
3088         (build_cdtor): Move to ipa.c; add code avoiding construction
3089         when target have ctors/dtors and there is only one ctor/dtor at given
3090         priority.
3091         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
3092         sort; reverse order of constructors.
3093         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
3094         (cgraph_finalize_function): Do not call record_cdtor_fn.
3095         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
3096         (cgraph_build_static_cdtor): Move to ipa.c.
3097         * ipa.c: Include target.h and tree-iterator.h.
3098         (cgraph_build_static_cdtor, static_ctors, static_dtors,
3099         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
3100         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
3101         pass_ipa_cdtor_merge): New.
3102         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
3103         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
3104         bounds access.
3105
3106 2010-08-20  Jan Hubicka  <jh@suse.cz>
3107
3108         PR c++/45307
3109         PR c++/17736
3110         * cgraph.h (cgraph_only_called_directly_p,
3111         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
3112         static cdtors.
3113         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
3114         are not needed.
3115         (cgraph_finalize_function): Static cdtors are reachable.
3116         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
3117
3118 2010-08-20  Jan Hubicka  <jh@suse.cz>
3119
3120         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
3121         flag_wpa.
3122         * lto-streamer-out.c (lto_output): Likewise.
3123         * passes.c (ipa_write_optimization_summaries): Initialize statement
3124         uids.
3125
3126 2010-08-20  Olivier Hainque  <hainque@adacore.com>
3127
3128         * tree.h (alias_diag_flags): New enum.
3129         (alias_pair): Add an 'emitted_diags' field.
3130         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
3131         (assemble_alias): Initialize emitted_diags of new pairs.
3132
3133 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
3134
3135         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3136         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3137         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3138         (STACK_CHECK_PROTECT): Define.
3139         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
3140         (output_probe_stack_range): Likewise.
3141         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
3142         builtin stack checking is enabled.
3143         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
3144         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3145         (probe_stack_range): New insn.
3146
3147 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         PR target/45336
3150         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
3151         short first.
3152
3153         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
3154         char first.
3155
3156 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3157
3158         PR target/45336
3159         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
3160         to cover zero extension into 64-bit register.
3161         (*sse2_pextrw): Likewise.
3162         (*sse4_1_pextrd_zext): New insn.
3163
3164 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
3165
3166         revert r163410, partially revert r163267.
3167         * config/rs6000/darwin.h (LIB_SPEC): Remove.
3168         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
3169         Darwin versions.
3170
3171 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3172
3173         PR middle-end/44974
3174         * builtins.c (expand_builtin): Don't optimize away
3175         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
3176
3177 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
3178
3179         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
3180         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
3181         alternative 1 of operand 2.
3182
3183 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3184             Paolo Bonzini  <bonzini@gnu.org>
3185
3186         * simplify-rtx.c (simplify_unary_operation_1): Optimize
3187         (sign_extend (zero_extend (...)) and
3188         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
3189
3190 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3191
3192         PR rtl-optimization/45353
3193         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
3194         after bb_note is a BARRIER.
3195
3196 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
3197
3198         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
3199         linking libgcc.a.
3200
3201 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
3202             Michael Matz  <matz@suse.de>
3203
3204         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
3205
3206 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
3207
3208         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
3209         (ggc_mark_roots): ...here.
3210
3211 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
3212
3213         * vec.h (FOR_EACH_VEC_ELT): Define.
3214         * c-decl.c: Use it.
3215         * cfgloop.c: Likewise.
3216         * cfgloopmanip.c: Likewise.
3217         * cgraph.c: Likewise.
3218         * cgraphunit.c: Likewise.
3219         * combine.c: Likewise.
3220         * config/bfin/bfin.c: Likewise.
3221         * config/mips/mips.c: Likewise.
3222         * config/rs6000/rs6000.c: Likewise.
3223         * dbxout.c: Likewise.
3224         * df-scan.c: Likewise.
3225         * dominance.c: Likewise.
3226         * dse.c: Likewise.
3227         * dwarf2out.c: Likewise.
3228         * except.c: Likewise.
3229         * expr.c: Likewise.
3230         * function.c: Likewise.
3231         * gcse.c: Likewise.
3232         * genattr.c: Likewise.
3233         * ggc-common.c: Likewise.
3234         * gimplify.c: Likewise.
3235         * graphite-blocking.c: Likewise.
3236         * graphite-clast-to-gimple.c: Likewise.
3237         * graphite-dependences.c: Likewise.
3238         * graphite-interchange.c: Likewise.
3239         * graphite-poly.c: Likewise.
3240         * graphite-scop-detection.c: Likewise.
3241         * graphite-sese-to-poly.c: Likewise.
3242         * graphite.c: Likewise.
3243         * haifa-sched.c: Likewise.
3244         * ifcvt.c: Likewise.
3245         * implicit-zee.c: Likewise.
3246         * ipa-prop.c: Likewise.
3247         * ipa-struct-reorg.c: Likewise.
3248         * ipa.c: Likewise.
3249         * ira-build.c: Likewise.
3250         * ira-color.c: Likewise.
3251         * ira-emit.c: Likewise.
3252         * lambda-code.c: Likewise.
3253         * loop-invariant.c: Likewise.
3254         * loop-unroll.c: Likewise.
3255         * lower-subreg.c: Likewise.
3256         * lto-cgraph.c: Likewise.
3257         * lto-opts.c: Likewise.
3258         * lto-streamer-in.c: Likewise.
3259         * lto-streamer-out.c: Likewise.
3260         * lto-streamer.c: Likewise.
3261         * lto-symtab.c: Likewise.
3262         * matrix-reorg.c: Likewise.
3263         * opts.c: Likewise.
3264         * predict.c: Likewise.
3265         * print-tree.c: Likewise.
3266         * sdbout.c: Likewise.
3267         * sel-sched-dump.c: Likewise.
3268         * sel-sched-ir.c: Likewise.
3269         * sel-sched.c: Likewise.
3270         * sese.c: Likewise.
3271         * stor-layout.c: Likewise.
3272         * tree-cfg.c: Likewise.
3273         * tree-cfgcleanup.c: Likewise.
3274         * tree-chrec.c: Likewise.
3275         * tree-data-ref.c: Likewise.
3276         * tree-emutls.c: Likewise.
3277         * tree-inline.c: Likewise.
3278         * tree-into-ssa.c: Likewise.
3279         * tree-loop-distribution.c: Likewise.
3280         * tree-loop-linear.c: Likewise.
3281         * tree-mudflap.c: Likewise.
3282         * tree-outof-ssa.c: Likewise.
3283         * tree-parloops.c: Likewise.
3284         * tree-predcom.c: Likewise.
3285         * tree-pretty-print.c: Likewise.
3286         * tree-scalar-evolution.c: Likewise.
3287         * tree-ssa-live.c: Likewise.
3288         * tree-ssa-loop-im.c: Likewise.
3289         * tree-ssa-loop-ivcanon.c: Likewise.
3290         * tree-ssa-loop-ivopts.c: Likewise.
3291         * tree-ssa-loop-manip.c: Likewise.
3292         * tree-ssa-loop-niter.c: Likewise.
3293         * tree-ssa-loop-prefetch.c: Likewise.
3294         * tree-ssa-phiprop.c: Likewise.
3295         * tree-ssa-pre.c: Likewise.
3296         * tree-ssa-reassoc.c: Likewise.
3297         * tree-ssa-sccvn.c: Likewise.
3298         * tree-ssa-structalias.c: Likewise.
3299         * tree-ssa.c: Likewise.
3300         * tree-vect-data-refs.c: Likewise.
3301         * tree-vect-loop-manip.c: Likewise.
3302         * tree-vect-loop.c: Likewise.
3303         * tree-vect-patterns.c: Likewise.
3304         * tree-vect-slp.c: Likewise.
3305         * tree-vect-stmts.c: Likewise.
3306         * tree-vrp.c: Likewise.
3307         * tree.c: Likewise.
3308         * value-prof.c: Likewise.
3309         * var-tracking.c: Likewise.
3310         * varasm.c: Likewise.
3311         * vmsdbgout.c: Likewise.
3312
3313 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
3314             Richard Guenther  <richard.guenther@gmail.com>
3315
3316         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
3317         copy the src value and return a copy.
3318         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
3319         (C++ Volatiles): Adjust to describe C++ semantics only.
3320
3321 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
3322
3323         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
3324         be zero or nonzero.
3325         * doc/tm.texi: Regenerate.
3326         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
3327         * df-scan.c (df_get_exit_block_use_set), reginfo.c
3328         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
3329         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
3330         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
3331         to 1.
3332
3333 2010-08-20  Olivier Hainque  <hainque@adacore.com>
3334
3335         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
3336         an extra nop past a sibling call at the very end.
3337
3338 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
3339
3340         PR bootstrap/45350
3341         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
3342         a comment.
3343
3344 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
3345
3346         * target.def (function_arg, function_incoming_arg): Remove const
3347         qualifier on CUMULATIVE_ARGS parameter.
3348         * targhooks.h (default_function_arg, default_function_incoming_arg):
3349         Likewise.
3350         * targhooks.c (default_function_arg, default_function_incoming_arg):
3351         Likewise.
3352         * config/i386/i386.c (ix86_function_arg): Likewise.
3353
3354 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
3355
3356         PR target/45336
3357         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
3358         SIGN_EXTENDs or ZERO_EXTENDs.
3359
3360 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
3361
3362         PR target/42172
3363         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
3364         Take its cost into account if nonnull.
3365         (insn_a_feeds_b): New static function.
3366         (combine_instructions): Look for four-insn combinations.
3367         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
3368         them into account when computing all_adjacent and looking for other
3369         uses.
3370         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
3371         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
3372         (try_combine): New arg I0.  Handle four-insn combinations.
3373         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
3374         like ELIM_I1.
3375
3376 2010-08-19  Jason Merrill  <jason@redhat.com>
3377
3378         PR c++/45307
3379         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
3380         if ctor is empty.
3381         (gimplify_modify_expr_rhs): Adjust.
3382
3383 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
3384
3385         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
3386         bitmap_bit_p.
3387         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
3388         * dominance.c (iterate_fix_dominators): Likewise.
3389         * dse.c (set_usage_bits): Likewise.
3390         (set_position_unneeded, record_store): Likewise.
3391         * gimple-fold.c (get_maxval_strlen): Likewise.
3392         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
3393         * ipa-inline.c (update_caller_keys): Likewise.
3394         * ipa-split.c (verify_non_ssa_vars): Likewise.
3395         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
3396         (close_type_exposed_parameter, close_type_full_escape): Likewise.
3397         (close_addressof_down): Likewise.
3398         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
3399         (setup_allocno_left_conflicts_size): Likewise.
3400         (ira_reassign_conflict_allocnos): Likewise.
3401         (ira_reassign_pseudos): Likewise.
3402         * ira-emit.c (change_loop): Likewise.
3403         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
3404         * lto-streamer-out.c (write_symbol): Likewise.
3405         * predict.c (expr_expected_value_1): Likewise.
3406         * regstat.c (regstat_bb_compute_ri): Likewise.
3407         * sel-sched.c (create_block_for_bookkeeping): Likewise.
3408         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
3409         * stmt.c (expand_case): Likewise.
3410         * tree-eh.c (emit_eh_dispatch): Likewise.
3411         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
3412         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
3413         Likewise.
3414         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
3415         (rdg_build_components): Likewise.
3416         * tree-object-size.c (collect_object_sizes_for): Likewise.
3417         * tree-sra.c (convert_callers): Likewise.
3418         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
3419         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
3420         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
3421
3422 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
3423
3424         * config/i386/i386.md (*lea_1): Use P mode iterator.
3425         (lea add splitter): Also handle DImode operands.
3426         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
3427         predicate.  Do not use ix86_lea_for_add_ok.
3428         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
3429         (lea ashift splitter): Also handle DImode operands.
3430         (DImode lea ashift splitter): Remove splitter.
3431
3432 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
3433
3434         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
3435         ix86_binary_operator_ok.
3436
3437 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
3438
3439         PR rtl-optimization/44691
3440         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
3441         is not a register.
3442
3443 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
3444
3445         PR target/45070
3446         * config/arm/arm.c (arm_output_epilogue): Ensure that return
3447          value of size 1-3 is handled correctly.
3448
3449 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
3450
3451         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
3452         type for the conditional has wide enough range.
3453
3454 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
3455
3456         PR target/45327
3457         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
3458         ix86_binary_operator_ok.
3459
3460 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
3461
3462         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
3463         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
3464         code to output insn mnemonic.  Fix comment.
3465         (*addsi_1_zext): Add r-r-0 alternative 1.
3466         <TYPE_LEA>: Split insn to lea.
3467         <default>: Handle alternative 1.
3468         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
3469         multi-level if_then_else RTX to set "type" attribute.
3470         <default>: Handle alternative 2.
3471         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
3472         Use cond RTX instead of multi-level if_then_else RTX to set
3473         "type" attribute.
3474         <default>: Handle alternatives 2 and 4.
3475         (lea splitters): Update calls to ix86_lea_for_add_ok.
3476
3477         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
3478         argument.
3479         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
3480
3481 2010-08-18  Richard Guenther  <rguenther@suse.de>
3482
3483         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
3484         use operand helpers.
3485
3486 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
3487
3488         PR middle-end/45292
3489         * optabs.c (expand_bool_compare_and_swap): Expand pending
3490         pops before trying the optab.
3491
3492 2010-08-18  Yao Qi  <yao@codesourcery.com>
3493
3494         PR target/45094
3495         * config/arm/arm.c (output_move_double): Fix typo generating
3496         instructions ('ldr'->'str').
3497
3498 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3499
3500         PR rtl-optimization/42575
3501         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
3502         live ranges.
3503
3504 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3505
3506         * config/arm/arm-protos.h (arm_expand_sync): New.
3507         (arm_output_memory_barrier, arm_output_sync_insn): New.
3508         (arm_sync_loop_insns): New.
3509         * config/arm/arm.c (FL_ARCH7): New.
3510         (FL_FOR_ARCH7): Include FL_ARCH7.
3511         (arm_arch7): New.
3512         (arm_print_operand): Support %C markup.
3513         (arm_legitimize_sync_memory): New.
3514         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
3515         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
3516         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
3517         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
3518         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
3519         (arm_process_output_sync_insn, arm_output_sync_insn): New.
3520         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
3521         * config/arm/arm.h (struct arm_sync_generator): New.
3522         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
3523         (TARGET_HAVE_MEMORY_BARRIER): New.
3524         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
3525         * config/arm/arm.md: Include sync.md.
3526         (UNSPEC_MEMORY_BARRIER): New.
3527         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
3528         (VUNSPEC_SYNC_OP):New.
3529         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
3530         (sync_result, sync_memory, sync_required_value): New attributes.
3531         (sync_new_value, sync_t1, sync_t2): Likewise.
3532         (sync_release_barrier, sync_op): Likewise.
3533         (length): Add logic to length attribute defintion to call
3534         arm_sync_loop_insns when appropriate.
3535         * config/arm/sync.md: New file.
3536
3537 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
3538
3539         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
3540         ENABLE_TREE_CHECKING.
3541         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
3542         and GCC >= 4.3.
3543
3544 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
3545
3546         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
3547         or optimizing for size, always avoid lea if possible.
3548
3549         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
3550
3551 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
3552
3553         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
3554         Dunmmy function with NULL return unless the target is
3555         OSX >= 10.6 (Darwin10).
3556
3557 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
3558
3559         * gcc.c (spec_function): Add remove-outfile.
3560         (remove_outfile_spec_function): New function.
3561         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
3562         * invoke.texi (replace-outfile): Document.
3563
3564 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
3565
3566         PR target/45296
3567         * reginfo.c (globalize_reg): Reject stack registers.
3568
3569 2010-08-17  Richard Guenther  <rguenther@suse.de>
3570
3571         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
3572         list of conditional equivalences.
3573         (free_all_edge_infos): Adjust.
3574         (record_equivalences_from_incoming_edge): Likewise.
3575         (record_cond): Likewise.
3576         (build_and_record_new_cond): Likewise.
3577         (record_conditions): Likewise.
3578         (dom_opt_leave_block): Likewise.
3579
3580 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
3581
3582         * doc/invoke.texi (ms-extension): Add documentation.
3583
3584 2010-08-17  Richard Guenther  <rguenther@suse.de>
3585
3586         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
3587
3588 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
3589
3590         PR c/40563
3591         * c-decl.c (diagnose_uninitialized_cst_member): New function.
3592         (finish_decl): Use it to issue a -Wc++-compat warning about
3593         uninitialized const field in struct or union.
3594
3595         (finish_struct): Use strip_array_types.
3596
3597 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
3598
3599         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
3600         functions.
3601         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
3602         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
3603         call block_nreverse here.
3604         (blocks_nreverse): Rename decl temporary to block.
3605
3606 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
3607
3608         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
3609         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
3610         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
3611         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
3612         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
3613         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
3614         thumb2_iorsi3): Delete.
3615         (orsi_notsi_si): No longer a named pattern.
3616         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
3617         * config/arm/predicates.md (shift_amount_operand): New.
3618         (mult_operator): New.
3619         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
3620         attr enabled): New.
3621         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
3622         arch matches t2.
3623         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
3624         (not_shiftsi_compare0): Likewise, renamed from
3625         arm_notsi_shiftsi_compare0.
3626         (not_shiftsi_compare0_scratch): Likweise, renamed from
3627         arm_notsi_shiftsi_compare0_scratch.
3628         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
3629         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
3630         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
3631         so that the register alternative is disabled when the shift_operator
3632         is MULT.  Use "M" as the constraint for constants.
3633         (arith_shiftsi splitter): Enable for TARGET_32BIT.
3634         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
3635         constraint for constants.
3636         (arith_shiftsi_compare0_scratch): Likewise.
3637         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
3638         Handle Thumb2 alternative.
3639
3640 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3641
3642         * doc/options.texi (NoDriverArg): Document.
3643         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
3644         -MDX and -MMDX.
3645         * opt-functions.awk (switch_flags): Handle NoDriverArg.
3646         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
3647         marking for CL_NO_DRIVER_ARG options when in the driver.
3648         * opts.h (CL_NO_DRIVER_ARG): Define.
3649         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3650         CL_COMMON): Update values.
3651
3652 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3653
3654         * common.opt: Add driver options.
3655         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
3656         * doc/options.texi (Driver, RejectDriver): Document.
3657         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
3658         print_prog_name, print_multi_directory, print_sysroot,
3659         print_multi_os_directory, print_multi_lib,
3660         print_sysroot_headers_suffix, report_times, combine_flag,
3661         use_pipes, wrapper_string): Remove.
3662         (save_switch, driver_unknown_option_callback,
3663         driver_wrong_lang_callback, driver_post_handling_callback,
3664         driver_handle_option): New.
3665         (spec_lang, last_language_n_infiles): Make file-scope static
3666         instead of local to process_command.
3667         (process_command): Use decode_cmdline_options_to_array and
3668         read_cmdline_option for option processing.  Compute have_c in
3669         prescan of decoded options.
3670         * opt-functions.awk (switch_flags): Handle Driver and
3671         RejectDriver.
3672         (var_type, var_type_struct): Handle Separate options as generating
3673         const char * variables.
3674         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
3675         CL_TARGET to be passed by caller if required.
3676         (decode_cmdline_options_to_array): Update comment.
3677         * opts.c (complain_wrong_lang): Handle options only valid for the
3678         driver.
3679         (decode_options): Update call to decode_cmdline_options_to_array.
3680         (print_filtered_help): Ignore driver-only options.
3681         (print_specific_help): Ignore CL_DRIVER.
3682         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
3683         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
3684         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
3685         Update values.
3686
3687 2010-08-16  Richard Guenther  <rguenther@suse.de>
3688
3689         * tree-cfg.c (verify_types_in_gimple_reference): Verify
3690         TARGET_MEM_REF a bit.
3691         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
3692         (create_mem_ref_raw): Always create TMR_OFFSET, store the
3693         alias pointer type via it.
3694         (copy_mem_ref_info): Adjust.
3695         (maybe_fold_tmr): Likewise.
3696         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
3697         (reference_alias_ptr_type): Likewise.
3698         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
3699         adjust documentation of TMR_OFFSET operand.
3700         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
3701         use the alias pointer type.
3702         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
3703         initialize mem attrs but the TMR itself.
3704         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
3705         similar to MEM_REF.
3706         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
3707         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
3708         (unshare_and_remove_ssa_names): Likewise.
3709         (copy_ref_info): Adjust.
3710         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
3711         TARGET_MEM_REF case.
3712         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
3713         at TMR_ORIGINAL.
3714         * tree.h (TMR_ORIGINAL): Remove.
3715         * gimple.c (get_base_address): For TARGET_MEM_REF with a
3716         symbol return that.
3717         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
3718         with a symbol.
3719         (get_addr_base_and_unit_offset): Likewise.
3720         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
3721         TARGET_MEM_REFs.
3722         (indirect_ref_may_alias_decl_p): Likewise.
3723         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
3724
3725 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
3726
3727         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
3728         with GCC version 4.6, the default setting (when not optimizing
3729         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
3730         been changed to -fomit-frame-pointer.
3731
3732 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
3733
3734         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
3735         Darwin10.  Do not link libgcc.a for Darwin >= 9.
3736
3737 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
3738
3739         * doc/invoke.texi (Warning Options): Fix terminology and markup
3740         in the description of how unknown warning options are handled.
3741
3742 2010-08-15  Ira Rosen  <irar@il.ibm.com>
3743
3744         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
3745         in basic blocks.
3746         (vect_supportable_dr_alignment): Check alignment for basic blocks.
3747         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
3748         data references.
3749         (vect_bb_vectorization_profitable_p): New function.
3750         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
3751         check if it's worthwhile to vectorize the basic block.
3752
3753 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
3754
3755         * reload.h (register_move_cost, memory_move_secondary_cost,
3756         secondary_reload_class): Adjust prototype.
3757         * rtl.h (reg_class_subset_p): Adjust prototype.
3758         * reload.c (secondary_reload_class): Change arguments type from
3759         enum reg_class to reg_class_t. Change result type to reg_class_t.
3760         * reginfo.c (register_move_cost, reg_class_subset_p): Change
3761         arguments type from enum reg_class to reg_class_t.
3762         (memory_move_secondary_cost): Change arguments type from
3763         enum reg_class to reg_class_t. Change type of saved_flags to
3764         reg_class_t.
3765
3766         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3767         Remove macros.
3768         (mips_cost): Remove.
3769         (struct mips_rtx_cost_data): Moved to mips.c.
3770         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
3771         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
3772         (mips_cost): Make static.
3773         (mips_canonicalize_move_class): Change argument type to reg_class_t.
3774         Change result type to reg_class_t.
3775         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
3776         type from enum reg_class to reg_class_t.
3777         (mips_register_move_cost): Make static. Change arguments
3778         type from enum reg_class to reg_class_t.
3779         (mips_memory_move_cost): New function.
3780         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3781
3782 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
3783
3784         PR rtl-optimization/43358
3785         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
3786         of a single hard register, using simplify_subreg_regno to decide
3787         what that register should be.
3788
3789 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
3790
3791         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
3792         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
3793         (loongson_pmull<V_suffix>): Rename to...
3794         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
3795
3796 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
3797
3798         * configure.ac: Enable -fomit-frame-pointer on darwin
3799         which support dwarf2.
3800         * config/i386/i386.c (override_options): Same.
3801
3802 2010-08-13  Jie Zhang  <jie@codesourcery.com>
3803
3804         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
3805
3806 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
3807
3808         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
3809         -MMD.
3810
3811 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
3812
3813         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
3814         up dot_prod pattern searching if a stmt is outside the loop.
3815
3816 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
3817             Uros Bizjak  <ubizjak@gmail.com>
3818
3819         * config.gcc: Handle --enable-frame-pointer.
3820
3821         * configure.ac: Add --enable-frame-pointer.
3822         * configure: Regenerated.
3823
3824         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
3825         (override_options): If not configured with --enable-frame-pointer,
3826         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
3827         optimizing for size), -fasynchronous-unwind-tables and
3828         -maccumulate-outgoing-args by default.
3829
3830 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
3831
3832         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
3833
3834         PR middle-end/45262
3835         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
3836         -a overflows.  Normalize the range.
3837
3838 2010-08-12  Richard Guenther  <rguenther@suse.de>
3839
3840         PR tree-optimization/45232
3841         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
3842         for types with undefined overflow.
3843         (reassociate_bb): Allow re-associating of bit and min/max
3844         operations for types with undefined overflow.
3845         * tree-ssa-forwprop.c (associate_plusminus): New function.
3846         (tree_ssa_forward_propagate_single_use_vars): Call it.
3847
3848 2010-08-12  Richard Guenther  <rguenther@suse.de>
3849
3850         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
3851         * tree-ssa-alias.c (get_ptr_info): Move ...
3852         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
3853         align and misalign fields conservatively.
3854         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
3855         derive alignment information.
3856         (evaluate_stmt): Derive alignment information from memory
3857         allocation functions.
3858         * tree.h (get_pointer_alignment): Make unsigned.
3859         * builtins.c (get_object_alignment): Use alignment information we
3860         have computed for pointers.
3861         (get_pointer_alignment): Likewise.  Make conservative, return
3862         and unsigned value.
3863         (expand_builtin_strlen): Adjust.
3864         (expand_builtin_memcmp): Likewise.
3865         (expand_builtin_strcmp): Likewise.
3866         (expand_builtin_strncmp): Likewise.
3867         (get_builtin_sync_mem): Use at least mode alignment.
3868         (fold_builtin_memset): Adjust.
3869         (fold_builtin_memory_op): Likewise.
3870         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
3871         information also dump pointer alignment knowledge.
3872         (dump_gimple_stmt): Likewise.
3873
3874 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
3875
3876         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
3877         (EMPTY_FIELD_BOUNDARY): Remove.
3878         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
3879
3880 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
3881
3882         PR debug/45259
3883         * caller-save.c (save_call_clobbered_regs): Only swap notes with
3884         DEBUG_INSNs if n_regs_saved.
3885
3886 2010-08-12  Wei Guozhi  <carrot@google.com>
3887
3888         PR target/44999
3889         * config/arm/arm.md (andsi3): Change to zero extension if possible.
3890         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
3891
3892 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
3893
3894         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
3895
3896         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
3897
3898 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3899
3900         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
3901         the case removed in the previous patch, when the only phi argument
3902         is defined in the same loop as the phi node itself.  Handle it
3903         separately from the invariant case by both propagating it outside
3904         the region and replacing the phi node with an assign.
3905
3906 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3907
3908         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
3909         constant phi nodes with one argument are is_gimple_min_invariant
3910         and SSA_NAME_IS_DEFAULT_DEF.
3911
3912 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3913
3914         * graphite-cloog-util.c (oppose_constraint):
3915         Extend loop counter's value range (CLOOG_ORG).
3916         (cloog_matrix_to_ppl_constraint): Same.
3917         (new_Constraint_System_from_Cloog_matrix): Same.
3918         * graphite-cloog-compat.h (matrix_num_type): New.
3919
3920 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3921
3922         * graphite.c (graphite_initialize): Do not initialize
3923         CLooG and initialize the Parma Polyhedra Library
3924         manually when using CLOOG_ORG.
3925         (graphite_finalize): Do not finalize CLooG and finalize
3926         the Parma Polyhedra Library manually when using CLOOG_ORG.
3927         * graphite-cloog-compat.h (cloog_initialize): Hide function
3928         when using CLOOG_ORG.
3929         (cloog_finalize): Same.
3930
3931 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3932
3933         * graphite-clast-to-gimple.c (free_scattering): Change
3934         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
3935         (CLOOG_ORG).
3936         (build_cloog_prog): Same.
3937         * graphite-cloog-compat.h (cloog_domain): Removed.
3938         (cloog_scattering): New.
3939         (cloog_set_domain): Removed.
3940         (cloog_set_scattering): New.
3941         (cloog_next_domain): Removed.
3942         (cloog_next_scattering): New.
3943         (cloog_set_next_domain): Removed.
3944         (cloog_set_next_scattering): New.
3945         (CloogScatteringList): New.
3946         (CloogScattering): New.
3947         (cloog_scattering_free): New.
3948         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
3949         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
3950         New.
3951
3952 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3953
3954         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
3955         CloogState.
3956         (set_cloog_options): Same.
3957         (print_clast_stmt): Same.
3958         (scop_to_clast): Same.
3959         (print_generated_program): Same.
3960         (gloog): Same.
3961         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
3962         (scop_to_clast): Extend with CloogState.
3963         * graphite-cloog-util.c: Include graphite-cloog-compat.h
3964         (new_Cloog_Domain_from_ppl_Polyhedron):
3965         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
3966         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
3967         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3968         * graphite-cloog-util.h (build_cloog_prog): Same.
3969         * graphite-cloog-copat.h (build_cloog_prog): New.
3970         (CloogState): New.
3971         (cloog_state_malloc): New.
3972         (cloog_state_free): New.
3973         (cloog_loop_malloc): New.
3974         (cloog_options_malloc): New.
3975         (cloog_statement_alloc): New.
3976         (cloog_domain_from_cloog_matrix): New.
3977         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3978         (new_Cloog_Domain_from_ppl_Polyhedron): New.
3979
3980 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3981
3982         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
3983         type of NAME now depends on used CLooG version.
3984         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
3985         (gcc_type_for_clast_expr): Same.
3986         (print_clast_stmt): Replace pprint with clast_pprint.
3987         * graphite-cloog-compat.h: Provide compatibility macros for
3988         CLooG Legacy.
3989         (clast_name_p): New.
3990         (clast_expr_term): New.
3991         (clast_expr_red): New.
3992         (clast_expr_bin): New.
3993         (clast_pprint): New.
3994
3995 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3996
3997         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
3998         compatible to newer CLooG releases (CLOOG_ORG).
3999         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
4000         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
4001         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
4002         (build_cloog_prog) : New.
4003         (cloog_program_extract_scalars): New.
4004         (cloog_program_scatter): New.
4005
4006 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4007
4008         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
4009         conditionally (CLOOG_ORG).
4010         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
4011         (cloog_statement_usr): New.
4012         (cloog_domain): Same.
4013         (cloog_set_domain): Same.
4014         (cloog_next_domain): Same.
4015         (cloog_set_next_domain): Same.
4016         (cloog_program_nb_scattdims): Same.
4017         (cloog_program_set_nb_scattdims): Same.
4018         (cloog_program_names): Same.
4019         (cloog_program_set_names): Same.
4020         (cloog_program_set_context): Same.
4021         (cloog_program_set_loop): Same.
4022         (cloog_program_blocklist): Same.
4023         (cloog_program_set_blocklist): Same.
4024         (cloog_program_scaldims): Same.
4025         (cloog_program_set_scaldims): Same.
4026         (cloog_names_nb_parameters): Same.
4027         (cloog_names_set_nb_parameters): Same.
4028         (cloog_names_parameters): Same.
4029         (cloog_names_set_parameters): Same.
4030         (cloog_names_set_nb_iterators): Same.
4031         (cloog_names_set_iterators): Same.
4032         (cloog_names_set_nb_scattering): Same.
4033         (cloog_names_set_scattering): Same.
4034         (cloog_statement_set_usr): Same.
4035         (cloog_loop_set_next): Same.
4036         (cloog_loop_set_domain): Same.
4037         (cloog_loop_set_block): Same.
4038         (cloog_block_list_next): Same.
4039         (cloog_block_list_set_next):
4040         (cloog_block_list_set_block): Same.
4041
4042 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4043
4044         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
4045         a bool.
4046         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
4047         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
4048         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
4049         when something has been changed.
4050         (rewrite_commutative_reductions_out_of_ssa): Same.
4051
4052 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4053
4054         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
4055         handle the case when def is in the sese region.
4056         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
4057         for invariant expressions.
4058         (rewrite_cross_bb_phi_deps): Removed.
4059         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
4060         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
4061         rewrite_cross_bb_phi_deps.
4062
4063 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4064
4065         * graphite-sese-to-poly.c
4066         (rewrite_commutative_reductions_out_of_ssa_loop): Call
4067         scev_analyzable_p only on is_gimple_reg
4068
4069 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4070
4071         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
4072         (rewrite_close_phi_out_of_ssa): Propagate constant values or
4073         parametric expressions outside the scop region.
4074         (rewrite_cross_bb_scalar_deps): Same.
4075         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
4076
4077 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4078
4079         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
4080         SSA_NAME_DEF_STMT only on SSA_NAMEs.
4081
4082 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4083
4084         * tree-scalar-evolution.c (instantiate_scev_name): Do not
4085         instantiate default definitions.
4086
4087 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
4088             Sebastian Pop  <sebastian.pop@amd.com>
4089
4090         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
4091         (loop_exits_from_bb_p): New.
4092         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
4093         (loop_exits_from_bb_p): Declared.
4094         * graphite-scop-detection.c (scopdet_basic_block_info): Call
4095         loop_exits_to_bb_p.
4096
4097 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4098
4099         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
4100         extra parameter for the region.  Call scev_analyzable_p.
4101         (rewrite_reductions_out_of_ssa): Update call to
4102         rewrite_close_phi_out_of_ssa.
4103         (rewrite_cross_bb_phi_deps): Same.
4104         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
4105         parameter for the region.  Call scev_analyzable_p.
4106         (rewrite_commutative_reductions_out_of_ssa): Update call to
4107         rewrite_commutative_reductions_out_of_ssa_loop.
4108
4109 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4110
4111         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
4112
4113 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4114
4115         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
4116         SSA scalar phi nodes that can be scev_analyzable_p.
4117
4118 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4119
4120         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
4121         handle SSA_NAME_IS_DEFAULT_DEF.
4122
4123 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4124
4125         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
4126
4127 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4128
4129         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
4130         case non close-phi nodes with one argument.
4131
4132 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4133
4134         * sese.h (scev_analyzable_p): Scevs could be expressions without
4135         chrecs and still be scev_analyzable_p.
4136
4137 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4138
4139         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4140
4141 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4142
4143         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
4144         * cfgloop.h (struct loop): Remove single_iv field.
4145         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
4146         (scop_canonicalize_loops): Removed.
4147         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
4148         over all the loop phi nodes in loop->header.
4149         (build_poly_scop): Remove use of scop_canonicalize_loops.
4150
4151 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4152
4153         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
4154         handle GIMPLE_CALL.
4155
4156 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4157
4158         * tree-chrec.c (chrec_apply): Should only apply to the specified
4159         variable.  Also handle multivariate chains of recurrences that
4160         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
4161
4162 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4163
4164         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
4165         (debug_clast_name_indexes_1): Removed.
4166         (debug_clast_name_indexes): Removed.
4167         (pbb_to_depth_to_oldiv): Removed.
4168         (build_iv_mapping): Replace the use of rename_map with iv_map.
4169         (translate_clast_user): Remove uses of rename_map.  Allocate and
4170         free iv_map.
4171         (translate_clast_for_loop): Remove uses of rename_map.
4172         (translate_clast_for): Same.
4173         (translate_clast_guard): Same.
4174         (translate_clast): Same.
4175         (gloog): Same.
4176         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
4177         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
4178         * sese.c (set_rename): Now static.
4179         (rename_variables_in_stmt): Removed.
4180         (rename_uses): New.
4181         (is_parameter): Removed.
4182         (is_iv): Removed.
4183         (expand_scalar_variables_call): Removed.
4184         (expand_scalar_variables_ssa_name): Removed.
4185         (expand_scalar_variables_expr): Removed.
4186         (expand_scalar_variables_stmt): Removed.
4187         (expand_scalar_variables): Removed.
4188         (rename_variables): Removed.
4189         (remove_condition): Removed.
4190         (get_true_edge_from_guard_bb): Removed.
4191         (get_false_edge_from_guard_bb): Removed.
4192         (struct igp): Removed.
4193         (default_before_guard): Removed.
4194         (convert_for_phi_arg): Removed.
4195         (add_guard_exit_phis): Removed.
4196         (insert_guard_phis): Removed.
4197         (graphite_copy_stmts_from_block): Now also uses iv_map and a
4198         region.  Do not copy conditions.  Do not copy induction variables.
4199         Call rename_uses.
4200         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
4201         the translated statement.  Use the iv_map for the induction
4202         variable renaming.
4203         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4204         (set_rename): Removed declaration.
4205         (scev_analyzable_p): ...here.
4206         * tree-chrec.c (chrec_apply_map): New.
4207         * tree-chrec.h (chrec_apply_map): Declared.
4208
4209 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4210
4211         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
4212         insert_loop_close_phis.
4213         * sese.c (name_defined_in_loop_p): Removed.
4214         (expr_defined_in_loop_p): Removed.
4215         (alive_after_loop): Removed.
4216         (close_phi_not_yet_inserted_p): Removed.
4217         (struct alep): Removed.
4218         (add_loop_exit_phis): Removed.
4219         (insert_loop_close_phis): Removed.
4220
4221 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4222
4223         * graphite-cloog-util.c
4224         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
4225         * graphite-poly.c
4226         (psct_scattering_dim_for_loop_depth): Same.
4227
4228 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4229
4230         * graphite-cloog-util.h: Added cloog.h.
4231         * graphite-blocking.c: Removed cloog.h.
4232         * graphite-dependences.c: Same.
4233         * graphite-interchange.c: Same.
4234         * graphite-poly.c: Same.
4235         * graphite-ppl.c: Same.
4236         * graphite-scop-detection.c: Same.
4237         * graphite-sese-to-poly.c:
4238         Removed cloog.h.
4239         Removed graphite-clast-to-gimple.h.
4240         (check_poly_representation): Removed (unused).
4241         * graphite-sese-to-poly.h
4242         (check_poly_representation): Removed (unused).
4243
4244 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4245
4246         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
4247         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
4248         (graphite-cloog-util.o): New.
4249         (graphite-ppl.o): Added graphite-cloog-util.h.
4250         * graphite-clast-to-gimple.c:
4251         Added graphite-cloog-util.h to include statements.
4252         * graphite-cloog-util.c: New.
4253         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
4254         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4255         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4256         (new_C_Polyhedron_from_Cloog_Matrix): Same.
4257         (insert_constraint_into_matrix): Same.
4258         (ppl_Constrain_System_number_of_constraints): Same.
4259         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
4260         (oppose_constraint): Same.
4261         (cloog_matrix_to_ppl_constraint): Same.
4262         (new_Constraint_System_from_Cloog_Matrix): Same.
4263         * graphite-cloog-util.h: New.
4264         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
4265         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4266         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4267         (new_C_Polyhedron_from_Cloog_Matrix): Same.
4268         (insert_constraint_into_matrix): Same.
4269         * graphite-ppl.c:
4270         Added graphite-cloog-util.h to include statements.
4271         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
4272         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4273         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4274         (new_C_Polyhedron_from_Cloog_Matrix): Same.
4275         (insert_constraint_into_matrix): Same.
4276         (ppl_Constrain_System_number_of_constraints): Same.
4277         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
4278         (oppose_constraint): Same.
4279         (cloog_matrix_to_ppl_constraint): Same.
4280         (new_Constraint_System_from_Cloog_Matrix): Same.
4281         * graphite-ppl.h:
4282         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
4283         graphite-cloog-util.h.
4284         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4285         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4286         (new_C_Polyhedron_from_Cloog_Matrix): Same.
4287         (insert_constraint_into_matrix): Same.
4288
4289 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4290
4291         * graphite-clast-to-gimple.c
4292         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
4293         (precision_for_interval): Same.
4294         (gcc_type_for_interval): Same.
4295         (compute_type_for_level): Same.
4296         * graphite-interchange.c
4297         (lst_interchange_profitable_p): Same.
4298         * graphite-poly.c
4299         (psct_scattering_dim_for_loop_depth): Same.
4300         * graphite-ppl.c
4301         (ppl_max_for_le_pointset): Same.
4302         (ppl_min_for_le_pointset): Same.
4303
4304 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4305
4306         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
4307         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
4308
4309 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4310
4311         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
4312         rewrite_close_phi_out_of_ssa.
4313
4314 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4315
4316         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
4317
4318 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4319
4320         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
4321         rename_map.
4322         * sese.c (debug_rename_map): Same.
4323         (get_rename): Same.
4324         (set_rename): Same.
4325         (rename_variables_in_stmt): Same.
4326         (expand_scalar_variables_call): Same.
4327         (expand_scalar_variables_ssa_name): Same.
4328         (expand_scalar_variables_expr): Same.
4329         (expand_scalar_variables_stmt): Same.
4330         (expand_scalar_variables): Same.
4331         (rename_variables): Same.
4332         (graphite_copy_stmts_from_block): Same.
4333         (copy_bb_and_scalar_dependences): Same.
4334
4335 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4336
4337         * graphite-clast-to-gimple.c (copy_renames): Removed.
4338         (translate_clast_for): Do not call copy_renames.
4339         (translate_clast_guard): Same.
4340
4341 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4342
4343         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
4344         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
4345         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
4346         before rewrite_cross_bb_scalar_deps.
4347
4348 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4349
4350         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
4351         Early return in when flag_associative_math is not set.
4352
4353 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4354
4355         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
4356         of SSA copies on edges except for loop->latch.
4357
4358 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4359
4360         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
4361         Split out of rewrite_reductions_out_of_ssa.
4362         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
4363         Declared.
4364         * graphite.c (graphite_transform_loops): Call it.
4365
4366 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4367
4368         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
4369
4370 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
4371
4372         * dbgcnt.def (graphite_scop): New counter.
4373         * graphite.c: Include dbgcnt.h.
4374         (graphite_transform_loops): Use new counter to limit transformations.
4375         * Makefile.in (graphite.o): Depend on DBGCNT_H.
4376
4377 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4378
4379         * passes.c (init_optimization_passes): Add pass_graphite.
4380         Schedule a pass_copy_prop before pass_graphite_transforms.
4381         * timevar.def (TV_GRAPHITE): Declared.
4382         * tree-pass.h (pass_graphite): Declared.
4383         * tree-ssa-loop.c (pass_graphite): New.
4384
4385 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4386
4387         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
4388         Remove calls to rename_nb_iterations and rename_sese_parameters.
4389         * graphite-clast-to-gimple.h (gloog): Update declaration.
4390         * graphite.c (graphite_transform_loops): Update call to gloog.
4391         * sese.c (rename_variables_in_expr): Removed.
4392         (rename_nb_iterations): Removed.
4393         (rename_sese_parameters): Removed.
4394         * sese.h (rename_nb_iterations): Removed.
4395         (rename_sese_parameters): Removed.
4396
4397 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4398
4399         * graphite-clast-to-gimple.c (gloog): Remove call to
4400         sese_adjust_liveout_phis.
4401         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
4402         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
4403         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
4404         rewrite_phi_out_of_ssa.
4405         * sese.c (get_vdef_before_sese): Removed.
4406         (sese_adjust_vphi): Removed.
4407         (sese_adjust_liveout_phis): Removed.
4408         * sese.h (sese_adjust_liveout_phis): Removed.
4409
4410 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4411
4412         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
4413         argument for the place after which to insert the out of SSA copy.
4414         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
4415         (rewrite_phi_out_of_ssa): Same.
4416         (rewrite_cross_bb_scalar_deps): Same.
4417         (insert_copyout): Removed.
4418         (insert_copyin): Removed.
4419         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
4420         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
4421         insert_copyin.
4422
4423 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4424
4425         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
4426         (rewrite_reductions_out_of_ssa): Same.
4427         (rewrite_commutative_reductions_out_of_ssa): Same.
4428         (build_poly_scop): Do not call these functions.
4429         * graphite-sese-to-poly.h (build_poly_scop): Declared.
4430         (rewrite_reductions_out_of_ssa): Declared.
4431         (rewrite_commutative_reductions_out_of_ssa): Declared.
4432         * graphite.c (graphite_transform_loops): Call on every scop
4433         rewrite_commutative_reductions_out_of_ssa before calling
4434         rewrite_reductions_out_of_ssa and build_scop_bbs.
4435
4436 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4437
4438         * graphite-dependences.c (dot_deps): Make system call to dotty run
4439         in background.
4440         (dot_deps_stmt): Same.
4441         * graphite-poly.c (dot_lst): Same.
4442
4443 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4444
4445         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
4446         phi_arg_in_outermost_loop.
4447         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
4448         (remove_invariant_phi): Same.
4449
4450 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
4451
4452         * target.def (output_addr_const_extra): New hook.
4453         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
4454         * doc/tm.texi: Regenerate.
4455         * targhooks.c (default_asm_output_addr_const_extra): New function.
4456         * targhooks.h (default_asm_output_addr_const_extra): Declare.
4457         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
4458         target hook.
4459
4460         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4461         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
4462         * config/i386/i386.h (output_addr_const_extra): Rename to...
4463         (i386_asm_output_addr_const_extra): ...this. Make static.
4464         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4465
4466 2010-08-11  Richard Henderson  <rth@redhat.com>
4467
4468         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
4469
4470 2010-08-11  Nick Clifton  <nickc@redhat.com>
4471
4472         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
4473         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
4474         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4475         stormy16-lib2-cmpsi.c.
4476
4477         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
4478         -O2.
4479
4480 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4481
4482         * opts.h (struct cl_option_handler_func): Make handler take
4483         cl_decoded_option structure as parameter, not individual elements.
4484         (struct cl_option_handlers): Make callbacks take cl_decoded_option
4485         structure as parameter, not individual elements.
4486         (handle_option): Take cl_decoded_option structure as parameter,
4487         not individual elements.
4488         (handle_generated_option): Declare.
4489         * opts-common.c (handle_option): Take cl_decoded_option structure
4490         as parameter, not individual elements.  Update calls to callback
4491         and handler functions.
4492         (handle_generated_option): New.
4493         (read_cmdline_option): Update calls to callback functions and
4494         handle_option.
4495         * opts.c (common_handle_option, complain_wrong_lang,
4496         unknown_option_callback, post_handling_callback,
4497         lang_handle_option, target_handle_option): Take cl_decoded_option
4498         structure as parameter, not individual elements.
4499         (lang_handle_option, target_handle_option, common_handle_option):
4500         Assert option has at most one argument.
4501         (enable_warning_as_error): Call handle_generated_option instead of
4502         handle_option.  Do not pass -Werror argument as argument of
4503         generated option.
4504
4505 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4506
4507         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
4508         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
4509         (SUBWORD_BOOL_CAS): Likewise.
4510         (SUBWORD_SYNC_OP): Likewise.
4511         (SUBWORD_TEST_AND_SET): Likewise.
4512         (FETCH_AND_OP_WORD): Parenthesise INF_OP
4513         (SUBWORD_SYNC_OP): Likewise.
4514         (OP_AND_FETCH_WORD): Likewise.
4515
4516 2010-08-10  Xinliang David Li  <davidxl@google.com>
4517
4518         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
4519         compute max/min offset in address.
4520
4521 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
4522
4523         * ira-live.c: Include sbitmap.h.
4524         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
4525         Compress live ranges even more.
4526
4527 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4528
4529         * coverage.c (ctr_labels): Delete.
4530
4531 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
4532
4533         PR bootstrap/45177
4534         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
4535         test here from arm_gen_load_multiple_1.
4536         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
4537         multiple_operation_profitable_p.
4538
4539 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4540
4541         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
4542         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
4543
4544 2010-08-10  Richard Henderson  <rth@redhat.com>
4545
4546         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
4547         after saving registers.  Assert that SSE registers are only saved
4548         with a sufficiently aligned frame.
4549         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
4550         remove stack_realign_fp handling.
4551         (ix86_expand_prologue): Save int registers before stack_realign_fp,
4552         and do not mark the stack alignment as frame related.
4553         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
4554
4555         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
4556         saves when re-aligning the stack.
4557
4558 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4559
4560         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
4561         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
4562         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
4563
4564 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4565
4566         * dwarf2out.c (struct die_struct): Move die_tag to the end.
4567
4568 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
4569
4570         * config/arm/iterators.md: New file.
4571         * config/arm/arm.md: Include iterators.md.
4572         (QHSI): Move to new file.
4573         (LTUGEU, cnb, optab, ior_xor): Likewise.
4574         * config/arm/iwmmxt.md (VMMX): Move to new file.
4575         (VSHFT, MMX_char): Likewise.
4576         * config/arm/neon.md (VD): Move to new file.
4577         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
4578         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
4579         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
4580         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
4581         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
4582         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
4583         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
4584         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
4585         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
4586         (Is_d_reg, V_mode_nunits): Likewise.
4587         * config/arm/vec-common.md (VALL): Move to new file.
4588         (VALLW, VINT, VINTW): Likewise.
4589
4590 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
4591
4592         PR middle-end/45182
4593         * combine.c (make_compound_operation): Don't try to convert
4594         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
4595
4596 2010-08-10  Richard Guenther  <rguenther@suse.de>
4597
4598         * tree.h (get_object_alignment): Adjust prototype.
4599         * builtins.c (get_object_alignment): Return unsigned int,
4600         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
4601         and TARGET_MEM_REF properly.
4602         (get_pointer_alignment): Adjust.
4603         * emit-rtl.c (get_mem_align_offset): Adjust comment.
4604         (set_mem_attributes_minus_bitpos): Adjust.
4605         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
4606
4607 2010-08-10  Richard Guenther  <rguenther@suse.de>
4608
4609         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
4610         (copy_prop_visit_assignment): Simplify.
4611         (copy_prop_visit_stmt): Also visit assignments from
4612         constants.
4613         (copy_prop_visit_phi_node): Use operand_equal_p.
4614
4615 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4616
4617         * ipa-split.c (find_split_points): Free stack.
4618
4619 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4620
4621         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
4622         * tree.c (tree_node_kind): Delete corresponding entries.
4623
4624 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4625
4626         * alias.c (may_alias_p): Remove unused ret.
4627
4628 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
4629
4630         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
4631         alias_sets_conflict_p.
4632         (walk_mems_1): Moved from alias.c.
4633         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
4634         in alias.c.
4635         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
4636         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
4637         * alias.c (walk_mems_2): Moved to ddg.c.
4638         (walk_mems_1): Ditto.
4639         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
4640         to ddg.c.
4641         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
4642         disambiguation.
4643         *(may_alias_p): New function to check whether two memory expression
4644         may alias or not. Currently used in buidling inter-iteration memory
4645         dependence.
4646         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
4647         (insn_alias_sets_conflict_p): Removed
4648         *rtl.h (may_alias_p): New function prototype.
4649
4650 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4651
4652         * tree.c (nreverse): Assert that we don't have a BLOCK.
4653
4654 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4655
4656         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
4657         * config/arm/arm.c (arm_get_pcs_model): Likewise.
4658         * config/avr/avr.c (init_cumulative_args): Likewise.
4659         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4660         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4661         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
4662         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
4663         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4664         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4665         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
4666         * dwarf2out.c (gen_subprogram_die): Likewise.
4667         * function.c (allocate_struct_function): Likewise.
4668         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
4669         (deserves_ellipsis): Delete.
4670
4671 2010-08-09  Richard Guenther  <rguenther@suse.de>
4672
4673         * tree-ssa-copy.c (cached_last_copy_of): Remove.
4674         (valueize_val): New function.
4675         (get_last_copy_of): Remove.
4676         (set_copy_of_val): Simplify.
4677         (dump_copy_of): Likewise.
4678         (copy_prop_visit_cond_stmt): Use valueize_val.
4679         (copy_prop_visit_phi_node): Properly handle unvisited names.
4680         Drop code managing copy-of chains.
4681         (init_copy_prop): Adjust.
4682         (fini_copy_prop): Likewise.
4683         (execute_copy_prop): Remove obsolete comment.
4684
4685 2010-08-09  Richard Guenther  <rguenther@suse.de>
4686
4687         PR middle-end/44632
4688         * function.c (gimplify_parameters): Do not clear addressable
4689         bit of the original parameter.
4690
4691 2010-08-09  Richard Guenther  <rguenther@suse.de>
4692
4693         PR middle-end/45212
4694         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
4695         alignment from MEM_REF offset only if we took it from the
4696         base object.
4697
4698 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
4699
4700         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
4701
4702 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4703
4704         * c-tree.h (build_arg_info): Declare.
4705         * c-decl.c (build_arg_info): Define.
4706         (get_parm_info): Call it.  Delete initialization code.
4707         * c-parser.c (c_parser_parms_declarator): Likewise.
4708         (c_parser_parms_list_declaractor): Likewise.
4709
4710 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4711
4712         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
4713         (struct c_arg_info): Change type of tags field.
4714         * c-decl.c (grokdeclarator): Update for changed type of tags field.
4715         (get_parm_info): Likewise.
4716         (store_parm_decls_newstyle): Likewise.
4717
4718 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4719
4720         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
4721         (branch_island_list): Delete.
4722         (branch_islands): Declare.
4723         (add_compiler_branch_island): Adjust for branch_islands instead of
4724         branch_island_list.
4725         (macho_branch_islands): Likewise.
4726         (no_previous_def): Likewise.
4727         (get_prev_label): Likewise.
4728
4729 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4730
4731         PR boehm-gc/34544
4732         * gthr-posix.h (__gthread_start): Delete.
4733         (__gthread_active_init): Use pthread_default_stacksize_np instead of
4734         pthread_create to determine if hpux pthreads are active.
4735         * gthr-posix95.h (__gthread_start): Delete.
4736         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
4737
4738 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
4739
4740         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
4741         _WIN64 not expanded.
4742
4743 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
4744             H.J. Lu  <hongjiu.lu@intel.com>
4745
4746         PR target/45213
4747         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
4748         to output 32bit SFmode immediate as 8 byte sign extended value.
4749
4750 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4751
4752         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
4753         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
4754         (SUBWORD_BOOL_CAS): Likewise.
4755         (SUBWORD_SYNC_OP): Likewise.
4756         (SUBWORD_TEST_AND_SET): Likewise.
4757         (FETCH_AND_OP_WORD): Parenthesise INF_OP
4758         (SUBWORD_SYNC_OP): Likewise.
4759         (OP_AND_FETCH_WORD): Likewise.
4760
4761 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4762
4763         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
4764         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
4765         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
4766         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
4767         generic part.
4768         (cortex_a9_sched_adjust_cost): New function.
4769         (xscale_sched_adjust_cost): New function.
4770         * config/arm/arm-protos.h (struct tune_params): New field
4771         sched_adjust_cost.
4772         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
4773
4774 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
4775
4776         PR target/44942
4777         * config/sparc/sparc.c (function_arg_advance): Always take into account
4778         the padding, if any.
4779
4780 2010-08-06  Richard Guenther  <rguenther@suse.de>
4781
4782         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
4783         (dump_lattice_value): Dump it.
4784         (get_default_value): Adjust.
4785         (get_constant_value): Likewise.
4786         (set_value_varying): Likewise.
4787         (set_lattice_value): Make sure to not go up the lattice
4788         with bitwise constant values.
4789         (get_value_for_expr): Handle ADDR_EXPRs.
4790         (value_to_double_int): New function.
4791         (get_value_from_alignment): Likewise.
4792         (do_dbg_cnt): Adjust.
4793         (ccp_lattice_meet): Handle partially constant values.
4794         (bit_value_unop_1): New function.
4795         (bit_value_binop_1): Likewise.
4796         (bit_value_unop): Likewise.
4797         (bit_value_binop): Likewise.
4798         (evaluate_stmt): Track partially constant values if
4799         flag_tree_bit_ccp is set.
4800         (ccp_fold_stmt): Dump if we folded a predicate.
4801         (ccp_visit_stmt): Adjust.
4802         * common.opt (ftree-bit-ccp): New flag.
4803         * doc/invoke.texi (ftree-bit-ccp): Document.
4804         * opts.c (decode_options): Enable bit-CCP at -O1.
4805
4806 2010-08-06  Alan Modra  <amodra@gmail.com>
4807
4808         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
4809         and -mrelocatable-lib description.
4810
4811 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
4812
4813         From Martin Thuresson  <martint@google.com>
4814         * postreload.c (reload_cse_simplify_operands): Use
4815         SET_REGNO_RAW instead of SET_REGNO.
4816         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
4817         SET_REGNO.
4818         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
4819         instead of SET_REGNO.
4820         * rtl.h (SET_REGNO_RAW): New macro.
4821
4822 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
4823
4824         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
4825         computations.  Fix formatting issues.
4826         (num_sign_bit_copies1): Likewise.
4827         (canonicalize_condition): Likewise.
4828
4829 2010-08-05  Richard Henderson  <rth@redhat.com>
4830
4831         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
4832         (floor_log2): Use clz_hwi.
4833         (exact_log2): Use ctz_hwi.
4834         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
4835         * builtins.c (fold_builtin_bitop): Use them.
4836         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4837         * combine.c (get_pos_from_mask): Use ctz_hwi.
4838         * double-int.c (double_int_ctz): Likewise.
4839         * explow.c (force_reg): Likewise.
4840         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
4841
4842 2010-08-05  Richard Henderson  <rth@redhat.com>
4843
4844         PR target/45189
4845         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
4846         the alignment constant is properly sign-extended.
4847
4848 2010-08-05  Richard Guenther  <rguenther@suse.de>
4849
4850         * expr.c (store_expr): Use emit_block_move only if both
4851         source and target are MEMs.  Use store_bit_field if only
4852         the target is a MEM.
4853
4854 2010-08-05  Richard Henderson  <rth@redhat.com>
4855
4856         PR debug/45188
4857         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
4858         (INCOMING_RETURN_ADDR_RTX): Likewise.
4859         (dwarf2out_do_frame): Remove conditional compilation.
4860         (dwarf2out_frame_init): Likewise.
4861
4862 2010-08-05  Nicolas Setton  <setton@adacore.com>
4863
4864         * gcov.c (flag_display_progress): New static variable.
4865         (main): Display progress info on standard output if requested.
4866         (options): Add -d/--display-progress.
4867         (print_usage): Print them.
4868         (process_args): Handle them.
4869         * doc/gcov.texi: Document them.
4870
4871 2010-08-05  Martin Jambor  <mjambor@suse.cz>
4872
4873         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
4874         (ipcp_insert_stage): Redirect only edges not flagged with
4875         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
4876         discovered constants.
4877
4878 2010-08-05  Martin Jambor  <mjambor@suse.cz>
4879
4880         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
4881         (struct ipa_param_descriptor): New fields types and
4882         cannot_devirtualize.
4883         (ipa_param_cannot_devirtualize_p): New function.
4884         (ipa_param_types_vec_empty): Likewise.
4885         (ipa_make_edge_direct_to_target): Declare.
4886         * ipa-cp.c: Fixed first stage driver name in initial comment,
4887         described devirtualization there too.
4888         (ipcp_analyze_node): Call ipa_analyze_params_uses.
4889         (ipcp_print_all_lattices): Print devirtualization info.
4890         (ipa_set_param_cannot_devirtualize): New function.
4891         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
4892         lattice to BOTTOM.
4893         (ipcp_init_stage): Merged into...
4894         (ipcp_generate_summary): ...its caller.
4895         (ipcp_change_tops_to_bottom): Also process type lists.
4896         (ipcp_add_param_type): New function.
4897         (ipcp_copy_types): Likewise.
4898         (ipcp_propagate_types): Likewise.
4899         (ipcp_propagate_stage): Also propagate types.
4900         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
4901         Also return true if propagated types require it.
4902         (ipcp_update_callgraph): Dump redirection info.
4903         (ipcp_process_devirtualization_opportunities): New function.
4904         (ipcp_const_param_count): Include known type information.
4905         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
4906         on new node.  Fixed formatting.
4907         * ipa-prop.c (make_edge_direct_to_target): Renamed to
4908         ipa_make_edge_direct_to_target and changed all callers.  Made
4909         externally visible.
4910         (ipa_node_duplication_hook): Duplicate types vector.
4911         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
4912         redirect outgoing calls for which we can't get a decl from the
4913         statement.  Check that we can get a decl from the call statement.
4914         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
4915         ipa_analyze_params_uses only when ipa-cp is disabled.
4916         * tree-inline.c (get_indirect_callee_fndecl): Removed.
4917         (expand_call_inline): Do not call get_indirect_callee_fndecl.
4918         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
4919         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
4920
4921 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
4922
4923         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
4924         temporary. Emit move from temporary to accum, so REG_EQUAL note will
4925         be attached to this insn in correct mode.
4926
4927 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
4928
4929         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
4930         using REGNO of base_reg directly.
4931
4932 2010-08-05  Jie Zhang  <jie@codesourcery.com>
4933
4934         PR tree-optimization/45144
4935         * tree-sra.c (type_consists_of_records_p): Return false
4936         if the record contains bit-field.
4937
4938 2010-08-04  Richard Henderson  <rth@redhat.com>
4939
4940         * config/i386/i386.c (struct ix86_frame): Remove padding and
4941         to_allocate members.
4942         (ix86_compute_frame_layout): Don't store them.
4943         (ix86_can_use_return_insn_p): Use a more direct and more obviously
4944         correct condition for the position of the stack pointer.
4945         (ix86_expand_prologue): Compute remaining stack allocation based
4946         on the ultimate stack pointer offset.
4947         (ix86_expand_epilogue): Use more obvious expressions testing for
4948         the stack pointer already pointing to the saved registers.
4949
4950         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
4951         duplication deconstructing the frame pointer.  Simplify
4952         deallocation of the local stack frame.
4953
4954         * reg-notes.def (CFA_EXPRESSION): New.
4955         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4956         (dwarf2out_frame_debug_cfa_expression): New.
4957         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
4958
4959         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
4960         * config/i386/i386.c (ix86_expand_prologue): Set it.
4961         (ix86_expand_epilogue): Clear it.
4962         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
4963         context, add REG_CFA_EXPRESSION notes.
4964
4965         * config/i386/i386.h (struct machine_frame_state): Rename from
4966         machine_cfa_state.  Add members tracking SP and FP regardless
4967         of the current CFA register.
4968         (ix86_cfa_state): Remove.
4969         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
4970         and sse_reg_save_offset members.
4971         (ix86_compute_frame_layout): Set them.
4972         (gen_push): Increment sp_offset too.
4973         (choose_baseaddr_len, choose_baseaddr): New.
4974         (ix86_emit_save_reg_using_mov): New.
4975         (ix86_emit_save_regs_using_mov): Use it.
4976         (ix86_emit_save_sse_regs_using_mov): Likewise.
4977         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
4978         compare vs the saved red_zone_offset.
4979         (pro_epilogue_adjust_stack): Adjust sp_offset.
4980         (ix86_adjust_stack_and_probe): Likewise.
4981         (ix86_expand_prologue): Set up, use, and validate the new
4982         frame_state_info members.  Use gen_frame_mem.
4983         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
4984         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
4985         new frame_state_info members.
4986         (ix86_emit_leave): Likewise.
4987         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
4988         out-of-range stack pointer offsets here.
4989         (ix86_emit_restore_sse_regs_using_mov): Likewise.
4990         (ix86_expand_epilogue): Use and validate the new frame_state_info
4991         members.  Break up and simplify the logic selecting the
4992         restore_regs_via_mov code path.  Ensure that there will be no
4993         out-of-range stack pointer offsets.
4994
4995         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
4996
4997         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
4998         argument name to reflect the expected tree; fix indentation.
4999         (ix86_asm_output_function_label): Output the entire 32-bit
5000         ms_hook here as bytes ...
5001         (ix86_expand_prologue): ... not here as insns.  Attach the
5002         unwind info for the ms_hook to a blockage insn.
5003         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
5004         (ix86_ms_bitfield_layout_p): Fix indentation.
5005         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
5006
5007         * config/i386/i386.c (ix86_using_red_zone): New.
5008         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
5009         ix86_expand_prologue, ix86_force_to_memory): Use it.
5010
5011         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
5012         saving the int registers.
5013
5014         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
5015         and DWARF2_UNWIND_INFO conditional compilation.
5016
5017 2010-08-04  Richard Henderson  <rth@redhat.com>
5018
5019         PR debug/45171
5020         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
5021         an is_naming_typedef_decl.
5022
5023 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
5024
5025         PR rtl-optimization/45162
5026         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
5027         * dce.c (word_dce_process_block): Likewise.
5028
5029 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
5030
5031         PR target/44583
5032         * config/ia64/constraints.md (Z): New.
5033         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
5034         (xfreg_or_signed_fp01_operand): New.
5035         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
5036         with fr_reg_or_signed_fp01_operand and constraint G with Z.
5037         (subsf3): Ditto.
5038         (*maddsf4): Ditto.
5039         (*msubsf4): Ditto.
5040         (adddf3): Ditto.
5041         (adddf3_trunc): Ditto.
5042         (subdf3): Ditto.
5043         (*subdf3_trunc): Ditto.
5044         (*madddf4): Ditto.
5045         (*madddf4_trunc): Ditto.
5046         (*msubdf4): Ditto.
5047         (*msubdf4_trunc): Ditto.
5048         (addxf3): Replace xfreg_or_fp01_operand with
5049         xfreg_or_signed_fp01_operand and constraint G with Z.
5050         (*addxf3_truncsf): Ditto.
5051         (*addxf3_truncdf): Ditto.
5052         (subxf3): Ditto.
5053         (*subxf3_truncsf): Ditto.
5054         (*subxf3_truncdf): Ditto.
5055         (*maddxf4): Ditto.
5056         (*maddxf4_truncsf): Ditto.
5057         (*maddxf4_truncdf): Ditto.
5058         (*msubxf4): Ditto.
5059         (*msubxf4_truncsf): Ditto.
5060         (*msubxf4_truncdf): Ditto.
5061
5062 2010-08-04  Richard Guenther  <rguenther@suse.de>
5063
5064         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
5065         if either alias-set is zero.
5066
5067 2010-08-04  Richard Guenther  <rguenther@suse.de>
5068
5069         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
5070         * tree-ssa-ccp.c: ... here.
5071         * tree-ssa-copy.c: ... and here.
5072         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
5073         value_range_t): Move ...
5074         * tree-vrp.c: ... here.
5075         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
5076         (substitute_and_fold): Adjust prototype.
5077         * tree-ssa-propagate.c (replace_uses_in): Adjust.
5078         (replace_phi_args_in): Likewise.
5079         (substitute_and_fold): Take callback to query lattice instead
5080         of pointer to lattice.  Replace SSA name defs with lattice
5081         values first.
5082         * tree-ssa-ccp.c (ccp_finalize): Adjust.
5083         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
5084         (get_value): New function.
5085         (fini_copy_prop): Adjust.
5086         * tree-vrp.c (vrp_finalize): Adjust.
5087
5088 2010-08-04  Richard Guenther  <rguenther@suse.de>
5089
5090         PR middle-end/45176
5091         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
5092         points-to set for original MEM_REF.
5093
5094 2010-08-04  Richard Guenther  <rguenther@suse.de>
5095
5096         * tree-ssa-ccp.c (get_constant_value): New function.
5097         (get_rhs_assign_op_for_ccp): Remove.
5098         (valueize_op): New function.
5099         (ccp_fold): Use get_constant_value and valueize_op.
5100         (fold_const_aggregate_ref): Likewise.
5101         (ccp_fold_stmt): Likewise.
5102         (visit_assignment): Simplify.
5103
5104 2010-08-04  Richard Guenther  <rguenther@suse.de>
5105
5106         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
5107         * double-int.h (double_int_ctz): Declare.
5108         * double-int.c (double_int_ctz): New function.
5109
5110 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
5111
5112         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
5113         Define.
5114         picochip_expand_movmemhi : Expand movmem pattern.
5115         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
5116         Declare.
5117         * config/picochip/picochip.md (movmemhi) : New pattern.
5118
5119 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
5120
5121         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
5122
5123 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
5124
5125         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
5126         NEG as operand of a MULT by merging it with the other operand.
5127         * combine.c (make_compound_operation): Use trunc_int_for_mode when
5128         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
5129         MULT.
5130         * config/arm/constraints.md (M): Examine only 32 bits of a
5131         HOST_WIDE_INT.
5132         * config/arm/predicates.md (power_of_two_operand): Likewise.
5133
5134 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5135
5136         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
5137         non-NOTE insns.
5138
5139 2010-08-03  Jan Hubicka  <jh@suse.cz>
5140
5141         * ipa-split.c (struct split_point): Add split_part_set_retval.
5142         (find_retval): Forward declare.
5143         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
5144         (consider_split): Compute current->split_part_set_retval.
5145         (visit_bb): Do not look into return value.
5146         (split_function): Handle !split_part_set_retval
5147
5148 2010-08-03  Martin Jambor  <mjambor@suse.cz>
5149
5150         * tree-sra.c (completely_scalarize_record): New parameter REF, create
5151         its own access->expr intead of using build_ref_for_offset.
5152
5153 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
5154
5155         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
5156         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
5157         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
5158         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
5159         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
5160         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
5161         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
5162         DEFAULT_SWITCH_TAKES_ARG.
5163         * config/rx/rx.opt (-patch=): Remove option.
5164         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
5165         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
5166         * doc/invoke.texi (RX Options): Remove -patch=.
5167         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
5168         (option_map): Remove --profile-blocks, --quiet and --silent.
5169
5170 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
5171
5172         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
5173         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
5174         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
5175         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
5176         Update calls to ix86_expand_compare and ix86_expand_branch.
5177         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
5178         ix86_expand_compare.
5179         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
5180         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
5181         Make static.
5182         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
5183         and ix86_compare_op1.  Update calls to ix86_expand_compare.
5184         (ix86_expand_int_movcc): Ditto.
5185         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
5186         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
5187         (ix86_expand_setcc): Ditto.
5188         (ix86_expand_compare): Remove prototype.
5189         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
5190         ix86_compare_op0 and ix86_compare_op1.  Update calls
5191         to ix86_expand_branch to directly pass operands[1] and operands[2].
5192         (cbranchxf4): Ditto.
5193         (cbranch<MODEF:mode>4): Ditto.
5194         (cbranchcc4): Ditto.
5195         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
5196         Update calls to ix86_expand_setcc to directly pass operands[2] and
5197         operands[3].
5198         (cstorexf4): Ditto.
5199         (cstore<MODEF:mode>4): Ditto.
5200         (cstorecc4): Ditto.
5201
5202 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
5203
5204         PR target/45063
5205         * caller-save.c (save_call_clobbered_regs): Remove regs from
5206         hard_regs_saved when they are set.
5207
5208 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
5209
5210         PR target/41089
5211         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
5212         as volatile.
5213
5214 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
5215
5216         * common.opt (ftree-loop-distribute-patterns): New.
5217         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
5218         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
5219         at -O3.
5220         * tree-data-ref.c (stores_zero_from_loop): New.
5221         * tree-data-ref.h (stores_zero_from_loop): Declared.
5222         * tree-loop-distribution.c (tree_loop_distribution): Call
5223         stores_zero_from_loop.
5224         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
5225
5226 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
5227
5228         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
5229         into account.
5230
5231         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
5232         * config/arm/arm.c (thumb1_code): New variable.
5233         (arm_override_options): Set it.
5234         (thumb1_final_prescan_insn): Keep track of condition code status.
5235         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
5236         jumps that depend on them.
5237         * config/arm/arm.h (thumb1_code): Declare variable.
5238         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
5239         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
5240         thumb1_cc_mode.
5241         (CC_STATUS_INIT): New macro.
5242         * config/arm/constraints.md (Pd): New constraint.
5243         * config/arm/predicates.md (noov_comparison_operator): New predicate.
5244         * config/arm/arm.md (is_thumb1): New define_attr.
5245         (conds): Set default to "clob" when generating Thumb1 code.
5246         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
5247         code are set.  Use two-operand assembly syntax.
5248         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
5249         pattern.
5250         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
5251         codes are set.  Use two-operand assembly syntax.
5252         (zero_extendhisi splitter): Remove constraints.
5253         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
5254         thumb1_movsf_insn): Set conds attribute as appropriate.
5255         (cbranchsi4_insn): Use condition code status from struct
5256         machine_function to determine whether the comparison can be eliminated.
5257         Discourage the alternative using high registers.
5258         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
5259         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
5260         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
5261         subsi3_cbranch): Delete.
5262         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
5263         one subtract and one cbranch insn.
5264
5265         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
5266         thumb2_movdf_soft_insn): Delete patterns.
5267         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
5268         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
5269         (pool_range, neg_pool_range): Use them to define defaults.
5270         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
5271         and allow for TARGET_32BIT.
5272
5273         PR target/40457
5274         * config/arm/arm.h (arm_regs_in_sequence): Declare.
5275         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
5276         load_multiple_sequence, store_multiple_sequence): Delete
5277         declarations.
5278         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
5279         declarations.
5280         * config/arm/ldmstm.md: New file.
5281         * config/arm/arm.c (arm_regs_in_sequence): New array.
5282         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
5283         CHECK_REGS.  All callers changed.
5284         If SAVED_ORDER is nonnull, copy the computed order into it.
5285         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
5286         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
5287         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
5288         If SAVED_ORDER is nonnull, copy the computed order into it.
5289         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
5290         like REGS.  Handle Thumb mode.
5291         (arm_gen_load_multiple_1): New function, broken out of
5292         arm_gen_load_multiple.
5293         (arm_gen_store_multiple_1): New function, broken out of
5294         arm_gen_store_multiple.
5295         (arm_gen_multiple_op): New function, with code from
5296         arm_gen_load_multiple and arm_gen_store_multiple moved here.
5297         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
5298         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
5299         changed.
5300         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
5301         * config/arm/predicates.md (commutative_binary_operator): New.
5302         (load_multiple_operation, store_multiple_operation): Handle more
5303         variants of these patterns with different starting offsets.  Handle
5304         Thumb-1.
5305         * config/arm/arm.md: Include "ldmstm.md".
5306         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
5307         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
5308         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
5309         peepholes): Delete.
5310         * config/arm/ldmstm.md: New file.
5311         * config/arm/arm-ldmstm.ml: New file.
5312
5313         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
5314         if statement which adds extra costs to frame-related expressions.
5315
5316 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5317
5318         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
5319
5320 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
5321
5322         PR target/45142
5323         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
5324         alternative 2.
5325         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
5326         split V4SI operands.
5327
5328 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
5329
5330         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5331         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
5332         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
5333         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
5334
5335 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
5336
5337         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
5338         LOCAL_INCLUDE_DIR.
5339
5340 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
5341
5342         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
5343         used in the call to optab_for_tree_code.  Fix the second
5344         is_widening_mult_p call.  Check that both unwidened operands
5345         have the same sign.
5346
5347 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
5348
5349         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
5350
5351 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
5352
5353         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5354
5355 2010-07-30  DJ Delorie  <dj@redhat.com>
5356
5357         * config/rx/predicates.md (rx_constshift_operand): New.
5358         * config/rx/rx.md (zs_cond): New.
5359         (cbranchsi4): Remove mode.
5360         (*cbranchsi4_<code>): Likewise.
5361         (*tstbranchsi4_<code>): New.
5362         (*tstbranchsi4r_<code>): New.
5363         (*tstbranchsi4m_eq): New.
5364         (*tstbranchsi4m_ne): New.
5365         (cbranchsf4): Remove mode.
5366         (*cbranchsf4_<code>): Likewise.
5367
5368 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
5369
5370         * rtlanal.c (simplify_subreg_regno): Don't treat
5371         HARD_FRAME_POINTER_REGNUM specially.
5372
5373 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
5374
5375         * common.opt (-G): Don't define option here.
5376         * config/g.opt: New.
5377         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
5378         rs6000/powerpc and score targets.
5379         * opts.c (common_handle_option): Don't handle -G here.
5380         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
5381         * config/frv/frv.c (frv_handle_option): Handle -G.
5382         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
5383         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
5384         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
5385         * config/mips/mips.c (mips_handle_option): Handle -G.
5386         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
5387         * config/score/score.c (score_handle_option): Handle -G.
5388
5389 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
5390
5391         * config/mmix/mmix.c: Include basic-block.h.
5392
5393 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
5394
5395         PR debug/45055
5396         PR rtl-optimization/45137
5397         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
5398         prototypes.
5399         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
5400         New functions.
5401         * combine.c (next_nonnote_nondebug_insn): Removed.
5402         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
5403         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
5404         * sched-deps.c (sched_analyze_insn): Likewise.
5405         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
5406         * rtlanal.c (canonicalize_condition): Likewise.
5407         * postreload.c (reload_combine_recognize_pattern): Likewise.
5408         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
5409
5410 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
5411
5412         * config/i386/i386.md (int_cond): Remove code iterator.
5413         (fp_cond): Ditto.
5414         (cbranch<mode>4): Use ordered_comparison_operator predicate
5415         for operator0.
5416         (cstore<mode>4): Ditto for operator1.
5417         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
5418         (add<mode>cc): ditto.
5419
5420 2010-07-30  Richard Guenther  <rguenther@suse.de>
5421
5422         PR middle-end/45141
5423         * expr.c (expand_expr_real_1): Check for not handled base address.
5424
5425 2010-07-30  Richard Guenther  <rguenther@suse.de>
5426
5427         * ipa-prop.c (ipa_modify_formal_parameters): Use
5428         build_distinct_type_copy.
5429
5430 2010-07-30  Anthony Green  <green@moxielogic.com>
5431
5432         * config/moxie/rtems.h: New file.
5433         * config.gcc: Add moxie-rtems support.
5434
5435 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
5436
5437         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
5438         df flags as in run_fast_df_dce.
5439
5440 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
5441
5442         Revert:
5443         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5444
5445         * rtl.def (NOTE): Swap operands 4 and 5.
5446         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
5447         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
5448         Adjust accordingly.
5449         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
5450
5451 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
5452
5453         PR debug/45110
5454         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
5455         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
5456         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
5457         formal parameters.
5458         (gen_decl_die): Change return type to dw_die_ref, return what
5459         gen_formal_parameter_die returned.
5460
5461 2010-07-29  Martin Jambor  <mjambor@suse.cz>
5462
5463         * dbgcnt.def (eipa_sra): New counter.
5464         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
5465
5466 2010-07-29  Xinliang David Li  <davidxl@google.com>
5467
5468         PR bootstrap/45119
5469         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
5470         in revision 162652.
5471
5472 2010-07-29  Richard Guenther  <rguenther@suse.de>
5473
5474         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
5475         (TV_TREE_STORE_CCP): Likewise.
5476         (TV_TREE_REDPHI): Likewise.
5477
5478 2010-07-29  Richard Guenther  <rguenther@suse.de>
5479
5480         * double-int.h (double_int_and_not): New function.
5481         * combine.c (try_combine): Use it.
5482         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
5483
5484 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
5485
5486         PR rtl-optimization/42575
5487         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
5488         Argument AU removed.  All callers changed.  Ignore artificial refs.
5489         Use return value of df_word_lr_simulate_defs to decide whether an insn
5490         is necessary.
5491         (fast_dce): Rename arg to WORD_LEVEL.
5492         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
5493         static.
5494         (pass_fast_rtl_byte_dce): Delete.
5495         * dce.h (run_word_dce): Declare.
5496         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
5497         All callers changed.  Simplify code to only deal with two-word regs.
5498         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
5499         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
5500         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
5501         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
5502         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
5503         (df_word_lr_mark_ref): Declare.
5504         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
5505         df_word_lr_simulate_uses): Declare or rename from byte variants.
5506         (df_byte_lr_simulate_artificial_refs_at_top,
5507         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
5508         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
5509         declarations.
5510         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
5511         (enum df_mm): Delete.
5512         * df-byte-scan.c: Delete file.
5513         * df-problems.c (df_word_lr_problem_data): Renamed from
5514         df_byte_lr_problem_data, all members deleted except for
5515         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
5516         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
5517         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
5518         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
5519         df_byte_lr_confluence_0): Delete functions.
5520         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
5521         callers changed.
5522         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
5523         Don't initialize members that were deleted, don't try to discover data
5524         about registers.  Ignore hard regs.
5525         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
5526         (df_word_lr_mark_ref): New function.
5527         (df_word_lr_bb_local_compute): Renamed from
5528         df_byte_bb_lr_local_compute; all callers changed.  Use
5529         df_word_lr_mark_ref.  Assert that artificial refs don't include
5530         pseudos.  Ignore hard registers.
5531         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
5532         Assert that exit block uses don't contain pseudos.
5533         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
5534         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
5535         callers changed.  Ignore hard regs.
5536         (df_word_lr_transfer_function): Renamed from
5537         df_byte_lr_transfer_function; all callers changed.
5538         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
5539         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
5540         changed.
5541         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
5542         callers changed.
5543         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
5544         confluence operator 0 set to NULL.
5545         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
5546         callers changed.
5547         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
5548         Return bool, true if bitmap changed or insn otherwise necessary.
5549         All callers changed.  Simplify using df_word_lr_mark_ref.
5550         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
5551         all callers changed.  Simplify using df_word_lr_mark_ref.
5552         * lower-subreg.c: Include "dce.h"
5553         (decompose_multiword_subregs): Call run_word_dce if df available.
5554         * Makefile.in (lower-subreg.o): Adjust dependencies.
5555         (df-byte-scan.o): Delete.
5556         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
5557
5558 2010-07-29  Richard Guenther  <rguenther@suse.de>
5559
5560         * tree.c (build_vector): Assert that the vector constant
5561         has enough elements.
5562         (build_vector_from_ctor): Pad with trailing zeros.
5563
5564 2010-07-29  Richard Guenther  <rguenther@suse.de>
5565
5566         PR tree-optimization/45120
5567         * tree-ssa-structalias.c (get_constraint_for_component_ref):
5568         Handle offset in DEREFs properly.
5569         (get_constraint_for_1): Handle MEM_REF offset properly.
5570
5571 2010-07-29  Richard Guenther  <rguenther@suse.de>
5572
5573         PR middle-end/45034
5574         * convert.c (convert_to_integer): Always use an unsigned
5575         type for narrowed negate and bitwise not.
5576
5577 2010-07-29  Ira Rosen  <irar@il.ibm.com>
5578
5579         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
5580         to outer loop when creating reduction epilogue for double reduction,
5581         and switch back to the inner loop when updating the phi nodes.
5582         Update uses of outer loop exit phi nodes in double reduction (instead
5583         of uses of reduction).
5584
5585 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5586
5587         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
5588         popcount on power7 and parity on power6 systems.
5589         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
5590         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
5591         instructions.
5592
5593         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
5594         (UNSPEC_PARITY): Ditto.
5595         (SFDF): New iterator for SF/DF.
5596         (rreg2): New mode attribute for floating register constraint.
5597         (TARGET_FLOAT): New mode attribute for whether single/double float
5598         is supported.
5599         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
5600         pattern.
5601         (parity<mode>2_cmpb): New insn for parity on power6 and newer
5602         machines.
5603         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
5604         pattern.  Add support for fcpsgn instruction added in power6.
5605         (copysignsf3): Delete.
5606         (copysigndf3): Delete.
5607         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
5608         instead of if_then_else in RTL to avoid problems with -0.
5609
5610         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
5611         of if_then_else to mirror scalar code.
5612         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
5613         rs6000.md.
5614
5615         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
5616         instead of if_then_else.
5617
5618 2010-07-28  Xinliang David Li  <davidxl@google.com>
5619
5620         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
5621         (dump_cand): Dump var_before/after.
5622         (htab_inv_expr_eq): New function.
5623         (htab_inv_expr_hash): New function.
5624         (tree_ssa_iv_optimize_init): Support pseudo invariants.
5625         (add_candidate_1): consider base type precision.
5626         (set_use_iv_cost): New parameter.
5627         (adjust_setup_cost): Use profile information.
5628         (get_address_cost): Do not hard code width in computing address
5629         offset limits.
5630         (compare_aff_trees): New function.
5631         (get_loop_invariant_expr_id): New function.
5632         (get_computation_cost_at): New parameter and use profile information.
5633         (get_computation_cost): New parameter.
5634         (determine_use_iv_cost_generic): Pass new parameter.
5635         (determine_use_iv_cost_address): Ditto.
5636         (determine_use_iv_cost_condition): Ditto.
5637         (autoinc_possible_for_pair): Ditto.
5638         (determine_use_iv_costs): More dumps.
5639         (iv_ca_get_num_inv_exprs): New function.
5640         (iv_ca_recount_cost): Consider loop invariants in register pressure
5641         cost.
5642         (iv_ca_add_use): New parameter.
5643         (iv_ca_dump): Better dumping.
5644         (iv_ca_extend): New parameter.
5645         (try_add_cand_for): Attempt to get better partial solution.
5646         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
5647         (create_new-ivs): More dumps.
5648         (rewrite_use_compare): Ditto.
5649         (free_loop_data): More cleanup.
5650         (treee_ssa_iv_optimize_finalize): Ditto.
5651
5652 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
5653
5654         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
5655         * config/i386/i386.c (ix86_profile_before_prologue): New.
5656         (override_options): Add special handling for -mfentry.
5657         (ix86_function_regparm): Likewise.
5658         (ix86_function_sseregparm): Likewise.
5659         (ix86_frame_pointer_required): Likewise.
5660         (ix86_expand_prologue): Check for ms_hook_prologue.
5661         (x86_function_profiler): Adjust mcount output.
5662         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
5663         * config/i386/i386.opt (mfentry): New.
5664         * doc/invoke.texi (mfentry): Add documentation.
5665         * doc/tm.texi: Regenerated..
5666         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
5667         * final.c (final_start_function): Replace macro
5668         PROFILE_BEFORE_PROLOGUE by target hook.
5669         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5670         * target.def (profile_before_prologue): New hook.
5671         * targhooks.c (default_profile_before_prologue): New.
5672         * targhooks.h (default_profile_before_prologue): New.
5673
5674 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
5675
5676         PR debug/45105
5677         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
5678
5679         PR debug/45103
5680         * dwarf2out.c (dwarf2out_var_location): Always consider
5681         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
5682
5683 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
5684
5685         PR rtl-optimization/45107
5686         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
5687
5688 2010-07-28  Richard Guenther  <rguenther@suse.de>
5689
5690         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
5691         (set_lattice_value): Do not query an old default value.
5692         (get_value_for_expr): New function.  Properly canonicalize
5693         float values.
5694         (ccp_visit_phi_node): Use it.
5695
5696 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
5697
5698         * config/arm/arm.c (arm_pcs_default): Remove static.
5699         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
5700         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
5701         (arm_pcs_default): Declare.
5702
5703 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
5704
5705         * config/rs6000/rs6000.c (rs6000_override_options):
5706         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
5707         ... to darwin_rs6000_override_options.
5708         (rs6000_return_in_memory): Update preceding comment for darwin
5709         64 bit ABI.  Use TARGET_MACHO inline.
5710         (rs6000_darwin64_struct_check_p): New.
5711         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
5712         (function_arg): Likewise.
5713         (rs6000_arg_partial_bytes): Likewise.
5714         (rs6000_function_value): Likewise.
5715
5716 2010-07-28  Andi Kleen <ak@linux.intel.com>
5717
5718         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
5719
5720 2010-07-28  Richard Guenther  <rguenther@suse.de>
5721
5722         PR middle-end/44903
5723         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
5724         targets try harder to not generate unaligned accesses.
5725
5726 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
5727
5728         PR rtl-optimization/45101
5729         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
5730         for gcse-las.
5731
5732 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
5733
5734         PR tree-optimization/44885
5735         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
5736         with non-aliased component.
5737
5738 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
5739
5740         * config/darwin-driver.c (SWITCH_TAKES_ARG,
5741         WORD_SWITCH_TAKES_ARG): Remove.
5742         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5743         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
5744         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
5745         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
5746         definitions from gcc.c.
5747         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
5748         defaults.h.
5749         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
5750         Move to defaults.h.
5751         * opts-common.c: Include tm.h.
5752         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
5753         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
5754         Handle more than one argument.  Set canonical_option_num_elements.
5755         (decode_cmdline_options_to_array): Set
5756         canonical_option_num_elements and trailing elements of
5757         canonical_option.
5758         * opts.h (struct cl_decoded_option): Allow four elements in
5759         canonical_option.  Add field canonical_option_num_elements.
5760         * Makefile.in (opts-common.o): Update dependencies.
5761
5762 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
5763
5764         PR middle-end/44790
5765         PR middle-end/44993
5766         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
5767         sure the base has address_mode before adding the offset.
5768
5769 2010-07-27  Xinliang David Li <davidxl@google.com>
5770
5771         * tree-flow.h (create_mem_ref): Add one new parameter.
5772         * tree-ssa-address.c (create_mem_ref): New parameter.
5773         (addr_to_parts): Ditto.
5774         (move_variant_to_index): New function.
5775         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
5776
5777 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5778
5779         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
5780         4 and 5.
5781         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
5782         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
5783         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
5784         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
5785         CODE_LABELs and NOTEs.
5786         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
5787         * combine.c (try_combine): Likewise.
5788         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5789         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
5790
5791 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5792
5793         * coretypes.h (struct cl_option_handlers): Declare.
5794         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
5795         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
5796         * langhooks-def.h (lhd_handle_option): Declare.
5797         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
5798         * langhooks.c (lhd_handle_option): New.
5799         * langhooks.h (struct lang_hooks): Update prototype and return
5800         value type of handle_option hook.
5801         * optc-gen.awk: Generate target_flags_explicit definition for the
5802         driver.
5803         * opts-common.c: Include diagnostic.h.
5804         (handle_option): Move from opts.c.  Update prototype and return
5805         value type.  Use handlers structure.
5806         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
5807         handlers structure.
5808         (set_option): Move from opts.c.
5809         * opts.c (common_handle_option): Update prototype and return value
5810         type.  Update calls to handle_option and enable_warning_as_error.
5811         (unknown_option_callback, post_handling_callback,
5812         lang_handle_option, target_handle_option): New.
5813         (handle_option, read_cmdline_option): Move to opts-common.c.
5814         (read_cmdline_options): Update prototype.  Update call to
5815         read_cmdline_option.
5816         (decode_options): Initialize and use handlers structure.
5817         (set_option): Move to opts-common.c.
5818         (enable_warning_as_error): Update prototype.  Update call to
5819         handle_option.
5820         * opts.h (struct cl_option_handler_func, struct
5821         cl_option_handlers): New.
5822         (handle_option, enable_warning_as_error): Update prototypes.
5823         (read_cmdline_option): Declare.
5824         * Makefile.in (opts-common.o): Update dependencies.
5825
5826 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5827
5828         * config/arm/arm.c (params.h): Include.
5829         (arm_override_options): Tune gcse-unrestricted-cost.
5830         * config/arm/t-arm (arm.o): Define dependencies.
5831
5832 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5833
5834         PR target/42495
5835         PR middle-end/42574
5836         * basic-block.h (get_dominated_to_depth): Declare.
5837         * dominance.c (get_dominated_to_depth): New function, use
5838         get_all_dominated_blocks as a base.
5839         (get_all_dominated_blocks): Use get_dominated_to_depth.
5840
5841         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
5842         (hoist_exprs): Remove.
5843         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
5844         (compute_code_hoist_vbeinout): Add debug print outs.
5845         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
5846
5847         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
5848         quadratic behavior.
5849         * params.h (MAX_HOIST_DEPTH): New macro.
5850         * doc/invoke.texi (max-hoist-depth): Document.
5851
5852 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5853
5854         PR rtl-optimization/40956
5855         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
5856         constants.
5857
5858 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5859
5860         PR target/42495
5861         PR middle-end/42574
5862         * config/arm/arm.c (legitimize_pic_address): Use
5863         gen_calculate_pic_address pattern to emit calculation of PIC address.
5864         (will_be_in_index_register): New function.
5865         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
5866         (thumb1_legitimate_address_p): Use it provided !strict_p.
5867         * config/arm/arm.md (calculate_pic_address): New expand and split.
5868
5869 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5870
5871         PR target/42495
5872         PR middle-end/42574
5873         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
5874         * config/arm/arm.md (define_split "J", define_split "K"): Make
5875         IRA/reload friendly.
5876
5877 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5878
5879         * gcse.c (insert_insn_end_basic_block): Update signature, remove
5880         unused checks.
5881         (pre_edge_insert, hoist_code): Update.
5882
5883 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5884
5885         PR target/42495
5886         PR middle-end/42574
5887         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
5888
5889 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5890
5891         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
5892
5893 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5894
5895         PR rtl-optimization/40956
5896         PR target/42495
5897         PR middle-end/42574
5898         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
5899         for hoisting.
5900         (hoist_code): Count occurences in current block too.
5901
5902 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5903
5904         * gcse.c (struct expr:max_distance): New field.
5905         (doing_code_hoisting_p): New static variable.
5906         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
5907         simple expressions, don't change behavior for PRE.  Set max_distance.
5908         (insert_expr_in_table): Set new max_distance field.
5909         (hash_scan_set): Update.
5910         (hoist_expr_reaches_here_p): Stop search after max_distance
5911         instructions.
5912         (find_occr_in_bb): New static function.  Use it in ...
5913         (hoist_code): Calculate sizes of basic block before any changes are
5914         done.  Pass max_distance to hoist_expr_reaches_here_p.
5915         (one_code_hoisting_pass): Set doing_code_hoisting_p.
5916
5917         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
5918         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
5919         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
5920         macros.
5921         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
5922         Document.
5923
5924 2010-07-27  Jeff Law  <law@redhat.com>
5925             Maxim Kuvyrkov  <maxim@codesourcery.com>
5926
5927         * gcse.c (compute_transpout, transpout): Remove, move logic
5928         to prune_expressions.
5929         (compute_pre_data): Move pruning of trapping expressions ...
5930         (prune_expressions): ... here.  New static function.
5931         (compute_code_hoist_data): Use it.
5932         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
5933
5934 2010-07-27  Xinliang David Li  <davidxl@google.com>
5935
5936         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
5937         (rewrite_use_address): Adjust iv update position when needed.
5938
5939 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5940
5941         * dbgcnt.def (hoist_insn): New debug counter.
5942         * gcse.c (hoist_code): Use it.
5943
5944 2010-07-27  Xinliang David Li  <davidxl@google.com>
5945
5946         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
5947         (niter_for_single_dom_exit): Passes additional parameter.
5948         (iv_period): Fix comments.
5949         (may_eliminate_iv): Handles multiple exit loops properly.
5950         (free_tree_niter_desc): New function.
5951         (free_loop_data): Frees up loop iteration descriptors.
5952
5953 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5954
5955         PR target/44542
5956         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
5957         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
5958         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
5959         (expand_one_var): Don't consider DECL_ALIGN for variables for
5960         which expand_one_stack_var_at has been already called.
5961
5962         PR testsuite/44701
5963         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
5964         constraints on IA-64.
5965
5966 2010-07-27  Jie Zhang  <jie@codesourcery.com>
5967
5968         PR target/44290
5969         Revert:
5970         2010-07-23  Jie Zhang  <jie@codesourcery.com>
5971
5972         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
5973         false if ! tree_versionable_function_p.
5974
5975 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5976
5977         * dwarf2out.c (add_data_member_location_attribute): Use
5978         add_AT_unsigned instead of add_AT_int if offset is non-negative.
5979
5980 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5981
5982         * postreload.c (try_replace_in_use): New static function.
5983         (reload_combine_recognize_const_pattern): Use it here.  Allow
5984         substituting into a final add insn, and substituting into a memory
5985         reference in an insn that sets the reg.
5986
5987 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5988
5989         * common.opt (o): Add MissingArgError.
5990         * doc/options.texi (MissingArgError): Document.
5991         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
5992         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
5993         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5994         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
5995         * langhooks.h (struct lang_hooks): Remove missing_argument.
5996         * optc-gen.awk: Handle MissingArgError and output new structure
5997         field initializers.
5998         * opts.c (read_cmdline_option): Use missing_argument_error field
5999         instead of missing_argument langhook.
6000         * opts.h (struct cl_option): Add missing_argument_error field.
6001         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
6002
6003 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
6004
6005         PR target/29090
6006         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
6007         Darwin64 ABI, for zero-sized objects.
6008
6009 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
6010
6011         PR target/35491
6012         PR target/29090
6013
6014         Merge from Apple local 4.2.1.
6015         2005-05-11  Stan Shebs  <shebs@apple.com>
6016         Fix 64-bit varargs for Darwin (Radar 4028089).
6017         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
6018         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6019         Add argument, add case for 8-byte register half-filled with a float.
6020         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
6021         single-precision floats specially.
6022
6023 2010-07-27  Ira Rosen  <irar@il.ibm.com>
6024
6025         PR tree-optimization/44152
6026         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
6027         complex numbers for further check.
6028         (vect_supported_load_permutation_p): Check nodes with
6029         complex numbers.
6030
6031 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
6032
6033         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
6034         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
6035         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
6036         (LANG_HOOKS_INITIALIZER): Add new hooks.
6037         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
6038         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
6039         and complain_wrong_lang_p.  Update init_options prototype.
6040         * c-objc-common.c (c_initialize_diagnostics): First call
6041         c_common_initialize_diagnostics.
6042         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
6043         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
6044         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
6045         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
6046         (hook_uint_void_0): New.
6047         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
6048         (hook_uint_void_0): New.
6049         * opts-common.c (decode_cmdline_option,
6050         decode_cmdline_options_to_array): Also fill in canonical_option field.
6051         * opts.c (complain_wrong_lang): Use langhook to determine whether
6052         to complain instead of special-casing LTO.
6053         (decode_options): Separate lang_mask determination with
6054         option_lang_mask hook from call of init_options hook.
6055         * opts.h (struct cl_decoded_option): Add canonical_option.
6056
6057 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
6058
6059         PR tree-optimization/45083
6060         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
6061
6062 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
6063
6064         * postreload.c (reload_combine_recognize_const_pattern): Move test
6065         for limiting the insn movement to the right scope.
6066
6067         PR rtl-optimization/45051
6068         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
6069         than reg_mentioned_p.
6070
6071 2010-07-26  Richard Henderson  <rth@redhat.com>
6072
6073         PR target/44132
6074         * tree-emutls.c: New file.
6075         * Makefile.in (OBJS-common): Add it.
6076         * tree-pass.h (pass_ipa_lower_emutls): Declare.
6077         * passes.c (init_optimization_passes): Add it.
6078
6079         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
6080         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
6081         * expr.c (emutls_var_address): Delete.
6082         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
6083         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
6084         (emutls_finish): Delete.
6085         * toplev.c (compile_file): Don't call it.
6086         * tree.h (emutls_decl): Delete.
6087         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
6088         (emutls_finish, emutls_finalize_control_var): Delete.
6089         (emutls_object_type): Move to tree-emutls.c.
6090         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
6091         default_emutls_var_fields, get_emutls_object_type,
6092         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
6093         default_emutls_var_init): Likewise.
6094         (get_variable_section): Don't special case emutls.
6095         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
6096         default_elf_select_section, default_unique_section,
6097         default_encode_section_info): Likewise.
6098         * varpool.c (decide_is_variable_needed): Likewise.
6099         * gimple-iterator.c (update_call_edge_frequencies): New
6100         (gsi_insert_on_edge_immediate): Use it.
6101         (gsi_insert_seq_on_edge_immediate): Likewise.
6102         (gsi_commit_one_edge_insert): Likewise.
6103
6104         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
6105         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
6106         (x86_64_elf_unique_section): Likewise.
6107
6108 2010-07-26  Jan Hubicka  <jh@suse.cz>
6109
6110         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
6111         GTY((skip)).
6112
6113 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
6114
6115         * target.def (output_source_filename): New hook.
6116         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
6117         * doc/tm.texi: Regenerate.
6118         * toplev.c (output_file_directive) Remove function.
6119         * toplev.h (output_file_directive) Remove.
6120         * output.h (default_asm_output_source_filename,
6121         output_file_directive): Declare.
6122         * varasm.h (default_asm_output_source_filename,
6123         output_file_directive): New functions.
6124
6125         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
6126         * config/mips/mips-protos.h (mips_output_filename): Remove.
6127         * config/mips/mips.c (mips_output_filename): Make Static.
6128         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
6129
6130 2010-07-26  Richard Guenther  <rguenther@suse.de>
6131
6132         PR tree-optimization/43784
6133         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
6134         if the destination is used by the call.
6135
6136 2010-07-26  Richard Guenther  <rguenther@suse.de>
6137
6138         PR middle-end/45073
6139         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
6140         SSA updating on being in SSA form.
6141
6142 2010-07-26  Richard Guenther  <rguenther@suse.de>
6143
6144         PR middle-end/45056
6145         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
6146
6147 2010-07-26  Richard Guenther  <rguenther@suse.de>
6148
6149         PR tree-optimization/45071
6150         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
6151         adjust op->opcode.
6152
6153 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
6154
6155         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
6156         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
6157         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
6158         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
6159         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
6160         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
6161         save_r31, return_r31, save_interrupt, return_interrupt,
6162         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
6163         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
6164         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
6165         new ABI requirements.
6166         (save_r6_r9, L_callt_save_r6_r9): Remove.
6167         * config/v850/predicates.md (even_reg_operand, disp23_operand,
6168         const_float_1_operand const_float_0_operand): New Predicates.
6169         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
6170         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
6171         * config/v850/t-v850: Update multilibs for new target variants.
6172         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
6173         * config/v850/t-v850e: Likewise.
6174         * config/v850/v850.c (v850_issue_rate): New.
6175         (v850_strict_argument_naming): New.
6176         (function_arg): Modify to generate a different ABI.
6177         (print_operand): Update case 'z' to support float modes.
6178         (output_move_single): Modify to generate appropriate and better
6179         assembly.
6180         (v850_float_z_comparison_operator, v850_select_cc_mode,
6181         v850_float_nz_comparison_operator,  v850_gen_float_compare,
6182         v850_gen_compare): New functions to support comparison of float values.
6183         (ep_memory_offset): Add support for V850E2 targets.
6184         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
6185         (INTERRUPT_REGPARM_NUM): Remove.
6186         (compute_register_save_size): Add extra case to save/restore long call.
6187         (use_prolog_function): New function to support prologue.
6188         (expand_prologue): Add support for V850E2 targets and modified
6189         as per the current ABI requirements.
6190         (expand_epilogue): Likewise.
6191         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
6192         (construct_save_jarl): Likewise.
6193         (construct_dispose_instruction): Update as per the current ABI
6194         requirements.
6195         (construct_prepare_instruction): Likewise.
6196         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
6197         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
6198         (CPP_SPEC): Updated to support v850e2 targets.
6199         (STRICT_ALIGNMENT): Modified.
6200         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
6201         (FIXED_REGISTERS): Likewise.
6202         (CALL_USED_REGISTERS): Likewise.
6203         (CONDITIONAL_REGISTER_USAGE): Updated.
6204         (HARD_REGNO_MODE_OK): Updated.
6205         (reg_class): Updated to add even registers.
6206         (REG_CLASS_NAMES): Likewise.
6207         (REG_CLASS_CONTENTS): Likewise.
6208         (REGNO_REG_CLASS): Updated for CC registers.
6209         (REG_CLASS_FROM_LETTER): Added support for even registers.
6210         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
6211         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
6212         ARG_POINTER_REGNUM): Updated.
6213         (FUNCTION_ARG_ADVANCE): Define.
6214         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
6215         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
6216         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
6217         (GO_IF_LEGITIMATE_ADDRESS): Updated.
6218         (SELECT_CC_MODE): Define.
6219         (REGISTER_NAMES): Updated to add psw and fcc registers.
6220         (ADDITIONAL_REGISTER_NAMES): Updated.
6221         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
6222         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
6223         * config/v850/v850.md (define_constants): Define new constants.
6224         (type): Update store,bit1,macc,div,fpu and single attributes.
6225         (cpu): New attribute.
6226         (cc): Add set_z attribute.
6227         (unsign23byte_load, sign23byte_load, unsign23hword_load,
6228         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
6229         23word_store): New instructions for 23-bit displacement load and store.
6230         (movqi_internal, movhi_internal): Update the attributes.
6231         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
6232         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
6233         the attributes.
6234         (v850_tst1): Modified using CC_REGNUM.
6235         (tstsi): Remove.
6236         (cmpsi): Modified as define_expand from define_insn.
6237         (cmpsi_insn, cmpsf, cmpdf): New instructions.
6238         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
6239         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
6240         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
6241         one_cmplsi2): Clobber the CC_REGNUM register.
6242         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
6243         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
6244         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
6245         (setf_insn, set_z_insn, set_nz_insn): New instructions for
6246         v850e2v3 target.
6247         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
6248         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
6249         targets.
6250         (sasf_1, sasf_2): Remove.
6251         (sasf): New instruction.
6252         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
6253         targets. CC_REGNUM register is clobbered and attributes are
6254         updated.
6255         (branch_z_normal, branch_z_invert, branch_nz_normal,
6256         branch_nz_invert): New branch related instructions.
6257         (jump): Updated the attributes.
6258         (switch): Update to support new targets. CC_REGNUM register is
6259         clobbered and attributes are updated.
6260         (call_internal_short, call_internal_long, call_value_internal_short,
6261         call_value_internal_long): Updated the attributes.
6262         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
6263         clobbered and attributes are updated.
6264         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
6265         Update to support new targets. CC_REGNUM register is clobbered.
6266         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
6267         instructions.
6268         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
6269         are updated.
6270         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
6271         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
6272         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
6273         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
6274         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
6275         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
6276         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
6277         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
6278         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
6279         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
6280         point instructions defined for V850e2v3 target.
6281         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
6282         Add support for V850E2 targets and CC_REGNUM register is clobbered.
6283         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
6284         support for new targets.
6285         * config/v850/v850-modes.def: New file.
6286         * config/v850/v850.opt(mstrict-align): Remove.
6287         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
6288         mv850e2v3): New command line options for V850.
6289         * config.gcc: Update the newly added files.
6290         * doc/invoke.texi: Update the newly added command line options for
6291         V850 target.
6292
6293 2010-07-26  Richard Guenther  <rguenther@suse.de>
6294
6295         PR tree-optimization/45052
6296         * ipa-pure-const.c (check_stmt): Check volatileness.
6297
6298 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6299
6300         PR target/44707
6301         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
6302         * config/sparc/sparc.c: Include reload.h.
6303         (legitimize_tls_address): Rename into...
6304         (sparc_legitimize_tls_address): ...this.
6305         (legitimize_pic_address): Rename into...
6306         (sparc_legitimize_pic_address): ...this.
6307         (sparc_expand_move): Adjust to above renaming.
6308         (sparc_tls_referenced_p): Likewise.
6309         (sparc_legitimize_tls_address): Likewise.
6310         (sparc_legitimize_pic_address): Likewise.
6311         (sparc_legitimize_address): Likewise.
6312         (sparc_output_mi_thunk): Likewise.
6313         (sparc_legitimize_reload_address): New global function.  Recognize
6314         (lo_sum (high ...) ...) patterns generated by earlier passes.
6315         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
6316
6317 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6318
6319         PR target/44484
6320         * config/sparc/predicates.md (memory_reg_operand): Delete.
6321         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
6322         (*sync_compare_and_swap): Encode the address form in the pattern.
6323         (*sync_compare_and_swapdi_v8plus): Likewise.
6324
6325 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
6326
6327         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
6328         Streamline paragraph on compatibility with the system compiler.
6329
6330 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
6331
6332         PR middle-end/45035
6333         * alias.c (true_dependence_1): Fix thinko in merge of old
6334         true_dependence and canon_true_dependence.
6335
6336 2010-07-23  Jan Hubicka  <jh@suse.cz>
6337
6338         * lto-streamer-out.c (write_symbol): Fix visibilities of external
6339         references.
6340
6341 2010-07-23  Le-Chun Wu  <lcwu@google.com>
6342
6343         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
6344         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
6345         and an unnecessary assignment.
6346         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
6347         self-assign warning.
6348         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
6349         unnecessary self-init.
6350
6351 2010-07-23  Richard Guenther  <rguenther@suse.de>
6352
6353         PR lto/43071
6354         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
6355         for -flto and -fwhopr.
6356
6357 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
6358
6359         PR target/41943
6360         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
6361         (stmp-int-hdrs): Prefix/postfix headers by include_next.
6362         * config.gcc (user_headers_inc_next_pre): New.
6363         (user_headers_inc_next_post): Likewise.
6364         (*-w64-mingw*): Use for float.h post-fixing, and for
6365         stddef.h/stdarg.h pre-fixing by include_next.
6366         * configure.ac (user_headers_inc_next_post): New.
6367         (user_headers_inc_next_pre): New.
6368         * configure: Regenerated.
6369
6370 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6371
6372         * configure.ac: Don't disable TLS on Solaris 8/9 by default
6373         Set tga_func for Solaris 2/x86 resp. SPARC.
6374         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
6375         (LIB_THREAD_LDFLAGS_SPEC): Define.
6376         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
6377         * configure: Regenerate.
6378         * config.in: Regenerate.
6379         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
6380         -pthread, -threads, LIB_TLS_SPEC with -pthread.
6381         * doc/install.texi (Specific, *-*-solaris2*): Document use of
6382         alternate thread libraries on Solaris 8.
6383         Document TLS patch requirements.
6384         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
6385         Document tls.
6386
6387         PR target/18788
6388         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
6389         -shared.
6390
6391 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
6392
6393         * tree.h (struct tree_base): Add nameless_flag bitfield.
6394         (TYPE_NAMELESS, DECL_NAMELESS): Define.
6395         * omp-low.c (create_omp_child_function, scan_omp_parallel,
6396         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
6397         DECL_ARTIFICIAL where needed.
6398         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
6399         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
6400         has DECL_NAMELESS set.
6401
6402 2010-07-23  Martin Jambor  <mjambor@suse.cz>
6403
6404         PR tree-optimization/44915
6405         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
6406         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
6407         (analyze_function): Likewise.
6408
6409 2010-07-23  Martin Jambor  <mjambor@suse.cz>
6410
6411         PR tree-optimization/44914
6412         * tree-sra.c (sra_modify_function_body): Return true if CFG was
6413         changed, add purging dead eh edges.
6414         (ipa_sra_modify_function_body): Return true if CFG was changed,
6415         simplify purging dead eh edges.
6416         (modify_function): Return true if CFG was changed.
6417         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
6418         was changed.
6419         (ipa_early_sra): Likewise.
6420
6421 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6422
6423         PR target/44290
6424         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
6425         if "naked".
6426         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
6427         false if ! tree_versionable_function_p.
6428
6429 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
6430
6431         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
6432         * ipa-pure-const.c (special_builtlin_state): Remove
6433         BUILT_IN_ARGS_INFO case.
6434         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6435         * builtins.c (expand_builtin): Likewise.
6436         (expand_builtin_args_info): Remove.
6437         * doc/tm.texi (__builtin_args_info): Remove.
6438         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
6439         * doc/tm.text.in: Likewise.
6440
6441 2010-07-23  Richard Guenther  <rguenther@suse.de>
6442
6443         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
6444         (lto_symtab_merge_decls_2): Likewise.
6445         * tree-ssa.c (useless_type_conversion_p): Likewise.
6446         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6447         * gimple.c (gtc_visited2, gtc_ob2): Remove.
6448         (struct type_pair_d): Make same_p an array indexed by mode.
6449         Update comment.
6450         (lookup_type_pair): Update initialization.
6451         (struct sccs): Adjust same_p type.
6452         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
6453         Adjust.
6454         (print_gimple_types_stats): Likewise.
6455         * gimple.h (enum gtc_mode): New.
6456         (gimple_types_compatible_p): Adjust prototype.
6457
6458 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
6459
6460         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
6461         again after processing insn.
6462
6463 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6464
6465         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
6466         proper words when !tree_versionable_function_p.
6467
6468 2010-07-23  Richard Guenther  <rguenther@suse.de>
6469
6470         PR tree-optimization/45037
6471         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
6472
6473 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6474
6475         * doc/extend.texi: Remove IP2K from the description of naked attribute.
6476         Add MCORE instead.
6477
6478 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6479
6480         PR lto/44992
6481         * lto-opts.c (lto_write_options): Add NULL file_data argument to
6482         lto_get_section_name.
6483         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6484         * lto-streamer-out.c (produce_asm): Likewise.
6485         (copy_function): Likewise.
6486         (produce_symtab): Likewise.
6487         (produce_asm_for_decls): Likewise.
6488         * lto-streamer.c (lto_get_section_name): Add file_data argument.
6489         Rewrite to add random postfix to LTO sections.
6490         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
6491         (lto_get_section_name): Add file_data argument to prototype.
6492
6493 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6494
6495         * lto-section-in.c (lto_section_name): Synchronize names
6496         with lto_get_section_name.
6497
6498 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6499
6500         * lto-opts.c (lto_read_file_options): Check for missing section.
6501
6502 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6503
6504         * ira.c (check_allocation): Correctly handle the case where an allocno
6505         with two objects was allocated to a single reg.
6506
6507 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
6508
6509         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
6510         (is_widening_mult_p): Likewise.
6511         (convert_to_widen): Use them.
6512         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
6513         well as integer ones.
6514
6515 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
6516
6517         * alias.c (true_dependence_1): New function, merged version of
6518         true_dependence and canon_true_dependence.
6519         (true_dependence): Simplify.
6520         (canon_true_dependence): Simplify.
6521
6522 2010-07-22  Richard Henderson  <rth@redhat.com>
6523
6524         PR target/45027
6525         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
6526         of V4SFmode for the SSE saves; increase stack alignment if needed.
6527         (ix86_gimplify_va_arg): Don't increase stack alignment here.
6528
6529 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
6530
6531         PR bootstrap/45028
6532         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
6533         call cprop_find_used_regs again via note_uses.
6534
6535 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
6536
6537         * alias.c (get_alias_set): Fix formatting issues.
6538
6539 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
6540
6541         PR middle-end/44878
6542         * stmt.c (expand_value_return):  Call promote_function_mode with
6543         a for_return argument of 2 when returning by reference.
6544
6545 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
6546
6547         PR debug/45024
6548         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
6549         unit DIE if we can find the scope DIE.
6550
6551 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6552
6553         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
6554         changed.  Initialize OBJECT_SUBWORD.
6555         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
6556         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
6557         all callers changed.
6558         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
6559         (finish_allocno): Likewise.
6560         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
6561         (remove_low_level_allocnos): Likewise.
6562         (update_bad_spill_attribute): Likewise.
6563         (setup_min_max_allocno_live_range_point): Likewise.
6564         (sort_conflict_id_map): Likewise.
6565         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
6566         (ior_hard_reg_conflicts): New function.
6567         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
6568         (compress_conflict_vecs): Iterate over objects, not allocnos.
6569         (ira_add_live_range_to_object): New function.
6570         (object_range_compare_func): Renamed from allocno_range_compare_func.
6571         All callers changed.
6572         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
6573         subobjects, widen the min/max range of the lowest-order object to
6574         potentially include all other such low-order objects.
6575         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
6576         (check_allocation): Likewise.  Use more fine-grained tests for register
6577         conflicts.
6578         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
6579         allocno subobjects.
6580         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
6581         choices about which bits to set in each set.  Don't use
6582         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
6583         using the multiple sets we computed.
6584         (push_allocno_to_stack): Iterate over allocno subobjects.
6585         (all_conflicting_hard_regs_coalesced): New static function.
6586         (setup_allocno_available_regs_num): Use it.
6587         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
6588         subobjects.
6589         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
6590         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6591         by ALLOCNO_NUM_OBJECTS.
6592         (calculate_spill_cost): Likewise.
6593         (color_pass): Express if statement in a more normal way.
6594         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
6595         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
6596         (setup_slot_coalesced_allocno_live_ranges): Likewise.
6597         (allocno_reload_assign): Likewise.
6598         (ira_reassign_pseudos): Likewise.
6599         (fast_allocation): Likewise.
6600         * ira-conflicts.c (build_conflict_bit_table): Likewise.
6601         (print_allocno_conflicts): Likewise.
6602         (ira_build_conflicts): Likewise.
6603         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
6604         callers changed.  Test subword 0 of each allocno for conflicts.
6605         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
6606         callers changed.  Iterate over allocno subobjects.
6607         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
6608         * ira-int.h (struct ira_allocno): New member: num_objects.
6609         Rename object to objects and change it into an array.
6610         (ALLOCNO_OBJECT): Add new argument N.
6611         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
6612         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
6613         (ior_hard_reg_conflicts): Declare.
6614         (ira_add_live_range_to_object): Declare.
6615         (ira_allocno_object_iterator): New.
6616         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
6617         (FOR_EACH_ALLOCNO_OBJECT): New macro.
6618         * ira-lives.c (objects_live): Renamed from allocnos_live; all
6619         uses changed.
6620         (allocnos_processed): New sparseset.
6621         (make_object_born): Renamed from make_allocno_born; take an
6622         ira_object_t argument.  All callers changed.
6623         (make_object_dead): Renamed from make_allocno_dead; take an
6624         ira_object_t argument.  All callers changed.
6625         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
6626         All callers changed.
6627         (mark_pseudo_regno_live): Iterate over allocno subobjects.
6628         (mark_pseudo_regno_dead): Likewise.
6629         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
6630         functions.
6631         (mark_ref_live): Detect subword accesses and call
6632         mark_pseudo_regno_subword_live as appropriate.
6633         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
6634         (process_bb_nodes_live): Deal with object-related updates first; set
6635         and test bits in allocnos_processed to avoid computing allocno
6636         statistics more than once.
6637         (create_start_finish_chains): Iterate over objects, not allocnos.
6638         (print_object_live_ranges): New function.
6639         (print_allocno_live_ranges): Use it.
6640         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
6641         and objects_live.
6642
6643 2010-07-22  Richard Guenther  <rguenther@suse.de>
6644
6645         PR lto/42451
6646         * gimple.c (gtc_next_dfs_num): New global.
6647         (struct sccs): Make value a union, add integer same_p member.
6648         (gtc_visit): New function.
6649         (gimple_types_compatible_p_1): New function, split out from ...
6650         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
6651         (iterative_hash_gimple_type): Adjust for sccs change.
6652
6653 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6654
6655         PR tree-optimization/44891
6656         * tree-sra.c: Include gimple-pretty-print.h.
6657         (replace_uses_with_default_def_ssa_name): Renamed to
6658         get_repl_default_def_ssa_name, return the new SSA name instead of
6659         replacing the old one.
6660         (sra_modify_assign): Dump a message when removing a load, if the LHS
6661         is an SSA_NAME, do not do any propagation, just set the RHS to a
6662         default definition SSA NAME, type convert if necessary.
6663         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
6664
6665 2010-07-22  Richard Guenther  <rguenther@suse.de>
6666
6667         PR tree-optimization/45017
6668         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
6669         TYPE_PRECISION of integral types in addition to size.
6670
6671 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
6672
6673         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
6674         when no C library is specified.
6675
6676 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6677
6678         * ipa-prop.h (struct ipa_node_params): Updated comment.
6679         (struct ipa_edge_args): Likewise.
6680         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
6681
6682 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6683
6684         * cgraphunit.c (verify_edge_count_and_frequency): New function.
6685         (verify_cgraph_node): Verify frequencies of indirect edges.
6686         * tree-inline.c (tree_function_versioning): Update frequencies of
6687         indirect edges.
6688
6689 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6690
6691         PR target/43698
6692         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
6693         Set *arm_rev to be predicable.
6694
6695 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
6696
6697         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
6698         (LINK_COMMAND_SPEC_A): New.
6699         (DSYMUTIL): New.
6700         (DSYMUTIL_SPEC): New.
6701         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
6702         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
6703
6704 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
6705
6706         * calls.c (load_register_parameters): Move check for zero
6707         sized items so that only the call to
6708         mem_overlaps_already_clobbered_arg_p () is protected.
6709
6710 2010-07-22  Jan Hubicka  <jh@suse.cz>
6711
6712         * ipa-pure-const.c (varying_state): Break out from ...
6713         (get_function_state): ... here; always return varying_state
6714         when state would be NULL otherwise.
6715         (remove_node_data): Do not free varying state.
6716
6717 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6718
6719         PR bootstrap/44970
6720         PR middle-end/45009
6721         * postreload.c: Include "target.h".
6722         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
6723         into account.
6724         (fixup_debug_insns): Don't copy the rtx.
6725         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
6726         Don't copy when replacing.  Call fixup_debug_insns in the case where
6727         we merged one add with another.
6728         (reload_combine_recognize_pattern): Fail if there aren't any uses.
6729         Try harder to determine whether we're picking a valid index register.
6730         Don't set store_ruid for an insn we're going to scan in the
6731         next iteration.
6732         (reload_combine): Remove unused code.
6733         (reload_combine_note_use): When updating use information for
6734         an old insn, ignore a use that occurs after store_ruid.
6735         * Makefile.in (postreload.o): Update dependencies.
6736
6737         * function.c (record_hard_reg_sets): Restrict the previous change
6738         to cases where the incoming nominal mode is the same as the
6739         incoming promoted mode and everything happens in MODE_INT.
6740
6741 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
6742
6743         PR debug/45015
6744         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
6745         ASM_OPERANDS_OUTPUT_IDX.
6746         (adjust_insn): For inline asm with multiple sets ensure first
6747         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
6748         the insn.
6749
6750 2010-07-21  Richard Henderson  <rth@redhat.com>
6751
6752         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
6753         comparison for avoiding xmm register saves.  Emit the xmm register
6754         saves explicitly.
6755         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
6756         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
6757         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
6758         Remove patterns and the associated splitters.
6759
6760 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
6761
6762         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
6763         and imagine parts of a complex, so that they can have the same
6764         base and fall into the same group.
6765
6766 2010-07-21  Richard Guenther  <rguenther@suse.de>
6767
6768         PR lto/45018
6769         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
6770         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
6771         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
6772
6773 2010-07-21  Martin Jambor  <mjambor@suse.cz>
6774
6775         PR tree-optimization/44900
6776         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
6777         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
6778
6779 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
6780
6781         PR middle-end/44738
6782         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
6783
6784 2010-07-21  Richard Guenther  <rguenther@suse.de>
6785
6786         PR middle-end/45013
6787         * tree-ssa.c (useless_type_conversion_p): Dispatch to
6788         gimple_types_compatible_p only when in lto.
6789         * gimple.c (gimple_types_compatible_p): Use canonical types
6790         to speed up comparison.
6791
6792 2010-07-21  Richard Guenther  <rguenther@suse.de>
6793
6794         * tree-flow.h (referenced_var): Move define ...
6795         * tree-flow-inline.h (referenced_var): ... here as an inline
6796         function.  Assert here ...
6797         * tree-dfa.c (referenced_var_lookup): ... instead of here.
6798         * tree-ssa.c (maybe_optimize_var): Check if the variable
6799         is in referenced vars.
6800         (execute_update_addresses_taken): Remove old broken check.
6801         * gimple-pretty-print.c (pp_points_to_solution): Use
6802         referenced_var_lookup.
6803         * tree-into-ssa.c (dump_decl_set): Likewise.
6804
6805 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
6806
6807         PR debug/45003
6808         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
6809         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
6810         ZERO_EXTEND here.
6811
6812 2010-07-20  Richard Henderson  <rth@redhat.com>
6813
6814         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
6815
6816 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6817
6818         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
6819         computing the sum of the stack pointer and a large constant.
6820         * config/arm/constraints.md (M): Remove superfluous parentheses.
6821         (Pc): New constraint.
6822
6823 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
6824
6825         PR debug/45006
6826         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
6827         operand's type if exp is tcc_unary class tree.
6828
6829 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
6830
6831         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
6832         Reverse sense of if_then_else condition.
6833
6834 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
6835
6836         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
6837         * config/rs6000/rs6000.c (rs6000_override_options): Set
6838         rs6000_block_move_inline_limit appropriately.
6839         (expand_block_move): Use rs6000_block_move_inline_limit.
6840         * doc/invoke.texi (mblock-move-inline-limit): Document.
6841
6842 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6843
6844         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
6845         FROM and TO.  All callers changed.  Don't look for tracked uses,
6846         just scan the RTL for DEBUG_INSNs and substitute.
6847         (reload_combine_recognize_pattern): Call fixup_debug_insns.
6848         (reload_combine): Ignore DEBUG_INSNs.
6849
6850 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
6851
6852         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
6853         depth to 8 from 5.
6854
6855         PR debug/45003
6856         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
6857         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
6858         instead of the result's type.
6859
6860 2010-07-20  Richard Guenther  <rguenther@suse.de>
6861
6862         PR tree-optimization/44977
6863         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
6864         SSA form.
6865
6866 2010-07-20  Richard Guenther  <rguenther@suse.de>
6867
6868         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
6869         (lto_symtab_merge_decls_2): Likewise.
6870         * gimple.h (gimple_types_compatible_p): Declare.
6871         * gimple.c (gimple_queue_type_fixup): Remove.
6872         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
6873         (gimple_compatible_complete_and_incomplete_type_p): New function.
6874         (gimple_types_compatible_p): Adjust.
6875         (gimple_register_type): Remove type fixup code.
6876         (print_gimple_types_stats): Adjust.
6877         (free_gimple_type_tables): Likewise.
6878         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
6879         * tree-ssa.c (useless_type_conversion_p): Likewise.
6880
6881 2010-07-20  Richard Guenther  <rguenther@suse.de>
6882
6883         PR middle-end/44971
6884         PR middle-end/44988
6885         * tree-ssa.c (maybe_optimize_var): New function split out from ...
6886         (execute_update_addresses_taken): ... here.
6887         (non_rewritable_mem_ref_base): Likewise.
6888         (execute_update_addresses_taken): Do not iterate over all referenced
6889         vars but just all local decls and parms.
6890         Properly check call and asm arguments and rewrite call arguments.
6891
6892 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
6893
6894         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
6895         to top level.
6896         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
6897         definitions ...
6898         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
6899         New macro.
6900         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
6901
6902 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6903
6904         * gengtype.c (start_root_entry): New function, split out from
6905         write_root.  Check whether V is null and raise an error if so.
6906         (write_field_root): Check for V being null.  Don't raise an error here;
6907         set V to null instead.
6908         (write_root): Update comment above function.  Use start_root_entry.
6909
6910 2010-07-19  Xinliang David Li  <davidxl@google.com>
6911
6912         PR testsuite/44932
6913         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
6914         def edges.
6915         (find_uninit_use): Add dump.
6916         (is_use_properly_guarded): Ditto.
6917         (warn_uninitialized_phi): Ditto.
6918         (execute_late_warn_uninitialized): Ditto.
6919
6920 2010-07-19  Richard Guenther  <rguenther@suse.de>
6921
6922         PR middle-end/44941
6923         * expr.c (emit_block_move_hints): Move zero size check first.
6924         Move asserts to more useful places.
6925         * calls.c (load_register_parameters): Check for zero size.
6926
6927 2010-07-19  Richard Henderson  <rth@redhat.com>
6928
6929         * tree-optimize.c (execute_all_early_local_passes): New.  Change
6930         cgraph_state here ...
6931         (execute_early_local_optimizations): ... not here.  Remove.
6932         (pass_early_local_passes, pass_all_early_optimizations): Update.
6933
6934 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
6935
6936         * postreload.c (reload_combine_closest_single_use): Ignore the
6937         number of uses for DEBUG_INSNs.
6938         (fixup_debug_insns): New static function.
6939         (reload_combine_recognize_const_pattern): Use it.  Don't let the
6940         main loop be affected by DEBUG_INSNs.
6941         Really disallow moving adds past a jump insn.
6942         (reload_combine_recognize_pattern): Don't update use_ruid here.
6943         (reload_combine_note_use): Do it here.
6944         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
6945
6946 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
6947
6948         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
6949         of a loop.
6950         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
6951
6952 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
6953
6954         * config/i386/darwin.h: Define darwin_emit_branch_islands.
6955         (TARGET_MACHO_BRANCH_ISLANDS): New.
6956         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
6957         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
6958         default value.
6959         * config/i386/i386.c (output_pic_addr_const): Do not emit
6960         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
6961         (x86_output_mi_thunk): Adjust symbol creation.
6962         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
6963         Remove out of date comment.
6964         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
6965         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
6966         (DARWIN_GENERATE_ISLANDS): Ditto.
6967         (output_call):  Do not emit branch islands unless
6968         darwin_emit_branch_islands is set.
6969         * config/darwin.c: Declare darwin_emit_branch_islands.
6970         (machopic_indirect_data_reference): Do not emit unless
6971         darwin_emit_branch_islands is set.
6972         (darwin_override_options): Set darwin_emit_branch_islands
6973         where it is needed.
6974         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
6975
6976 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6977
6978         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6979         sse_runtime, sse2_runtime.
6980
6981 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
6982
6983         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
6984         low half of a single-register SCmode return value before ORing
6985         it with the high half.
6986         * config/mips/mips16.S (MERGE_GPRf): Likewise.
6987
6988 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6989
6990         PR target/44805
6991         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
6992         on all targets.
6993
6994 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
6995
6996         PR target/42235
6997         * postreload.c (reload_cse_move2add): Return bool, true if anything.
6998         changed.  All callers changed.
6999         (move2add_use_add2_insn): Likewise.
7000         (move2add_use_add3_insn): Likewise.
7001         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
7002         reload_combine.
7003         (RELOAD_COMBINE_MAX_USES): Bump to 16.
7004         (last_jump_ruid): New static variable.
7005         (struct reg_use): New members CONTAINING_MEM and RUID.
7006         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
7007         (reload_combine_split_one_ruid, reload_combine_split_ruids,
7008         reload_combine_purge_insn_uses, reload_combine_closest_single_use
7009         reload_combine_purge_reg_uses_after_ruid,
7010         reload_combine_recognize_const_pattern): New static functions.
7011         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
7012         is true for our reg and that we have available index regs.
7013         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
7014         callers changed.  Use them to initialize fields in struct reg_use.
7015         (reload_combine): Initialize last_jump_ruid.  Be careful when to
7016         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
7017         Call reload_combine_recognize_const_pattern.
7018         (reload_combine_note_store): Update REAL_STORE_RUID field.
7019
7020 2010-07-16  Jason Merrill  <jason@redhat.com>
7021
7022         * Makefile.in (opts-common.o): Depend on options.h.
7023
7024 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
7025
7026         * tree.c (build_common_builtin_nodes): Use build_function_type_list
7027         instead of build_function_type.
7028         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
7029         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
7030
7031 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
7032
7033         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
7034         do all the work.
7035         (rs6000_emit_int_cmove): Use function pointers for insn generation.
7036         Don't force values into registers unnecessarily.
7037         (output_isel): Assert that we're not given conditions we can't handle.
7038         Delete corresponding code.
7039         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
7040         scc_comparison_operator constraint.  Permit 0 for the consequent
7041         operand.  Permit any GPR for the alternative operand.
7042         (isel_unsigned_<mode>): Likewise.
7043
7044 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
7045
7046         PR target/44942
7047         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
7048         argument to const_tree.
7049         * config/i386/i386.c (function_arg_advance): If padding needs to be
7050         inserted before argument, increment cum->words by number of padding
7051         words as well.
7052         (contains_aligned_value_p): Change argument to const_tree.
7053         (ix86_function_arg_boundary): Change second argument to const_tree.
7054
7055 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
7056
7057         PR target/42235
7058         * function.c (record_hard_reg_sets): New static function.
7059         (assign_parm_setup_reg): If an optab for extending exists and the
7060         generated code clobbbers no hard regs, emit the insn directly and
7061         create a REG_EQUIV note.
7062
7063 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
7064
7065         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
7066         TREE_CHAIN.
7067         * c-typeck.c (push_init_level): Likewise.
7068         (process_init_element): Likewise.
7069
7070 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
7071
7072         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
7073         (integer_three_node): Add.
7074         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
7075         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
7076         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
7077         of call build_int_cst.
7078         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
7079         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
7080         (find_interesting_uses_address): Ditto.
7081         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
7082         * tree-eh.c (lower_eh_constructs_2): Ditto.
7083         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
7084         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
7085         * expmed.c (expand_divmod): Ditto.
7086         * tree-mudflap.c (mx_register_decls): Ditto.
7087         * varasm.c (array_size_for_constructor): Ditto.
7088         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
7089         * c-parser.c (c_parser_postfix_expression): Ditto.
7090
7091 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
7092
7093         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
7094         New static variables.
7095         (reload_combine_recognize_pattern): New static function, broken out
7096         of reload_combine.
7097         (reload_combine): Use it.  Only initialize first_index_reg and
7098         last_index_reg once.
7099
7100 2010-07-15  Richard Henderson  <rth@redhat.com>
7101
7102         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
7103         when done.
7104
7105 2010-07-15  Jan Hubicka  <jh@suse.cz>
7106
7107         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
7108         comdats for broken gold.
7109         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
7110
7111 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
7112
7113         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
7114
7115 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
7116
7117         * tree.h (DECL_CHAIN): Define.
7118         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7119         * c-decl.c: Likewise.
7120         * c-parser.c: Likewise.
7121         * c-typeck.c: Likewise.
7122         * cfgexpand.c: Likewise.
7123         * cgraph.c: Likewise.
7124         * cgraphunit.c: Likewise.
7125         * combine.c: Likewise.
7126         * config/alpha/alpha.c: Likewise.
7127         * config/arm/arm.c: Likewise.
7128         * config/frv/frv.c: Likewise.
7129         * config/i386/i386.c: Likewise.
7130         * config/i386/winnt-cxx.c: Likewise.
7131         * config/ia64/ia64.c: Likewise.
7132         * config/iq2000/iq2000.c: Likewise.
7133         * config/mep/mep.c: Likewise.
7134         * config/mips/mips.c: Likewise.
7135         * config/pa/som.h: Likewise.
7136         * config/rs6000/rs6000.c: Likewise.
7137         * config/s390/s390.c: Likewise.
7138         * config/sh/sh.c: Likewise.
7139         * config/sh/symbian-cxx.c: Likewise.
7140         * config/sparc/sparc.c: Likewise.
7141         * config/spu/spu.c: Likewise.
7142         * config/stormy16/stormy16.c: Likewise.
7143         * config/vxworks.c: Likewise.
7144         * config/xtensa/xtensa.c: Likewise.
7145         * coverage.c: Likewise.
7146         * dbxout.c: Likewise.
7147         * dwarf2out.c: Likewise.
7148         * emit-rtl.c: Likewise.
7149         * expr.c: Likewise.
7150         * function.c: Likewise.
7151         * gimple-low.c: Likewise.
7152         * gimple-pretty-print.c: Likewise.
7153         * gimplify.c: Likewise.
7154         * integrate.c: Likewise.
7155         * ipa-inline.c: Likewise.
7156         * ipa-prop.c: Likewise.
7157         * ipa-split.c: Likewise.
7158         * ipa-struct-reorg.c: Likewise.
7159         * ipa-type-escape.c: Likewise.
7160         * langhooks.c: Likewise.
7161         * lto-cgraph.c: Likewise.
7162         * omp-low.c: Likewise.
7163         * stor-layout.c: Likewise.
7164         * tree-cfg.c: Likewise.
7165         * tree-complex.c: Likewise.
7166         * tree-dfa.c: Likewise.
7167         * tree-dump.c: Likewise.
7168         * tree-inline.c: Likewise.
7169         * tree-mudflap.c: Likewise.
7170         * tree-nested.c: Likewise.
7171         * tree-object-size.c: Likewise.
7172         * tree-pretty-print.c: Likewise.
7173         * tree-sra.c: Likewise.
7174         * tree-ssa-live.c: Likewise.
7175         * tree-ssa-loop-niter.c: Likewise.
7176         * tree-ssa-math-opts.c: Likewise.
7177         * tree-ssa-reassoc.c: Likewise.
7178         * tree-ssa-sccvn.c: Likewise.
7179         * tree-ssa-structalias.c: Likewise.
7180         * tree-tailcall.c: Likewise.
7181         * tree-vrp.c: Likewise.
7182         * tree.c: Likewise.
7183         * var-tracking.c: Likewise.
7184         * varasm.c: Likewise.
7185
7186 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7187
7188         PR target/44877
7189         * config/spu/spu.c (spu_expand_builtin_1): Allow references
7190         (as well as pointers) as argument to mask_for_load builtins.
7191
7192 2010-07-15  Richard Guenther  <rguenther@suse.de>
7193
7194         PR tree-optimization/44946
7195         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
7196         with accessing only padding properly.
7197
7198 2010-07-15  Jan Hubicka  <jh@suse.cz>
7199
7200         * ipa.c (function_and_variable_visibility): Variables marked as used
7201         should not be localized.
7202
7203 2010-07-15  Jan Hubicka  <jh@suse.cz>
7204
7205         * cgraph.c: Include lto-streamer.h
7206         (change_decl_assembler_name): Work when assembler name hash is at place.
7207         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
7208         be sure to rename it to avoid name clash.
7209         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
7210         Localize hidden symbols only when locally defined.
7211
7212 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
7213
7214         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
7215
7216 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
7217             Kevin F. Quinn  <kevquinn@gentoo.org>
7218
7219         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
7220         * common.opt: Add -Wtrampolines.
7221         * doc/invoke.texi: Add -Wtrampolines.
7222
7223 2010-07-15  Jie Zhang  <jie@codesourcery.com>
7224
7225         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
7226         cortex_a8_issue_ls.
7227
7228 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
7229
7230         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
7231         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
7232
7233 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7234
7235         * config/spu/spu.c (reg_names): Remove prototype.
7236         (call_used_regs): Likewise.
7237
7238 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
7239
7240         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
7241         "unused" with attribute "used".
7242         (__JCR_END__): Likewise.
7243         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
7244         "used" attribute.
7245         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
7246
7247 2010-07-14  Richard Guenther  <rguenther@suse.de>
7248
7249         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
7250         (maybe_fixup_decls): Likewise.
7251         (input_gimple_stmt): Do not fixup anything.
7252         * lto-streamer-out.c (output_gimple_stmt): Make sure all
7253         non-automatic variable uses are wrapped inside a MEM_REF.
7254
7255 2010-07-14  Richard Henderson  <rth@redhat.com>
7256
7257         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
7258         for functions.
7259         * varasm.c (assemble_variable): Remove early exit for functions;
7260         assert that we're given a variable.
7261
7262 2010-07-14  Jie Zhang  <jie@codesourcery.com>
7263
7264         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
7265         cortex_a8_default when neon_type is not none.
7266
7267 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7268
7269         * lower-subreg.c (subreg_context): New static bitmap.
7270         (decompose_multiword_subregs): Allocate and free it.
7271         (find_decomposable_subregs): Set a bit in it for a register that
7272         occurs in a subreg that changes mode but not size.
7273         (can_decompose_p): Test it instead of non_decomposable_context.
7274
7275 2010-07-14  Richard Guenther  <rguenther@suse.de>
7276
7277         PR tree-optimization/44824
7278         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
7279         is_gimple_mem_ref_addr.
7280         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
7281         non-decl_address_invariant_p addresses.
7282
7283 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7284
7285         * reload.c (find_reloads): Revert code to penalize small register
7286         classes that was brought in with the IRA merge.
7287
7288 2010-07-14  Richard Guenther  <rguenther@suse.de>
7289
7290         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
7291         as base of ARRAY_REFs.
7292
7293 2010-07-14  Richard Guenther  <rguenther@suse.de>
7294
7295         PR middle-end/44930
7296         * tree-pretty-print.c (do_niy): Do not print a newline.
7297
7298 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7299
7300         * ira-int.h (struct ira_object): New.
7301         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
7302         (struct ira_allocno): Remove members min, max,
7303         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
7304         conflict_allocnos_num and conflict_vec_p.  Add new member object.
7305         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
7306         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
7307         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
7308         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
7309         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
7310         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
7311         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
7312         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
7313         an ira_object_t rather than ira_allocno_t.  All uses changed.
7314         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
7315         contains a vector of ira_object_t; all uses changed.
7316         (ira_objects_num): Declare variable.
7317         (ira_create_allocno_object): Declare function.
7318         (ira_conflict_vector_profitable_p): Adjust prototype.
7319         (ira_allocate_conflict_vec): Renamed from
7320         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
7321         (ira_allocate_object_conflicts): Renamed from
7322         ira_allocate_allocno_conflicts; first arg now ira_object_t.
7323         (struct ira_object_iterator): New.
7324         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
7325         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
7326         to conflict_vec_p.  All uses changed.
7327         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
7328         Changed to take into account that conflicts are now tracked for
7329         objects.
7330         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
7331         Args changed to accept ira_object_t.  All uses changed.
7332         (allocnos_conflict_p): New static function.
7333         (collected_conflict_objects): Renamed from collected_allocno_objects;
7334         now a vector of ira_object_t.  All uses changed.
7335         (build_conflict_bit_table): Changed to take into account that
7336         conflicts are now tracked for objects.
7337         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
7338         (print_allocno_conflicts, ira_build_conflicts): Likewise.
7339         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
7340         setup_allocno_left_conflicts_size, allocno_reload_assign,
7341         fast_allocation): Likewise.
7342         * ira-lives.c (make_hard_regno_born, make_allocno_born)
7343         process_single_reg_class_operands, process_bb_node_lives): Likewise.
7344         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
7345         Likewise.
7346         * ira-build.c (ira_objects_num): New variable.
7347         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
7348         contains a vector of ira_object_t; all uses changed.
7349         (ira_object_id_map_vec): Corresponding change.
7350         (object_pool): New static variable.
7351         (initiate_allocnos): Initialize it.
7352         (finish_allocnos): Free it.
7353         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
7354         New functions.
7355         (ira_create_allocno): Don't set members that were removed.
7356         (ira_set_allocno_cover_class): Don't change conflict hard regs.
7357         (merge_hard_reg_conflicts): Changed to take into account that
7358         conflicts are now tracked for objects.
7359         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
7360         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
7361         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
7362         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
7363         setup_min_max_conflict_allocno_ids, ):  Likewise.
7364         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
7365         to ira_object_t; all callers changed.
7366         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
7367         to ira_object_t, all callers changed.
7368         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
7369         to ira_object_t, all callers changed.
7370         (conflict_check, curr_conflict_check_tick): Renamed from
7371         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
7372         changed.
7373         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
7374         arg changed to ira_object_t, all callers changed.
7375         (create_cap_allocno): Call ira_create_allocno_object.
7376         (finish_allocno): Free the corresponding object.
7377         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
7378         callers changed.  Adjusted for dealing with objects.
7379         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
7380         dealing with objects.
7381         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
7382
7383         * ira-int.h (struct live_range): Rename allocno member to object
7384         and change type to ira_object_t.
7385         (struct ira_object): New member live_ranges.
7386         (struct ira_allocno): Remove member live_ranges.
7387         (ALLOCNO_LIVE_RANGES): Remove.
7388         (OBJECT_LIVE_RANGES): New macro.
7389         (ira_create_live_range, ira_copy_live_range_list,
7390         ira_merge_live_range_list, ira_live_ranges_intersect_p,
7391         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
7392         * ira-build.c (ira_create_object): Initialize live ranges here.
7393         (ira_create_allocno): Not here.
7394         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
7395         changed to ira_object_t, all callers changed.
7396         (copy_live_range): Rename from copy_allocno_live_range, all callers
7397         changed.
7398         (ira_copy_live_range_list): Rename from
7399         ira_copy_allocno_live_range_list, all callers changed.
7400         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
7401         all callers changed.
7402         (ira_live_ranges_intersect_p): Rename from
7403         ira_allocno_live_ranges_intersect_p, all callers changed.
7404         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
7405         callers changed.
7406         (ira_finish_live_range_list): Rename from
7407         ira_finish_allocno_live_range_list, all callers changed.
7408         (change_object_in_range_list): Rename from change_allocno_in_range_list,
7409         last arg changed to ira_object_t, all callers changed.
7410         (finish_allocno): Changed to expect live ranges in the allocno's object.
7411         (move_allocno_live_ranges, copy_allocno_live_ranges,
7412         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
7413         ira_flattening, ira_build): Likewise.
7414         * ira-color.c (allocnos_have_intersected_live_ranges_p,
7415         slot_coalesced_allocno_live_ranges_intersect,
7416         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
7417         * ira-conflicts.c (build_conflict_bit_table): Likewise.
7418         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
7419         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
7420         make_allocno_dead, create_start_finish_chains,
7421         remove_some_program_points_and_update_live_ranges,
7422         ira_debug_live_range_list): Likewise.
7423
7424         * ira-int.h (ira_object_conflict_iterator): Rename from
7425         ira_allocno_conflict_iterator.
7426         (ira_object_conflict_iter_init): Rename from
7427         ira_allocno_conflict_iter_init, second arg changed to
7428         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
7429         FOR_EACH_ALLOCNO_CONFLICT.
7430         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
7431         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
7432         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
7433         * ira-conflicts.c (print_allocno_conflicts): Likewise.
7434
7435 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
7436
7437         PR other/44874
7438         * tree-dump.c (dump_options): Add enumerate_locals entry.
7439         Add TDF_NOID exclusion to all entry.
7440         * tree-dump.h (dump_enumerated_decls): Declare.
7441         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
7442         Don't display type uid.
7443         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
7444         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
7445         * tree-ssa-live.c: Include gimple.h.
7446         (numbered_tree_d): New struct.
7447         (numbered_tree): New typedef.
7448         (DEF_VEC_O (numbered_tree): New.
7449         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
7450         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
7451         (dump_enumerated_decls): Likewise.
7452         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
7453         debug info and flag_dump_final_insns, call dump_enumerated_decls.
7454         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
7455         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
7456
7457 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
7458
7459         * expmed.h (MAX_BITS_PER_WORD): Move to...
7460         * defaults.h (MAX_BITS_PER_WORD): ...here.
7461
7462 2010-07-13  DJ Delorie  <dj@redhat.com>
7463
7464         * config/h8300/h8300.c (h8300_init_once): Default to
7465         -fstrict_volatile_bitfields.
7466
7467         * config/sh/sh.c (sh_override_options): Default to
7468         -fstrict_volatile_bitfields.
7469
7470         * config/rx/rx.c (rx_option_override): New.
7471
7472         * config/m32c/m32c.c (m32c_override_options): Default to
7473         -fstrict_volatile_bitfields.
7474
7475 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
7476
7477         * tree.h (build_function_call_expr): Delete.
7478         (build_call_expr_loc_array): New function.
7479         (build_call_expr_loc_vec): New function.
7480         * tree-flow.h (struct omp_region): Change type of ws_args field
7481         to a VEC.
7482         * builtins.c (build_function_call_expr): Delete.
7483         (build_call_expr_loc_array): New function.
7484         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
7485         (build_call_expr): Likewise.
7486         (build_call_expr_loc_vec): New function.
7487         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
7488         build_function_call_expr.
7489         * expr.c (emutls_var_address): Likewise.
7490         * varasm.c (emutls_common_1): Likewise.
7491         * omp-low.c (expand_omp_atomic_mutex): Likewise.
7492         (expand_omp_taskreg): Adjust for new type of region->ws_args.
7493         (get_ws_args_for): Return a VEC instead of a tree.
7494         (expand_parallel_call): Call build_call_expr_loc_vec instead of
7495         build_function_call_expr.
7496         * stor-layout.c (self_referential_size): Likewise.
7497
7498 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
7499
7500         PR testsuite/44701
7501         * recog.c (constrain_operands): Allow side-effects in memory
7502         operands if either < or > constraint is used, rather than if
7503         both < and > is used.
7504
7505 2010-07-13  Richard Guenther  <rguenther@suse.de>
7506
7507         PR middle-end/44911
7508         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
7509         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
7510         without name.
7511
7512 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7513
7514         PR target/44761
7515         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
7516         to variable emited.
7517         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
7518         * config/sh/sh.md (symGOT_load): Likewise.
7519         (symDTPOFF2reg): Likewise.
7520         (symTPOFF2reg): Likewise.
7521
7522 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7523
7524         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
7525         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
7526
7527 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7528
7529         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
7530         explanation.
7531         Find ucontext_t * on Solaris 11.
7532         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
7533         Handle new Solaris 11 __sighndlr patterns.
7534
7535 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
7536
7537         PR debug/44901
7538         * vec.h (VEC_block_remove): Fix comment.
7539         * tree-ssa-live.c (remove_unused_locals): Don't use
7540         VEC_unordered_remove on local_decls, instead replace a single
7541         vector element in each iteration if at least one element had
7542         to be removed and VEC_truncate at the end.
7543         * omp-low.c (expand_omp_taskreg): Likewise.
7544
7545 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7546
7547         * c-decl.c (finish_function): Fix typo in comment.
7548
7549 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
7550
7551         PR bootstrap/44921
7552         * postreload.c (move2add_use_add3_insn): Silence gcc warning
7553         on min_regno.
7554
7555 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
7556
7557         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
7558         (simplify_stmt_using_ranges): Use it.
7559
7560 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7561
7562         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
7563         member.  Do not mark as GTY(()).
7564         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
7565         (spu_builtin_decls): New static variable.
7566         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
7567         (spu_init_builtins): Likewise.
7568         (spu_builtin_mul_widen_even): Likewise.
7569         (spu_builtin_mul_widen_odd): Likewise.
7570         (spu_builtin_mask_for_load): Likewise.
7571         (spu_builtin_vec_perm): Likewise.
7572         * config/spu/spu-c.c: Include "target.h".
7573         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
7574         of using spu_builtins[].fndecl.
7575
7576 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7577
7578         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
7579         imply -minterlink-mips16.
7580
7581 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7582
7583         * config/mips/mips.h (mips16_globals): Declare.
7584         (SWITCHABLE_TARGET): Define.
7585         * config/mips/mips.c: Include target-globals.h.
7586         (mips16_globals): New variable.
7587         (mips_set_mips16_mode): Use save_target_globals and
7588         restore_target_globals instead of target_reinit.
7589
7590 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7591
7592         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
7593         to say that the function can be called more than once.
7594         * target-globals.c (save_target_globals): Call init_reg_sets.
7595
7596 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7597
7598         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
7599         * bb-reorder.h: New file.
7600         * bb-reorder.c (default_target_bb_reorder): New variable.
7601         (this_target_bb_reorder): New conditional variable.
7602         (uncond_jump_length): Redefine as a macro.
7603         * target-globals.h (this_target_bb_reorder): Declare.
7604         (target_globals): Add a bb_reorder field.
7605         (restore_target_globals): Copy the bb_reorder field to
7606         this_target_bb-reorder.
7607         * target-globals.c: Include bb-reorder.h.
7608         (default_target_globals): Initialize the bb_reorder field.
7609         (save_target_globals): Likewise.
7610
7611 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7612
7613         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
7614         * gcse.h: New file.
7615         * gcse.c: Include gcse.h.
7616         (default_target_gcse): New variable.
7617         (this_target_gcse): New conditional variable.
7618         (can_copy): Redefine as a macro.
7619         (can_copy_init_p): New macro.
7620         (can_copy_p): Remove can_copy_init_p.
7621         * target-globals.h (this_target_gcse): Declare.
7622         (target_globals): Add a gcse field.
7623         (restore_target_globals): Copy the gcse field to this_target_gcse.
7624         * target-globals.c: Include gcse.h.
7625         (default_target_globals): Initialize the gcse field.
7626         (save_target_globals): Likewise.
7627
7628 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7629
7630         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
7631         and x_ira_prohibited_mode_move_regs_initialized_p.
7632         (ira_prohibited_mode_move_regs): Redefine as a macro.
7633         * ira.c (ira_prohibited_mode_move_regs): Delete.
7634         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
7635
7636 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7637
7638         * reload.h (target_reload): Add x_cached_reg_save_code and
7639         x_cached_reg_restore_code.
7640         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
7641         Redefine as macros.
7642
7643 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7644
7645         * Makefile.in (target-globals.o): Depend on builtins.h.
7646         * builtins.h: New file.
7647         * builtins.c: Include builtins.h.
7648         (default_target_builtins): New variable.
7649         (this_target_builtins): New conditional variable.
7650         (apply_args_mode, apply_result_mode): Redefine as macros.
7651         * target-globals.h (this_target_builtins): Declare.
7652         (target_globals): Add a builtins field.
7653         (restore_target_globals): Copy the builtins field to
7654         this_target_builtins.
7655         * target-globals.c: Include builtins.h.
7656         (default_target_globals): Initialize the builtins field.
7657         (save_target_globals): Likewise.
7658
7659 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7660
7661         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
7662         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
7663         from expmed.c.
7664         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
7665         (alg_hash, alg_hash_used_p): New macros.
7666         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
7667         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
7668         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
7669
7670 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7671
7672         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
7673         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
7674         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
7675         (this_op_costs, costs_classes): Redefine as macros.
7676         (record_reg_classes): Don't take op_costs as a parameter.
7677         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
7678         (scan_one_insn): Update call to record_operand_costs.
7679
7680 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7681
7682         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
7683         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
7684         (target_ira_int): New structure.
7685         (default_target_ira_int): Declare.
7686         (this_target_ira_int): Declare as a variable or define as a macro.
7687         (ira_reg_mode_hard_regset, ira_register_move_cost)
7688         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
7689         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
7690         (prohibited_class_mode_regs, ira_important_classes_num)
7691         (ira_important_classes, ira_reg_class_intersect)
7692         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
7693         (ira_reg_class_union): Redefine as macros.
7694         * ira.h (target_ira): New structure.
7695         (default_target_ira): Declare.
7696         (this_target_ira): Declare as a variable or define as a macro.
7697         (ira_available_class_regs, ira_hard_regno_cover_class)
7698         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
7699         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
7700         (ira_class_hard_regs_num): Redefine as macros.
7701         * ira.c (default_target_ira, default_target_ira_int): New variables.
7702         (this_target_ira, this_target_ira_int): New conditional variables.
7703         (ira_reg_mode_hard_regset, ira_memory_move_cost)
7704         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
7705         (ira_class_subset_p): Delete.
7706         (no_unit_alloc_regs): Redefine as a macro.
7707         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
7708         (ira_class_hard_regs_num, ira_class_hard_reg_index)
7709         (ira_available_class_regs): Delete.
7710         (alloc_reg_class_subclasses): Redefine as a macro.
7711         (ira_reg_class_cover_size, ira_reg_class_cover)
7712         (ira_important_classes_num, ira_important_classes)
7713         (ira_important_class_nums, ira_class_translate): Delete.
7714         (cover_class_order): Document the variable's lifetime.
7715         (reorder_important_classes): Don't set ira_important_class_nums.
7716         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
7717         (ira_reg_class_super_classes, ira_reg_class_union)
7718         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
7719         Delete.
7720         (setup_reg_class_nregs): Don't set ira_max_regs.
7721         (prohibited_class_mode_regs): Delete.
7722         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
7723         (target_globals): Add ira and ira_int fields.
7724         (restore_target_globals): Copy the ira field to this_target_ira
7725         and the ira_int field to this_target_ira_int.
7726         * target-globals.c: Include ira-int.h.
7727         (default_target_globals): Initialize the ira and ira_int fields.
7728         (save_target_globals): Likewise.
7729
7730 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7731
7732         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
7733         * cfgloop.h (target_cfgloop): New structure.
7734         (default_target_cfgloop): Declare.
7735         (this_target_cfgloop): Declare as a variable or define as a macro.
7736         (target_avail_regs, target_clobbered_regs, target_res_regs)
7737         (target_reg_cost, target_spill_cost): Redefine as macros.
7738         * cfgloopanal.c (default_target_cfgloop): New variable.
7739         (this_target_cfgloop): New conditional variable.
7740         (target_avail_regs, target_clobbered_regs, target_res_regs)
7741         (target_reg_cost, target_spill_cost): Delete.
7742         * target-globals.h (this_target_cfgloop): Declare.
7743         (target_globals): Add a cfgloop field.
7744         (restore_target_globals): Copy the cfgloop field to
7745         this_target_cfgloop.
7746         * target-globals.c: Include cfgloop.h.
7747         (default_target_globals): Initialize the cfgloop field.
7748         (save_target_globals): Likewise.
7749
7750 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7751
7752         * regs.h (target_regs): Add x_direct_load, x_direct_store and
7753         x_float_extend_from_mem.
7754         (direct_load, direct_store, float_extend_from_mem): New macros.
7755         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
7756
7757 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7758
7759         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
7760         (target-globals.o): Depend on $(LIBFUNCS_H).
7761         * libfuncs.h: Include hashtab.h.
7762         (libfunc_entry): Moved from optabs.c.
7763         (target_libfuncs): New structure.
7764         (default_target_libfuncs): Declare.
7765         (this_target_libfuncs): Declare as a variable or define as a macro.
7766         (libfunc_table): Redefine as a macro.
7767         * optabs.c (default_target_libfuncs): New variable.
7768         (this_target_libfuncs): New conditional variable.
7769         (libfunc_table): Delete.
7770         (libfunc_entry): Moved to optabs.h.
7771         (libfunc_hash): Redefine as a macro.
7772         (hash_libfunc, eq_libfunc): Fix comments.
7773         (init_optabs): Use libfunc_hash to detect cases where the function
7774         has already been called.  Clear the hash table instead of
7775         recreating it.
7776         * target-globals.h (this_target_libfuncs): Declare.
7777         (target_globals): Add a libfuncs field.
7778         (restore_target_globals): Copy the libfuncs field to
7779         this_target_libfuncs.
7780         * target-globals.c: Include libfuncs.h.
7781         (default_target_globals): Initialize the libfuncs field.
7782         (save_target_globals): Likewise.
7783
7784 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7785
7786         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
7787         in all dependency lists.
7788
7789 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7790
7791         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
7792         * optabs.h (target_optabs): New structure.
7793         (default_target_optabs): Declare.
7794         (this_target_optabs): Declare as a variable or define as a macro.
7795         (optab_table, convert_optab_table, direct_optab_table): Redefine
7796         as macros.
7797         * optabs.c (default_target_optabs): New variable.
7798         (this_target_optabs): New conditional variable.
7799         (optab_table, convert_optab_table, direct_optab_table): Delete.
7800         * target-globals.h (this_target_optabs): Declare.
7801         (target_globals): Add a optabs field.
7802         (restore_target_globals): Copy the optabs field to
7803         this_target_optabs.
7804         * target-globals.c: Include expr.h and optabs.h.
7805         (default_target_globals): Initialize the optabs field.
7806         (save_target_globals): Likewise.
7807
7808 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7809
7810         * flags.h (target_flagstate): Add x_flag_excess_precision.
7811         (flag_excess_precision): Redefine as a macro.
7812         * toplev.c (flag_excess_precision): Delete.
7813
7814 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7815
7816         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
7817         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
7818         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
7819         (no_caller_save_reg_set): Redefine as a macro.
7820         * reload.h (target_reload): Add x_caller_save_initialized_p and
7821         x_regno_save_mode.
7822         (caller_save_initialized_p): Redefine as a macro.
7823         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
7824         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
7825         (regno_save_mode): Redefine as a macro.
7826
7827 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7828
7829         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
7830         * expmed.h: New file.
7831         * expmed.c (default_target_costs): New variable.
7832         (this_target_costs): New conditional variable.
7833         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
7834         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
7835         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
7836         * target-globals.h (this_target_expmed): Declare.
7837         (target_globals): Add a expmed field.
7838         (restore_target_globals): Copy the expmed field to
7839         this_target_expmed.
7840         * target-globals.c: Include expmed.h.
7841         (default_target_globals): Initialize the expmed field.
7842         (save_target_globals): Likewise.
7843
7844 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7845
7846         * Makefile.in (target-globals.o): Depend on reload.h.
7847         * reload.h (target_reload): New structure.
7848         (default_target_reload): Declare.
7849         (this_target_reload): Declare as a variable or define as a macro.
7850         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
7851         * reload1.c (default_target_reload): New variable
7852         (this_target_reload): New conditional variable.
7853         (indirect_symref_ok, double_reg_address_ok): Delete.
7854         (spill_indirect_levels): Redefine as a macro.
7855         * target-globals.h (this_target_reload): Declare.
7856         (target_globals): Add a reload field.
7857         (restore_target_globals): Copy the reload field to
7858         this_target_reload.
7859         * target-globals.c: Include hard-reg-set.h.
7860         (default_target_globals): Initialize the reload field.
7861         (save_target_globals): Likewise.
7862
7863 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7864
7865         * rtl.h (target_rtl): Add x_static_reg_base_value.
7866         * alias.c (static_reg_base_value): Redefine as a macro.
7867
7868 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7869
7870         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
7871         (GTFILES): Remove reginfo.c.
7872         * rtl.h (target_rtl): Add x_top_of_stack.
7873         (top_of_stack): New macro.
7874         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
7875         (top_of_stack): Delete.
7876
7877 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7878
7879         * regs.h (target_regs): Add x_hard_regs_of_mode,
7880         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
7881         x_may_move_out_cost and x_last_mode_for_init_move_cost.
7882         (have_regs_of_mode, contains_reg_of_mode, move_cost)
7883         (may_move_in_cost, may_move_out_cost): Redefine as macros.
7884         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
7885         (may_move_in_cost, may_move_out_cost): Delete.
7886         (last_mode_for_init_move_cost): Redefine as a macro.
7887
7888 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7889
7890         * hard-reg-set.h (target_hard_regs): New structure.
7891         (default_target_hard_regs): Declare.
7892         (this_target_hard_regs): Declare as a variable or define as a macro.
7893         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
7894         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
7895         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
7896         (reg_class_size, reg_class_subclasses, reg_class_subunion)
7897         (reg_class_superunion, reg_names): Redefine as macros.
7898         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
7899         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
7900         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
7901         (reg_class_contents, reg_class_size, reg_class_subclasses)
7902         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
7903         (default_target_hard_regs): New variable
7904         (this_target_hard_regs, initial_call_really_used_regs)
7905         (initial_reg_alloc_order): New conditional variables.
7906         (initial_reg_names): New variable.
7907         (init_reg_sets): Assert that initial_call_really_used_regs,
7908         initial_reg_alloc_order and initial_reg_names
7909         are all the same size as their variable counterparts.  Use them to
7910         initialize those counterparts.
7911         * target-globals.h (this_target_hard_regs): Declare.
7912         (target_globals): Add a hard_regs field.
7913         (restore_target_globals): Copy the hard_regs field to
7914         this_target_hard_regs.
7915         * target-globals.c: Include hard-reg-set.h.
7916         (default_target_globals): Initialize the hard_regs field.
7917         (save_target_globals): Likewise.
7918
7919 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7920
7921         * Makefile.in (target-globals.o): Depend on $(RTL_H).
7922         * rtl.h (target_rtl): New structure.
7923         (default_target_rtl): Declare.
7924         (this_target_rtl): Declare as a variable or define as a macro.
7925         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
7926         Redefine as macros.
7927         * emit-rtl.c (default_target_rtl): New variable.
7928         (this_target_rtl): New conditional variable.
7929         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
7930         (return_address_pointer_rtx): Delete.
7931         (initial_regno_reg_rtx): New macro.
7932         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
7933         (init_emit_regs): Likewise.
7934         * target-globals.h (this_target_rtl): Declare.
7935         (target_globals): Add a rtl field.
7936         (restore_target_globals): Copy the rtl field to this_target_rtl.
7937         * target-globals.c: Include rtl.h.
7938         (default_target_globals): Initialize the rtl field.
7939         (save_target_globals): Likewise.
7940
7941 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7942
7943         * Makefile.in (target-globals.o): Depend on $(REGS_H).
7944         * regs.h (target_reg_modes): New structure.
7945         (default_target_reg_modes): Declare.
7946         (this_target_reg_modes): Declare as a variable or define as a macro.
7947         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
7948         * reginfo.c (default_target_reg_modes): New variable.
7949         (this_target_reg_modes): New conditional variable.
7950         (hard_regno_nregs, reg_raw_mode): Delete.
7951         * target-globals.h (this_target_regs): Declare.
7952         (target_globals): Add a regs field.
7953         (restore_target_globals): Copy the regs field to this_target_regs.
7954         * target-globals.c: Include regs.h.
7955         (default_target_globals): Initialize the regs field.
7956         (save_target_globals): Likewise.
7957
7958 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7959
7960         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
7961         * doc/tm.texi: Regenerate.
7962         * Makefile.in (OBJS-common): Add target-globals.o.
7963         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
7964         and target-globals.h.
7965         (target-globals.o): New rule.
7966         (GTFILES): Include $(srcdir)/target-globals.h.
7967         * defaults.h (SWITCHABLE_TARGET): Define.
7968         * gengtype.c (open_base_files): Add target-globals.h to the
7969         list of includes.
7970         * target-globals.h: New file.
7971         * target-globals.c: Likewise.
7972
7973         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
7974         * flags.h (target_flag_state): New structure.
7975         (default_target_flag_state): Declare.
7976         (this_target_flag_state): Declare as a variable or define as a macro.
7977         (align_loops_log): Redefine as a macro.
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         * toplev.c (default_target_flag_state): New variable.
7982         (this_target_flag_state): New conditional variable.
7983         (align_loops_log): Delete.
7984         (align_loops_max_skip, align_jumps_log): Likewise.
7985         (align_jumps_max_skip, align_labels_log): Likewise.
7986         (align_labels_max_skip, align_functions_log): Likewise.
7987         * target-globals.h (this_target_flag_state): Declare.
7988         (target_globals): Add a flag_state field.
7989         (restore_target_globals): Copy the flag_state field to
7990         this_target_flag_state.
7991         * target-globals.c: Include flags.h.
7992         (default_target_globals): Initialize the flag_state field.
7993         (save_target_globals): Likewise.
7994
7995 2010-07-12  Jie Zhang  <jie@codesourcery.com>
7996
7997         * postreload.c (reg_symbol_ref[]): New.
7998         (move2add_use_add2_insn): New.
7999         (move2add_use_add3_insn): New.
8000         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
8001         (move2add_note_store): Likewise.
8002
8003 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
8004
8005         PR rtl-optimization/44752
8006         * genautomata.c (main): Don't emit an empty file even if there
8007         is no automaton.
8008
8009 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8010
8011         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
8012         ix86_solaris_return_in_memory.
8013         * config/i386-protos.h: Reflect this.
8014         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
8015         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
8016         Move ...
8017         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
8018
8019 2010-07-12  Jie Zhang  <jie@codesourcery.com>
8020
8021         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
8022         align the stack when it's going to be saved.
8023
8024 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8025
8026         PR pch/14940
8027         * config/host-solaris.c (mmap_fixed): New function.
8028         (sol_gt_pch_get_address): Use it.
8029         (sol_gt_pch_use_address): Likewise.
8030
8031 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8032
8033         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8034         pentiumpro on Solaris 8 and 9/x86.
8035         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
8036         Document SSE/SSE2 support.
8037         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
8038
8039 2010-07-12  Andi Kleen  <ak@linux.intel.com>
8040
8041         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
8042         instead of gcc_assert to print better error message for multiple
8043         prevailing defs.
8044
8045 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
8046
8047         * config/i386/i386.c (ix86_asm_output_function_label): Change format
8048         string placeholder from 0x%x to %#x.
8049         (ix86_code_end): Use putc to output '\n'.
8050         (ix86_print_operand) <case ';'>: Use putc to output ';'.
8051
8052 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
8053
8054         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
8055         in directive -export.
8056
8057 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
8058
8059         * reginfo.h (reg_classes_intersect_p): Change arguments type to
8060         reg_class_t.
8061         * rtl.h (reg_classes_intersect_p): Adjust prototype.
8062
8063         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8064         Remove macros.
8065         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
8066         rs6000_memory_move_cost): Remove
8067         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
8068         TARGET_MEMORY_MOVE_COST): Define.
8069         (rs6000_register_move_cost): Make static. Change arguments type from
8070         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
8071         (rs6000_memory_move_cost): Make static. Change arguments type from
8072         'enum reg_class' to reg_class_t.
8073
8074 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
8075
8076         PR middle-end/42505
8077         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
8078         lookup code into....
8079         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
8080         new functions.
8081         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
8082         * cfgloopanal.c (target_clobbered_regs): Define.
8083         (init_set_costs): Initialize target_clobbered_regs.
8084         (estimate_reg_pressure_cost): Add call_p argument.  When true,
8085         adjust the number of available registers to exclude the
8086         call-clobbered registers.
8087         * cfgloop.h (target_clobbered_regs): Declare.
8088         (estimate_reg_pressure_cost): Adjust declaration.
8089         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
8090         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
8091         (determine_set_costs): Dump target_clobbered_regs.
8092         (loop_body_includes_call): New function.
8093         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
8094         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
8095         call_p flag through.
8096         (best_gain_for_invariant): Likewise.
8097         (find_invariants_to_move): Likewise.
8098         (move_single_loop_invariants): Likewise, using already-computed
8099         has_call field.
8100
8101 2010-07-10  Richard Guenther  <rguenther@suse.de>
8102             Joern Rennecke  <joern.rennecke@embecosm.com>
8103
8104         PR debug/44832
8105         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
8106         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
8107         unless they have DECL_IGNORED_P set.
8108
8109 2010-07-10  Richard Guenther  <rguenther@suse.de>
8110
8111         PR lto/44889
8112         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
8113         helper function.
8114         (gimple_types_compatible_p): Similar to pointed-to
8115         types allow and merge a mix of complete and incomplete aggregate.
8116         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
8117         (iterative_hash_gimple_type): Adjust for that.
8118
8119 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
8120
8121         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
8122
8123 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
8124
8125         PR objc/44140
8126         * config/darwin.c (output_objc_section_asm_op): Save and restore
8127         section when outputting ObjC section list.
8128
8129 2010-07-09  Jan Hubicka  <jh@suse.cz>
8130
8131         * lto-streamer-out.c (produce_symtab): Do not write alias
8132         cgraph/varpool nodes.
8133
8134 2010-07-09  Jan Hubicka  <jh@suse.cz>
8135
8136         * tree-inline.c (declare_return_variable): Fix ICE while
8137         inlining DECL_BY_VALUE function not in SSA form
8138
8139 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
8140
8141         PR tree-optimization/44576
8142         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
8143         New.  Pull out from is_loop_prefetching_profitable to implement
8144         the trip count to ahead ratio heuristic.
8145         (mem_ref_count_reasonable_p): New.  Pull out from
8146         is_loop_prefetching_profitable to implement the instruction to
8147         memory reference ratio heuristic.  Also consider not reasonable if
8148         the memory reference count is above a threshold (to avoid
8149         explosive compilation time.
8150         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
8151         is_loop_prefetching_profitable to implement the instruction to
8152         prefetch ratio heuristic.
8153         (is_loop_prefetching_profitable): Removed.
8154         (loop_prefetch_arrays): Distribute the cost analysis across the
8155         function to allow early exit of the prefetch analysis.
8156         is_loop_prefetching_profitable is splitted into three functions,
8157         with each one called as early as possible.
8158         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
8159         number of memory references in a loop is considered too many.
8160
8161 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
8162
8163         * reload.c (find_reloads): Don't clear badop if we have a winreg
8164         alternative, but not win, and the class only has fixed regs.
8165         * hard-reg-set.h (class_only_fixed_regs): Declare.
8166         * reginfo.c (class_only_fixed_regs): New array.
8167         (init_reg_sets_1): Initialize it.
8168         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
8169         discourage alternatives using the stack pointer.
8170
8171         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
8172
8173         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
8174
8175         * config/arm/arm.md (cbranchqi4): Fix array size.
8176         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
8177         calculating length.
8178
8179 2010-07-09  Richard Guenther  <rguenther@suse.de>
8180
8181         * gimple.c (struct type_fixup_s): New struct and VEC type.
8182         (gimple_register_type_fixups): New static global.
8183         (gimple_queue_type_fixup): New function.
8184         (gimple_types_compatible_p): Queue type fixups instead of
8185         applying them here.
8186         (gimple_register_type): Apply queued fixups for the
8187         canonical type.  Empty the type fixup queue.
8188
8189 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
8190
8191         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
8192         * configure: Regenerate.
8193         * config.in: Ditto.
8194
8195 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
8196             Denys Vlasenko  <dvlasenk@redhat.com>
8197             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8198
8199         PR tree-optimization/28632
8200         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
8201         (extract_range_from_binary_expr): Further optimize
8202         BIT_AND_EXPR and BIT_IOR_EXPR.
8203
8204 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
8205
8206         * tree-if-conv.c (fold_or_predicates): New.
8207         (add_to_predicate_list): Call it.
8208
8209 2010-07-09  Richard Guenther  <rguenther@suse.de>
8210
8211         PR middle-end/44890
8212         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
8213         if base is a pointer.
8214         * tree-cfg.c (verify_expr): Update MEM_REF checking.
8215
8216 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
8217
8218         PR target/44877
8219         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
8220         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
8221         builtin mask for load/store builtins.
8222
8223 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
8224
8225         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
8226         for "lock addl".
8227         * configure: Regenerate.
8228         * config/i386/i386.c (ix86_print_operand) <case ';'>:
8229         Remove TARGET_MACHO.
8230
8231 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
8232
8233         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
8234         default ISA flags.
8235         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
8236
8237 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
8238
8239         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
8240
8241 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
8242
8243         * config/picochip/picochip.md (commsTestPort): Emit more
8244         efficient sequence for tstport instruction.
8245
8246 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
8247
8248         * config/i386/i386.c (ix86_veclib_handler): Make static.
8249
8250 2010-07-09  Richard Guenther  <rguenther@suse.de>
8251
8252         PR tree-optimization/44852
8253         * tree-ssa-alias.c: Include toplev.h for exact_log2.
8254         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
8255         in MEM_REF.
8256         (indirect_refs_may_alias_p): Likewise.
8257         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
8258
8259 2010-07-09  Richard Guenther  <rguenther@suse.de>
8260
8261         PR tree-optimization/44882
8262         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
8263         sets do conflict.
8264         (vectorizable_load): Likewise.
8265
8266 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
8267
8268         PR target/40657
8269         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
8270         All callers changed.
8271         Handle the case when we're called for the epilogue.
8272         (thumb_unexpanded_epilogue): Use it.
8273         (thumb1_expand_epilogue): Likewise.
8274
8275 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
8276
8277         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
8278         both ranges are range_int_cst_p with non-negative minimum,
8279         try harder to derive smaller range.
8280
8281 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8282
8283         * genrecog.c: Include diagnostic-core.h before toplev.h.
8284         * genoutput.c: Likewise.
8285         * genextract.c: Likewise.
8286         * genautomata.c: Likewise.
8287         * genemit.c: Likewise.
8288         * genpeep.c: Likewise.
8289         * genattrtab.c: Likewise.
8290         * genconditions.c: Likewise.
8291         * genpreds.c: Likewise.
8292
8293 2010-07-08  Andi Kleen  <ak@linux.intel.com>
8294
8295         * lto-section-in.c (lto_section_name): Add missing comma.
8296
8297 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
8298
8299         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
8300         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
8301         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
8302         (ia64_override_options): Rename to...
8303         (ia64_option_override): ... this one. Make static.
8304
8305 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8306
8307         PR middle-end/44843
8308         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
8309         pointed-to type of the offset in a MEM_REF to compute the alignment.
8310
8311 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
8312
8313         * final.c (final_scan_insn): Replace
8314         TARGET_UNWIND_INFO macro check by unwind_emit
8315         hook NULL check.
8316         * targhooks.c (default_unwind_emit): Removed.
8317         * targhooks.h (default_unwind_emit): Likewise.
8318         * target.def (unwind_emit): Set default value to NULL.
8319
8320         * config/i386/i386-protos.h (ix86_asm_output_function_label):
8321         New prototype.
8322         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
8323         for NULL fntype argument and allow 64-bit targets.
8324         (ix86_asm_output_function_label): New function.
8325         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
8326         (ix86_handle_fndecl_attribute): Likewise.
8327         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
8328         * doc/doc/tm.texi: Regenerated.
8329         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
8330         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
8331         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
8332         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
8333         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
8334         * config/elfos.h: Likewise.
8335         * config/i386/cygming.h: Likewise.
8336         * config/netbsd-aout.h: Likewise.
8337         * config/openbsd.h: Likewise.
8338         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
8339         by ix86_asm_output_function_label function call.
8340         * varasm.c (assemble_start_function): Use
8341         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
8342
8343 2010-07-08  Jan Hubicka  <jh@suse.cz>
8344
8345         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
8346         New function.
8347         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
8348         Declare.
8349         * ipa-cp.c (ipcp_estimate_growth): Use it.
8350         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
8351         Likewise.
8352
8353 2010-07-08  Jan Hubicka  <jh@suse.cz>
8354
8355         * tree-inline.c (declare_return_variable): Allocate annotation for new
8356         temporary.
8357
8358 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
8359
8360         PR tree-optimization/44710
8361         * tree-if-conv.c (parse_predicate): New.
8362         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
8363         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
8364
8365 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
8366
8367         * common.opt (ftree-loop-if-convert): New flag.
8368         * doc/invoke.texi (ftree-loop-if-convert): Documented.
8369         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
8370         when flag_tree_loop_if_convert is set.
8371
8372 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
8373
8374         * config/i386/i386.c: Use short syntax for function calls
8375         through function pointers.
8376         * config/i386/i386.md: Ditto.
8377
8378 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8379
8380         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
8381
8382 2010-07-08  Richard Guenther  <rguenther@suse.de>
8383
8384         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
8385         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
8386
8387 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
8388
8389         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
8390         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
8391         (loc_list_from_tree): Likewise.
8392         (output_loc_operands): Handle outputting DW_OP_const[48]u
8393         with loc->dtprel set.
8394         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
8395
8396 2010-07-08  Jan Hubicka  <jh@suse.cz>
8397
8398         * ipa.c: Include pointer-set.h
8399         (cgraph_externally_visible_p): New attribute ALIASED;
8400         when in LTO, hidden symbols are local unless they are aliased.
8401         (function_and_variable_visibility): Compute aliased nodes;
8402         handle LTO and hidden symbol on functions and vars.
8403         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
8404         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
8405
8406 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8407
8408         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8409         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8410         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8411         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8412         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8413         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
8414         (ix86_gen_probe_stack_range): Likewise.
8415         (override_options): Set them.
8416         (ix86_target_stack_probe): New function.
8417         (ix86_compute_frame_layout): Force use of push instructions to
8418         save registers if stack checking with probes is enabled.
8419         (get_scratch_register_on_entry): New function.
8420         (release_scratch_register_on_entry): Likewise.
8421         (ix86_adjust_stack_and_probe): Likewise.
8422         (output_adjust_stack_and_probe): Likewise.
8423         (ix86_emit_probe_stack_range): Likewise.
8424         (output_probe_stack_range): Likewise.
8425         (ix86_expand_prologue): Emit stack checking code if static built-in
8426         stack checking is enabled.
8427         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
8428         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
8429         (output_adjust_stack_and_probe): Likewise.
8430         (output_probe_stack_range): Likewise.
8431         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8432         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
8433         TARGET_STACK_PROBE.
8434         (allocate_stack_worker_64): Likewise.
8435         (allocate_stack): Likewise.
8436         (adjust_stack_and_probe): New insn.
8437         (probe_stack_range): Likewise.
8438
8439 2010-07-08  Richard Guenther  <rguenther@suse.de>
8440
8441         PR tree-optimization/44831
8442         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
8443         a MEM_REF preserving TBAA info of the original dereference.
8444         Dereference the original pointer if the address is not invariant.
8445         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
8446         at least one invariant address that we are going to dereference.
8447
8448 2010-07-08  Richard Guenther  <rguenther@suse.de>
8449
8450         PR tree-optimization/44861
8451         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
8452         information when building MEM_REFs.
8453         (vectorizable_load): Likewise.
8454         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
8455
8456 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8457
8458         * config/sol2-c.c: Do not include diagnostic-core.h.
8459
8460 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8461
8462         PR bootstrap/44768
8463         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
8464         with respect to current_function_decl. Pass decl of the function.
8465         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
8466         * ipa-inline.c (compute_inline_parameters): Pass decl to
8467         estimated_stack_frame_size.
8468
8469 2010-07-08  Richard Guenther  <rguenther@suse.de>
8470
8471         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8472         New function.
8473         (valueize_refs): Call it.
8474
8475 2010-07-08  Richard Guenther  <rguenther@suse.de>
8476
8477         PR rtl-optimization/44838
8478         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
8479         SSA form do not use pointer equivalence.
8480
8481 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8482
8483         * dwarf2out.c (AT_linkage_name): Delete.
8484         (add_linkage_attr): New function.
8485         (add_linkage_name): Call it to emit the linkage attribute.
8486         (dwarf2out_finish): Likewise.
8487         (move_linkage_attr): Explicitly accept both attribute variants.
8488
8489 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8490
8491         * toplev.h: Do not include diagnostic-core.h.
8492         Include diagnostic-core.h in every file that includes toplev.h.
8493         * c-tree.h: Do not include toplev.h.
8494         * pretty-print.h: Update comment.
8495         * Makefile.in: Update dependencies.
8496         * alias.c: Include diagnostic-core.h in every file that includes
8497         toplev.h.
8498         * attribs.c: Likewise.
8499         * auto-inc-dec.c: Likewise.
8500         * bb-reorder.c: Likewise.
8501         * bt-load.c: Likewise.
8502         * caller-save.c: Likewise.
8503         * calls.c: Likewise.
8504         * cfg.c: Likewise.
8505         * cfganal.c: Likewise.
8506         * cfgbuild.c: Likewise.
8507         * cfgcleanup.c: Likewise.
8508         * cfghooks.c: Likewise.
8509         * cfgloop.c: Likewise.
8510         * combine.c: Likewise.
8511         * config/alpha/alpha.c: Likewise.
8512         * config/arc/arc.c: Likewise.
8513         * config/arm/arm.c: Likewise.
8514         * config/arm/pe.c: Likewise.
8515         * config/avr/avr.c: Likewise.
8516         * config/bfin/bfin.c: Likewise.
8517         * config/cris/cris.c: Likewise.
8518         * config/crx/crx.c: Likewise.
8519         * config/darwin-c.c: Likewise.
8520         * config/darwin.c: Likewise.
8521         * config/fr30/fr30.c: Likewise.
8522         * config/frv/frv.c: Likewise.
8523         * config/h8300/h8300.c: Likewise.
8524         * config/host-darwin.c: Likewise.
8525         * config/i386/i386.c: Likewise.
8526         * config/i386/netware.c: Likewise.
8527         * config/i386/nwld.c: Likewise.
8528         * config/i386/winnt-cxx.c: Likewise.
8529         * config/i386/winnt-stubs.c: Likewise.
8530         * config/i386/winnt.c: Likewise.
8531         * config/ia64/ia64-c.c: Likewise.
8532         * config/ia64/ia64.c: Likewise.
8533         * config/iq2000/iq2000.c: Likewise.
8534         * config/lm32/lm32.c: Likewise.
8535         * config/m32c/m32c-pragma.c: Likewise.
8536         * config/m32c/m32c.c: Likewise.
8537         * config/m32r/m32r.c: Likewise.
8538         * config/m68hc11/m68hc11.c: Likewise.
8539         * config/m68k/m68k.c: Likewise.
8540         * config/mcore/mcore.c: Likewise.
8541         * config/mep/mep-pragma.c: Likewise.
8542         * config/mep/mep.c: Likewise.
8543         * config/mmix/mmix.c: Likewise.
8544         * config/mn10300/mn10300.c: Likewise.
8545         * config/moxie/moxie.c: Likewise.
8546         * config/pa/pa.c: Likewise.
8547         * config/pdp11/pdp11.c: Likewise.
8548         * config/picochip/picochip.c: Likewise.
8549         * config/rs6000/rs6000-c.c: Likewise.
8550         * config/rs6000/rs6000.c: Likewise.
8551         * config/rx/rx.c: Likewise.
8552         * config/s390/s390.c: Likewise.
8553         * config/score/score.c: Likewise.
8554         * config/score/score3.c: Likewise.
8555         * config/score/score7.c: Likewise.
8556         * config/sh/sh.c: Likewise.
8557         * config/sh/symbian-base.c: Likewise.
8558         * config/sh/symbian-c.c: Likewise.
8559         * config/sh/symbian-cxx.c: Likewise.
8560         * config/sol2-c.c: Likewise.
8561         * config/sol2.c: Likewise.
8562         * config/sparc/sparc.c: Likewise.
8563         * config/spu/spu.c: Likewise.
8564         * config/stormy16/stormy16.c: Likewise.
8565         * config/v850/v850-c.c: Likewise.
8566         * config/v850/v850.c: Likewise.
8567         * config/vax/vax.c: Likewise.
8568         * config/vxworks.c: Likewise.
8569         * config/xtensa/xtensa.c: Likewise.
8570         * convert.c: Likewise.
8571         * cse.c: Likewise.
8572         * cselib.c: Likewise.
8573         * dbgcnt.c: Likewise.
8574         * dbxout.c: Likewise.
8575         * ddg.c: Likewise.
8576         * dominance.c: Likewise.
8577         * emit-rtl.c: Likewise.
8578         * explow.c: Likewise.
8579         * expmed.c: Likewise.
8580         * fixed-value.c: Likewise.
8581         * fold-const.c: Likewise.
8582         * fwprop.c: Likewise.
8583         * gcse.c: Likewise.
8584         * ggc-common.c: Likewise.
8585         * ggc-page.c: Likewise.
8586         * ggc-zone.c: Likewise.
8587         * gimple-low.c: Likewise.
8588         * gimplify.c: Likewise.
8589         * graph.c: Likewise.
8590         * haifa-sched.c: Likewise.
8591         * ifcvt.c: Likewise.
8592         * implicit-zee.c: Likewise.
8593         * integrate.c: Likewise.
8594         * ira-build.c: Likewise.
8595         * ira-color.c: Likewise.
8596         * ira-conflicts.c: Likewise.
8597         * ira-costs.c: Likewise.
8598         * ira-lives.c: Likewise.
8599         * ira.c: Likewise.
8600         * lists.c: Likewise.
8601         * loop-doloop.c: Likewise.
8602         * loop-iv.c: Likewise.
8603         * lto-opts.c: Likewise.
8604         * lto-symtab.c: Likewise.
8605         * main.c: Likewise.
8606         * modulo-sched.c: Likewise.
8607         * optabs.c: Likewise.
8608         * params.c: Likewise.
8609         * plugin.c: Likewise.
8610         * postreload-gcse.c: Likewise.
8611         * postreload.c: Likewise.
8612         * predict.c: Likewise.
8613         * profile.c: Likewise.
8614         * real.c: Likewise.
8615         * regcprop.c: Likewise.
8616         * reginfo.c: Likewise.
8617         * regmove.c: Likewise.
8618         * reorg.c: Likewise.
8619         * resource.c: Likewise.
8620         * rtl.c: Likewise.
8621         * rtlanal.c: Likewise.
8622         * sched-deps.c: Likewise.
8623         * sched-ebb.c: Likewise.
8624         * sched-rgn.c: Likewise.
8625         * sdbout.c: Likewise.
8626         * sel-sched-dump.c: Likewise.
8627         * sel-sched-ir.c: Likewise.
8628         * simplify-rtx.c: Likewise.
8629         * stmt.c: Likewise.
8630         * stor-layout.c: Likewise.
8631         * store-motion.c: Likewise.
8632         * targhooks.c: Likewise.
8633         * tree-cfg.c: Likewise.
8634         * tree-cfgcleanup.c: Likewise.
8635         * tree-dump.c: Likewise.
8636         * tree-eh.c: Likewise.
8637         * tree-inline.c: Likewise.
8638         * tree-nomudflap.c: Likewise.
8639         * tree-object-size.c: Likewise.
8640         * tree-optimize.c: Likewise.
8641         * tree-outof-ssa.c: Likewise.
8642         * tree-phinodes.c: Likewise.
8643         * tree-profile.c: Likewise.
8644         * tree-ssa-ccp.c: Likewise.
8645         * tree-ssa-coalesce.c: Likewise.
8646         * tree-ssa-live.c: Likewise.
8647         * tree-ssa-loop-niter.c: Likewise.
8648         * tree-ssa-loop-prefetch.c: Likewise.
8649         * tree-ssa-loop.c: Likewise.
8650         * tree-ssa-structalias.c: Likewise.
8651         * tree-ssa-uninit.c: Likewise.
8652         * tree-ssa.c: Likewise.
8653         * tree-vect-data-refs.c: Likewise.
8654         * tree-vect-loop-manip.c: Likewise.
8655         * tree-vect-loop.c: Likewise.
8656         * tree-vect-patterns.c: Likewise.
8657         * tree-vect-stmts.c: Likewise.
8658         * tree-vrp.c: Likewise.
8659         * varasm.c: Likewise.
8660         * vec.c: Likewise.
8661         * web.c: Likewise.
8662         * xcoffout.c: Likewise.
8663
8664 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
8665
8666         * gengtype.c (write_field_root): New function.
8667         (write_root): Use it.
8668
8669 2010-07-07  Wei Guozhi  <carrot@google.com>
8670
8671         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
8672         of lowest bits to lshift/compare): Add a missing line.
8673
8674 2010-07-07  Wei Guozhi  <carrot@google.com>
8675
8676         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
8677         of lowest bits to lshift/compare): New.
8678
8679 2010-07-07  Tom Tromey  <tromey@redhat.com>
8680
8681         * doc/tm.texi: Update.
8682         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
8683         Add @hook.
8684         * target.def (want_debug_pub_sections): New hook.
8685         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
8686         * dwarf2out.c (add_pubname_string): Check
8687         targetm.want_debug_pub_sections.
8688         (add_pubname): Likewise.
8689         (add_pubtype): Likewise.
8690
8691 2010-07-07  Jie Zhang  <jie@codesourcery.com>
8692
8693         * genautomata.c (output_automata_list_min_issue_delay_code):
8694         Correctly decompress min_issue_delay.
8695
8696 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8697
8698         PR rtl-optimization/44404
8699         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
8700         possible, use reg_overlap_mentioned_p instead.
8701
8702 2010-07-07  Duncan Sands  <baldrick@free.fr>
8703
8704         PR middle-end/41355
8705         * tree.c (build_function_type_skip_args): Copy the original type using
8706         build_distinct_type_copy rather than copy_node.
8707
8708 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8709
8710         PR target/44850
8711         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
8712         revision 161876.
8713         (ix86_expand_prologue): Likewise.
8714         (ix86_handle_fndecl_attribute): Likewise.
8715         (ix86_asm_declare_function_name): Likewise.
8716         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8717         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8718         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
8719         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
8720         * doc/extend.texi: Likewise.
8721
8722 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8723
8724         PR target/44844
8725         * config/i386/i386.md (rdrand<mode>): Changed to expand to
8726         retry if the carry flag isn't valid.
8727         (rdrand<mode>_1): New.
8728
8729 2010-07-07  Richard Guenther  <rguenther@suse.de>
8730
8731         PR middle-end/44790
8732         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
8733         for expanding the constant offset for MEM_REFs.
8734
8735 2010-07-07  Richard Guenther  <rguenther@suse.de>
8736
8737         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
8738         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
8739         * gimple.h (is_gimple_operand): Remove.
8740         * gimple.c (is_gimple_operand): Likewise.
8741         (walk_gimple_op): Fix wi->val_only setting for calls.
8742         * tree-cfg.c (verify_gimple_call): Fix argument validation.
8743         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
8744         invalid gimple calls.
8745
8746 2010-07-06  Jan Hubicka  <jh@suse.cz>
8747
8748         * lto-cgraph.c (output_cgraph): Add missing declaration.
8749
8750 2010-07-06  Jan Hubicka  <jh@suse.cz>
8751
8752         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
8753         partition.
8754
8755 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
8756
8757         * doc/gimple.texi (GIMPLE_DEBUG): Document.
8758         * doc/rtl.texi (Debug Information): New node.
8759         (NOTE_INSN_VAR_LOCATION): Document.
8760         (debug_insn): Likewise.
8761         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
8762
8763 2010-07-07  Jan Hubicka  <jh@suse.cz>
8764
8765         With parts by Richard Guenther.
8766
8767         PR middle-end/44813
8768         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
8769         for functions passed by reference.
8770         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
8771         in memory when passed by reference.
8772         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
8773         beggining.
8774         * ipa-split.c (split_function): Cleanup way return value is passed;
8775         handle SSA DECL_BY_REFERENCE retvals.
8776         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
8777         DECL_BY_REFERENCE is set.
8778         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
8779         find_what_p_points_to): Handle RESULT_DECL.
8780         * tree-inline.c (declare_return_variable): Get new entry_block argument;
8781         when passing by reference ensure that RESULT_DECL is gimple_val.
8782         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
8783         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
8784
8785 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8786
8787         PR rtl-optimization/44787
8788         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
8789         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
8790
8791 2010-07-06  Jan Hubicka  <jh@suse.cz>
8792
8793         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
8794         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
8795         with body can prevail.
8796         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
8797         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
8798         * cgraph.c (cgraph_get_node_or_alias): New function.
8799         * cgraph.h (cgraph_get_node_or_alias): Declare.
8800
8801 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
8802
8803         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
8804         support.
8805         (ix86_expand_prologue): Likewise.
8806         (ix86_handle_fndecl_attribute): Likewise.
8807         (ix86_asm_declare_function_name): New function for
8808         ASM_DECLARE_FUNCTION_NAME.
8809         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
8810         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
8811         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
8812         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
8813         * doc/extend.texi: Adjust documentation about ms_hook_prologue
8814         attribute.
8815
8816 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8817
8818         * config/i386/i386.md (immediate_operand): New mode attribute.
8819
8820         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
8821         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
8822         using P mode iterator.
8823         (pro_epilogue_adjust_stack_di_2): Rename from
8824         pro_epilogue_adjust_stack_rex64_2.
8825
8826         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
8827
8828 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8829
8830         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
8831         through gen_mov_insv_1 function pointer.
8832         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
8833         gen_truncxf<mode>2 through gen_truncxf function pointer.
8834         (remainder<mode>3): Ditto.
8835         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
8836         (allocate_stack): Call gen_allocate_stack_worker_64 or
8837         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
8838         function pointer.
8839         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
8840         function pointer.
8841
8842 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8843
8844         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
8845         operand constraint instead of <r><i>m.
8846
8847 2010-07-06  Richard Guenther  <rguenther@suse.de>
8848
8849         PR middle-end/44828
8850         * convert.c (convert_to_integer): Watch out for overflowing
8851         MULT_EXPR as well.
8852
8853 2010-07-05  Jan Hubicka  <jh@suse.cz>
8854
8855         * lto-streamer.c (write_symbol_vec): Rename to ...
8856         (write_symbol) ... this one; write only symbol given and when
8857         present in cache. Sanity check that what is defined is present
8858         in cgraph/varpool with body/finalized decl.
8859         (write_symbols_of_kind): Remove.
8860         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
8861         pairs to produce symtab.
8862         (produce_asm_for_decls): Update call of produce_symtab; don't do so
8863         when doing WPA streaming.
8864
8865 2010-07-05  Jan Hubicka  <jh@suse.cz>
8866
8867         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
8868         function is still available to fold into.
8869
8870 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8871
8872         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
8873         * function.h (struct_function): Change type of local_decls field
8874         to a VEC.
8875         (add_local_decl): New function.
8876         (FOR_EACH_LOCAL_DECL): New macro.
8877         * cfgexpand.c (init_vars_expansion): Adjust for new type of
8878         cfun->local_decls.
8879         (estimated_stack_frame_size): Likewise.
8880         (expand_used_vars): Likewise.
8881         * cgraphbuild.c (build_cgraph_edges): Likewise.
8882         * function.c (instantiate_decls_1): Likewise.
8883         * ipa-struct-reorg.c (build_data_structure): Likewise.
8884         * ipa-type-escape.c (analyze_function): Likewise.
8885         * lto-streamer-in.c (input_function): Likewise.
8886         * lto-streamer-out.c (output_function): Likewise.
8887         * tree-ssa-live.c (remove_unused_locals): Likewise.
8888         * tree.c (free_lang_data_in_decl): Likewise.
8889         (find_decls_types_in_node): Likewise.
8890         * omp-low.c (remove_exit_barrier): Likewise.
8891         (expand_omp_taskreg): Likewise.
8892         (list2chain): Rename to...
8893         (vec2chain): ...this.  Adjust.
8894         * cgraphunit.c (assemble_thunk): Call add_local_decl.
8895         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
8896         * gimple-low.c (record_vars_into): Likewise.
8897         * tree-inline.c (remap_decls): Likewise.
8898         (declare_return_variable): Likewise.
8899         (declare_inline_vars): Likewise.
8900         (copy_forbidden): Adjust for new type of cfun->local_decls.
8901         (add_local_variables): New function.
8902         (expand_call_inline): Call it.
8903         (tree_function_versioning): Likewise.
8904
8905 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8906
8907         AVX Programming Reference (June, 2010)
8908         * config/i386/cpuid.h (bit_F16C): New.
8909         (bit_RDRND): Likewise.
8910         (bit_FSGSBASE): Likewise.
8911
8912         * config/i386/i386-builtin-types.def: Add
8913         "DEF_FUNCTION_TYPE (UINT16)", function types for
8914         float16 <-> float conversions and
8915         "DEF_FUNCTION_TYPE (VOID, UINT64)".
8916
8917         * config/i386/i386-c.c (ix86_target_macros_internal): Support
8918         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
8919         OPTION_MASK_ISA_F16C.
8920
8921         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
8922         (OPTION_MASK_ISA_RDRND_SET): Likewise.
8923         (OPTION_MASK_ISA_F16C_SET): Likewise.
8924         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
8925         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
8926         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
8927         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
8928         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
8929         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
8930         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
8931         (override_options): Handle them.
8932         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
8933         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
8934         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
8935         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
8936         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
8937         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
8938         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
8939         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
8940         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
8941         (bdesc_args): Likewise.
8942         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
8943         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
8944         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
8945         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
8946         Handle non-memory store.
8947
8948         * config/i386/i386.h (TARGET_FSGSBASE): New.
8949         (TARGET_RDRND): Likewise.
8950         (TARGET_F12C): Likewise.
8951
8952         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
8953         (UNSPEC_VCVTPS2PH): Likewise.
8954         (UNSPECV_RDFSBASE): Likewise.
8955         (UNSPECV_RDGSBASE): Likewise.
8956         (UNSPECV_WRFSBASE): Likewise.
8957         (UNSPECV_WRGSBASE): Likewise.
8958         (UNSPECV_RDRAND): Likewise.
8959         (rdfsbase<mode>): Likewise.
8960         (rdgsbase<mode>): Likewise.
8961         (wrfsbase<mode>): Likewise.
8962         (wrgsbase<mode>): Likewise.
8963         (rdrand<mode>): Likewise.
8964
8965         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
8966
8967         * config/i386/immintrin.h (_rdrand_u16): New.
8968         (_rdrand_u32): Likewise.
8969         (_readfsbase_u32): Likewise.
8970         (_readfsbase_u64): Likewise.
8971         (_readgsbase_u32): Likewise.
8972         (_readgsbase_u64): Likewise.
8973         (_writefsbase_u32): Likewise.
8974         (_writefsbase_u64): Likewise.
8975         (_writegsbase_u32): Likewise.
8976         (_writegsbase_u64): Likewise.
8977         (_rdrand_u64): Likewise.
8978         (_cvtsh_ss): Likewise.
8979         (_mm_cvtph_ps): Likewise.
8980         (_mm256_cvtph_ps): Likewise.
8981         (_cvtss_sh): Likewise.
8982         (_mm_cvtps_ph): Likewise.
8983         (_mm256_cvtps_ph): Likewise.
8984
8985         * config/i386/sse.md (vcvtph2ps): New.
8986         (*vcvtph2ps_load): Likewise.
8987         (vcvtph2ps256): Likewise.
8988         (vcvtps2ph): Likewise.
8989         (*vcvtps2ph): Likewise.
8990         (*vcvtps2ph_store): Likewise.
8991         (vcvtps2ph256): Likewise.
8992
8993         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
8994
8995         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
8996
8997 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
8998
8999         PR bootstrap/44512
9000         * genenums.c (main): Output include of insn-constants.h
9001         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
9002
9003 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
9004
9005         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
9006         (override_options): Initialize it.
9007         (ix86_expand_prologue): Use it.
9008
9009 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
9010
9011         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
9012
9013 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
9014
9015         * double-int.h (fit_double_type): Remove declaration.
9016         * double-int.c (fit_double_type): Remove function.
9017         * tree.h (int_fits_type_p): Adjust prototype.
9018         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
9019         instead of fit_double_type.
9020         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
9021         instead of fit_double_type and build_int_cst_wide.
9022         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
9023         instead of fit_double_type and build_int_cst_wide.
9024         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
9025         of fit_double_type.
9026
9027 2010-07-05  Jan Hubicka  <jh@suse.cz>
9028
9029         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
9030         in_other_partition.
9031         * lto-cgraph.c (referenced_from_other_partition_p,
9032         reachable_from_other_partition_p): Use in_other_partition flags.
9033         (output_node, output_varpool_node): COMDAT nodes always have private
9034         copies and thus are never used from other partition.
9035
9036 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
9037
9038         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
9039         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
9040         * config/ia64/ia64.c Include reload.h.
9041         (ia64_memory_move_cost): New function.
9042         (TARGET_MEMORY_MOVE_COST): Define.
9043         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
9044         memory_move_cost.
9045
9046 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
9047
9048         PR middle-end/42505
9049         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
9050         comments about cost model.
9051         (try_add_cand_for):  Add second strategy for choosing initial set
9052         based on original IVs, controlled by ORIGINALP argument.
9053         (get_initial_solution): Add ORIGINALP argument.
9054         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
9055         (find_optimal_iv_set): Try two different strategies for choosing
9056         the IV set, and return the one with lower cost.
9057
9058 2010-07-05  Richard Guenther  <rguenther@suse.de>
9059
9060         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
9061
9062 2010-07-05  Richard Guenther  <rguenther@suse.de>
9063
9064         * tree.c (reference_alias_ptr_type): New function.
9065         * tree.h (reference_alias_ptr_type): Declare.
9066         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
9067         allow non-TARGET_MEM_REF new refs.
9068         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
9069         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
9070         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
9071         (create_mem_ref): Get alias pointer type.  Adjust calls to
9072         create_mem_ref_raw.
9073         (maybe_fold_tmr): Likewise.
9074         * tree-flow.h (create_mem_ref): Adjust prototype.
9075
9076 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
9077
9078         PR c++/44808
9079         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
9080         *from_p is VAR_DECL.
9081
9082 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
9083
9084         * tree.h (build_call_list): Remove.
9085         * tree.c (build_call_list): Remove.
9086
9087 2010-07-05  Richard Guenther  <rguenther@suse.de>
9088
9089         * double-int.h (double_int_sub): Declare.
9090         * double-int.c (double_int_sub): New function.
9091         * dwarf2out.c (field_byte_offset): Use it.
9092         * fixed-value.c (do_fixed_add): Likewise.
9093         (do_fixed_multiply): Likewise.
9094         (do_fixed_divide): Likewise.
9095         * tree-predcom.c (add_ref_to_chain): Likewise.
9096         (determine_roots_comp): Likewise.
9097         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
9098
9099 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
9100
9101         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
9102         implementations.
9103
9104 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
9105
9106         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
9107         * arm-modes.def (CC_NOTB): Don't define.
9108         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
9109         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
9110         (LTUGEU): New code_iterator.
9111         (cnb, optab): New corresponding code_attrs.
9112         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
9113         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
9114         using LTUGEU.
9115         (addsi3_carryin_shift_<optab>): Likewise.
9116         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
9117         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
9118         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
9119         (subsi3_compare): Renamed from subsi3_compare0_c.
9120         Change CC_NOTB to CC.
9121         (arm_subsi3_insn): Allow constants for operand 0.
9122         (compare_scc peephole for eq case): New.
9123         (compare_scc splitters): Change CC_NOTB to CC.
9124
9125 2010-07-05  Richard Guenther  <rguenther@suse.de>
9126
9127         * tree-ssa-loop-im.c (for_each_index): Do not handle
9128         ALIGN_INDIRECT_REF.
9129         (gen_lsm_tmp_name): Likewise.
9130         * tree-dump.c (dequeue_and_dump): Likewise.
9131         * tree-pretty-print.c (dump_generic_node): Likewise.
9132         (op_code_prio): Likewise.
9133         (op_symbol_code): Likewise.
9134         * tree.c (staticp): Likewise.
9135         (build1_stat): Likewise.
9136         * tree.h (INDIRECT_REF_P): Likewise.
9137         * fold-const.c (maybe_lvalue_p): Likewise.
9138         (operand_equal_p): Likewise.
9139         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9140         (ao_ref_init_from_vn_reference): Likewise.
9141         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
9142         (find_interesting_uses_address): Likewise.
9143         * dwarf2out.c (loc_list_from_tree): Likewise.
9144         * gimplify.c (gimplify_expr): Likewise.
9145         * tree-eh.c (tree_could_trap_p): Likewise.
9146         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9147         * cfgexpand.c (expand_debug_expr): Likewise.
9148         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9149         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
9150         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
9151         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
9152         * tree-ssa-operands.c (get_expr_operands): Likewise.
9153         * expr.c (safe_from_p): Likewise.
9154         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
9155         * tree-vect-data-refs.c (vect_setup_realignment): Build
9156         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
9157         * tree-vect-stmts.c (vectorizable_load): Likewise.
9158         * tree.def (ALIGN_INDIRECT_REF): Remove.
9159
9160 2010-07-05  Richard Guenther  <rguenther@suse.de>
9161
9162         PR tree-optimization/44784
9163         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
9164         for inserted stmts.
9165         (find_or_generate_expression): Fix SCCVN insertion check.
9166
9167 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
9168
9169         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
9170         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
9171         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
9172         directives.
9173
9174 2010-07-05  Ira Rosen  <irar@il.ibm.com>
9175
9176         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
9177         statements that are not vectorized.
9178         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
9179         in INSIDE_COST.
9180
9181 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
9182
9183         PR bootstrap/44820
9184         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
9185
9186 2010-07-05  Richard Guenther  <rguenther@suse.de>
9187
9188         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
9189         RESULT_DECLs properly.
9190
9191 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
9192
9193         PR rtl-optimization/44695
9194         * config/i386/i386.md (extract_code): Removed.
9195         (<u>divmodqi4): Likewise.
9196         (divmodqi4): New.
9197         (udivmodqi4): Likewise.
9198         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
9199         (udivmodhiqi3): Likewise.
9200
9201 2010-07-04  Jan Hubicka  <jh@suse.cz>
9202
9203         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
9204
9205 2010-07-04  Jan Hubicka  <jh@suse.cz>
9206
9207         * cgraphunit.c (init_cgraph): Only initialize dump file if it
9208         is not already initialized.
9209
9210 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
9211
9212         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
9213         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
9214         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
9215         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
9216         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
9217         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
9218         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
9219         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
9220         (sync_new_nand_optab): Redefine as macros.
9221         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
9222         Delete.
9223         (direct_optab_index): New enum.
9224         (direct_optab_d): New structure.
9225         (direct_optab): New typedef.
9226         (direct_optab_table): Declare.
9227         (direct_optab_handler, set_direct_optab_handler): New functions.
9228         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
9229         (sync_lock_release_optab): New macros.
9230         * optabs.c (direct_optab_table): New variable.
9231         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
9232         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
9233         cmpstr_optab and cmpstrn_optab.
9234         (emit_conditional_move): Likewise for movcc_optab.
9235         (can_conditionally_move_p): Likewise for movcc_gen_code.
9236         (init_insn_codes): Clear direct_optab_table.
9237         (init_optabs): Don't initialize the new "direct optabs" here.
9238         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
9239         vcond_gen_code.
9240         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
9241         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
9242         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
9243         (expand_sync_operation): Likewise other sync_*_optabs.
9244         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
9245         to sync_compare_and_swap_optab.
9246         (expand_sync_lock_test_and_set): Use direct_optab_handler for
9247         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
9248         to the names of both.
9249         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
9250         cmpstr_optab and cmpstrn_optab.
9251         (expand_builtin_lock_release): Likewise sync_lock_release.
9252         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
9253         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
9254         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
9255         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
9256         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
9257         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
9258         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
9259         (sync_lock_test_and_set, sync_lock_release): Delete.
9260         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
9261         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
9262         * genopinit.c (optabs): Use set_direct_optab_handler for the new
9263         macro optabs.
9264         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
9265         the "optab" local variable.  Use direct_optab_handler for optab and
9266         sync_compare_and_swap_optab.
9267         * reload1.c (reload_in_optab, reload_out_optab): Delete.
9268         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
9269         reload_in_optab and reload_out_optab.
9270         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
9271         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
9272         * config/pa/pa.c (pa_secondary_reload): Likewise.
9273         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
9274         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
9275         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
9276         (VMSupportsCS8_builtin): Likewise.
9277
9278 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
9279
9280         * optabs.h (optab_handlers): Change type of insn_code to int.
9281         (optab_handler, set_optab_handler, convert_optab_handler)
9282         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
9283         CODE_FOR_nothing".
9284         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
9285         (init_insn_codes): Zero both the above arrays.
9286         (init_optabs): Never call init_insn_codes first time around.
9287
9288 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
9289
9290         * optabs.h (optab_handler, convert_optab_handler): Turn into
9291         inline functions that return an insn code.
9292         (set_optab_handler, set_convert_optab_handler): New functions.
9293         * builtins.c: Replace optab_handler(X)->insn_code with
9294         optab_handler or set_optab_handler thoughout.  Likewise
9295         convert_optab_handler(X)->insn_code with convert_optab_handler
9296         and set_convert_optab_handler.
9297         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
9298         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
9299         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
9300         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
9301         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
9302         config/spu/spu.c: Likewise.
9303
9304 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9305
9306         PR target/44531
9307         * config.gcc (sh*-*-*): Use regular expressions instead of
9308         the 'i' modifier for sed substitutions.
9309
9310 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
9311
9312         * gimple.c (gimple_body): Comments added.
9313
9314 2010-07-04  Richard Guenther  <rguenther@suse.de>
9315
9316         PR middle-end/44809
9317         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
9318         of an INDIRECT_REF.
9319
9320 2010-07-04  Richard Guenther  <rguenther@suse.de>
9321
9322         PR tree-optimization/44479
9323         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
9324         extra SSA name copy statements which preserves points-to
9325         information.
9326         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9327         Copy points-to information for all pointers.  Properly handle
9328         MEM_REFs.
9329         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
9330         copy statements.
9331         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
9332         dependency.
9333
9334 2010-07-04  Richard Guenther  <rguenther@suse.de>
9335
9336         PR middle-end/44785
9337         * tree-inline.c (initialize_inlined_parameters): Do not
9338         re-use pointer-map slot over remap_type call.
9339
9340 2010-07-04  Richard Guenther  <rguenther@suse.de>
9341
9342         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
9343
9344 2010-07-04  Richard Guenther  <rguenther@suse.de>
9345
9346         PR tree-optimization/44656
9347         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
9348         again after value-replacing in the defintions lhs.
9349
9350 2010-07-04  Ira Rosen  <irar@il.ibm.com>
9351             Revital Eres  <eres@il.ibm.com>
9352
9353         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
9354         Document new arguments.
9355         * doc/tm.texi: Regenerate.
9356         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
9357         Handle unaligned store.
9358         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
9359         * target.def (builtin_vectorization_cost): Add new arguments.
9360         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
9361         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
9362         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
9363         (vect_vfa_segment_size): Fix indentation.
9364         * tree-vectorizer.h (struct _vect_peel_info): New.
9365         (struct _vect_peel_extended_info): New.
9366         (struct _loop_vec_info): Add new field for peeling hash table and a
9367         macro for its access.
9368         (VECT_MAX_COST): Define.
9369         (vect_get_load_cost): Declare.
9370         (vect_get_store_cost, vect_get_known_peeling_cost,
9371         vect_get_single_scalar_iteraion_cost): Likewise.
9372         (vect_supportable_dr_alignment): Add new argument.
9373         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
9374         field.
9375         (destroy_loop_vec_info): Free peeling hash table.
9376         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
9377         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
9378         vect_analyze_slp. Fix indentation.
9379         (vect_get_single_scalar_iteraion_cost): New function.
9380         (vect_get_known_peeling_cost): Likewise.
9381         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
9382         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
9383         statement. Move outside cost calculation inside unknown peeling case.
9384         Call vect_get_known_peeling_cost for known amount of peeling.
9385         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
9386         reference to the print message of forced alignment.
9387         (vect_verify_datarefs_alignment): Update call to
9388         vect_supportable_dr_alignment.
9389         (vect_get_data_access_cost): New function.
9390         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
9391         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
9392         vect_peeling_hash_choose_best_peeling): Likewise.
9393         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
9394         to store all the accesses in the loop and find best possible access to
9395         align using peeling for known alignment case. For unknown alignment
9396         check if stores are preferred or if peeling is worthy.
9397         (vect_find_same_alignment_drs): Analyze pairs of loads too.
9398         (vect_supportable_dr_alignment): Add new argument and check aligned
9399         accesses according to it.
9400         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
9401         (cost_for_stmt): Call vect_get_stmt_cost.
9402         (vect_model_simple_cost): Likewise.
9403         (vect_model_store_cost): Call vect_get_stmt_cost. Call
9404         vect_get_store_cost to calculate the cost of the statement.
9405         (vect_get_store_cost): New function.
9406         (vect_model_load_cost): Call vect_get_stmt_cost. Call
9407         vect_get_load_cost to calculate the cost of the statement.
9408         (vect_get_load_cost): New function.
9409         (vectorizable_store): Update call to vect_supportable_dr_alignment.
9410         (vectorizable_load): Likewise.
9411         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
9412         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
9413         arguments. Handle unaligned store.
9414         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
9415         (rs6000_builtin_support_vector_misalignment): Return true for word and
9416         double word alignments for VSX.
9417         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
9418         vect_supportable_dr_alignment and builtin_vectorization_cost.
9419
9420 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9421
9422         PR target/44597
9423         * config/pa/predicates.md (prefetch_cc_operand): Remove.
9424         (prefetch_nocc_operand): Likewise.
9425         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
9426         (prefetch_20): New insn.
9427         (prefetch_cc): Remove.
9428         (prefetch_nocc): Likewise.
9429
9430 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9431
9432         * expr.c (vector_mode_valid_p): Move to c-common.c.
9433         * expr.h (vector_mode_valid_p): Do not declare here.
9434         * system.h: Poison GCC_EXPR_H in front-ends.
9435         * Makefile.in: Update dependencies.
9436
9437 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9438
9439         PR target/44705
9440         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
9441
9442 2010-07-03  Jan Hubicka  <jh@suse.cz>
9443
9444         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
9445         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
9446         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
9447         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
9448         Likewise.
9449
9450         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
9451         Update timevars.V
9452         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
9453         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
9454         TV_IPA_LTO_DECL_OUT): New.
9455         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
9456
9457 2010-07-03  Jan Hubicka  <jh@suse.cz>
9458
9459         * ipa-inline.c (update_edge_key): Break out from ...
9460         update_callers_keys): ... here;
9461         (update_callee_keys): Update only the edges from caller to callee.
9462         (update_all_calle_keys): Do what update_calle_keys did.
9463         (decide_inlining_of_small_functions): Avoid recomputing of all
9464         callees when badness increase.
9465
9466 2010-07-03  Jie Zhang  <jie@codesourcery.com>
9467
9468         * config/arm/arm.c (arm_attr_length_move_neon): New.
9469         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
9470         * config/arm/neon.md (define_mode_attr V_slen): Remove.
9471         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
9472         to compute length attribute.
9473
9474 2010-07-03  Jie Zhang  <jie@codesourcery.com>
9475
9476         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
9477         as predicate for operand 1 and remove its constraint.
9478         * config/arm/predicates.md (vfp_register_operand): New.
9479         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
9480         (*push_fp_multi): Likewise.
9481
9482 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
9483
9484         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
9485
9486 2010-07-03  Jan Hubicka  <jh@suse.cz>
9487
9488         * config/i386/i386.c (override_options): Revert accidental commit.
9489
9490 2010-07-02  Le-Chun Wu  <lcwu@google.com>
9491
9492         PR c++/44128
9493         * doc/invoke.texi: Update documentation of -Wshadow.
9494
9495 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
9496             Julian Brown  <julian@codesourcery.com>
9497             Sandra Loosemore <sandra@codesourcery.com>
9498
9499         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
9500         comparisons.  Adjust to take both operands.
9501         (arm_select_cc_mode): Handle DImode comparisons.
9502         (arm_gen_compare_reg): Generate a scratch register for DImode
9503         comparisons which require one.  Use xor for Thumb equality checks.
9504         (arm_const_double_by_immediates): New.
9505         (arm_print_operand): Allow 'Q' and 'R' for constants.
9506         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
9507         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
9508         arm_canonicalize_comparison.
9509         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
9510         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9511         prototype.
9512         (arm_const_double_by_immediates): Declare.
9513         * config/arm/constraints.md (Di): New constraint.
9514         * config/arm/predicates.md (arm_immediate_di_operand)
9515         (arm_di_operand, cmpdi_operand): New.
9516         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
9517         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
9518         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
9519         (cstoredi4): Handle non-Cirrus also.
9520
9521 2010-07-02  Julian Brown  <julian@codesourcery.com>
9522             Sandra Loosemore <sandra@codesourcery.com>
9523
9524         PR target/43703
9525         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
9526         (smax<mode>3): Disable for NEON float modes when
9527         flag_unsafe_math_optimizations is false.
9528         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
9529         (*mul<mode>3_neon)
9530         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
9531         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
9532         for NEON float modes when flag_unsafe_math_optimizations is false.
9533         (quad_halves_<code>v4sf): Only enable if
9534         flag_unsafe_math_optimizations is true.
9535         * doc/invoke.texi (ARM Options): Add note about floating point
9536         vectorization requiring -funsafe-math-optimizations.
9537
9538 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9539             Julian Brown  <julian@codesourcery.com>
9540
9541         * config/arm/neon.md (UNSPEC_VABA): Delete.
9542         (UNSPEC_VABAL): Delete.
9543         (UNSPEC_VABS): Delete.
9544         (UNSPEC_VMUL_N): Delete.
9545         (adddi3_neon): New.
9546         (subdi3_neon): New.
9547         (mul<mode>3add<mode>_neon): Make the pattern named.
9548         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
9549         (neon_vadd<mode>): Replace with define_expand, and move the remaining
9550         unspec parts...
9551         (neon_vadd<mode>_unspec): ...to this.
9552         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
9553         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
9554         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
9555         (neon_vaba<mode>): Rewrite in terms of vabd.
9556         (neon_vabal<mode>): Rewrite in terms of vabdl.
9557         (neon_vabs<mode>): Rewrite without unspec.
9558         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
9559         (*arm_subdi3): Likewise.
9560         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
9561         No_op attribute to disable assembly output checks.
9562         * config/arm/arm_neon.h: Regenerated.
9563         * doc/arm-neon-intrinsics.texi: Regenerated.
9564
9565 2010-07-02  Jan Hubicka  <jh@suse.cz>
9566
9567         * ipa-split.c (split_function): For aggregate values, set the return
9568         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
9569         *<retval> = fncall.part ().
9570         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
9571
9572 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9573
9574         * config/arm/neon.md (UNSPEC_VAND): Delete.
9575         (UNSPEC_VBIC): Delete.
9576         (UNSPEC_VCLZ): Delete.
9577         (UNSPEC_VCNT): Delete.
9578         (UNSPEC_VEOR): Delete.
9579         (UNSPEC_VORN): Delete.
9580         (UNSPEC_VORR): Delete.
9581         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
9582         core registers too.
9583         (anddi3_neon): Likewise.
9584         (orndi3_neon): Likewise.
9585         (bicdi3_neon): Likewise.
9586         (xordi3_neon): Likewise.
9587         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
9588         rid of unspec and handle unused operand.
9589         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
9590         * config/arm/predicates.md (imm_for_neon_logic_operand):
9591         Require TARGET_NEON.
9592         (imm_for_neon_inv_logic_operand): Likewise.
9593         * config/arm/arm.md (define_split for logical_binary_operator):
9594         Disable for NEON registers.
9595         (anddi3): Add new define_expand, and rename the insn.  Disable
9596         this insn for NEON, where anddi3_neon now applies.
9597         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
9598         (iordi3): As for anddi3.
9599         (xordi3): Likewise.
9600         * config/arm/neon.ml (Vand): Split DImode variants and mark them
9601         as No_op to disable testing for exact instruction match.
9602         (Vorr): Likewise.
9603         (Veor): Likewise.
9604         (Vbic): Likewise.
9605         (Vorn): Likewise.
9606         * config/arm/arm_neon.h: Regenerated.
9607         * doc/arm-neon-intrinsics.texi: Regenerated.
9608
9609 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9610
9611         * expr.h (emit_stack_probe): Declare.
9612         * explow.c (emit_stack_probe): Make global.
9613         (anti_adjust_stack_and_probe): Fix comments.
9614         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9615         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9616         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9617         * config/sparc/sparc.c: Include except.h.
9618         (sparc_emit_probe_stack_range): New function.
9619         (output_probe_stack_range): Likewise.
9620         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
9621         built-in stack checking is enabled.
9622         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
9623         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9624         (probe_stack_range): New insn.
9625
9626 2010-07-02  Richard Guenther  <rguenther@suse.de>
9627
9628         PR target/43958
9629         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
9630         for argument alignment.
9631
9632 2010-07-02  Jan Hubicka  <jh@suse.cz>
9633
9634         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
9635         walk backwards from entry_bb to check only those basic block of header
9636         that might lead to execution of split part.
9637         (consider_split) ... here.
9638         (find_return_bb): Allow assignment in return BB.
9639         (find_retval): New.
9640         (split_function): Fix name of cloned function; take care of updating
9641         return value in return_bb containing move.
9642
9643 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
9644
9645         PR target/44771
9646         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
9647         used variable insn.
9648
9649 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9650
9651         * implicit-zee.c (combine_reaching_defs): Fix long lines.
9652         (is_set_with_extension_DI): Delete.
9653         (struct zero_extend_info): New structure.
9654         (add_removable_zero_extend): New function.
9655         (find_removable_zero_extends): Use note_stores to find SETs.
9656         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
9657
9658 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
9659
9660         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
9661         is_miss_rate_acceptable. Pull total_positions computation
9662         out of the loops.  Early return if miss_positions exceeds
9663         the acceptable threshold.
9664         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
9665         is_miss_rate_acceptable after renaming of compute_miss_rate.
9666
9667 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
9668
9669         PR middle-end/44576
9670         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
9671         of 1000) for miss rate if the address diference is greater than or
9672         equal to the cache line size (the two reference will never hit the
9673         same cache line).
9674
9675 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
9676
9677         PR target/42835
9678         * config/arm/arm-modes.def (CC_NOTB): New mode.
9679         * config/arm/arm.c (get_arm_condition_code): Handle it.
9680         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
9681         * config/arm/arm.md (subsi3_compare0_c): New pattern.
9682         (compare_scc): Now a define_and_split.  Add a number of extra
9683         splitters before it.
9684
9685         PR target/42172
9686         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
9687         and ZERO_EXTEND.
9688         (arm_rtx_costs_1): Likewise.
9689         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
9690         * config/arm/arm.md (is_arch6): New attribute.
9691         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
9692         extendqisi2): Tighten the code somewhat, avoiding invalid
9693         RTL to occur in the expander patterns.
9694         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
9695         (thumb1_zero_extendhisi2_v6): Delete.
9696         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
9697         (thumb1_extendhisi2_v6): Delete.
9698         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
9699         (thumb1_extendqisi2_v6): Delete.
9700         (zero_extendhisi2 for register input splitter): New.
9701         (zero_extendqisi2 for register input splitter): New.
9702         (thumb1_extendhisi2 for register input splitter): New.
9703         (extendhisi2 for register input splitter): New.
9704         (extendqisi2 for register input splitter): New.
9705         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
9706         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
9707         and add support for a register alternative requiring a split.
9708         (thumb1_zero_extendqisi2): Likewise.
9709         (arm_zero_extendqisi2): Likewise.
9710         (arm_extendhisi2): Likewise.
9711         (arm_extendqisi2): Likewise.
9712
9713 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9714
9715         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
9716         instead of an unspec.
9717         (neon_expand_vector_init): Likewise.
9718         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
9719         (UNSPEC_VDUP_LANE): Delete.
9720         (UNSPEC VDUP_N): Delete.
9721         (UNSPEC_VGET_HIGH): Delete.
9722         (UNSPEC_VGET_LANE): Delete.
9723         (UNSPEC_VGET_LOW): Delete.
9724         (UNSPEC_VMVN): Delete.
9725         (UNSPEC_VSET_LANE): Delete.
9726         (V_double_vector_mode): New.
9727         (vec_set<mode>_internal): Make code emitted match that for the
9728         corresponding intrinsics.
9729         (vec_setv2di_internal): Likewise.
9730         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
9731         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
9732         (neon_vset_lane<mode>): Combine double and quad patterns and
9733         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
9734         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
9735         (neon_vdup_n<mode>): Rewrite RTL without unspec.
9736         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
9737         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
9738         with neon_vdup_lanev2di, adjusting the pattern from the latter
9739         to be predicable for consistency.
9740         (neon_vdup_lane<mode>_internal): New.
9741         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
9742         to avoid using an unspec.
9743         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
9744         (neon_vdup_lanev2di): Turn into a define_expand.
9745         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
9746         (neon_vget_high<mode>): Replace with....
9747         (neon_vget_highv16qi): New pattern using canonical RTL.
9748         (neon_vget_highv8hi): Likewise.
9749         (neon_vget_highv4si): Likewise.
9750         (neon_vget_highv4sf): Likewise.
9751         (neon_vget_highv2di): Likewise.
9752         (neon_vget_low<mode>): Replace with....
9753         (neon_vget_lowv16qi): New pattern using canonical RTL.
9754         (neon_vget_lowv8hi): Likewise.
9755         (neon_vget_lowv4si): Likewise.
9756         (neon_vget_lowv4sf): Likewise.
9757         (neon_vget_lowv2di): Likewise.
9758
9759         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
9760         test for this emitting vmov.
9761         (Vset_lane): Likewise.
9762         (Vdup_n): Likewise.
9763         (Vmov_n): Likewise.
9764
9765         * doc/arm-neon-intrinsics.texi: Regenerated.
9766
9767 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9768
9769         * config/arm/neon.md (vec_extractv2di): Correct error in register
9770         numbering to reconcile with neon_vget_lanev2di.
9771
9772 2010-07-02  Richard Guenther  <rguenther@suse.de>
9773
9774         * tree-ssa-structalias.c (pt_solution_set_var): New function.
9775         * tree-ssa-alias.h (pt_solution_set_var): Declare.
9776         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
9777         points-to information.
9778
9779 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
9780
9781         * config/s390/s390.c (override_options): Adopt prefetching
9782         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
9783
9784 2010-07-02  Jan Hubicka  <jh@suse.cz>
9785
9786         * df-problems.c (df_kill_notes): Do not collect dead  notes.
9787         (df_set_note): Just call add_reg_note.
9788         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
9789         df_create_unused_note): Do not deal with lists of old notes.
9790         (df_note_bb_compute): Likewise.
9791
9792 2010-07-02  Richard Guenther  <rguenther@suse.de>
9793
9794         * tree-ssa-structalias.c (find_func_aliases): Handle
9795         pointer alignment via BIT_AND_EXPR.
9796         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
9797
9798 2010-07-02  Richard Guenther  <rguenther@suse.de>
9799
9800         * tree-data-ref.c (initialize_data_dependence_relation): Handle
9801         mismatching number of dimensions properly.
9802
9803 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9804
9805         PR target/44707
9806         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
9807         (lo_sum (high ...) ...) patterns generated by earlier passes.
9808
9809 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9810
9811         * doc/install.texi (Prerequisites): Document Perl requirement on
9812         Solaris 2.
9813         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
9814
9815 2010-07-02  Richard Guenther  <rguenther@suse.de>
9816
9817         PR middle-end/44777
9818         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
9819
9820 2010-07-02  Jan Hubicka  <jh@suse.cz>
9821
9822         PR middle-end/44706
9823         * predict.c (predict_paths_for_bb): Handle case when control dependence
9824         BB has only abnormal edges.
9825
9826 2010-07-02  Richard Guenther  <rguenther@suse.de>
9827
9828         PR tree-optimization/44748
9829         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
9830         the embedded conversion in MEM_REFs.
9831
9832 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
9833
9834         * reload.c: Include toplev.h.
9835         * recog.c:  Likewise.
9836         * Makefile.in: Adjust dependencies.
9837
9838 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
9839
9840         PR debug/44694
9841         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
9842         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
9843
9844 2010-07-01  Richard Guenther  <rguenther@suse.de>
9845
9846         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
9847         types for offsets.
9848
9849 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
9850
9851         PR target/44732
9852         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
9853         Fix argument types.
9854
9855 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
9856
9857         PR target/44727
9858         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9859         Make sure operand 0 dies.
9860
9861 2010-07-01  Richard Guenther  <rguenther@suse.de>
9862
9863         PR middle-end/42834
9864         PR middle-end/44468
9865         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
9866         * doc/generic.texi (References to storage): Document MEM_REF.
9867         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
9868         (print_call_name): Likewise.
9869         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
9870         (build_simple_mem_ref_loc): New function.
9871         (mem_ref_offset): Likewise.
9872         * tree.h (build_simple_mem_ref_loc): Declare.
9873         (build_simple_mem_ref): Define.
9874         (mem_ref_offset): Declare.
9875         * fold-const.c: Include tree-flow.h.
9876         (operand_equal_p): Handle MEM_REF.
9877         (build_fold_addr_expr_with_type_loc): Likewise.
9878         (fold_comparison): Likewise.
9879         (fold_unary_loc): Fold
9880         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
9881         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
9882         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
9883         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
9884         (ptr_deref_may_alias_ref_p_1): Likewise.
9885         (ao_ref_base_alias_set): Properly differentiate base object for
9886         offset and TBAA.
9887         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
9888         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
9889         (indirect_refs_may_alias_p): Likewise.
9890         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
9891         chasing code.
9892         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
9893         (call_may_clobber_ref_p_1): Likewise.
9894         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
9895         * expr.c (expand_assignment): Handle MEM_REF.
9896         (store_expr): Handle MEM_REFs from STRING_CSTs.
9897         (store_field): If expanding a MEM_REF of a non-addressable
9898         decl use bitfield operations.
9899         (get_inner_reference): Handle MEM_REF.
9900         (expand_expr_addr_expr_1): Likewise.
9901         (expand_expr_real_1): Likewise.
9902         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
9903         * alias.c (ao_ref_from_mem): Handle MEM_REF.
9904         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
9905         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
9906         (dr_analyze_indices): Likewise.
9907         (dr_analyze_alias): Likewise.
9908         (object_address_invariant_in_loop_p): Likewise.
9909         * gimplify.c (mark_addressable): Handle MEM_REF.
9910         (gimplify_cond_expr): Build MEM_REFs.
9911         (gimplify_modify_expr_to_memcpy): Likewise.
9912         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
9913         (gimple_fold_indirect_ref): Adjust.
9914         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
9915         * tree.def (MEM_REF): New tree code.
9916         * tree-dfa.c: Include toplev.h.
9917         (get_ref_base_and_extent): Handle MEM_REF.
9918         (get_addr_base_and_unit_offset): New function.
9919         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
9920         * gimple-fold.c (may_propagate_address_into_dereference): Handle
9921         MEM_REF.
9922         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
9923         accesses if the array has just one dimension.  Remove always true
9924         parameter.  Do not require type compatibility here.
9925         (maybe_fold_offset_to_component_ref): Remove.
9926         (maybe_fold_stmt_indirect): Remove.
9927         (maybe_fold_reference): Remove INDIRECT_REF handling.
9928         Fold back to non-MEM_REF.
9929         (maybe_fold_offset_to_address): Simplify.  Deal with type
9930         mismatches here.
9931         (maybe_fold_reference): Likewise.
9932         (maybe_fold_stmt_addition): Likewise.  Also handle
9933         &ARRAY + I in addition to &ARRAY[0] + I.
9934         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
9935         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
9936         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
9937         * tree-ssa.c (useless_type_conversion_p): Make most pointer
9938         conversions useless.
9939         (warn_uninitialized_var): Handle MEM_REF.
9940         (maybe_rewrite_mem_ref_base): New function.
9941         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
9942         to SSA form.
9943         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
9944         INDIRECT_REF handling.
9945         (copy_tree_body_r): Handle MEM_REF.
9946         * gimple.c (is_gimple_addressable): Adjust.
9947         (is_gimple_address): Likewise.
9948         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
9949         invariant base are invariant.
9950         (is_gimple_min_lval): Adjust.
9951         (is_gimple_mem_ref_addr): New function.
9952         (get_base_address): Handle MEM_REF.
9953         (count_ptr_derefs): Likewise.
9954         (get_base_loadstore): Likewise.
9955         * gimple.h (is_gimple_mem_ref_addr): Declare.
9956         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
9957         * tree-cfg.c (verify_address): New function, split out from ...
9958         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
9959         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
9960         INDIRECT_REFs.
9961         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
9962         INDIRECT_REF.  Allow conversions.
9963         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
9964         a register does not change its size.
9965         (verify_types_in_gimple_reference): Verify MEM_REF.
9966         (verify_gimple_assign_single): Disallow INDIRECT_REF.
9967         Handle MEM_REF.
9968         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
9969         New.
9970         (mark_address_taken): Handle MEM_REF.
9971         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
9972         (get_asm_expr_operands): Pass opf_not_non_addressable.
9973         (get_expr_operands): Handle opf_[not_]non_addressable.
9974         Handle MEM_REF.  Remove INDIRECT_REF handling.
9975         * tree-vrp.c (check_array_ref): Handle MEM_REF.
9976         (search_for_addr_array): Likewise.
9977         (check_array_bounds): Likewise.
9978         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
9979         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
9980         (ref_always_accessed_p): Likewise.
9981         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
9982         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
9983         Handle MEM_REF.
9984         * cgraphbuild.c (mark_load): Properly check for NULL result
9985         from get_base_address.
9986         (mark_store): Likewise.
9987         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
9988         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
9989         handling for MEM_REF.
9990         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
9991         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
9992         * builtins.c (stabilize_va_list_loc): Use the function ABI
9993         valist type if we couldn't canonicalize the argument type.
9994         Always dereference with the canonical va-list type.
9995         (maybe_emit_free_warning): Handle MEM_REF.
9996         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
9997         memmove to memcpy.
9998         * builtins.c (fold_builtin_memory_op): Use ref-all types
9999         for all memcpy foldings.
10000         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
10001         (build_outer_var_ref): Likewise.
10002         (scan_omp_1_op): Likewise.
10003         (lower_rec_input_clauses): Likewise.
10004         (lower_lastprivate_clauses): Likewise.
10005         (lower_reduction_clauses): Likewise.
10006         (lower_copyprivate_clauses): Likewise.
10007         (expand_omp_atomic_pipeline): Likewise.
10008         (expand_omp_atomic_mutex): Likewise.
10009         (create_task_copyfn): Likewise.
10010         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
10011         Remove old union trick.  Initialize constant offsets.
10012         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
10013         INDIRECT_REF.  Init base_alias_set properly.
10014         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
10015         (vn_reference_fold_indirect): Adjust for MEM_REFs.
10016         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
10017         for ARRAY_REFs.
10018         (may_insert): Remove.
10019         (visit_reference_op_load): Do not test may_insert.
10020         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
10021         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
10022         a field to store the constant offset this op applies.
10023         (run_scc_vn): Adjust prototype.
10024         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
10025         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
10026         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
10027         bother about volatile qualifiers on pointers.
10028         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
10029         * tree-ssa-loop-ivopts.c
10030         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
10031         (strip_offset_1): Likewise.
10032         (find_interesting_uses_address): Replace INDIRECT_REF handling with
10033         MEM_REF handling.
10034         (get_computation_cost_at): Likewise.
10035         * ipa-pure-const.c (check_op): Handle MEM_REF.
10036         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
10037         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
10038         and constants.
10039         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
10040         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
10041         (eliminate_local_variables_1): Likewise.
10042         (create_call_for_reduction_1): Likewise.
10043         (create_loads_for_reductions): Likewise.
10044         (create_loads_and_stores_for_name): Likewise.
10045         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
10046         (ssa_accessed_in_tree): Handle MEM_REF.
10047         (ssa_accessed_in_assign_rhs): Likewise.
10048         (update_type_size): Likewise.
10049         (analyze_accesses_for_call_stmt): Likewise.
10050         (analyze_accesses_for_assign_stmt): Likewise.
10051         (transform_access_sites): Likewise.
10052         (transform_allocation_sites): Likewise.
10053         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
10054         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10055         not handle INDIRECT_REF.
10056         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
10057         (cond_store_replacement): Likewise.
10058         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
10059         MEM_REF, no not handle INDIRECT_REFs.
10060         (insert_into_preds_of_block): Properly initialize avail.
10061         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
10062         for ARRAY_REFs.  Properly handle reference lookups that
10063         require a bit re-interpretation.
10064         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
10065         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
10066         (build_ref_for_offset_1): Remove.
10067         (build_ref_for_offset): Build MEM_REFs.
10068         (gate_intra_sra): Disable for now.
10069         (sra_ipa_modify_expr): Handle MEM_REF.
10070         (ipa_early_sra_gate): Disable for now.
10071         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
10072         MEM_REF handling.
10073         (disqualify_base_of_expr): Likewise.
10074         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
10075         MEM_REF handling.
10076         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
10077         Use mem_ref_offset.  Remove bogus folding.
10078         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
10079         (make_fancy_name_1): Add support for MEM_REF.
10080         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
10081         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
10082         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
10083         (compute_complex_ancestor_jump_func): Likewise.
10084         (ipa_analyze_virtual_call_uses): Likewise.
10085         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
10086         INDIRECT_REF folding with more generalized MEM_REF folding.
10087         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
10088         (forward_propagate_addr_into_variable_array_index): Also handle
10089         &ARRAY + I in addition to &ARRAY[0] + I.
10090         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
10091         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
10092         creates assignments with overlap.
10093         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
10094         (get_frame_field): Likewise.
10095         (get_nonlocal_debug_decl): Likewise.
10096         (convert_nonlocal_reference_op): Likewise.
10097         (struct nesting_info): Add mem_refs pointer-set.
10098         (create_nesting_tree): Allocate it.
10099         (convert_local_reference_op): Insert to be folded mem-refs.
10100         (fold_mem_refs): New function.
10101         (finalize_nesting_tree_1): Perform defered folding of mem-refs
10102         (free_nesting_tree): Free the pointer-set.
10103         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
10104         (vectorizable_load): Likewise.
10105         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
10106         (propagate_with_phi): Likewise.
10107         * tree-object-size.c (addr_object_size): Handle MEM_REFs
10108         instead of INDIRECT_REFs.
10109         (compute_object_offset): Handle MEM_REF.
10110         (plus_stmt_object_size): Handle MEM_REF.
10111         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
10112         for &MEM_REF.
10113         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
10114         (symbol_marked_for_renaming): Likewise.
10115         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
10116         (fold-const.o): Add $(TREE_FLOW_H).
10117         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
10118         (find_func_clobbers): Likewise.
10119         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
10120         (decompose_access): Likewise.
10121         (replace_field_acc): Likewise.
10122         (replace_field_access_stmt): Likewise.
10123         (insert_new_var_in_stmt): Likewise.
10124         (get_stmt_accesses): Likewise.
10125         (reorg_structs_drive): Disable.
10126         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
10127         (ix86_canonical_va_list_type): Likewise.
10128
10129 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
10130
10131         PR other/44566
10132         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
10133         * target.def (struct gcc_target): Replace enum reg_class with
10134         reg_class_t in hook argument / return types.
10135         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
10136         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
10137         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10138         * targhooks.h (default_branch_target_register_class): Likewise.
10139         (default_ira_cover_classes, default_secondary_reload): Likewise.
10140         (default_memory_move_cost, default_register_move_cost): Likewise.
10141         * targhooks.c (default_branch_target_register_class): Likewise.
10142         (default_ira_cover_classes, default_secondary_reload): Likewise.
10143         (default_memory_move_cost, default_register_move_cost): Likewise.
10144         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
10145         * bt-load.c (branch_target_load_optimize): Likewise.
10146         * ira.c (setup_cover_and_important_classes): Likewise.
10147         * ira-costs.c (copy_cost): Likewise.
10148         * reload1.c (emit_input_reload_insns): Likewise.
10149         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
10150         * config/frv/frv.c (frv_secondary_reload): Likewise.
10151         * config/s390/s390.c (s390_secondary_reload): Likewise.
10152         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
10153         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
10154         (ix86_register_move_cost): Likewise.
10155         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
10156         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
10157         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
10158         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
10159         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
10160         (rs6000_ira_cover_classes): Likewise.
10161         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
10162         * config/picochip/picochip-protos.h (picochip_secondary_reload):
10163         Likewise.
10164         * config/pa/pa.c (pa_secondary_reload): Likewise.
10165         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
10166         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
10167         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
10168         * doc/tm.texi: Regenerate.
10169
10170 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
10171
10172         PR bootstrrap/44726
10173         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
10174         use.
10175         (build_alias_set_optimal_p): Likewise.
10176         (build_base_obj_set_for_drs): Likewise.
10177
10178 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
10179
10180         * target.def: Remove comment about licensing problems of function
10181         declarations.
10182
10183         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
10184         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
10185         * doc/tm.texi: Regenerate.
10186
10187         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
10188         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
10189
10190         * target.def (enum_va_list_p): Use DEFHOOK.
10191         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
10192         Rename ptype to ptree.
10193         * doc/tm.texi: Regenerate.
10194
10195         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
10196         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
10197         * doc/tm.texi: Regenerate.
10198
10199         * target.def (memory_move_cost): Use DEFHOOK.
10200         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
10201         Rename regclass AKA class to rclass.
10202         * doc/tm.texi: Regenerate.
10203
10204         * target.def (pragma_parse): Use DEFHOOK.
10205         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
10206         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
10207         * doc/tm.texi: Regenerate.
10208
10209         * target.def (pass_by_reference): Use DEFHOOK.
10210         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
10211         * doc/tm.texi: Regenerate.
10212
10213         * target.def (resolve_overloaded_builtin): Rename params to arglist.
10214         Use DEFHOOK.
10215         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
10216         * doc/tm.texi: Regenerate.
10217
10218         * target.def (return_pops_args): Use DEFHOOK.
10219         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
10220         Rename stack-size to size.
10221         * doc/tm.texi: Regenerate.
10222
10223         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
10224         last-sched_cycle to last_clock, cur_cycle to clock.
10225         * doc/tm.texi.in: Use @hook.
10226         * doc/tm.texi: Regenerate.
10227
10228         * target.def (print_operand, print_operand_address): Update comment.
10229         (print_operand_punct_valid_p): Likewise.
10230
10231 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10232
10233         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
10234         to rtl.h.
10235         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
10236         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
10237         * rtl-error.h: New.
10238         * regrename.c: Do not include toplev.h. Include rtl-error.h.
10239         * rtl-error.c: Likewise.
10240         * reload.c: Likewise.
10241         * recog.c:  Likewise.
10242         * sel-sched.c: Likewise.
10243         * function.c: Likewise.
10244         * reg-stack.c: Likewise.
10245         * cfgrtl.c: Likewise.
10246         * reload1.c: Likewise.
10247         * final.c: Include rtl-error.
10248         * Makefile.in: Adjust dependencies.
10249
10250 2010-06-30  Jan Hubicka  <jh@suse.cz>
10251
10252         PR middle-end/PR44706
10253         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
10254         to return the value.
10255
10256 2010-06-30  Michael Matz  <matz@suse.de>
10257
10258         PR bootstrap/44699
10259         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
10260         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
10261         a gimple reg, attach the original VDEF to the last store in the
10262         sequence.
10263
10264 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
10265
10266         PR other/44034
10267         * config/darwin.c (darwin_override_options): Use renamed
10268         targetm.asm_out.emit_unwind_label.
10269
10270 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
10271
10272         PR tree-optimization/39799
10273         * tree-inline.c (remap_ssa_name): Initialize variable only if
10274         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
10275
10276 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
10277
10278         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
10279
10280 2010-06-30  Richard Guenther  <rguenther@suse.de>
10281
10282         PR target/44722
10283         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
10284         against oscillation with reverse peephole2.
10285
10286 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
10287
10288         PR target/44721
10289         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
10290         Fix last commit.
10291
10292 2010-06-30  Nick Clifton  <nickc@redhat.com>
10293
10294         * config/rx/rx-modes.def: New file.
10295         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
10296         (CC_REGNUM): Define.
10297         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
10298         register.
10299         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
10300         (SELECT_CC_MODE): Define.
10301         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
10302         (reg:CC CC_REG) instead of (cc0).
10303         (attr "cc"): Delete.
10304         (cbranchsi4): Do not split compare and branch here. Instead move
10305         it to...
10306         (cbranchsi4_<code>): ... here.  New patterns.
10307         (cmpsi): Call rx-compare_redundant to find out if it is necessary
10308         to emit the compare instruction.
10309         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
10310         cc_status flags.
10311         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
10312         FIRST_PSEUDO_REGNUM.
10313         (rx_expand_prologue, rx_expand_epilogue): Likewise.
10314         (rx_notice_update_cc): Delete.
10315         (rx_cc_modes_compatible): New function.
10316         (flags_needed_for_conditional): New function.
10317         (flags_from_mode): New function.
10318         (rx_compare_redundant): New function - scans backwards through
10319         insn list to find out if condition flags are already set correctly.
10320         (TARGET_CC_MODES_COMPATIBLE): Define.
10321         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
10322
10323         * config/rx/rx.h (BRANCH_COST): Define.
10324         (REGISTER_MOVE_COST): Define.
10325         * config/rx/predicates (rx_source_operand): Allow all constant types.
10326         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
10327         (tstsi4): New pattern.
10328         * config/rx/rx.c (rx_memory_move_cost): Define.
10329         (TARGET_MEMORY_MOVE_COST): Define.
10330
10331 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10332
10333         * tree.h (block_may_fallthru): Declare here.
10334         * tree-flow.h (block_may_fallthru): Do not declare here.
10335         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
10336         bitmap.h
10337         * Makefile.in (c-typeck.o): Update dependencies.
10338
10339 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
10340
10341         PR debug/44694
10342         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
10343         * cselib.c (cfa_base_preserved_regno): New static variable.
10344         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
10345         of REGNO (cfa_base_preserved_val->locs->loc).
10346         (cselib_preserve_cfa_base_value): Add regno argument, set
10347         cfa_base_preserved_regno to it.
10348         (cselib_invalidate_regno): Allow removal of registers other than
10349         cfa_base_preserved_regno from cfa_base_preserved_val.
10350         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
10351         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
10352         of MEM addresses, if not on LHS.
10353         (reverse_op): Don't add reverse ops for cfa_base_rtx.
10354         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
10355
10356 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
10357
10358         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
10359         static variables.
10360         (peep2_buf_position): New static function.
10361         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
10362         peephole2_optimize): Use it.
10363         (peep2_attempt, peep2_update_life): New static functions, broken out
10364         of peephole2_optimize.
10365         (peep2_fill_buffer): New static function.
10366         (peephole2_optimize): Change the main loop to try to fill the buffer
10367         with the maximum number of insns before matching them against
10368         peepholes.  Use a forward scan.  Remove special case for targets with
10369         conditional execution.
10370         * genrecog.c (change_state): Delete dead code.
10371         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
10372         Rewrite so as not to expect the second insn to have had a peephole
10373         applied yet.
10374
10375 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10376
10377         * genhooks.c (emit_findices): Cast field precision to int.
10378         (emit_documentation): Likewise.
10379
10380 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
10381
10382         PR tree-optimization/43801
10383         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
10384         if old_decl was DECL_ONE_ONLY.
10385
10386         PR debug/44668
10387         * dwarf2out.c (add_accessibility_attribute): New function.
10388         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
10389         instead of adding DW_AT_accessibility manually.
10390         (gen_enumeration_type_die, gen_struct_or_union_type_die,
10391         gen_typedef_die): Use it.
10392
10393 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10394
10395         * vmsdbgout.c (full_name): Just output the file name if not native.
10396
10397 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10398
10399         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
10400         (funcnam_table): New static table.
10401         (funcnum_table): New static table.
10402         (write_rtnbeg): Write value saved in funcnum_table.
10403         (write_rtnend): Write value saved in funcnum_table.
10404         (vmsdbgout_begin_function): Save current function info in
10405         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
10406         (vmsdbgout_finish): Iterate over funcnum_table.
10407
10408 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10409
10410         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
10411         (vmsdbgout_type_decl): Declare
10412         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
10413         (FUNC_EPILOGUE_LABEL): New macro
10414         (vmsdbgout_begin_epilogue): New function.
10415         (vmsdbgout_type_decl): New function.
10416
10417 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10418
10419         * vmsdbg.h: Update copyright.
10420
10421 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10422
10423         * vmsdbg.h (DST_K_TBG): New DST constant.
10424         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
10425         (write_modbeg): Cast module_language to avoid warning.
10426         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
10427
10428 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
10429
10430         PR other/44034
10431         * target.def, doc/tm.texi.in, genhooks.c: New files.
10432         * target.h: Instead of defining individual hook members,
10433         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
10434         include target.def.
10435         * target-def.h: Instead of defining individual hook initializers,
10436         include target-hooks-def.h.
10437         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
10438         targetm.live_on_entry -> targetm.extra_live_on_entry
10439         targetm.sched.md_finish ->targetm.sched.finish
10440         targetm.sched.md_init -> targetm.sched.init
10441         targetm.sched.md_init_global -> targetm.sched.init_global
10442         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
10443         targetm.asm_out.except_table_label ->
10444           targetm.asm_out.emit_except_table_label
10445         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
10446         targetm.target_help -> targetm.help
10447         targetm.vectorize.builtin_support_vector_misalignment ->
10448           targetm.vectorize.support_vector_misalignment
10449         targetm.file_start_app_off -> targetm.asm_file_start_app_off
10450         targetm.file_start_file_directive ->
10451          targetm.asm_file_start_file_directive
10452         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
10453         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
10454         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
10455         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
10456           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
10457         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
10458           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
10459         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
10460         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
10461         * Makefile.in (TARGET_H): Depend on target.def.
10462         (TARGET_DEF_H): Depend on target-hooks-def.h.
10463         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
10464         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
10465         * doc/tm.texi: Regenerate.
10466
10467         * Makefile.in (s-tm-texi): Remove stray tab / rule.
10468
10469         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
10470         (targetm.sched.init): Likewise.
10471
10472 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10473
10474         PR bootstrap/44713
10475         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
10476         (function_arg_advance_32): Const-ify TYPE parameter.
10477         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
10478         (ix86_function_arg_advance): Change type of NAMED to bool.
10479         (function_arg_32): Const-ify CUM and TYPE parameters.
10480         (function_arg_64): Likewise.  Change type of NAMED to bool.
10481         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
10482         to bool.
10483         (ix86_function_arg): Change type of NAMED to bool.
10484         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
10485         last argument as a bool.
10486
10487 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
10488
10489         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
10490         (OVERRIDE_OPTIONS): Add note of obsolescence.
10491         Replace references with references to TARGET_OPTION_OVERRIDE.
10492         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
10493          the macro).
10494         * targhooks.c (default_target_option_override): New function.
10495         * targhooks.h (default_target_option_override): Declare.
10496         * target.h (struct gcc_target): Add override member to
10497         target_option member.
10498         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
10499         targetm.target_option.override call.
10500         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
10501         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
10502
10503 2010-06-29  Jan Hubicka  <jh@suse.cz>
10504
10505         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
10506
10507 2010-06-29  Jan Hubicka  <jh@suse.cz>
10508
10509         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
10510         unreachable.
10511         (rebuild_frequencies): New function.
10512         * predict.h (rebuild_frequencies): Declare.
10513         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
10514         entry block and edge reaching new_entry.
10515         (tree_function_versioning): When doing partial cloning, rebuild
10516         frequencies when done.
10517         * passes.c (execute_function_todo): Use rebild_frequencies.
10518
10519 2010-06-29  Richard Guenther  <rguenther@suse.de>
10520
10521         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
10522         * tree-flow.h (enum noalias_state): Remove.
10523         (struct var_ann_d): Remove noalias_state member.
10524
10525 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
10526
10527         PR target/43902
10528         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
10529         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
10530         (maddhidi4): Likewise.
10531
10532         Revert parts of the change for PR25130.
10533         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10534         MEM_ALIAS_SET.
10535
10536 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10537
10538         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
10539         targetm.calls.function_incoming_arg, and
10540         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
10541         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
10542         * target.h (struct gcc_target): Add function_arg_advance,
10543         function_arg, and function_incoming_arg fields.
10544         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
10545         (TARGET_FUNCTION_INCOMING_ARG): Define.
10546         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
10547         and TARGET_FUNCTION_INCOMING_ARG.
10548         * targhooks.h (default_function_arg_advance): Declare.
10549         (default_function_arg, default_function_incoming_arg): Declare.
10550         * targhooks.c (default_function_arg_advance): New function.
10551         (default_function_arg, default_function_incoming_arg): New function.
10552         * config/i386/i386.c (function_arg_advance): Rename to...
10553         (ix86_function_arg_advance): ...this.  Make static.
10554         (function_arg): Rename to...
10555         (ix86_function_arg): ...this.  Make static.
10556         (TARGET_FUNCTION_ARG_ADVANCE): Define.
10557         (TARGET_FUNCTION_ARG): Define.
10558         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
10559         (FUNCTION_ARG): Delete.
10560         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
10561         (function_arg): Delete prototype.
10562
10563 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10564
10565         * reginfo.c (init_reg_sets_1): Adjust comments.
10566         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
10567         * calls.c (prepare_call_address): Likewise.
10568         (emit_call_1): Use targetm.calls.return_pops_args.
10569         (expand_call): Likewise.
10570         * function.c (assign_parms): Likewise.
10571         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
10572         * target.h (struct gcc_target) [struct calls]: Add
10573         return_pops_args field.
10574         * targhooks.h (default_return_pops_args): Declare.
10575         * targhooks.c (default_return_pops_args): Define.
10576         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
10577         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
10578         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
10579         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
10580         documentation.
10581         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
10582         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
10583         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
10584         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
10585         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
10586         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
10587         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
10588         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
10589         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
10590         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
10591         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
10592         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
10593         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
10594         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
10595         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
10596         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
10597         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
10598         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
10599         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
10600         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
10601         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
10602         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
10603         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
10604         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
10605         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
10606         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
10607         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
10608         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
10609         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
10610         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
10611         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
10612         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
10613         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
10614         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
10615         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
10616         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
10617         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
10618         * config/i386/i386.c (ix86_return_pops_args): Make static.
10619         Constify arguments.
10620         (TARGET_RETURN_POPS_ARGS): Define.
10621         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
10622         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
10623         (TARGET_RETURN_POPS_ARGS): Define.
10624         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
10625         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
10626         (TARGET_RETURN_POPS_ARGS): Define.
10627
10628 2010-06-29  Richard Guenther  <rguenther@suse.de>
10629
10630         PR middle-end/44667
10631         * tree-inline.c (initialize_inlined_parameters): Make sure
10632         to remap the inlined parameter variable substitutions types.
10633
10634 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10635
10636         PR rtl-optimization/44659
10637         * combine.c (make_compound_operation) <SUBREG>: Do not return the
10638         result of force_to_mode if it partially re-expanded the compound.
10639
10640 2010-06-28  Jan Hubicka  <jh@suse.cz>
10641
10642         PR middle-end/44671
10643         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
10644         RESULT_DECL.
10645
10646 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
10647
10648         * double-int.h (force_fit_type_double): Remove declaration.
10649         * double-int.c (force_fit_type_double): Move to tree.c.
10650         * tree.h (force_fit_type_double): Declare.
10651         * tree.h (force_fit_type_double): Moved from double-int.c. Use
10652         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
10653         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
10654         * convert.c (convert_to_pointer): Adjust call to
10655         force_fit_type_double.
10656         * tree-vrp.c (extract_range_from_assert,
10657         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
10658         * fold-const.c: Update comment.
10659         (int_const_binop, fold_convert_const_int_from_int,
10660         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
10661         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
10662         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
10663         round_up_loc): Adjust call to force_fit_type_double.
10664
10665 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
10666
10667         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
10668
10669 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10670
10671         * tree-sra.c (convert_callers): New parameter, change fndecls of
10672         recursive calls.
10673         (modify_function): Pass the old decl to convert_callers.
10674
10675 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10676
10677         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
10678         ipa_check_create_node_params and ipa_initialize_node_params with
10679         checking asserts they are not necessary.
10680
10681 2010-06-28  Jan Hubicka  <jh@suse.cz>
10682
10683         PR tree-optimization/44687
10684         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
10685
10686 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10687
10688         PR c++/44535
10689         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
10690         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
10691         instead of BINFO_BASE_BINFO.
10692
10693 2010-06-28  Michael Matz  <matz@suse.de>
10694
10695         PR middle-end/44592
10696         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
10697         proper VDEF chain for intermediate stores in the sequence.
10698
10699 2010-06-28  Jan Hubicka  <jh@suse.cz>
10700
10701         PR tree-optimization/44357
10702         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
10703         uninlinable functions.
10704
10705 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
10706
10707         * config.gcc (powerpc*-*-*): Handle titan.
10708         * config/rs6000/rs6000.c (titan_cost): New costs.
10709         (rs6000_override_options): Add "titan" to processor_target_table.
10710         Add Titan to branch alignment logic.
10711         Correctly set rs6000_cost for titan.
10712         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
10713         * config/rs6000/titan.md: New file.
10714         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
10715
10716 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
10717
10718         * tree-browser.c (TB_history_stack): Convert to a VEC.
10719         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
10720         (TB_history_prev): Likewise.
10721
10722 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
10723
10724         * vec.h (vec_heap_free): Add parentheses around free.
10725
10726 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
10727
10728         * system.h: Poison GCC_EXCEPT_H for front-end files.
10729
10730         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
10731         langhook.
10732         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
10733         Define to NULL by default.
10734         * except.h: Define GCC_EXCEPT_H.
10735         (doing_eh): Remove prototype.
10736         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
10737         (lang_protect_cleanup_actions): Remove.
10738         * except.c (lang_protect_cleanup_actions): Remove.
10739         (doing_eh): Remove.
10740         (gen_eh_region): Don't check doing_eh here.
10741         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
10742         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
10743         instead of lang_protect_cleanup_actions.
10744         * omp-low.c (maybe_catch_exception): Likewise.
10745         * Makefile.in: Update dependencies.
10746
10747 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
10748
10749         * cgraph.h (struct varpool_node): new used_from_object_file flag.
10750         (struct cgraph_local_info): new used_from_object_file flag.
10751         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
10752         (cgraph_clone_node): initialize used_from_object_file.
10753         (cgraph_create_virtual_clone): initialize used_from_object_file.
10754         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
10755         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
10756         when compiling with -fwhole-program.
10757         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
10758         internal resolver.
10759         * ipa.c (function_and_variable_visibility): Set externally_visible
10760         flag of varpool_node if used_from_object_file flag is set.
10761         (cgraph_externally_visible_p): check used_from_object_file flag.
10762         * doc/invoke.texi (-fwhole-program option): Change description of
10763         externally_visible attribute accordingly.
10764         * doc/extend.texi (externally_visible): Ditto.
10765
10766 2010-06-27  Jan Hubicka  <jh@suse.cz>
10767
10768         * params.def (max-inline-insns-auto): Default to 40.
10769         * doc/invoke.texi (max-inline-insns-auto): Document the change.
10770
10771 2010-06-27  Jan Hubicka  <jh@suse.cz>
10772
10773         PR middle-end/44671
10774         PR middle-end/44686
10775         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
10776         signature change.
10777         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
10778         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
10779
10780 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
10781
10782         * target.h (struct gcc_target): Add register_move_cost field.
10783         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
10784         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
10785         * targhooks.c (default_register_move_cost): New function.
10786         * targhooks.h (default_register_move_cost): Declare function.
10787         * defaults.h (REGISTER_MOVE_COST): Delete.
10788         * ira-int.h (ira_register_move_cost): Update comment.
10789         * ira.c (ira_register_move_cost): Update comment.
10790         * reload.h (register_move_cost): Declare.
10791         * reginfo.c (register_move_cost): New function.
10792         (move_cost): Update comment.
10793         (init_move_cost, memory_move_secondary_cost): Replace
10794         REGISTER_MOVE_COST with register_move_cost.
10795         * postreload.c (reload_cse_simplify_set): (Ditto.).
10796         * reload.c (find_valid_class, find_reloads): (Ditto.).
10797         * reload1.c (choose_reload_regs): (Ditto.).
10798         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
10799         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
10800         * doc/md.texi (can_create_pseudo_p): Update documentation.
10801
10802         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10803         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10804         * config/i386/i386.h (ix86_memory_move_cost): Make static.
10805         (TARGET_MEMORY_MOVE_COST): Define.
10806
10807         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
10808         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
10809         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
10810         (TARGET_MEMORY_MOVE_COST): Define.
10811
10812 2010-06-27  Richard Guenther  <rguenther@suse.de>
10813
10814         PR tree-optimization/44683
10815         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
10816         false edge from the inverted condition.
10817
10818 2010-06-27  Richard Guenther  <rguenther@suse.de>
10819
10820         PR middle-end/44684
10821         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
10822         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
10823         for register LHS.  Or non-store assignments.
10824
10825 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
10826
10827         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
10828         (sparc_emit_set_const64): Likewise.  Remove disabled code.
10829         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
10830         (sparc_emit_set_const64): Likewise.
10831
10832 2010-06-26  Catherine Moore  <clm@codesourcery.com>
10833
10834         * config/mips/mips.md (alu_type): New attribute.
10835         (type): Infer type from alu_type.
10836         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
10837         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
10838         *subsi3_extended, negsi2, negdi2, *low<mode>,
10839         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
10840         xor<mode>3, *nor<mode>3,
10841         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
10842         *zero_extendhi_truncqi):  Set alu_type instead of type.
10843
10844 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
10845
10846         * config/alpha/alpha.c (alpha_need_linkage): Adjust
10847         splay_tree_new_ggc call.
10848         (alpha_use_linkage): Likewise.
10849
10850 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
10851
10852         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
10853         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
10854         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
10855         (static_specs): Remove switches_need_spaces.
10856         (process_command, do_self_spec): Hardcode handling "-o" instead of
10857         checking switches_need_spaces.
10858         * system.h (SWITCHES_NEED_SPACES): Poison.
10859
10860 2010-06-26  Richard Guenther  <rguenther@suse.de>
10861
10862         PR tree-optimization/44393
10863         * tree-loop-distribution.c (generate_loops_for_partition): Fix
10864         stmt removal and VOP renaming.
10865         (generate_memset_zero): Remove redundant stmt updating.
10866         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
10867         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
10868
10869 2010-06-26  Jan Hubicka  <jh@suse.cz>
10870
10871         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
10872         edges comming from header are equivalent.
10873         (visit_bb): Handle PHIs correctly.
10874         * tree-inline.c (copy_phis_for_bb): Be able to copy
10875         PHI from entry edge.
10876         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
10877
10878 2010-06-26  Richard Guenther  <rguenther@suse.de>
10879
10880         PR middle-end/44674
10881         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
10882         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
10883
10884 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
10885
10886         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
10887         add_infile, alloc_switch): New.
10888         (process_command): Remove variable lang_n_infiles.  Process
10889         options in a single pass.  Use new functions for allocating
10890         infiles and switches arrays.  Properly skip operands of
10891         -Xpreprocessor and -Xassembler.
10892
10893 2010-06-26  Jan Hubicka  <jh@suse.cz>
10894
10895         PR middle-end/44671
10896         * cgraphunit.c (cgraph_function_versioning): Remove wrong
10897         cgraph_make_decl_local call; fix typo copying RTL data.
10898
10899 2010-06-25  DJ Delorie  <dj@redhat.com>
10900
10901         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
10902         (m32c_output_aligned_common): Likewise.
10903         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
10904         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
10905         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
10906         (m32c_register_pragmas): Register it.
10907         * config/m32c/m32c.c (m32c_get_pragma_address): New.
10908         (m32c_insert_attributes): Set #pragma address decls volatile.
10909         (pragma_entry_eq): New.
10910         (pragma_entry_hash): New.
10911         (m32c_note_pragma_address): New.
10912         (m32c_get_pragma_address): New.
10913         (m32c_output_aligned_common): New.
10914         * doc/extend.texi: Document the new pragma.
10915
10916         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
10917         also.
10918         * config/m32c/predicates.md (m32c_any_operand): Check the code
10919         instead of memory_operand so as to allow matching volatile MEMs.
10920         (m32c_nonimmediate_operand): Likewise.
10921         (mra_operand): Allow volatiles.
10922
10923 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
10924
10925         PR debug/44610
10926         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
10927         address if the offset is unknown.
10928
10929 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
10930
10931         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
10932         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
10933         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
10934         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
10935         to ia64_start_function. Invoke it.
10936         * config/ia64/ia64.c (ia64_start_function): Call new function
10937         dwarf2out_vms_debug_main_pointer.
10938
10939 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10940
10941         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
10942         statements computing the true predicate.
10943
10944 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10945
10946         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
10947         to boolean_true_node.
10948         (reset_bb_predicate): New.
10949         (predicate_bbs): Call reset_bb_predicate.
10950
10951 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10952
10953         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
10954         (tree_if_conversion): Returns true when something has been changed.
10955         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
10956         changed something.
10957
10958 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10959
10960         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
10961         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
10962         * tree-if-conv.c: Include dbgcnt.h.
10963         (tree_if_conversion): Use if_conversion_tree to count the number of
10964         if-convertible loops.
10965
10966 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
10967
10968         * common.opt (fprefetch-loop-arrays): Re-define
10969         -fprefetch-loop-arrays as a tri-state option with the initial
10970         value of -1.
10971         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
10972         pass only when flag_prefetch_loop_arrays > 0.
10973         * toplev.c (process_options): Note that, with tri-states,
10974         flag_prefetch_loop_arrays>0 means prefetching is enabled.
10975         * config/i386/i386.c (override_options): Enable prefetching at -O3
10976         for a set of CPUs that sw prefetching is helpful.
10977         (software_prefetching_beneficial_p): New.  Return TRUE if software
10978         prefetching is beneficial for the given CPU.
10979
10980 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10981
10982         PR rtl-optimization/44326
10983         * implicit-zee.c (find_removable_zero_extends): Replace
10984         INSN_P with NONDEBUG_INSN_P.
10985
10986 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10987
10988         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
10989         (struct ipa_node_params): Removed the modification_analysis_done flag.
10990         (ipa_is_param_modified): Removed.
10991         (ipa_analyze_node): Declare.
10992         (ipa_compute_jump_functions): Remove declaration.
10993         (ipa_count_arguments): Likewise.
10994         (ipa_detect_param_modifications): Likewise.
10995         (ipa_analyze_params_uses): Likewise.
10996         * ipa-prop.c (struct param_analysis_info): New type.
10997         (visit_store_addr_for_mod_analysis): Removed.
10998         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
10999         moved down in the file.
11000         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
11001         (ipa_count_arguments): Made static.
11002         (mark_modified): New function.
11003         (is_parm_modified_before_call): New function.
11004         (compute_pass_through_member_ptrs): New parameter parms_info, call
11005         is_parm_modified_before_call instead of ipa_is_param_modified.
11006         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
11007         it to compute_pass_through_member_ptrs.
11008         (ipa_compute_jump_functions): New parameter parms_info, pass it to
11009         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
11010         on the callee if it is analyzed.  Made static.
11011         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
11012         is_parm_modified_before_call instead of ipa_is_param_modified.
11013         (ipa_analyze_call_uses): New parameter parms_info, pass it to
11014         ipa_analyze_indirect_call_uses.
11015         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
11016         ipa_analyze_call_uses.
11017         (ipa_analyze_params_uses): New parameter parms_info, pass it to
11018         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
11019         (ipa_analyze_node): New function.
11020         (ipa_print_node_params): Do not dump the modified flag.
11021         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
11022         it.  Do not stream the modified parameter flag.
11023         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
11024         it.  Do not stream the modified parameter flag.
11025         * ipa-cp.c (ipcp_analyze_node): Removed.
11026         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
11027         with only a call to ipa_analyze_node.
11028         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
11029         node with only a call to ipa_analyze_node.
11030
11031 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11032
11033         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
11034
11035 2010-06-25  Jan Hubicka  <jh@suse.cz>
11036
11037         * tree-pass.h (pass_split_functions): Declare.
11038         * opts.c (decode_options): Enable function splitting at -O2
11039         * timevar.def (TV_IPA_FNSPLIT): New macro.
11040         * ipa-split.c: New file.
11041         * common.opt (-fpartial-inlining): New flag.
11042         * Makefile.in (ipa-split.o): New object file.
11043         * passes.c (init_optimization_passes): Add ipa-split.
11044         * params.def (partial-inlining-entry-probability): New parameters.
11045         * doc/invoke.texi (-fpartial-inlining): New.
11046
11047 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11048
11049         PR 44665
11050         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
11051         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
11052         (gimplify_expr): Likewise.
11053
11054 2010-06-25  Martin Jambor  <mjambor@suse.cz>
11055
11056         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
11057         statements instead of bailing out on them.
11058         (ipa_analyze_indirect_call_uses): Do not require that loads from the
11059         parameter are in the same BB as the condition.  Update comments.
11060
11061 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
11062
11063         PR middle-end/43866
11064         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
11065         true or always false, return NULL_TREE.
11066         (tree_unswitch_single_loop): Optimize conditions even when reaching
11067         max-unswitch-level parameter.  If num > 0, optimize first all conditions
11068         using entry checks, then do still reachable block discovery and consider
11069         only conditions in still reachable basic blocks in the loop.
11070
11071         PR tree-optimization/44539
11072         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
11073         the call doesn't have LHS, but has VDEF.
11074
11075 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
11076
11077         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
11078         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
11079         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
11080         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
11081         * system.h (MODIFY_TARGET_NAME): Poison.
11082
11083 2010-06-25  Alan Modra  <amodra@gmail.com>
11084
11085         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
11086         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
11087         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11088         CMODEL_LARGE as default.
11089         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
11090         (offsettable_ok_by_alignment): Delete.
11091         (rs6000_emit_move): Remove mcmodel=medium optimization.
11092
11093 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
11094
11095         With large parts from Jim Wilson:
11096         PR target/43902
11097         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
11098         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
11099         * optabs.c (optab_for_tree_code): Likewise.
11100         (expand_widen_pattern_expr): Likewise.
11101         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
11102         out of execute_optimize_widening_mul.
11103         (convert_plusminus_to_widen): New function.
11104         (execute_optimize_widening_mul): Use the two new functions.
11105         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
11106         Remove code to generate widening multiply-accumulate.  Add support
11107         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
11108         * gimple-pretty-print.c (dump_ternary_rhs): New function.
11109         (dump_gimple_assign): Call it when appropriate.
11110         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
11111         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
11112         (expand_gimple_stmt_1): Likewise.
11113         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
11114         WIDEN_MULT_MINUS_EXPR.
11115         * tree-ssa-operands.c (get_expr_operands): Likewise.
11116         * tree-inline.c (estimate_operator_cost): Likewise.
11117         * gimple.c (extract_ops_from_tree_1): Renamed from
11118         extract_ops_from_tree.  Add new arg for a third operand; fill it.
11119         (gimple_build_assign_stat): Support operations with three operands.
11120         (gimple_build_assign_with_ops_stat): Likewise.
11121         (gimple_assign_set_rhs_from_tree): Likewise.
11122         (gimple_assign_set_rhs_with_ops_1): Renamed from
11123         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
11124         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
11125         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
11126         WIDEN_MULT_MINUS_EXPR.
11127         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
11128         (extract_ops_from_tree_1): Adjust declaration.
11129         (gimple_assign_set_rhs_with_ops_1): Likewise.
11130         (gimple_build_assign_with_ops): Pass NULL for last operand.
11131         (gimple_build_assign_with_ops3): New macro.
11132         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
11133         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
11134         functions.
11135         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
11136         (verify_gimple_assign): Call it.
11137         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
11138         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
11139         functions for dealing with three-operand statements.
11140         * tree.c (commutative_ternary_tree_code): New function.
11141         * tree.h (commutative_ternary_tree_code): Declare it.
11142         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
11143         ternary statements.
11144         (gimple_assign_nonzero_warnv_p): Likewise.
11145         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
11146         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
11147         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
11148         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
11149         (struct hashtable_expr): New member ternary in the union.
11150         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
11151         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
11152         (iterative_hash_hashable_expr): Likewise.
11153         (print_expr_hash_elt): Handle EXPR_TERNARY.
11154         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
11155         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
11156         statements.  Handle GIMPLE_TERNARY_RHS.
11157
11158 2010-06-25  Jan Hubicka  <jh@suse.cz>
11159
11160         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
11161
11162 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
11163
11164         PR c/44517
11165         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
11166         parameters are not good.
11167         (c_parser_parameter_declaration): Error unknown type name if the type
11168         name can't start declaration specifiers.
11169
11170 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
11171
11172         * gcc.c (translate_options): Don't mention +e in comment.
11173         (process_command): Don't handle +e specially.
11174
11175 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
11176
11177         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
11178
11179         * ira-build.c (merge_hard_reg_conflicts): New function.
11180         (create_cap_allocno, copy_info_to_removed_store_destinations,
11181         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
11182         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
11183         (remove_unnecessary_allocnos, remove_low_level_allocnos)
11184         copy_nifo_to_removed_store_destination): Use them.
11185         * ira-lives.c (make_hard_regno_born): New function, split out of
11186         make_regno_born.
11187         (make_allocno_born): Likewise.
11188         (make_hard_regno_dead): New function, split out of make_regno_dead.
11189         (make_allocno_dead): Likewise.
11190         (inc_register_pressure): New function, split out of set_allocno_live.
11191         (dec_register_pressure): New function, split out of clear_allocno_live.
11192         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
11193         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
11194         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
11195         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
11196         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
11197         mark_pseudo_regno_live.
11198         (process_bb_node_lives): Use mark_pseudo_regno_live,
11199         make_hard_regno_born and make_allocno_dead.
11200         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
11201         set_allocno_live, clear_allocno_live): Delete functions.
11202
11203         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
11204         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
11205         functions.
11206         (ira_flattening): Use ira_parent_allocno.
11207         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
11208         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
11209
11210         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
11211         statement.
11212
11213         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
11214         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
11215         minmax_set_iter_cond, minmax_set_iter_next,
11216         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
11217         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
11218         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
11219         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
11220         uses changed.
11221
11222         * ira-int.h (struct live_range, live_range_t): Renamed from struct
11223         ira_allocno_live_range and allocno_live_range_t; all uses changed.
11224         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
11225         All uses changed.
11226
11227 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
11228
11229         * thumb2.md (thumb2_tlobits_cbranch): Delete.
11230         (peephole2 to convert zero_extract/compare of single bit to
11231          lshift/compare): New.
11232
11233 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
11234
11235         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
11236         recursive call and call to 'int_const_binop'.
11237         (build_range_check, fold_cond_expr_with_comparison, unextend,
11238         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
11239         multiple_of_p): Adjust call to const_binop.
11240
11241 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
11242
11243         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
11244         determine size of XFmode operand.
11245         (XFmode extended DFmode push splitter): Ditto.
11246         (XFmode extended SFmode push splitter): Ditto.
11247
11248 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11249
11250         PR target/44588
11251         * config/i386/i386.md (extract_code): New.
11252         (<u>divmodqi4): Likewise.
11253         (divmodhiqi3): Likewise.
11254         (udivmodhiqi3): Likewise.
11255         (<u>divqi3): Remvoved.
11256
11257 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
11258
11259         PR middle-end/44492
11260         * recog.h (struct recog_data): Add is_asm field.
11261         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
11262         present in constraints of inline-asm operand and memory operand
11263         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
11264         (extract_insn): Initialize recog_data.is_asm.
11265         * doc/md.texi (Constraints): Document operand side-effect rules.
11266
11267 2010-06-24  Andi Kleen  <ak@linux.intel.com>
11268
11269         * c-parser.c (c_parser_conditional_expression): Call
11270         warn_for_omitted_condop.
11271         * doc/invoke.texi: Document omitted condop warning.
11272
11273 2010-06-24  Nick Clifton<nickc@redhat.com>
11274
11275         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
11276         insn in the sequence is a jump insn before setting its label.
11277
11278 2010-06-24  Alan Modra  <amodra@gmail.com>
11279
11280         * collect2.c (main): Match exactly --version and --help.
11281
11282 2010-06-24  DJ Delorie  <dj@redhat.com>
11283
11284         * config/m32c/m32c-pragma.c: Don't include rtl.h.
11285
11286 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
11287
11288         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
11289         using X87MODEF mode iterator.
11290         (pushsf splitter): Macroize splitter using P mode iterator.
11291         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
11292         mode iterator.
11293
11294         (*movxf_internal): Rename from *movxf_integer.
11295         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
11296         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
11297         (*movdf_internal): Rename from *movdf_integer.
11298         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
11299         (*movsf_internal): Rename from *movdf_1.
11300
11301 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
11302
11303         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
11304         (const_gimple_seq_node): Removed typedefs.
11305
11306         * gimple.h (gimple_seq_node_d, gimple_seq_node)
11307         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
11308
11309 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11310
11311         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
11312         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
11313         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
11314         and CODE_FOR_vec_extract_lo_v4df.
11315
11316         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
11317         Changed to define_insn_and_split.
11318         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
11319         (vec_extract_lo_v16hi): Likewise.
11320         (vec_extract_lo_v32qi): Likewise.
11321         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
11322         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
11323
11324 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
11325
11326         PR target/44640
11327         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
11328         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
11329         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
11330         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
11331         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
11332
11333         PR target/44640
11334         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
11335
11336         PR other/44644
11337         * df-core.c (struct df): Rename to df_d.
11338         * df.h (struct df): Likewise.
11339         * dse.h (struct df): Remove forward declaration.
11340         * recog.h (struct insn_data): Rename to:
11341         (struct_insn_data_d).  Adjusted all users.
11342
11343 2010-06-23  Arnaud Charlet  <charlet@adacore.com
11344
11345         PR ada/22220
11346         * doc/install.texi: Update requirements to build GNAT.
11347
11348 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
11349
11350         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
11351         enum type.
11352         (m68k_sched_attr_opx_type): Remove unreachable return.
11353         (m68k_sched_attr_opy_type): Likewise.
11354         (m68k_sched_attr_size): Likewise.
11355         (sched_get_opxy_mem_type): Likewise.
11356         (m68k_sched_attr_op_mem): Likewise.
11357
11358 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
11359
11360         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
11361         new statement and adjust VDEF only if necessary.  Remove superfluous
11362         call to maybe_clean_or_replace_eh_stmt.
11363         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
11364         copy the flags.
11365         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
11366         * tree-inline.c (copy_bb): ...and not there.
11367
11368 2010-06-22  Cary Coutant  <ccoutant@google.com>
11369
11370         * dwarf2out.c (is_nested_in_subprogram): New function.
11371         (should_move_die_to_comdat): Use it.
11372         (copy_ancestor_tree): Don't mark DIEs here.
11373         (copy_decls_walk): Start walk from root of newly-added tree;
11374         mark DIEs here instead.
11375
11376 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11377
11378         * config/i386/i386.md (unit): Also check sseishft1.
11379
11380 2010-06-22  Jan Hubicka  <jh@suse.cz>
11381
11382         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
11383         enabled.
11384
11385 2010-06-22  Jan Hubicka  <jh@suse.cz>
11386
11387         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
11388         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
11389         Return true if something changed.
11390         * df.h (df_confluence_function_n): Return bool.
11391         * df-core.c (df_worklist_propagate_forward,
11392         df_worklist_propagate_backward): Track changes and ages.
11393         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
11394         track ages.
11395         * dse.c (dse_confluence_n): Return always true.
11396
11397 2010-06-22  Jan Hubicka  <jh@suse.cz>
11398
11399         * bitmap.c (bitmap_clear_bit): Micro optimize.
11400
11401 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
11402
11403         * config/i386/i386.md (SWI1248x): New mode iterator.
11404         (SWI48x): Ditto.
11405         (SWI12): Ditto.
11406         (SWI24): Ditto.
11407
11408         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
11409         SWI1248x mode iterator.
11410         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
11411         using SWI124 mode iterator.
11412         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
11413         mode iterator.
11414         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
11415         *pushdi2_prologue_rex64 using P mode iterator.
11416         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
11417         using SWI48 mode iterator.
11418         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
11419         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
11420         using SWI1248x mode iterator.
11421         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
11422         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
11423         SWI48 mode iterator.
11424         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
11425         iterator.
11426         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
11427         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
11428         SWI12 mode iterator.
11429         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
11430         SWI12 mode iterator.
11431         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
11432         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
11433         SWI24 mode iterator.
11434         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
11435         SWI48 mode iterator.
11436         (mov<mode>_insn_1): New expander.
11437         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
11438         using SWI48x mode iterator.
11439
11440         (*movoi_internal_avx): Rename from *movoi_internal.
11441         (*movti_internal_rex64): Rename from *movti_rex64.
11442         (*movti_internal_sse): Rename from *movti_sse.
11443         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
11444         (*movdi_internal): Rename from *movdi_2.
11445         (*movsi_internal): Rename from *movsi_1.
11446         (*movhi_internal): Rename from *movhi_1.
11447         (*movqi_internal): Rename from *movqi_1.
11448
11449         (insv): Update the call to gen_movsi_insv_1 for rename.
11450         * config/i386/i386.c (promote_duplicated_reg): Ditto.
11451
11452 2010-06-22  Jan Hubicka  <jh@suse.cz>
11453
11454         * passes.c (execute_function_todo): Move call of statistics_fini_pass
11455         to ...
11456         (execute_todo) ... this one.
11457
11458 2010-06-22  Alan Modra  <amodra@gmail.com>
11459
11460         PR target/44364
11461         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11462         * caller-save.c (insert_restore, insert_save): Use non-validate
11463         form of adjust_address.
11464
11465 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11466
11467         PR target/39690
11468         * config/pa/pa.c (override_options): Disable
11469         -freorder-blocks-and-partition.
11470
11471 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11472
11473         PR target/44615
11474         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
11475
11476         * config/i386/i386.md (type): Add sseishft1
11477
11478         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
11479         (ppro_insn_load): Likewise.
11480         (ppro_insn_store): Likewise.
11481         (ppro_insn_both): Likewise.
11482
11483         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
11484         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
11485         for type.
11486         (*vec_extractv2di_1_avx): Likewise.
11487         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
11488         type.  Remove atom_unit.
11489         (*vec_extractv2di_1_sse2): Likewise.
11490
11491 2010-06-21  DJ Delorie  <dj@redhat.com>
11492
11493         * diagnostic.h (diagnostic_classification_change_t): New.
11494         (diagnostic_context): Add history and push/pop list.
11495         (diagnostic_push_diagnostics): Declare.
11496         (diagnostic_pop_diagnostics): Declare.
11497         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
11498         from pragmas in a history chain instead of the global table.
11499         (diagnostic_push_diagnostics): New.
11500         (diagnostic_pop_diagnostics): New.
11501         (diagnostic_report_diagnostic): Scan history chain to find state
11502         of diagnostics as of the diagnostic location.
11503         * opts.c (set_option): Pass UNKNOWN_LOCATION to
11504         diagnostic_classify_diagnostic.
11505         (enable_warning_as_error): Likewise.
11506         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
11507         use in the history chain.
11508         * doc/extend.texi: Document pragma GCC diagnostic changes.
11509
11510 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
11511
11512         * dwarf2out.c (add_linkage_name): New function.  Don't add
11513         anything to DW_TAG_member DIEs.
11514         (add_name_and_src_coords_attributes): Use it.
11515         (gen_variable_die): Call it for C++ static data members if
11516         specification is DW_TAG_member.
11517
11518         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
11519         C++ char16_t and char32_t.
11520
11521         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
11522         * genattrtab.c: Include vecprim.h.
11523         (cached_attrs, cached_attr_count, attrs_seen_once,
11524         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
11525         attrs_cached_after): New variables.
11526         (find_attrs_to_cache): New function.
11527         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
11528         (write_test_expr): Add attrs_cached argument, return it too,
11529         attempt to cache non-const attributes used more than once in
11530         a single case handling.
11531         (write_attr_get): Use find_attrs_to_cache, for caching candidates
11532         emit cached_* variables.  Adjust write_attr_set callers.
11533         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
11534         to find attributes that should be cached in this block.  Adjust
11535         write_test_expr callers.
11536         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
11537         callers.
11538         (make_automaton_attrs): Adjust write_test_expr caller.
11539
11540         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
11541         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
11542         (make_automaton_attrs): If find_tune_attr returns non-NULL,
11543         write separate internal_dfa_insn_code_* and insn_default_latency_*
11544         functions for each attribute's value and emit init_sched_attrs
11545         function and function pointers.
11546         * genattr.c (const_attrs, reservations): New variables.
11547         (gen_attr): Add const attributes to const_attrs vector.
11548         (check_tune_attr, find_tune_attr): New functions.
11549         (main): Add reservations to reservations vector.  If find_tune_attr
11550         returns true, add prototype for init_sched_attrs and make
11551         internal_dfa_insn_code and insn_default_latency function pointers,
11552         otherwise define init_sched_attrs as dummy macro.
11553         * cfgexpand.c: Include insn-attr.h.
11554         (gimple_expand_cfg): Call init_sched_attrs.
11555
11556         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
11557
11558         PR target/44575
11559         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
11560         va_arg from a set of register save slots into a temporary,
11561         if the container is bigger than type size, do the copying
11562         using smaller mode or using memcpy.
11563
11564         PR bootstrap/44426
11565         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
11566         prototype.
11567         (sel_print_to_dot): Remove macro.
11568         (sel_print): Likewise.  New prototype.
11569         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
11570         (sel_print): New function.
11571
11572 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11573
11574         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
11575         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
11576
11577 2010-06-21  Nick Clifton  <nickc@redhat.com>
11578
11579         * config/rx/rx.h (PTRDIFF_TYPE): Define.
11580         (SMALL_REGISTER_CLASS): Define (to zero).
11581         (PRINT_OPERAND): Delete.
11582         (PRINT_OPERAND_ADDRESS): Delete.
11583         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
11584         (rx_print_operand_address): Delete prototype.
11585         * config/rx/rx.c (rx_print_operand): Make static.
11586         Allow %H and %L to handle CONST_DOUBLEs.
11587         (rx_print_operand_address): Make static.
11588         (rx_gen_move_template): Rename local variable 'template' to
11589         out_template.
11590         (rx_function_arg): Do not pass unknown sized objects in registers.
11591         (TARGET_PRINT_OPERAND): Define.
11592         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11593
11594 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11595
11596         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
11597
11598 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
11599
11600         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
11601         stack-alignment for simple leaf-functions.
11602
11603 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
11604
11605         * doc/install.texi: Document bootstrap-lto.
11606
11607 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
11608
11609         PR debug/44248
11610         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
11611         (input_function): Drop them here, if VTA is disabled.
11612
11613 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
11614
11615         PR target/44546
11616         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
11617         New predicate.
11618         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
11619         ix86_swapped_fp_comparsion_operator instead of
11620         ix86_fp_comparison_operator.
11621
11622         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
11623         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
11624         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
11625         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
11626         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
11627         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
11628
11629 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
11630
11631         PR other/32998
11632         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
11633         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
11634         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
11635         (decode_cmdline_option): Update for this return value.  Set
11636         orig_option_with_args_text field.  Set arg field for unknown
11637         options.  Make static.
11638         (decode_cmdline_options_to_array): New.
11639         (prune_options): Update handling of find_opt return value.
11640         * opts.c (read_cmdline_option): Take decoded option.  Return void.
11641         (read_cmdline_options): Take decoded options.
11642         (decode_options): Add parameters for decoded options.  Use
11643         decode_cmdline_options_to_array.  Use decoded options for -O
11644         scan.  Use integral_argument for -O parameters.  Update call to
11645         read_cmdline_options.
11646         (enable_warning_as_error): Update handling of find_opt return value.
11647         * opts.h: Update comment on unknown options.
11648         (struct cl_decoded_option): Update comments on opt_index and arg.
11649         Add orig_option_with_args_text.
11650         (decode_cmdline_option): Remove.
11651         (decode_cmdline_options_to_array): Declare.
11652         (decode_options): Update prototype.
11653         * toplev.c (save_argv): Remove.
11654         (save_decoded_options, save_decoded_options_count): New.
11655         (read_integral_parameter): Remove.
11656         (print_switch_values): Use decoded options.
11657         (toplev_main): Don't set save_argv.  Update call to decode_options.
11658         * toplev.h (read_integral_parameter): Remove.
11659         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
11660
11661 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
11662
11663         PR target/44072
11664         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
11665         immediate.
11666         * constraints.md (Pw, Px): New constraints.
11667         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
11668
11669 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
11670
11671         * config/i386/sse.md (fma4modesuffixf4): Removed.
11672         (ssemodesuffixf2s): Likewise.
11673         (ssemodesuffixf4): Likewise.
11674         (ssemodesuffixf2c): Likewise.
11675         (ssescalarmodesuffix2s): Likewise.
11676         (avxmodesuffixf2c): Likewise.
11677         (ssemodesuffix): New.
11678         (ssescalarmodesuffix): Likewise.
11679         Update patterns with ssemodesuffix and ssescalarmodesuffix.
11680
11681 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
11682
11683         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
11684
11685 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11686
11687         * stor-layout.c (debug_rli): Remove unused local variables.
11688
11689 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
11690
11691         PR rtl-optimization/40900
11692         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
11693         original expression for later reuse.
11694         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
11695         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
11696
11697 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
11698
11699         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
11700         double_int_fits_in_uhwi_p): Implement as static inline.
11701         (double_int_xor): New inline 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): Declare.
11705         (lrotate_double, rrotate_double): Remove declaration.
11706         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
11707         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
11708         (double_int_lrotate, double_int_rrotate, double_int_max,
11709         double_int_umax, double_int_smax, double_int_min, double_int_umin,
11710         double_int_smin): New function.
11711         * fold-const.c (int_const_binop): Clean up, use double_int_*
11712         functions.
11713         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
11714         double_int_* and immed_double_int_const functions.
11715
11716 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
11717
11718         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
11719         * function.c (types_used_by_cur_var_decl): Likewise.
11720         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
11721
11722 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
11723
11724         * tree.h (record_layout_info): Change type of pending_statics field
11725         to a VEC.
11726         * stor-layout.c (start_record_layout): Store NULL into
11727         pending_statics.
11728         (debug_rli): Call debug_vec_tree instead of debug_tree.
11729         (place_field): Likewise.
11730         (finish_record_layout): Likewise.
11731
11732 2010-06-18  Alan Modra  <amodra@gmail.com>
11733
11734         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
11735
11736 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11737
11738         PR target/43740
11739         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
11740         for SET source operand from SET destination operand.
11741
11742 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
11743
11744         PR rtl-optimization/39871
11745         * reload1.c (init_eliminable_invariants): For flag_pic, disable
11746         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
11747         (function_invariant_p): Rule out a plus of frame or arg pointer with
11748         a SYMBOL_REF.
11749         * ira.c (find_reg_equiv_invariant_const): Likewise.
11750
11751 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
11752
11753         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
11754         print_operand_address and puts to output the operand for CONST.
11755
11756 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
11757
11758         PR debug/44572
11759         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
11760         hook.
11761
11762 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11763
11764         * v850-protos.h (print_operand): Delete.
11765         (print_operand_address): Delete.
11766         * v850.h (PRINT_OPERAND): Delete.
11767         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11768         (PRINT_OPERAND_ADDRESS): Delete.
11769         * v850.c (print_operand_address): Rename to...
11770         (v850_print_operand_address): ...this.  Make static. Call
11771         v850_print_operand.
11772         (print_operand): Rename to...
11773         (v850_print_operand): ...this.  Make static.  Call
11774         v850_print_operand_address.
11775         (v850_print_operand_punct_valid_p): New function.
11776         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11777         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11778
11779 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11780
11781         * config/sh/sh-protos.h (print_operand): Delete.
11782         (print_operand_address): Delete.
11783         * config/sh/sh.h (PRINT_OPERAND): Delete.
11784         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11785         (PRINT_OPERAND_ADDRESS): Delete.
11786         * config/sh/sh.c (sh_print_operand_address): Make static.
11787         (sh_print_operand): Make static.  Call sh_print_operand_address
11788         and sh_print_operand.
11789         (sh_print_operand_punct_valid_p): New function.
11790         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11791         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11792
11793 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11794
11795         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
11796         (mcore_print_operand_address): Delete.
11797         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
11798         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11799         (PRINT_OPERAND_ADDRESS): Delete.
11800         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
11801         (mcore_print_operand): Make static.
11802         (mcore_print_operand_punct_valid_p): New function.
11803         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
11804         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11805
11806 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11807
11808         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
11809         (print_operand_address): Delete.
11810         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
11811         (PRINT_OPERAND_ADDRESS): Delete.
11812         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
11813         static.
11814         (m68hc11_print_operand): Make static.
11815         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11816
11817 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11818
11819         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
11820         (m32r_print_operand_address): Delete.
11821         * config/m32r/m32r.h (m32r_punct_chars): Delete.
11822         (PRINT_OPERAND): Delete.
11823         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11824         (PRINT_OPERAND_ADDRESS): Delete.
11825         * config/m32r/m32r.c (m32r_punct_chars): Make static.
11826         (m32r_print_operand_address): Make static.
11827         (m32r_print_operand): Make static.
11828         (m32r_print_operand_punct_valid_p): New function.
11829         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11830         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11831
11832 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11833
11834         * config/iq2000/iq2000-protos.h (print_operand): Delete.
11835         (print_operand_address): Delete.
11836         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
11837         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11838         (PRINT_OPERAND_ADDRESS): Delete.
11839         (iq2000_print_operand_punct): Delete.
11840         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
11841         (iq2000_print_operand_address): Make static.
11842         (iq2000_print_operand): Make static.
11843         (iq2000_print_operand_punct_valid_p): New function.
11844         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11845         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11846
11847 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11848
11849         * config/frv/frv-protos.h (frv_print_operand): Delete.
11850         (frv_print_operand_address): Delete.
11851         * config/frv/frv.h (PRINT_OPERAND): Delete.
11852         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11853         (PRINT_OPERAND_ADDRESS): Delete.
11854         * config/frv/frv.c (frv_print_operand_address): Make static.
11855         (frv_print_operand): Make static.
11856         (frv_print_operand_punct_valid_p): New function.
11857         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11858         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11859
11860 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11861
11862         * tree.h (vec_member): Declare.
11863         * tree.c (vec_member): Define.
11864
11865 2010-06-17  Richard Guenther  <rguenther@suse.de>
11866
11867         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
11868         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
11869
11870 2010-06-17  Richard Guenther  <rguenther@suse.de>
11871
11872         * tree-inline.c (declare_return_variable): Remove bogus code.
11873
11874 2010-06-17  Richard Guenther  <rguenther@suse.de>
11875
11876         * gimplify.c (gimplify_bind_expr): Always promote complex
11877         and vector variables to registers if possible.
11878
11879 2010-06-17  Richard Guenther  <rguenther@suse.de>
11880
11881         * expr.c (get_inner_reference): Use double_int for bit_offset
11882         calculation.
11883
11884 2010-06-16  DJ Delorie  <dj@redhat.com>
11885
11886         * common.opt (-fstrict-volatile-bitfields): new.
11887         * doc/invoke.texi: Document it.
11888         * fold-const.c (optimize_bit_field_compare): For volatile
11889         bitfields, use the field's type to determine the mode, not the
11890         field's size.
11891         * expr.c (expand_assignment): Likewise.
11892         (get_inner_reference): Likewise.
11893         (expand_expr_real_1): Likewise.
11894         * expmed.c (store_fixed_bit_field): Likewise.
11895         (extract_bit_field_1): Likewise.
11896         (extract_fixed_bit_field): Likewise.
11897
11898 2010-06-16  Richard Guenther  <rguenther@suse.de>
11899
11900         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
11901
11902 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
11903
11904         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
11905         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
11906         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
11907         * debug.c: Likewise.
11908         * sdbout.c: Likewise.
11909         * vmsdbgout.c: Likewise.
11910         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
11911         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
11912         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
11913         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
11914         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
11915         * dwarf2out.c (dw_fde_struct): New fields
11916         dw_fde_vms_{end,begin}_prologue.
11917         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
11918         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
11919         (dwarf2out_vms_end_prologue): New function.
11920         (dwarf2out_vms_begin_epilogue): New function.
11921         (dw_val_struct): New value dw_val_class_vms_delta.
11922         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
11923         begin_epilogue for VMS.
11924         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
11925         new static functions.
11926         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
11927         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
11928         static functions.
11929         (print_die): New case dw_val_class_vms_delta.
11930         (attr_checksum): Likewise.
11931         (same_dw_val_p: Likewise.
11932         (size_of_die): Likewise.
11933         (value_format): Likewise.
11934         (output_die): Likewise.
11935         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
11936         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
11937         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
11938         dwarf2out_cfi_begin_epilogue
11939         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
11940
11941 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
11942
11943         * config/cris/cris-protos.h (cris_print_operand): Delete.
11944         (cris_print_operand_address): Delete.
11945         * config/cris/cris.h (PRINT_OPERAND): Delete.
11946         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11947         (PRINT_OPERAND_ADDRESS): Delete.
11948         * config/cris/cris.c (cris_print_operand_address): Make static.
11949         (cris_print_operand): Make static.
11950         (cris_print_operand_punct_valid_p): New function.
11951         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11952         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11953
11954 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
11955
11956         * config/arm/arm-protos.h (arm_print_operand): Delete.
11957         (arm_print_operand_address): Delete.
11958         * config/arm/arm.h (PRINT_OPERAND): Delete.
11959         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11960         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
11961         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
11962         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
11963         (arm_print_operand): Make static.
11964         (arm_print_operand_punct_valid_p): New function.
11965         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11966         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11967
11968 2010-06-16  Nick Clifton  <nickc@redhat.com>
11969
11970         * config/rx/constraints.md (NEGint4): New constraint.
11971         * config/rx/rx.md (attr cc): Add set_zsc.
11972         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
11973         initialised.
11974         (cmpsf): Likewise.
11975         (call_internal): Clobber the cc0 register.
11976         (call_value_internal): Likewise.
11977         (cstoresi4): Likewise.
11978         (movsieq): Likewise.
11979         (movsine): Likewise.
11980         (addsi3): Add alternative to handle small negative constants.
11981         (sunsi3): Likewise.
11982         (addsi3): Do not set the O bit in the cc0 register.
11983         (adddi3): Likewise.
11984         (subsi3): Likewise.
11985         (subdi3): Likewise.
11986         (andsi3): Reorder alternatives to prefer shorter forms.
11987         (mulsi3): Likewise.
11988         (iorsi3): Likewise.
11989         (negsi2): Note that the cc0 flags are set.
11990         (rotlsi3): Note that only the Z and S bits are set in cc0.
11991         (lshrsi3): Likewise.
11992         (ashlsi3): Likewise.
11993         (subsf3): Use %Q for the MEM operand.
11994         (fix_truncsfsi2): Likewise.
11995         (floatsisf2): Likewise.
11996         (bitset): Remove early clobber from destination.
11997         (bitset_in_memory): Likewise.
11998         (lrintsf2): Clobber the cc0 register.
11999         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
12000         (rx_print_operand): Handle %N.
12001
12002 2010-06-16  Jan Hubicka  <jh@suse.cz>
12003
12004         * df-core.c (df_compact_blocks): Free problem_temps vector.
12005
12006 2010-06-16  Martin Jambor  <mjambor@suse.cz>
12007
12008         PR tree-optimization/43905
12009         * tree-sra.c: Include tree-inline.h.
12010         (create_abstract_origin): Removed.
12011         (modify_function): Version the call graph node instead of creating
12012         abstract origins and dealing with same_body aliases.
12013         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
12014         function is versionable.
12015         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
12016
12017 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
12018
12019         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
12020         (CHOOSE_DYNAMIC_LINKER): Update.
12021
12022 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
12023
12024         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
12025         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
12026         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
12027         *prefetch_3dnow_rex.
12028
12029 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
12030
12031         * target.h (struct asm_out):Add declare_constant_name field.
12032         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
12033         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
12034         * output.h (default_asm_declare_constant_name): Declare.
12035         (assemble_label): Update prototype.
12036         * varasm.c (assemble_constant_contents): Use
12037         targetm.asm_out.declare_constant_name target hook.
12038         (assemble_label): Add 'file' argument.
12039         (default_asm_declare_constant_name): New function.
12040         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
12041         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
12042         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
12043
12044         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
12045         * config/darwin.c (darwin_asm_declare_constant_name): New function.
12046         (machopic_output_indirection): Update assemble_label argument list.
12047         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
12048         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
12049
12050 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
12051
12052         PR middle-end/44391
12053         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
12054         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
12055
12056 2010-06-15  Richard Guenther  <rguenther@suse.de>
12057
12058         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
12059
12060 2010-06-15  Paul Brook  <paul@codesourcery.com>
12061
12062         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
12063         hard-float ABI.
12064
12065 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
12066
12067         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
12068         don't get a vector type for output.
12069
12070 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
12071
12072         PR fortran/44536
12073         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
12074         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
12075         (LANG_HOOKS_DECLS): Add it.
12076         * gimplify.c (omp_notice_variable): Call
12077         lang_hooks.decls.omp_report_decl.
12078
12079 2010-06-15  Martin Jambor  <mjambor@suse.cz>
12080
12081         PR lto/44464
12082         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
12083         on the newly dead SSA name.
12084
12085 2010-06-15  Alan Modra  <amodra@gmail.com>
12086
12087         * doc/invoke.texi: Add mcmodel to powerpc options.
12088         * configure.ac: Add HAVE_LD_LARGE_TOC test.
12089         * configure: Regenerate.
12090         * config.in: Regenerate.
12091         * config/rs6000/linux64.opt (mcmodel): New.
12092         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
12093         (TARGET_CMODEL, SET_CMODEL): Define.
12094         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
12095         select CMODEL_MEDIUM default.
12096         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
12097         (TARGET_CMODEL): Define default.
12098         * config/rs6000/rs6000.c (cmodel): New variable.
12099         (rs6000_explicit_options): Add cmodel field.
12100         (rs6000_handle_option): Handle -mcmodel.
12101         (create_TOC_reference): Add largetoc_reg param.  Generate high,
12102         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
12103         (rs6000_delegitimize_address): Recognise new toc reference rtl
12104         and minimal-toc rtl.
12105         (rs6000_legitimize_reload_address): Handle new toc references.
12106         (print_operand_address): Handle legitimate_constant_pool_address_p
12107         match before lo_sum.
12108         (rs6000_eliminate_indexed_memrefs): Tidy.
12109         (rs6000_emit_move): Tweak threshold for inlining constants.
12110         Keep rs6000_emit_allocate_stack large stack frame offsets
12111         loaded into r0 inline.
12112         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
12113         (tocrel_base, tocrel_offset): New variables.
12114         (toc_relative_expr_p): Set them here.
12115         (print_operand_address): Skip over any offset on constant pool address.
12116         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
12117         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
12118         (offsettable_ok_by_alignment): New function.
12119         (rs6000_emit_move): Address suitably aligned local symbol_refs
12120         relative to the toc pointer for -mcmodel=medium.
12121         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
12122         strict param.  Allow lo_sum version of addressing.  Verify reg
12123         used for -mminimal-toc and -mcmodel != small.  Update all callers.
12124         * config/rs6000/constraints.md: Update for above change.
12125         * config/rs6000/predicates.md: Likewise.
12126         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
12127         code.
12128         (tls_gd): Split for -mcmodel=medium/large.
12129         (tls_gd_high, tls_gd_low): New.
12130         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
12131         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
12132         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
12133         (largetoc_high, largetoc_low): New.
12134         (cmptf_internal2): Add clobber.
12135         * config/rs6000/rs6000-protos.h: Update.
12136
12137 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
12138
12139         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
12140         true if no prefetch is going to be generated for a given group.
12141         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
12142         estimate the prefetch_count.
12143         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
12144         prefetch count by considering the unroll_factor and prefetch_mod
12145         for is_loop_prefetching_profitable.
12146
12147 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
12148
12149         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
12150         anything if the argument is not a MEM.
12151
12152 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
12153
12154         PR debug/43650
12155         PR debug/44181
12156         PR debug/44247
12157         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
12158         debug stmts.
12159         (canonicalize_loop_ivs): Likewise.
12160
12161 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
12162
12163         PR debug/43656
12164         * haifa-sched.c (setup_insn_reg_pressure_info,
12165         update_register_pressure): Reject debug insns.
12166         (ready_sort): Don't setup reg pressure for debug insns.
12167         (schedule_insn): Don't update reg pressure for debug insns.
12168
12169 2010-06-14  Richard Guenther  <rguenther@suse.de>
12170
12171         * lto-streamer.c (cached_bp): Remove.
12172         (bitpack_delete): Likewise.
12173         (bitpack_create): Likewise.
12174         (bp_get_next_word): Likewise.
12175         (bp_pack_value, bp_unpack_value): Move ...
12176         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
12177         Re-implement.
12178         (struct bitpack_d): Likewise.
12179         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
12180         New inline functions.
12181         * lto-streamer-out.c (lto_output_bitpack): Remove.
12182         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
12183         (pack_value_fields): Adjust.
12184         (lto_write_tree): Likewise.
12185         (output_gimple_stmt): Likewise.
12186         (output_function): Likewise.
12187         * lto-streamer-in.c (input_gimple_stmt): Adjust.
12188         (input_function): Likewise.
12189         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
12190         (lto_input_bitpack): Remove.
12191         (lto_materialize_tree): Adjust.
12192         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
12193         * lto-cgraph.c (lto_output_edge): Adjust.
12194         (lto_output_node): Likewise.
12195         (lto_output_varpool_node): Likewise.
12196         (lto_output_ref): Likewise.
12197         (input_node): Likewise.
12198         (input_varpool_node): Likewise.
12199         (input_ref): Likewise.
12200         (input_edge): Likewise.
12201         (output_node_opt_summary): Likewise.
12202         (input_node_opt_summary): Likewise.
12203         * ipa-pure-const.c (pure_const_write_summary): Likewise.
12204         (pure_const_read_summary): Likewise.
12205         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
12206         (ipa_read_indirect_edge_info): Likewise.
12207         (ipa_write_node_info): Likewise.
12208         (ipa_read_node_info): Likewise.
12209
12210 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12211
12212         PR target/44534
12213         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
12214         (vec_extract_lo_v16hi): Likewise.
12215         (vec_extract_lo_v32qi): Likewise.
12216
12217 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
12218
12219         PR bootstrap/44426
12220         * tree.h (build_call_expr): Don't define as vararg macro, instead
12221         add a prototype.
12222         * builtins.c (build_call_nofold): Remove.
12223         (expand_builtin_int_roundingfn, expand_builtin_pow,
12224         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
12225         expand_builtin_memset_args, expand_builtin_strcmp,
12226         expand_builtin_strncmp, expand_builtin_memory_chk): Use
12227         build_call_nofold_loc instead of build_call_nofold.
12228         (build_call_expr): New function.
12229
12230         PR tree-optimization/44508
12231         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
12232         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
12233         don't eliminate trivially dead stmts.
12234         * tree-vrp.c (vrp_finalize): Pass false as last argument
12235         to substitute_and_fold.
12236         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
12237         to substitute_and_fold.
12238         * tree-ssa-ccp.c (ccp_finalize): Likewise.
12239
12240         PR bootstrap/44509
12241         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
12242
12243 2010-06-14  Ira Rosen  <irar@il.ibm.com>
12244
12245         PR tree-optimization/44507
12246         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
12247         to build initial vector for BIT_AND_EXPR.
12248         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
12249
12250 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
12251
12252         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
12253         adjust z10prop set_attr.
12254
12255 2010-06-13  Jan Hubicka  <jh@suse.cz>
12256
12257         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
12258         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
12259         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
12260         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
12261         datastructure checks into checking asserts.
12262         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
12263         * tree-ssa-sccvn.c (VN_INFO): Likewise.
12264         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
12265         df_ref_create_structure): Likewise.
12266         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
12267         pool_free): Use gcc_checking_assert.
12268         * alias.c (get_alias_set): Likewise.
12269         * var-tracking.c (variable_htab_free, shared_hash_copy,
12270         canonicalize_values_mark, variable_merge_over_cur): Likewise.
12271         * lto-streamer.c (bp_unpack_value): Likewise.
12272
12273 2010-06-13  Richard Guenther  <rguenther@suse.de>
12274
12275         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
12276         Do not stream but initialize TYPE_CANONICAL to NULL.
12277         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
12278         * gimple.c (gimple_types_compatible_p): Disregard
12279         TYPE_STRUCTURAL_EQUALITY_P.
12280         (gimple_register_type): Use TYPE_CANONICAL as cache.
12281         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
12282         before registering common types.
12283         * config/i386/i386.c (ix86_function_arg_boundary): Do not
12284         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
12285         * tree.h (TYPE_CANONICAL): Clarify documentation.
12286
12287 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
12288
12289         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12290         LIBCALL_VALUE): Remove macros.
12291         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
12292         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12293         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12294         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
12295         (ia64_function_value): Make static. Handle receiving the function
12296         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
12297
12298 2010-06-12  Jan Hubicka  <jh@suse.cz>
12299
12300         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
12301         at correct place.
12302
12303 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
12304
12305         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
12306
12307 2010-06-12  Jan Hubicka  <jh@suse.cz>
12308
12309         * df-core.c (df_clear_bb_info): New function.
12310         (df_set_blocks): bb_info is always allocated.
12311         (df_get_bb_info): Use block_info_elt_size.
12312         (df_set_bb_info): Likewise.
12313         (df_compact_blocks): Update for new block_info.
12314         (grow_bb_info): New function.
12315         * df-problems.c (df_grow_bb_info): Move to df-core.c
12316         (df_rd_set_bb_info): Remove.
12317         (df_rd_free_bb_info): Do not free block pool.
12318         (df_rd_alloc): Do not create pool, use check for
12319         obstack presence instead of NULL pointer for new blocks.
12320         (df_rd_free): DO not free alloc pool; clear block_info.
12321         (problem_RD): Add size of block info structure.
12322         (df_lr_set_bb_info): Remove.
12323         (df_lr_free_bb_info): Do not free block pool.
12324         (df_lr_alloc): Do not create pool, use check for
12325         obstack presence instead of NULL pointer for new blocks.
12326         (df_lr_free): DO not free alloc pool; clear block_info.
12327         (problem_LR): Add size of block info structure.
12328         (df_live_set_bb_info): Remove.
12329         (df_live_free_bb_info): Do not free block pool.
12330         (df_live_alloc): Do not create pool, use check for
12331         obstack presence instead of NULL pointer for new blocks.
12332         (df_live_free): DO not free alloc pool; clear block_info.
12333         (problem_LIVE): Add size of block info structure.
12334         (problem_CHAIN): Add size of block info structure.
12335         (df_byte_lr_set_bb_info): Remove.
12336         (df_byte_lr_free_bb_info): Do not free block pool.
12337         (df_byte_lr_alloc): Do not create pool, use check for
12338         obstack presence instead of NULL pointer for new blocks.
12339         (df_byte_lr_free): DO not free alloc pool; clear block_info.
12340         (problem_BYTE_LR): Add size of block info structure.
12341         (problem_NOTE): Add size of block info structure.
12342         (df_byte_MD_set_bb_info): Remove.
12343         (df_byte_MD_free_bb_info): Do not free block pool.
12344         (df_byte_MD_alloc): Do not create pool, use check for
12345         obstack presence instead of NULL pointer for new blocks.
12346         (df_byte_MD_free): DO not free alloc pool; clear block_info.
12347         (problem_BD): Add size of block info structure.
12348         * df-scan.c (df_scan_free_internal): Free block pool.
12349         (df_scan_set_bb_info): Remove.
12350         (df_scan_free_bb_info): Check for artificial_defs instead
12351         of bb_info being non-NULL.
12352         (df_scan_alloc): DO not create df_scan_block pool.
12353         (problem_SCAN): Set size of block info.
12354         (df_bb_refs_record): Do not allocate bb_info.
12355         * df.h (df_problem): Add block_info_elt_size.
12356         (struct dataflow): Change block_info to void *.
12357         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
12358         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
12359         in-line structures.
12360
12361 2010-06-12  Jan Hubicka  <jh@suse.cz>
12362
12363         PR tree-optimize/44485
12364         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
12365         containing use of return value of noreturn function.
12366
12367 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
12368
12369         * targhooks.c (default_function_value): Don't use
12370         FUNCTION_OUTGOING_VALUE.
12371         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
12372         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
12373
12374 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
12375
12376         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
12377         Add crtfastmath.o to extra_parts.
12378         * config/mips/crtfastmath.c: New.
12379         * config/mips/linux.h (ENDFILE_SPEC): New.
12380
12381 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
12382
12383         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
12384         old_type in parameter.
12385         (gcc_type_for_value): Update call to gcc_type_for_interval.
12386         (compute_type_for_level_1): Renamed compute_type_for_level.
12387         Update call to gcc_type_for_interval.
12388
12389 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
12390
12391         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
12392         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
12393
12394 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
12395
12396         * opts-common.c: Include options.h.
12397         (integral_argument): Move from opts.c.
12398         (decode_cmdline_option): New.  Based on read_cmdline_option.
12399         * opts.c (integral_argument): Move to opts-common.c.
12400         (read_cmdline_option): Move most contents to
12401         decode_cmdline_option.  Use %qs in diagnostics.
12402         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
12403         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
12404         decode_cmdline_option): New.
12405
12406 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12407
12408         PR target/44481
12409         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
12410         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
12411         (partiysi2_cmp): Ditto.
12412         (*partiyhi2_cmp): Ditto.
12413         (*parityqi2_cmp): Remove.
12414
12415 2010-06-11  Jan Hubicka  <jh@suse.cz>
12416
12417         * bitmap.h (bmp_iter_next_bit): New.
12418         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
12419
12420 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
12421             Eric Botcazou  <ebotcazou@adacore.com>
12422
12423         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
12424         computed cost.
12425
12426 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12427
12428         * config/i386/i386.md (unspec): New define_c_enum.
12429         (unspecv): Ditto.
12430
12431 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
12432
12433         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
12434
12435 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
12436
12437         PR middle-end/44483
12438         * tree-if-conv.c (bb_predicate_s): New struct.
12439         (bb_predicate_p): New.
12440         (bb_has_predicate): New.
12441         (bb_predicate): New.
12442         (set_bb_predicate): New.
12443         (bb_predicate_gimplified_stmts): New.
12444         (set_bb_predicate_gimplified_stmts): New.
12445         (add_bb_predicate_gimplified_stmts): New.
12446         (init_bb_predicate): New.
12447         (free_bb_predicate): New.
12448         (is_predicated): Use bb_predicate.
12449         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
12450         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
12451         before processing their successors.
12452         (clean_predicate_lists): Removed.
12453         (find_phi_replacement_condition): Use bb_predicate.
12454         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
12455         computations.
12456         (insert_gimplified_predicates): New.
12457         (combine_blocks): Call insert_gimplified_predicates.
12458         (tree_if_conversion): Call free_bb_predicate instead of
12459         clean_predicate_lists.
12460
12461 2010-10-11  Paul Brook  <paul@codesourcery.com>
12462
12463         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
12464         * config/arm/arm.c (all_architectures): Change v7e-m default to
12465         cortexm4.
12466         * config/arm/arm-cores.def: Add cortex-m4.
12467         * config/arm/arm-tune.md: Regenerate.
12468
12469 2010-06-11  Jan Hubicka  <jh@suse.cz>
12470
12471         * ipa-pure-const.c (special_builtlin_state): New function.
12472         (check_call): Use it instead of special casign BUILT_IN_RETURN.
12473         (propagate_pure_const): Use it.
12474
12475 2010-06-11  Jan Hubicka  <jh@suse.cz>
12476
12477         * df-problems.c (df_live_scratch): Convert to bitmap_head.
12478         (df_live_alloc): Initialize df_live_scratch when initializing
12479         problem_data.
12480         (df_live_transfer_function): Update uses of df_live_scratch.
12481         (df_live_free): Free problem_data; clear df_live_scratch before
12482         releasing the obstack.
12483         (df_md_free): Free problem data.
12484
12485 2010-06-11  Jan Hubicka  <jh@suse.cz>
12486
12487         * doc/invoke.texi (Wsuggest-attribute): Document.
12488         (Wmissing-noreturn): Remove.
12489         * ipa-pure-const.c (warn_function_noreturn): New function.
12490         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
12491         warn_missing_noreturn.
12492         * common.opt (Wsuggest-attribute=noreturn): New.
12493         * tree-flow.h (warn_function_noreturn): Declare.
12494         * tree-cfg.c (execute_warn_function_noreturn): Use
12495         warn_function_noreturn.
12496         (gate_warn_function_noreturn): New.
12497         (pass_warn_function_noreturn): Update.
12498
12499 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12500
12501         * c-typeck.c (handle_warn_cast_qual): Add loc
12502         parameter. Improve warning message.
12503         (build_c_cast): Pass location to handle_warn_cast_qual.
12504
12505 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12506
12507         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
12508         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
12509         insn mnemonic.
12510         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
12511
12512 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
12513
12514         Fix bootstap on mips
12515         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
12516         be naming typedefs.
12517
12518 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
12519
12520         * system.h (helper_const_non_const_cast): New inline for
12521         gcc version <= 4.0.
12522         (CONST_CAST2): For gcc version <= 4.0 use
12523         new helper to do const/non-const casting.
12524
12525 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12526
12527         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
12528         * Makefile.in (OBJS-common): Include insn-enums.o.
12529         (insn-enums.o): New rule.
12530         (simple_generated_c): Add insn-enums.c.
12531         (build/genenums.o): New rule.
12532         (genprogmd): Add "enums".
12533         * genconstants.c (print_enum_type): Declare a C string array
12534         for each enum.
12535         * genenums.c: New file.
12536         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
12537         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
12538         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
12539
12540 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12541
12542         * doc/md.texi (define_enum_attr): Document.
12543         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
12544         * read-md.h (lookup_enum_type): Declare.
12545         * read-md.c (lookup_enum_type): New function.
12546         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
12547         * genattrtab.c (attr_desc): Add an enum_name field.
12548         (evaluate_eq_attr): Take the associated attribute as argument.
12549         Get the enum prefix from the enum_name field, if defined.
12550         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
12551         (simplify_test_exp): Pass attr to evaluate_eq_attr.
12552         (add_attr_value): New function, split out from...
12553         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
12554         (write_test_expr): Pass attr to evaluate_eq_attr.
12555         (write_attr_get): Use the enum_name as the enum tag, if defined.
12556         (write_attr_valueq): Use the enum_name as a prefix, if defined.
12557         (find_attr): Initialize enum_name.
12558         (main): Handle DEFINE_ENUM_ATTR.
12559         * gensupport.c (process_rtx): Likewise.
12560         * config/mips/mips.h (mips_tune_attr): Delete.
12561         * config/mips/mips.md (cpu): Use define_attr_enum.
12562
12563 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12564
12565         * doc/md.texi (define_c_enum, define_enum): Document.
12566         * read-md.h (md_constant): Add a parent_enum field.
12567         (enum_value, enum_type): New structures.
12568         (upcase_string, traverse_enum_types): Declare.
12569         * read-md.c (enum_types): New variable.
12570         (upcase_string, add_constant): New functions.
12571         (handle_constants): Don't create the hash table here.
12572         Use add_constant.
12573         (traverse_md_constants): Don't check for a null md_constants.
12574         (decimal_string, handle_enum, traverse_enum_types): New functions.
12575         (read_md_files): Initialize md_constants and md_enums.
12576         * genconstants.c (print_md_constant): Ignore info argument.
12577         Only print constants that belong to no enum.
12578         (print_enum_type): New function.
12579         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
12580         for each defined enum type.
12581         * config/mips/mips.md (processor): New define_enum.
12582         (unspec): New define_c_enum.
12583         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
12584         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
12585         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
12586         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
12587         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
12588         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
12589         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
12590         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
12591         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
12592         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
12593         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
12594         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
12595         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
12596         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
12597         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
12598         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
12599         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
12600         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
12601         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
12602         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
12603         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
12604         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
12605         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
12606         (UNSPEC_RDDSP): Move to mips-dsp.md.
12607         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
12608         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
12609         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
12610         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
12611         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
12612         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
12613         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
12614         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
12615         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
12616         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
12617         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
12618         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
12619         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
12620         Moved to mips-dspr2.md.
12621         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
12622         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
12623         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
12624         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
12625         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
12626         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
12627         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
12628         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
12629         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
12630         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
12631         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
12632         UNSPEC_LOONGSON_PSADBH)
12633         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
12634         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
12635         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
12636         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12637         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12638         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12639         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
12640         (cpu): Update comment.
12641         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
12642         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
12643         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
12644         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
12645         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
12646         UNSPEC_LOONGSON_PCMPEQ)
12647         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
12648         UNSPEC_LOONGSON_PINSR_0)
12649         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
12650         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
12651         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
12652         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
12653         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
12654         UNSPEC_LOONGSON_PSADBH)
12655         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
12656         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
12657         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
12658         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12659         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12660         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12661         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
12662         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
12663         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
12664         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
12665         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
12666         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
12667         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
12668         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
12669         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
12670         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
12671         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
12672         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
12673         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
12674         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
12675         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
12676         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
12677         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
12678         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
12679         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
12680         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
12681         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
12682         (UNSPEC_RDDSP): Moved from mips.md.
12683         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
12684         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
12685         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
12686         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
12687         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
12688         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
12689         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
12690         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
12691         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
12692         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
12693         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
12694         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
12695         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
12696         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
12697         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
12698         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
12699         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
12700         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
12701         (UNSPEC_SCC): Moved from mips.md.
12702         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
12703         "processor_type" to "processor".
12704         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
12705         * config/mips/mips.h (processor_type): Delete.
12706         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
12707         "processor_type" to "processor".
12708
12709 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12710
12711         * configure.ac (tm_include_list): Add insn-constants.h.
12712         * configure: Regenerate.
12713         * Makefile.in (GTM_H): Move insn-constants.h here from...
12714         (TM_H): ...here.
12715         * mkconfig.sh: Remove special handling for insn-constants.h.
12716
12717 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12718
12719         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
12720         (BUILD_MD): ...this new variable.
12721         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
12722         that include the old contents of simple_generated_h and
12723         simple_generated_c.
12724         (simple_generated_h, simple_generated_c): Include them.  Add
12725         insn-constants.h.
12726         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
12727         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
12728         Remove these dependencies from the main rule and include
12729         insn-conditions.md in the command line only if it appears
12730         in the dependency list.
12731         (insn-constants.h, s-constants): Delete.
12732         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
12733         or gensupport.h.
12734         (build/genmddeps.o): Likewise.
12735         (genprogrtl): New variable that contains everything from genprogmd
12736         except mddeps and constants.
12737         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
12738         depend on $(BUILD_MD)
12739         (genprog): New variable.  Make these programs depend on
12740         $(BUILD_ERRORS).
12741         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
12742         (main): Use read_md_files instead of init_rtx_reader_args.
12743         * genconstants.c: As for genmddeps.c.
12744         * read-md.h (read_skip_construct): Declare.
12745         * read-md.c (read_skip_construct): New function.
12746         (handle_file): Allow a null handle_directive, skipping the
12747         construct if so.
12748         (parse_include): Update the comment accordingly.
12749
12750 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12751
12752         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
12753         * genmddeps.c: Include read-md.h.
12754         (main): Call init_rtx_reader_args instead of init_md_reader_args.
12755         * genattr.c (main): Likewise.
12756         * genattrtab.c (main): Likewise.
12757         * genautomata.c (main): Likewise.
12758         * gencodes.c (main): Likewise.
12759         * genconditions.c (main): Likewise.
12760         * genconfig.c (main): Likewise.
12761         * genconstants.c (main): Likewise.
12762         * genemit.c (main): Likewise.
12763         * genextract.c (main): Likewise.
12764         * genflags.c (main): Likewise.
12765         * genopinit.c (main): Likewise.
12766         * genoutput.c (main): Likewise.
12767         * genpeep.c (main): Likewise.
12768         * genrecog.c (main): Likewise.
12769         * genpreds.c (main): Likewise.
12770         * gensupport.h (in_fname): Move to read-md.h.
12771         (init_md_reader_args_cb): Rename to...
12772         (init_rtx_reader_args_cb): ...this and return a bool.
12773         (init_md_reader_args): Rename to...
12774         (init_rtx_reader_args): ...this and return a bool.
12775         (include_callback): Move to read-md.h.
12776         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
12777         (file_name_list, first_dir_md_include): Move to read-md.c
12778         (first_bracket_include): Delete unused variable.
12779         (last_dir_md_include): Move to read-md.c.
12780         (process_include): Delete, moving code to read-md.c:handle_include.
12781         (process_rtx): Don't handle INCLUDE.
12782         (save_string): Delete.
12783         (rtx_handle_directive): New function.
12784         (init_md_reader_args_cb): Rename to...
12785         (init_rtx_reader_args_cb): ...this and return a boolean success value.
12786         Use read_md_args.
12787         (init_md_reader_args): Rename to...
12788         (init_rtx_reader_args): ...this and return a boolean success value.
12789         * rtl.def (INCLUDE): Delete.
12790         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
12791         argument.
12792         * read-rtl.c (read_conditions): Don't gobble ')' here.
12793         (read_mapping): Likewise.
12794         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
12795         Handle top-level non-rtx constructs here rather than in read_rtx_1.
12796         Store the whole queue in *X.  Remove call to init_md_reader.
12797         (read_rtx_1): Rename to...
12798         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
12799         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
12800         here.
12801         (read_nested_rtx): New function.  Handle (nil) here rather than
12802         in read_rtx_code.
12803         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
12804         gobble ')' here.
12805         * read-md.h (directive_handler_t): New type.
12806         (in_fname, include_callback): Moved from read-md.h.
12807         (read_constants, init_md_reader): Delete.
12808         (read_md_files): Declare.
12809         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
12810         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
12811         from gensupport.c.
12812         (read_constants): Rename to...
12813         (handle_constants): ...this.  Don't gobble ')' here.
12814         (handle_include, handle_file, handle_toplevel_file)
12815         (parse_include): New functions, mostly taken from gensupport.c.
12816         (init_md_reader): Subsume into...
12817         (read_md_files): ...this new function.
12818
12819 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12820
12821         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
12822         (unread_char): Decrement read_md_lineno after putting back '\n'.
12823         * read-md.c (fatal_with_file_and_line): Push back any characters
12824         that we decide not to add to the context.
12825         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
12826         fatal_expected_char in cases where '/' ends a line (for example).
12827         (read_name): Don't increment read_md_lineno here.
12828         (read_escape): Likewise.
12829         (read_quoted_string): Likewise.
12830         (read_braced_string): Likewise.
12831
12832 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12833
12834         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
12835         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
12836         * genconstants.c: Include read-md.h.
12837         * read-rtl.c (md_constants): Move to read-md.c.
12838         (md_name): Move to read-md.h.
12839         (initialize_iterators): Use leading_string_hash instead of def_hash
12840         and leading_string_eq_p instead of def_name_eq_p.
12841         (read_name): Move to read-md.c.
12842         (def_hash, def_name_eq_p): Delete.
12843         (read_constants, traverse_md_constants): Move to read-md.c.
12844         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
12845         * read-md.h: Include hashtab.h.
12846         (md_name): Moved from read-rtl.c.
12847         (md_constant): Moved from read-md.h.
12848         (leading_string_hash, leading_string_eq_p, read_name)
12849         (read_constants, traverse_md_constants): Declare.
12850         * read-md.c (md_constants): Moved from read-rtl.c.
12851         (leading_string_hash, leading_string_eq_p): New functions.
12852         (read_name, read_constants, traverse_md_constants): Moved from
12853         read-rtl.c.
12854
12855 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12856
12857         * read-rtl.c (md_name): New structure.
12858         (read_name): Take an md_name instead of a buffer pointer.
12859         Use the "string" field instead of strcpy when expanding constants.
12860         (read_constants): Remove the tmp_char argument.  Update the calls
12861         to read_name, using two local name buffers instead of the tmp_char
12862         argument.  Merge the constant-creation code.
12863         (read_conditions): Remove the tmp_char argument.  Update the calls
12864         to read_name, using a local name buffer instead of the tmp_char
12865         argument.
12866         (read_mapping): Replace tmp_char variable with a local name buffer.
12867         Update the calls to read_name.
12868         (read_rtx_1): Likewise.  Update the calls to read_constants and
12869         read_conditions.
12870
12871 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12872
12873         * Makefile.in (build/read-md.o): Depend on errors.h.
12874         * read-md.h (error_with_line): Declare.
12875         * read-md.c: Include errors.h.
12876         (message_with_line_1): New function, extracted from...
12877         (message_with_line): ...here.
12878         (error_with_line): New function.
12879         * genattrtab.c: If a call to message_with_line is followed by
12880         "have_error = 1;", replace both statements with a call to
12881         error_with_line.
12882         * genoutput.c: Likewise.
12883         * genpreds.c: Likewise.
12884         * genrecog.c: If a call to message_with_line is followed by
12885         "error_count++;", replace both statements with a call to
12886         error_with_line.
12887         (errorcount): Delete.
12888         (main): Don't check it.
12889         * gensupport.c: If a call to message_with_line is followed by
12890         "errors = 1;", replace both statements with a call to error_with_line.
12891         (errors): Delete.
12892         (process_define_cond_exec): Check have_error instead of errors.
12893         (init_md_reader_args_cb): Likewise.  Don't set errors.
12894
12895 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12896
12897         * read-md.h (read_md_file): Declare.
12898         (read_char, unread_char): New functions.
12899         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
12900         (read_quoted_string, read_string): Remove FILE * argument.
12901         * read-md.c (read_md_file): New variable.
12902         (read_md_filename, read_md_lineno): Update comments and remove
12903         unnecessary initialization.
12904         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
12905         (read_escape, read_quoted_string, read_braced_string, read_string):
12906         Remove FILE * argument.  Update calls accordingly, using read_char
12907         and unread_char instead of getc and ungetc.
12908         * rtl.h (read_rtx): Remove FILE * argument.
12909         * read-rtl.c (iterator_group): Remove FILE * argument from
12910         "find_builtin".
12911         (iterator_traverse_data): Remove "infile" field.
12912         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
12913         (add_mapping, read_name, read_constants, read_conditions)
12914         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
12915         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
12916         Remove file arguments from all calls, using read_char and unread_char
12917         instead of getc and ungetc.
12918         * gensupport.c (process_include): Preserve read_md_file around
12919         the include.  Set read_md_file to the handle of the included file.
12920         Update call to read_rtx.
12921         (init_md_reader_args_cb): Set read_md_file to the handle of the file
12922         and remove local FILE *.  Update calls to read_rtx.
12923
12924 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12925
12926         * read-md.h (read_rtx_lineno): Rename to...
12927         (read_md_lineno): ...this.
12928         (read_rtx_filename): Rename to...
12929         (read_md_filename): ...this.
12930         (copy_rtx_ptr_loc): Rename to...
12931         (copy_md_ptr_loc): ...this.
12932         (print_rtx_ptr_loc): Rename to...
12933         (print_md_ptr_loc): ...this.
12934         * read-md.c: Likewise.  Update references after renaming.
12935         (string_obstack): Replace RTL with MD in comment.
12936         (set_rtx_ptr_loc): Rename to...
12937         (set_md_ptr_loc): ...this.
12938         (get_rtx_ptr_loc): Rename to...
12939         (get_md_ptr_loc): ...this.
12940         * genconditions.c: Update references after renaming.
12941         * genemit.c: Likewise.
12942         * genoutput.c: Likewise.
12943         * genpreds.c: Likewise.
12944         * gensupport.c: Likewise.
12945         * read-rtl.c: Likewise.
12946
12947 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12948
12949         * Makefile.in (READ_MD_H): New variable.
12950         (BUILD_RTL): Add build/read-md.o.
12951         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
12952         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
12953         (build/genattrtab.o, build/genconditions.o build/genemit.o)
12954         (build/genextract.o, build/genflags.o, build/genoutput.o)
12955         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
12956         (build/read-md.o): New rule.
12957         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
12958         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
12959         * coretypes.h: ...here.
12960         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
12961         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
12962         * genattr.c: Include read-md.h.
12963         * genattrtab.c: Likewise.
12964         * genconditions.c: Likewise.
12965         * genemit.c: Likewise.
12966         * genextract.c: Likewise.
12967         * genflags.c: Likewise.
12968         * genoutput.c: Likewise.
12969         * genpreds.c: Likewise.
12970         * genrecog.c: Likewise.
12971         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
12972         (join_c_conditions, print_c_condition, read_rtx_filename)
12973         (read_rtx_lineno): Move to read-md.h.
12974         * read-rtl.c: Include read-md.h.
12975         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
12976         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
12977         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
12978         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
12979         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
12980         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
12981         (read_braced_string, read_string): Move to read-md.c.
12982         (read_rtx): Move some initialization to init_md_reader and call
12983         init_md_reader here.
12984         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
12985         Move to read-md.h.
12986         * gensupport.c: Include read-md.h.
12987         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
12988         * read-md.h, read-md.c: New files.
12989
12990 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
12991
12992         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12993         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12994         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
12995         * config/moxie/moxie.c (moxie_function_value): Make static.
12996         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
12997         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12998
12999 2010-06-10  Martin Jambor  <mjambor@suse.cz>
13000
13001         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
13002         * dbgcnt.def (tree_sra): New counter.
13003         * tree-sra.c: Include dbgcnt.h.
13004         (gate_intra_sra): Check tree_sra debug counter.
13005
13006 2010-06-10  Martin Jambor  <mjambor@suse.cz>
13007
13008         PR tree-optimization/44258
13009         * tree-sra.c (build_access_subtree): Return false iff there is a
13010         partial overlap.
13011         (build_access_trees): Likewise.
13012         (analyze_all_variable_accesses): Disqualify candidates if
13013         build_access_trees returns true for them.
13014
13015 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
13016
13017         PR debug/41371
13018         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
13019         tail-recurse into canonical node.  Fast-forward over
13020         non-canonical VALUEs.
13021
13022 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
13023
13024         PR boostrap/44470
13025         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
13026         (*addsi_1_zext) <TYPE_LEA>: Likewise.
13027         (add lea splitter): Likewise.
13028         (add_zext lea splitter): Likewise.
13029
13030 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
13031
13032         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
13033
13034 2010-06-10  Jan Hubicka  <jh@suse.cz>
13035
13036         * df-problems.c (df_live_problem_data): Add live_bitmaps.
13037         (df_live_alloc): Initialize problem data and live_osbtacks.
13038         (df_live_finalize): Remove obstack, problem data; do not
13039         clear all bitmaps.
13040         (df_live_top_dump, df_live_bottom_dump): Do not dump old
13041         data when not allocated.
13042         (df_live_verify_solution_start): Do not allocate problem data.
13043         (df_live_verify_solution_end): Check if out is allocated.
13044         (struct df_md_problem_data): New structure.
13045         (df_md_alloc): Allocate problem data.
13046         (df_md_free): Free problem data; do not clear bitmaps.
13047
13048 2010-06-10  Jan Beulich  <jbeulich@novell.com>
13049
13050         PR bootstrap/37304
13051         * configure.ac: Replace $() with ${} when intending to expand
13052         variables rather than invoking commands.
13053         * configure: Re-generate.
13054
13055 2010-06-10  Jan Hubicka  <jh@suse.cz>
13056
13057         PR rtl-optimization/44460
13058         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
13059         TYPE_NEEDS_CONSTRUCTING sanity check.
13060
13061 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13062
13063         * doc/include/fdl.texi: Move to GFDL version 1.3.
13064
13065         * doc/cpp.texi: Move to GFDL version 1.3.
13066         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
13067         * doc/gccint.texi: Move to GFDL version 1.3.
13068         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
13069         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
13070         * doc/invoke.texi: Move to GFDL version 1.3.
13071
13072 2010-06-09  Jan Hubicka  <jh@suse.cz>
13073
13074         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
13075         Break out from ...
13076         (propagate) ... here; swap the order.
13077
13078 2010-06-09  Jan Hubicka  <jh@suse.cz>
13079
13080         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
13081         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
13082         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
13083         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
13084
13085 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
13086
13087         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
13088         Do not the gather memory reference in the outer loop if the step
13089         is not a constant.
13090
13091 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
13092
13093         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
13094         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
13095         8 to 4.  Minor change of the related comments.
13096
13097 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13098
13099         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
13100         the scev analysis when the variable is not used outside the loop
13101         in a close phi node: call compute_overall_effect_of_inner_loop.
13102
13103 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13104
13105         * graphite-sese-to-poly.c (single_pred_cond): Renamed
13106         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
13107         (build_sese_conditions_before): Renamed call to single_pred_cond.
13108         (build_sese_conditions_after): Same.
13109
13110 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13111
13112         * graphite-poly.h: Fix comments and indentation.
13113         * graphite-sese-to-poly.c: Same.
13114         (build_sese_conditions_before): Compute stmt and gbb only when needed.
13115         * tree-chrec.c: Fix comments and indentation.
13116         (tree-ssa-loop-niter.c): Same.
13117
13118 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
13119
13120         PR rtl-optimization/42461
13121         * dce.c (deletable_insn_p): Return true for const or pure calls again.
13122         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
13123
13124 2010-06-09  Jan Hubicka  <jh@suse.cz>
13125
13126         * bitmap.c (bitmap_and): Walk array forward.
13127         (bitmap_and_compl_into): Likewise.
13128         (bitmap_xor): Likewise.
13129         (bitmap_xor_into):  Likewise.
13130         (bitmap_equal_p): Likewise.
13131         (bitmap_intersect_p): Likewise.
13132         (bitmap_intersect_compl_p): Likewise.
13133         (bitmap_ior_and_into): Likewise.
13134         (bitmap_elt_copy): Likewise.
13135         (bitmap_and_compl): Likewise.
13136         (bitmap_elt_ior): Likewise.
13137
13138 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
13139
13140         * opts-common.c (prune_options): Ensure replacement argv array
13141         is correctly terminated by a NULL entry.
13142
13143 2010-06-09  Jan Hubicka  <jh@suse.cz>
13144
13145         * cgraph.h (varpool_first_static_initializer,
13146         varpool_next_static_initializer): Make checking only when
13147         checking enabled.
13148         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
13149         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
13150         gcc_assert to gcc_checking_assert.
13151         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
13152         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
13153         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
13154         op_iter_init_phiuse, op_iter_init_phidef,
13155         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
13156         gcc_checking_assert.
13157         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
13158         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
13159         partition_is_global, live_on_entry, live_on_exit,
13160         live_merge_and_clear): Likewise.
13161         * system.h (gcc_checking_assert): New macro.
13162         * gimple.h (set_bb_seq): Use gcc_checking_assert.
13163
13164 2010-06-09  Jason Merrill  <jason@redhat.com>
13165
13166         * Makefile.in (TAGS): Collect tags info from c-family.
13167
13168 2010-06-09  Jan Hubicka  <jh@suse.cz>
13169
13170         * gimple.h (gcc_gimple_checking_assert): New macro.
13171         (gimple_set_def_ops, gimple_set_use_ops,
13172         gimple_set_vuse, gimple_set_vdef,
13173         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
13174         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
13175         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
13176         gimple_asm_output_op, gimple_asm_output_op_ptr,
13177         gimple_asm_set_output_op, gimple_asm_clobber_op,
13178         gimple_asm_set_clobber_op, gimple_asm_label_op,
13179         gimple_asm_set_label_op, gimple_try_set_kind,
13180         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
13181         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
13182         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
13183         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
13184         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
13185         gimple_omp_for_set_initial, gimple_omp_for_final,
13186         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
13187         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
13188         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
13189         conditional with ENABLE_GIMPLE_CHECKING.
13190         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
13191
13192 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
13193
13194         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
13195         (get_computation_cost_at): Use it.
13196         (determine_use_iv_cost_condition): Likewise.
13197         (determine_iv_cost): Likewise.
13198
13199 2010-06-09  Richard Guenther  <rguenther@suse.de>
13200
13201         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
13202         replace constants.
13203
13204 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
13205
13206         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
13207
13208 2010-06-09  Martin Jambor  <mjambor@suse.cz>
13209
13210         PR tree-optimization/44423
13211         * tree-sra.c (dump_access): Dump also grp_assignment_read.
13212         (analyze_access_subtree): Pass negative allow_replacements to children
13213         if the current type is scalar.
13214
13215 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
13216
13217         PR testsuite/42843
13218         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
13219         * doc/plugins.texi (Plugin license check): Update information
13220         on type of plugin_is_GPL_compatible.
13221         * Makefile.in (PLUGINCC): Define as $(COMPILER).
13222         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
13223
13224 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
13225
13226         * config/arm/arm.c (thumb2_reorg): New function.
13227         (arm_reorg): Call it.
13228         * config/arm/thumb2.md (define_peephole2 for flag clobbering
13229         arithmetic operations): Delete.
13230
13231 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
13232
13233         PR target/44067
13234         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
13235         e500v2 target.
13236
13237 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
13238
13239         PR plugins/44459
13240         * gcc-plugin.h: Encapsulate all declarations in extern "C".
13241
13242 2010-06-08  Jan Hubicka  <jh@suse.cz>
13243
13244         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
13245         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
13246
13247 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
13248
13249         PR tree-optimization/39874
13250         PR middle-end/28685
13251         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
13252         Declare.
13253         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
13254         same_bool_result_p): New.
13255         (and_var_with_comparison, and_var_with_comparison_1,
13256         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
13257         (or_var_with_comparison, or_var_with_comparison_1,
13258         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
13259         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
13260         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
13261         of combine_comparisons.
13262         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
13263
13264 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
13265
13266         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13267         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13268         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
13269         pdp11_function_value_regno_p): New functions.
13270         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13271         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13272
13273 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
13274
13275         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
13276         Thumb-2 in the MINUS case.
13277
13278 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13279
13280         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
13281
13282         * doc/gty.texi (GTY Options): Document typed GC allocation and
13283         variable_size GTY option.
13284
13285         * ggc-internal.h: New.
13286
13287         * ggc.h: Update copyright year.
13288         (digit_string): Move to stringpool.c.
13289         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
13290         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
13291         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
13292         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
13293         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
13294         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
13295         (ggc_force_collect, ggc_get_size, ggc_statistics)
13296         (ggc_print_common_statistics): Move to ggc-internal.h.
13297         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
13298         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
13299         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
13300         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
13301         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
13302         (ggc_alloc_zone_pass_stat): Remove.
13303         (ggc_internal_alloc_stat, ggc_internal_alloc)
13304         (ggc_internal_cleared_alloc_stat): New.
13305         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
13306         (ggc_internal_vec_alloc_stat)
13307         (ggc_internal_cleared_vec_alloc_stat)
13308         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
13309         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
13310         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
13311         (ggc_cleared_alloc_ptr_array_two_args): New.
13312         (htab_create_ggc, splay_tree_new_ggc): Redefine.
13313         (ggc_splay_alloc): Change the type of the first argument to
13314         enum gt_types_enum.
13315         (ggc_alloc_string): Make macro.
13316         (ggc_alloc_string_stat): New.
13317         (ggc_strdup): Redefine.
13318         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
13319         (ggc_alloc_rtvec_sized): New.
13320         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
13321         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
13322         (ggc_internal_cleared_alloc_zone_stat)
13323         (ggc_internal_zone_alloc_stat)
13324         (ggc_internal_zone_cleared_alloc_stat)
13325         (ggc_internal_zone_vec_alloc_stat)
13326         (ggc_alloc_zone_rtx_def_stat)
13327         (ggc_alloc_zone_tree_node_stat)
13328         (ggc_alloc_zone_cleared_tree_node_stat)
13329         (ggc_alloc_cleared_gimple_statement_d_stat): New.
13330
13331         * ggc-common.c: Include ggc-internal.h.
13332         (ggc_internal_cleared_alloc_stat): Rename from
13333         ggc_alloc_cleared_stat.
13334         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
13335         (ggc_calloc): Remove.
13336         (ggc_cleared_alloc_htab_ignore_args): New.
13337         (ggc_cleared_alloc_ptr_array_two_args): New.
13338         (ggc_splay_alloc): Add obj_type parameter.
13339         (init_ggc_heuristics): Formatting fixes.
13340
13341         * ggc-none.c: Update copyright year.
13342         (ggc_alloc_stat): Rename to ggc_alloc_stat.
13343         (ggc_alloc_cleared_stat): Rename to
13344         ggc_internal_cleared_alloc_stat.
13345         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
13346
13347         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
13348         Remove references to ggc_alloc in comments.
13349         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
13350         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
13351         (new_ggc_zone, destroy_ggc_zone): Remove.
13352         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
13353
13354         * ggc-zone.c: Include ggc-internal.h.  Remove references to
13355         ggc_alloc in comments.
13356         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
13357         (ggc_internal_alloc_zone_pass_stat): New.
13358         (ggc_internal_cleared_alloc_zone_stat): New.
13359         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
13360         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
13361         (new_ggc_zone, destroy_ggc_zone): Remove.
13362
13363         * stringpool.c: Update copyright year.  Include ggc-internal.h
13364         (digit_vector): Make static.
13365         (digit_string): Moved from ggc.h.
13366         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
13367         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
13368
13369         * Makefile.in (GGC_INTERNAL_H): New.
13370         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
13371         $(GGC_INTERNAL_H) to dependencies.
13372
13373         * gentype.c: Update copyright year.
13374         (walk_type): Accept variable_size GTY option.
13375         (USED_BY_TYPED_GC_P): New macro.
13376         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
13377         whitespace at the end of strings.
13378         (get_type_specifier, variable_size_p): New functions.
13379         (alloc_quantity, alloc_zone): New enums.
13380         (write_typed_alloc_def): New function.
13381         (write_typed_struct_alloc_def): Likewise.
13382         (write_typed_typed_typedef_alloc_def): Likewise.
13383         (write_typed_alloc_defns): Likewise.
13384         (output_typename, write_splay_tree_allocator_def): Likewise.
13385         (write_splay_tree_allocators): Likewise.
13386         (main): Call write_typed_alloc_defns and
13387         write_splay_tree_allocators.
13388
13389         * lto-streamer.h (lto_file_decl_data_ptr): New.
13390
13391         * passes.c (order): Define using cgraph_node_ptr.
13392
13393         * strinpool.c (struct string_pool_data): Declare nested_ptr using
13394         ht_identifier_ptr.
13395
13396         * gimple.h (union gimple_statement_d): Likewise.
13397
13398         * rtl.h (struct rtx_def): Likewise.
13399         (struct rtvec_def): Likewise.
13400
13401         * tree.h (union tree_node): Likewise.
13402
13403         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
13404
13405         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
13406
13407         * tree-scalar-evolution.c (scev_initialize): Likewise.
13408
13409         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
13410
13411         * dwarf2asm.c (dw2_force_const_mem): Likewise.
13412
13413         * omp-low.c (lower_omp_critical): Likewise.
13414
13415         * bitmap.h (struct bitmap_head_def): Update comment to not
13416         reference ggc_alloc.
13417
13418         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
13419
13420         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
13421
13422         * ipa-prop.c (duplicate_ggc_array): Rename to
13423         duplicate_ipa_jump_func_array.  Use typed GC allocation.
13424         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
13425
13426         * gimple.c (gimple_alloc_stat): Use
13427         ggc_alloc_cleared_gimple_statement_d_stat.
13428
13429         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
13430
13431         * tree.c (make_node_stat): Use
13432         ggc_alloc_zone_cleared_tree_node_stat.
13433         (make_tree_vec_stat): Likewise.
13434         (build_vl_exp_stat): Likewise.
13435         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
13436         (make_tree_binfo_stat): Likewise.
13437         (tree_cons_stat): Likewise.
13438
13439         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
13440         (shallow_copy_rtx_stat): Likewise.
13441         (make_node_stat): Likewise.
13442
13443         * lto-symtab.c: Fix comment.
13444
13445         * tree-cfg.c (create_bb): Update comment to not reference
13446         ggc_alloc_cleared.
13447         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
13448
13449         * varpool.c (varpool_node): Use typed GC allocation.
13450         (varpool_extra_name_alias): Likewise.
13451
13452         * varasm.c (emutls_decl): Likewise.
13453         (get_unnamed_section): Likewise.
13454         (get_noswitch_section): Likewise.
13455         (get_section): Likewise.
13456         (get_block_for_section): Likewise.
13457         (build_constant_desc): Likewise.
13458         (create_constant_pool): Likewise.
13459         (force_const_mem): Likewise.
13460
13461         * tree.c (build_vl_exp_stat): Likewise.
13462         (build_real): Likewise.
13463         (build_string): Likewise.
13464         (decl_debug_expr_insert): Likewise.
13465         (decl_value_expr_insert): Likewise.
13466         (type_hash_add): Likewise.
13467         (build_omp_clause): Likewise.
13468
13469         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
13470
13471         * tree-ssa.c (init_tree_ssa): Likewise.
13472
13473         * tree-ssa-structalias.c (heapvar_insert): Likewise.
13474
13475         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
13476
13477         * tree-ssa-loop-niter.c (record_estimate): Likewise.
13478
13479         * tree-ssa-alias.c (get_ptr_info): Likewise.
13480
13481         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
13482
13483         * tree-phinodes.c (allocate_phi_node): Likewise.
13484
13485         * tree-iterator.c (tsi_link_before): Likewise.
13486         (tsi_link_after): Likewise.
13487
13488         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
13489
13490         * tree-dfa.c (create_var_ann): Likewise.
13491
13492         * tree-cfg.c (create_bb): Likewise.
13493
13494         * toplev.c (alloc_for_identifier_to_locale): Likewise.
13495         (general_init): Likewise.
13496
13497         * stringpool.c (stringpool_ggc_alloc): Likewise.
13498         (gt_pch_save_stringpool): Likewise.
13499
13500         * sese.c (if_region_set_false_region): Likewise.
13501
13502         * passes.c (do_per_function_toporder): Likewise.
13503
13504         * optabs.c (set_optab_libfunc): Likewise.
13505         (set_conv_libfunc): Likewise.
13506
13507         * lto-symtab.c (lto_symtab_register_decl): Likewise.
13508
13509         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
13510         (input_eh_region): Likewise.
13511         (input_eh_lp): Likewise.
13512         (make_new_block): Likewise.
13513         (unpack_ts_real_cst_value_fields): Likewise.
13514
13515         * lto-section-in.c (lto_new_in_decl_state): Likewise.
13516
13517         * lto-cgraph.c (input_node_opt_summary): Likewise.
13518
13519         * loop-init.c (loop_optimizer_init): Likewise.
13520
13521         * lambda.h (lambda_vector_new): Likewise.
13522
13523         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
13524
13525         * ira.c (update_equiv_regs): Likewise.
13526
13527         * ipa.c (cgraph_node_set_new): Likewise.
13528         (cgraph_node_set_add): Likewise.
13529         (varpool_node_set_new): Likewise.
13530         (varpool_node_set_add): Likewise.
13531
13532         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
13533         (duplicate_ipa_jump_func_array): Likewise.
13534         (ipa_read_node_info): Likewise.
13535
13536         * ipa-cp.c (ipcp_create_replace_map): Likewise.
13537
13538         * integrate.c (get_hard_reg_initial_val): Likewise.
13539
13540         * gimple.c (gimple_alloc_stat): Likewise.
13541         (gimple_build_omp_for): Likewise.
13542         (gimple_seq_alloc): Likewise.
13543         (gimple_copy): Likewise.
13544
13545         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
13546         (gsi_insert_after_without_update): Likewise.
13547
13548         * function.c (add_frame_space): Likewise.
13549         (insert_temp_slot_address): Likewise.
13550         (assign_stack_temp_for_type): Likewise.
13551         (allocate_struct_function): Likewise.
13552         (types_used_by_var_decl_insert): Likewise.
13553
13554         * except.c (init_eh_for_function): Likewise.
13555         (gen_eh_region): Likewise.
13556         (gen_eh_region_catch): Likewise.
13557         (gen_eh_landing_pad): Likewise.
13558         (add_call_site): Likewise.
13559
13560         * emit-rtl.c (get_mem_attrs): Likewise.
13561         (get_reg_attrs): Likewise.
13562         (start_sequence): Likewise.
13563         (init_emit): Likewise.
13564
13565         * dwarf2out.c (new_cfi): Likewise.
13566         (queue_reg_save): Likewise.
13567         (dwarf2out_frame_init): Likewise.
13568         (new_loc_descr): Likewise.
13569         (find_AT_string): Likewise.
13570         (new_die): Likewise.
13571         (add_var_loc_to_decl): Likewise.
13572         (clone_die): Likewise.
13573         (clone_as_declaration): Likewise.
13574         (break_out_comdat_types): Likewise.
13575         (new_loc_list): Likewise.
13576         (loc_descriptor): Likewise.
13577         (add_loc_descr_to_each): Likewise.
13578         (add_const_value_attribute): Likewise.
13579         (tree_add_const_value_attribute): Likewise.
13580         (add_comp_dir_attribute): Likewise.
13581         (add_name_and_src_coords_attributes): Likewise.
13582         (lookup_filename): Likewise.
13583         (store_vcall_insn): Likewise.
13584         (dwarf2out_init): Likewise.
13585
13586         * dbxout.c (dbxout_init): Likewise.
13587
13588         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
13589
13590         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
13591
13592         * config/score/score7.c (score7_output_external): Likewise.
13593
13594         * config/score/score3.c (score3_output_external): Likewise.
13595
13596         * config/s390/s390.c (s390_init_machine_status): Likewise.
13597
13598         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
13599         (rs6000_init_machine_status): Likewise.
13600         (output_toc): Likewise.
13601
13602         * config/pa/pa.c (pa_init_machine_status): Likewise.
13603         (get_deferred_plabel): Likewise.
13604
13605         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
13606
13607         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
13608
13609         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
13610
13611         * config/mep/mep.c (mep_init_machine_status): Likewise.
13612         (mep_note_pragma_flag): Likewise.
13613
13614         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
13615
13616         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
13617
13618         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
13619
13620         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
13621         (i386_pe_maybe_record_exported_symbol): Likewise.
13622
13623         * config/i386/i386.c (get_dllimport_decl): Likewise.
13624         (ix86_init_machine_status): Likewise.
13625         (assign_386_stack_local): Likewise.
13626
13627         * config/frv/frv.c (frv_init_machine_status): Likewise.
13628
13629         * config/darwin.c (machopic_indirection_name): Likewise.
13630
13631         * config/cris/cris.c (cris_init_machine_status): Likewise.
13632
13633         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
13634
13635         * config/avr/avr.c (avr_init_machine_status): Likewise.
13636
13637         * config/arm/arm.c (arm_init_machine_status): Likewise.
13638
13639         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
13640         (alpha_need_linkage): Likewise.
13641         (alpha_use_linkage): Likewise.
13642
13643         * cgraph.c (cgraph_allocate_node): Likewise.
13644         (cgraph_create_edge_1): Likewise.
13645         (cgraph_create_indirect_edge): Likewise.
13646         (cgraph_add_asm_node): Likewise.
13647
13648         * cfgrtl.c (init_rtl_bb_info): Likewise.
13649
13650         * cfgloop.c (alloc_loop): Likewise.
13651         (rescan_loop_exit): Likewise.
13652
13653         * cfg.c (init_flow): Likewise.
13654         (alloc_block): Likewise.
13655         (unchecked_make_edge): Likewise.
13656
13657         * c-parser.c (c_parse_init): Likewise.
13658         (c_parse_file): Likewise.
13659
13660         * c-decl.c (bind): Likewise.
13661         (record_inline_static): Likewise.
13662         (push_scope): Likewise.
13663         (make_label): Likewise.
13664         (lookup_label_for_goto): Likewise.
13665         (finish_struct): Likewise.
13666         (finish_enum): Likewise.
13667         (c_push_function_context): Likewise.
13668
13669         * bitmap.c (bitmap_element_allocate): Likewise.
13670         (bitmap_gc_alloc_stat): Likewise.
13671
13672         * alias.c (record_alias_subset): Likewise.
13673         (init_alias_analysis): Likewise.
13674
13675 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
13676
13677         * fold-const.c (fold_comparison): Remove redundant parenthesis.
13678         * tree-inline.c (expand_call_inline): Pass translated return value of
13679         cgraph_inline_failed_string to diagnostic function.
13680
13681 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
13682             Shujing Zhao  <pearly.zhao@oracle.com>
13683
13684         PR c/37724
13685         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
13686         implicit bad conversions is initialization.
13687         (error_init): Use gmsgid instead of msgid for argument name and change
13688         the call for error.
13689         (pedwarn_init): Use gmsgid instead of msgid for argument name and
13690         change the call for pedwarn.
13691         (warning_init): Use gmsgid instead of msgid for argument name and
13692         change the call for warning.
13693
13694 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
13695
13696         * config/mips/mips-protos.h (mips_print_operand): Delete.
13697         (mips_print_operand_address): Delete.
13698         * config/mips/mips.h (mips_print_operand_punct): Delete.
13699         (PRINT_OPERAND): Delete.
13700         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13701         (PRINT_OPERAND_ADDRESS): Delete.
13702         * config/mips/mips.c (mips_print_operand_punct): Make static.
13703         (mips_print_operand_address): Make static.
13704         (mips_print_operand): Make static.  Call
13705         mips_print_operand_punct_valid_p.
13706         (mips_print_operand_punct_valid_p): New function.
13707         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13708         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13709
13710 2010-06-07  Jan Hubicka  <jh@suse.cz>
13711
13712         PR middle-end/44454
13713         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
13714         are allocated.
13715
13716 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13717
13718         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
13719         name of RECORD.
13720
13721 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13722
13723         * doc/sourcebuild.texi (Effective-Target Keywords, Other
13724         attributes): Document gas.
13725
13726 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
13727
13728         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
13729         <TYPE_LEA>: Split instruction.
13730         <default>: Remove alternative 2 handling.
13731         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
13732         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
13733         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
13734
13735         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
13736         (ashift_zext lea splitter): Use DImode for multiplication.
13737
13738         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
13739         to generate addition.
13740
13741 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
13742
13743         * common.opt (fira-verbose): Use Var.
13744         (fpcc-struct-return): Use Init instead of VarExists.
13745         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
13746         toplev.c.
13747         * flags.h (flag_signed_char, flag_short_enums,
13748         flag_pcc_struct_return, flag_ira_verbose,
13749         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
13750         * toplev.c (flag_detailed_statistics, flag_signed_char,
13751         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
13752         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
13753         * toplev.h (flag_crossjumping, flag_if_conversion,
13754         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
13755         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
13756         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
13757         flag_cprop_registers, time_report, flag_ira_loop_pressure,
13758         flag_ira_coalesce, flag_ira_move_spills,
13759         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
13760
13761 2010-06-07  Jan Hubicka  <jh@suse.cz>
13762
13763         * df-core.c (df_analyze_problem): Do verification after allocation.
13764
13765         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
13766         (df_lr_alloc): Initialize problem data; move bitmaps to
13767         lr_bitmaps obstack.
13768         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
13769         (df_lr_verify_solution_start): Do not initialize problem data;
13770         allocate bitmaps in lr_bitmaps.
13771         (df_lr_verify_solution_end): Do not free problem data.
13772
13773 2010-06-07  Jan Hubicka  <jh@suse.cz>
13774
13775         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
13776         if caller is noreturn.
13777         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
13778         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
13779         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
13780         * ipa-pure-const.c (check_decl): Add IPA parameter.
13781         (state_from_flags): New function.
13782         (better_state, worse_state): New functions.
13783         (check_call): When in IPA mode, do not care about callees.
13784         (check_load, check_store): Update.
13785         (check_ipa_load, check_ipa_store): New.
13786         (check_stmt): When in IPA mode, use IPA checkers.
13787         (analyze_function): Use state_from_flags.
13788         (propagate): Check indirect edges and references.
13789
13790 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
13791
13792         PR rtl-optimization/44404
13793         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
13794         of count_occurrences to see if it's safe to modify mem_insn.
13795
13796 2010-06-07  Richard Guenther  <rguenther@suse.de>
13797
13798         * gimplify.c (gimplify_cleanup_point_expr): For empty body
13799         and EH-only cleanup drop the cleanup instead of inserting it
13800         unconditionally.
13801
13802 2010-06-07  Ira Rosen  <irar@il.ibm.com>
13803
13804         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
13805         documentation.
13806         * targhooks.c (default_builtin_vectorization_cost): New function.
13807         * targhooks.h (default_builtin_vectorization_cost): Declare.
13808         * target.h (enum vect_cost_for_stmt): Define.
13809         (builtin_vectorization_cost): Change argument and comment.
13810         * tree-vectorizer.h: Remove cost model macros.
13811         * tree-vect-loop.c: Include target.h.
13812         (vect_get_cost): New function.
13813         (vect_estimate_min_profitable_iters): Replace cost model macros with
13814         calls to vect_get_cost.
13815         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
13816         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
13817         default implementation.
13818         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
13819         calls to target hook builtin_vectorization_cost.
13820         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
13821         Likewise.
13822         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
13823         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
13824         implementation to return costs.
13825         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
13826         * config/spu/spu.h: Remove vectorizer cost model macros.
13827         * config/i386/i386.h: Likewise.
13828         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
13829         a call to target hook builtin_vectorization_cost.
13830
13831 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
13832
13833         PR target/44319
13834         * config/i386/i386.c (override_options): Turn zee pass on for level 2
13835         and above and defer till target is known.
13836         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
13837         turn off otherwise.
13838
13839 2010-05-25  Jan Hubicka  <jh@suse.cz>
13840
13841         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
13842         (df_compact_blocks): Likewise.
13843         * df.h (struct df): Turn hardware_regs_used,
13844         regular_block_artificial_uses, eh_block_artificial_uses,
13845         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
13846         bitmap_head.
13847         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
13848         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
13849         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
13850         df_scan_blocks, df_insn_delete, df_insn_rescan,
13851         df_insn_rescan_debug_internal, df_insn_rescan_all,
13852         df_process_deferred_rescans, df_process_deferred_rescans,
13853         df_notes_rescan, df_get_call_refs, df_get_call_refs,
13854         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
13855         df_record_entry_block_defs, df_record_exit_block_uses,
13856         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
13857         df_scan_verify): Update.
13858
13859 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
13860
13861         PR c++/44188
13862         * c-common.c (is_typedef_decl): Move this definition ...
13863         * tree.c (is_typedef_decl): ... here.
13864         (typdef_variant_p): Move definition here from cp/tree.c.
13865         * c-common.h (is_typedef_decl): Move this declaration ...
13866         * tree.h (is_typedef_decl): ... here.
13867         (typedef_variant_p): Move declaration here from cp/cp-tree.h
13868         * dwarf2out.c (is_naming_typedef_decl): New function.
13869         (gen_tagged_type_die): Split out of ...
13870         (gen_type_die_with_usage): ... this function. When an anonymous
13871         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
13872         is emitted for the typedef.
13873         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
13874         anonymous tagged types.
13875
13876 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13877
13878         PR c/20000
13879         * c-decl.c (grokdeclarator): Delete warning.
13880
13881 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13882
13883         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
13884         newly built CALL_EXPR.
13885         * tree-profile.c (tree_profiling): Don't profile functions produced
13886         for built-in stuff.
13887
13888 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
13889
13890         PR bootstrap/44427
13891         PR bootstrap/44428
13892         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
13893         endianness-independent.
13894
13895 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
13896
13897         * c-common.c: Move to c-family/.
13898         * c-common.def: Likewise.
13899         * c-common.h: Likewise.
13900         * c-cppbuiltin.c: Likewise.
13901         * c-dump.c: Likewise.
13902         * c-format.c: Likewise.
13903         * c-format.h : Likewise.
13904         * c-gimplify.c: Likewise.
13905         * c-lex.c: Likewise.
13906         * c-omp.c: Likewise.
13907         * c.opt: Likewise.
13908         * c-opts.c: Likewise.
13909         * c-pch.c: Likewise.
13910         * c-ppoutput.c: Likewise.
13911         * c-pragma.c: Likewise.
13912         * c-pragma.h: Likewise.
13913         * c-pretty-print.c: Likewise.
13914         * c-pretty-print.h: Likewise.
13915         * c-semantics.c: Likewise.
13916         * stub-objc.c: Likewise.
13917
13918         * gengtype.c (get_file_langdir): Special-case files in c-family/.
13919         (get_output_file_with_visibility): Fix name for c-common.h.
13920         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
13921
13922         * c-tree.h: Update include path for moved files.
13923         * c-lang.c: Likewise.
13924         * c-lang.h: Likewise.
13925         * c-parser.c: Likewise.
13926         * c-convert.c: Likewise.
13927         * c-decl.c: Likewise.
13928         * c-objc-common.c: Likewise.
13929         * configure.ac: Make sure c-family/ exists in the build directory.
13930         * configure: Regenerate.
13931         * Makefile.in: Update paths for moved files.  Regroup files per
13932         location and update dependencies.  Move generated_files down after
13933         ALL_GTFILES_H.
13934
13935         * config/spu/spu-c.c: Update paths for moved files.
13936         * config/mep/mep-pragma.c: Likewise.
13937         * config/darwin-c.c: Likewise.
13938         * config/i386/msformat-c.c: Likewise.
13939         * config/i386/i386-c.c: Likewise.
13940         * config/avr/avr-c.c: Likewise.
13941         * config/sol2-c.c: Likewise.
13942         * config/ia64/ia64-c.c: Likewise.
13943         * config/rs6000/rs6000-c.c: Likewise.
13944         * config/arm/arm.c: Likewise.
13945         * config/arm/arm-c.c: Likewise.
13946         * config/h8300/h8300.c: Likewise.
13947         * config/v850/v850-c.c: Likewise.
13948
13949         * config/t-darwin: Fix dependencies for moved files.
13950         * config/t-sol2: Fix dependencies for moved files.
13951         * config/mep/t-mep: Fix dependencies for moved files.
13952         * config/ia64/t-ia64: Fix dependencies for moved files.
13953         * config/rs6000/t-rs6000: Fix dependencies for moved files.
13954         * config/v850/t-v850: Fix dependencies for moved files.
13955         * config/v850/t-v850e: Fix dependencies for moved files.
13956
13957         * config/m32c/m32c-pragma.c
13958
13959         * po/exgettext: Look in c-family/ also.
13960
13961 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13962
13963         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
13964         (mark_control_dependent_edges_necessary): Call it instead of marking
13965         the last statement manually.
13966         (propagate_necessity): Likewise.
13967
13968 2010-06-05  Jan Hubicka  <jh@suse.cz>
13969
13970         * basic-block.h (compute_dominance_frontiers): Updated.
13971         (compute_idf): Likewise.
13972
13973         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
13974         for dominance frontiers.
13975         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
13976         (insert_updated_phi_nodes_for): Likewise.
13977         (update_ssa): Likewise.
13978         * cfganal.c (compute_dominance_frontiers_1): Likewise.
13979         (compute_dominance_frontiers): Likewise.
13980         (compute_idf): Likewise.
13981         * df-problems.c (df_md_local_compute): Likewise.
13982
13983 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
13984
13985         * target.h (struct gcc_target): Add memory_move_cost field.
13986         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
13987         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
13988         * targhooks.c (default_memory_move_cost): New function.
13989         * targhooks.h (default_memory_move_cost): Declare function.
13990         * reload.h (memory_move_cost): Declare.
13991         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13992         * reginfo.c (memory_move_cost): New function.
13993         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13994         * ira.h (ira_memory_move_cost): Update comment.
13995         * ira.c (ira_memory_move_cost): Update comment.
13996         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
13997         with memory_move_cost.
13998         * postreload.c (reload_cse_simplify_set): (Ditto.).
13999         * reload1.c (choose_reload_regs): (Ditto.).
14000         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
14001         (MEMORY_MOVE_COST):  Revise documentation.
14002
14003         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
14004         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
14005         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
14006         type of 'in' argument to bool.
14007         (TARGET_MEMORY_MOVE_COST): Define.
14008
14009 2010-06-05  Jan Hubicka  <jh@suse.cz>
14010
14011         * ipa-pure-const.c (propagate): Fix typo in handling of functions
14012         that cannot return.  Be more careful when merging the results with
14013         previously known ones.
14014
14015 2010-06-05  Matthias Klose  <doko@ubuntu.com>
14016
14017         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
14018         function to add the -iplugindir option.
14019         (find_plugindir_spec_function): Add new declaration and function.
14020         (static_spec_func): Use it for "find-plugindir".
14021
14022 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
14023
14024         PR c++/44361
14025         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
14026         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
14027         statement expression.
14028
14029 2010-06-05  Jan Hubicka  <jh@suse.cz>
14030
14031         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
14032         (df_rd_problem_data): Convert sparse_invalidated_by_call,
14033         dense_invalidated_by_call to bitmap head.
14034         (df_rd_alloc, df_rd_bb_local_compute_process_def,
14035         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
14036         df_rd_start_dump, df_lr_verify_transfer_functions,
14037         df_live_verify_transfer_functions, df_chain_create_bb,
14038         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
14039         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
14040         df_simulate_one_insn_forwards, df_md_alloc,
14041         df_md_bb_local_compute_process_def,
14042         df_md_bb_local_compute_process_def, df_md_local_compute,
14043         df_md_transfer_function df_md_free): Update.
14044
14045 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
14046
14047         PR c/44322
14048         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
14049         target type for ADDR_EXPR; require no changes to qualifiers except
14050         for function types.
14051         * c-tree.h (c_build_type_variant): Remove.
14052
14053 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
14054
14055         * genautomata.c (get_excl_set): Do work per element, not per char.
14056         (check_presence_pattern_sets): Similar.
14057         (check_absence_pattern_sets): Similar.
14058
14059 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
14060
14061         * genautomata.c (curr_state_pass_num): Delete.
14062         (min_issue_delay_pass_states): Delete.
14063         (min_issue_delay): Delete.
14064         (initiate_min_issue_delay_pass_states): Delete.
14065         (output_min_issue_delay_table): Compute min_issue_delay_vect
14066         using a breadth-first search variant.
14067         (output_tables): Don't call initiate_min_issue_delay_pass_states.
14068
14069 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
14070
14071         PR boostrap/44421
14072         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
14073         (df_byte_lr_bb_local_compute): Likewise.
14074
14075 2010-06-03  Jason Merrill  <jason@redhat.com>
14076
14077         Implement noexcept operator (5.3.7)
14078         * c-common.c (c_common_reswords): Add noexcept.
14079         * c-common.h (enum rid): Add RID_NOEXCEPT.
14080
14081 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
14082
14083         * config/darwin-driver.c (darwin_default_min_version): Use
14084         GCC-specific formats in diagnostics.
14085         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
14086         diagnostics.
14087         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
14088         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
14089         eval_spec_function, handle_braces, process_brace_body, main,
14090         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
14091         getenv_spec_function, compare_version_strings,
14092         version_compare_spec_function): Use GCC-specific formats in
14093         diagnostics.
14094
14095 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
14096
14097         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
14098         that operand 0 and operand 1 are equal.
14099         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
14100         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
14101         and operand 1 are equal.
14102         <default>: Ditto.  Remove ??? comment.
14103         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
14104         and operand 1 are equal.
14105         <default>: Ditto.  Remove ??? comment.
14106         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
14107         are equal.
14108         (*add<mode>_4) <default>: Ditto.
14109         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
14110
14111 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
14112
14113         * config/i386/i386-protos.h (ix86_print_operand): Declare.
14114         * config/i386/i386.c (ix86_print_operand): Make non-static.
14115         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
14116         * output.h (output_operand): Declare.
14117         * final.c (output_operand): Make non-static.
14118
14119 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
14120
14121         PR rtl-optimization/44013
14122         * sched-deps.c (add_dependence_list_and_free): Don't free lists
14123         when processing debug insns.
14124
14125         PR debug/41371
14126         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
14127         recursing.  Check that recursion is bounded.  Rename inner var
14128         to avoid hiding incoming argument.
14129
14130 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
14131
14132         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
14133         operands[2] == 255.
14134         (*addqi_3): Ditto.
14135         (*addqi_4): Ditto.
14136         (*addqi_5): Ditto.
14137         (*addqi_ext_1_rex64): Ditto.
14138         (*addqi_ext_1): Ditto.
14139
14140         (*addqi_4): Check for incdec_operand in QImode.
14141
14142         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
14143         using SWI mode iterator.
14144         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
14145         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
14146         mode iterator.
14147         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
14148         using SWI mode iterator.
14149
14150 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14151
14152         PR c/25880
14153         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
14154         * c-format.c (gcc_diag_flag_specs): Add hash.
14155         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
14156         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
14157         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
14158         pp_c_cv_qualifiers. Handle qualifiers spelling here.
14159         (pp_c_type_qualifier_list): Call the function above.
14160         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
14161         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
14162         (WARN_FOR_QUALIFIERS): New macro.
14163         (convert_for_assignment): Use it.
14164
14165 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
14166
14167         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
14168
14169 2010-06-04  Jan Hubicka  <jh@suse.cz>
14170
14171         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
14172         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
14173         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
14174         DF_BYTE_LR_OUT): Update for embedded bitmaps.
14175         * fwprop.c (single_def_use_enter_block): Likewise.
14176         * ddg.c (create_ddg_dep_from_intra_loop_link,
14177         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
14178         * loop-iv.c (latch_dominating_def): Likewise.
14179         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
14180         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
14181         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
14182         df_rd_transfer_function, df_rd_top_dump,
14183         df_rd_bottom_dump): Update.
14184         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
14185         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
14186         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
14187         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
14188         df_lr_verify_solution_start, df_lr_verify_solution_end,
14189         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
14190         df_live_free_bb_info, df_live_alloc, df_live_reset,
14191         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
14192         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
14193         df_live_verify_solution_start, df_live_verify_solution_end,
14194         df_live_verify_transfer_functions, df_chain_create_bb,
14195         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
14196         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
14197         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
14198         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
14199         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
14200         df_byte_lr_transfer_function, df_byte_lr_top_dump,
14201         df_byte_lr_bottom_dump, df_create_unused_note,
14202         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
14203         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
14204         df_md_transfer_function, df_md_init, df_md_confluence_0,
14205         df_md_confluence_n,
14206         df_md_top_dump, df_md_bottom_dump): Update.
14207         (struct df_lr_problem_data): Embedd bitmap headers.
14208
14209 2010-06-04  Jan Hubicka  <jh@suse.cz>
14210
14211         * dce.c (dce_process_block): Do not re-scan already marked
14212         instructions.
14213
14214 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
14215
14216         PR rtl-optimization/39871
14217         PR rtl-optimization/40615
14218         PR rtl-optimization/42500
14219         PR rtl-optimization/42502
14220         * ira.c (init_reg_equiv_memory_loc: New function.
14221         (ira): Call it twice.
14222         * reload.h (calculate_elim_costs_all_insns): Declare.
14223         * ira-costs.c: Include "reload.h".
14224         (regno_equiv_gains): New static variable.
14225         (init_costs): Allocate it.
14226         (finish_costs): Free it.
14227         (ira_costs): Call calculate_elim_costs_all_insns.
14228         (find_costs_and_classes): Take estimated elimination costs
14229         into account.
14230         (ira_adjust_equiv_reg_cost): New function.
14231         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
14232         * reload1.c (init_eliminable_invariants, free_reg_equiv,
14233         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
14234         (elim_bb): New static variable.
14235         (reload): Move code out of here into init_eliminable_invariants and
14236         free_reg_equiv.  Call them.
14237         (calculate_elim_costs_all_insns): New function.
14238         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
14239         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
14240         but call note_reg_elim_costly if we turned a valid memory address
14241         into an invalid one.
14242         * Makefile.in (ira-costs.o): Depend on reload.h.
14243
14244 2010-06-04  Julian Brown  <julian@codesourcery.com>
14245
14246         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
14247         for pool ranges.
14248
14249 2010-06-04  Richard Guenther  <rguenther@suse.de>
14250
14251         PR lto/41584
14252         * cgraph.h (struct varpool_node): Add lto_file_data field.
14253         * lto-cgraph.c (input_varpool_node): Initialize it.
14254
14255 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
14256
14257         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
14258         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
14259         predicate in "type" attribute calculation.
14260         (*addsi_1_zext): Ditto.
14261         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
14262         (*addsi_2_zext): Ditto.
14263         (*add<mode>_3): Ditto.
14264         (*addsi_3_zext): Ditto.
14265         (*add<mode>_5): Ditto.
14266
14267 2010-06-03  Jan Hubicka  <jh@suse.cz>
14268
14269         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
14270         of bitmap_bit_p.
14271         * cfganal.c (compute_dominance_frontiers_1): Likewise.
14272
14273 2010-06-03  Jan Hubicka  <jh@suse.cz>
14274
14275         * df-problems.c (df_create_unused_note, df_note_bb_compute):
14276         micro-optimize the checks when to add new note.
14277
14278 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
14279
14280         * final.c (output_asm_insn): Call
14281         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
14282         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
14283         (output_address): Call targetm.asm_out.print_operand_address.
14284         Update comments.
14285         * target.h (struct gcc_target): Add print_operand,
14286         print_operand_address, and print_operand_punct_valid_p fields.
14287         * targhooks.h (default_print_operand): Declare.
14288         (default_print_operand_address): Declare.
14289         (default_print_operand_punct_valid_p): Declare.
14290         * targhooks.c (default_print_operand): Define.
14291         (default_print_operand_address): Define.
14292         (default_print_operand_punct_valid_p): Define.
14293         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
14294         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
14295         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
14296         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
14297         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
14298         * vmsdbgout.c (addr_const_to_string): Update comment.
14299         * config/i386/i386.c (print_operand): Rename to...
14300         (ix86_print_operand): ...this.  Make static.
14301         (print_operand_address): Rename to...
14302         (ix86_print_operand_address): ...this.  Make static.  Call
14303         ix86_print_operand instead of PRINT_OPERAND.
14304         (ix86_print_operand_punct_valid_p): New function.
14305         (TARGET_PRINT_OPERAND): Define.
14306         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14307         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14308         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
14309         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14310         (PRINT_OPERAND): Delete.
14311         (PRINT_OPERAND_ADDRESS): Delete.
14312         * config/i386/i386-protos.h (print_operand): Delete prototype.
14313         (print_operand_address): Delete prototype.
14314
14315 2010-06-03  Richard Guenther  <rguenther@suse.de>
14316
14317         PR tree-optimization/44403
14318         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
14319         Preserve pointer qualifiers.
14320         (vect_create_data_ref_ptr): Likewise.
14321
14322 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
14323
14324         PR c++/44294
14325         * defaults.h (MAX_FIXED_MODE_SIZE): New.
14326
14327         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
14328
14329 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
14330
14331         PR debug/44375
14332         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
14333         return false if merging the bbs would lead to goto_locus
14334         location being lost from the IL.
14335
14336 2010-06-03  Jan Hubicka  <jh@suse.cz>
14337             Jakub Jelinek  <jakub@redhat.com>
14338
14339         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
14340         set->regs[i] is NULL or has just one entry.
14341
14342 2010-06-03  Jan Hubicka  <jh@suse.cz>
14343
14344         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
14345         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
14346
14347 2010-06-03  Paul Brook  <paul@codesourcery.com>
14348
14349         * config/arm/arm.c (FL_TUNE): Define.
14350         (arm_default_cpu, arm_cpu_select): Remove.
14351         (all_cores): Populate core field.
14352         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
14353         (arm_find_cpu): New function.
14354         (arm_handle_option): Lookup cpu/architecture names.
14355         (arm_override_options): Cleanup mcpu/march/mtune handling.
14356         (arm_file_start): Ditto.
14357
14358 2010-06-03  Alan Modra  <amodra@gmail.com>
14359
14360         PR target/44169
14361         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
14362         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
14363         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
14364         (rs6000_emit_load_toc_table): Likewise.
14365
14366 2010-06-02  Jan Hubicka  <jh@suse.cz>
14367
14368         * passes.c (init_optimization_passes): Put ipa reference
14369         after ipa pure-const.
14370
14371 2010-06-02  Jan Hubicka  <jh@suse.cz>
14372
14373         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
14374         calls_read_all and calls_write_all.
14375         (get_reference_optimization_summary): Fix formatting.
14376         (is_proper_for_analysis): Check that decl is not readonly.
14377         (propagate_bits): Check CONST/PURE/noreturn flags.
14378         (ipa_init): Move all_module_statics to optimization_summary_obstack.
14379         (analyze_function): Ignore indirect edges.
14380         (copy_global_bitmap): For all module statics, do nothing.
14381         (generate_summary): Do not print calls_read_all/calls_write_all.
14382         (read_write_all_from_decl): Take node as argument; check
14383         cgraph_node_cannot_return.
14384         (propagate): Reorganize read_all/write_all computation;
14385         check indirect edges; check ecf flags; use all_module_statics
14386         in the results; do not free all_module_statics.
14387         (stream_out_bitmap): Handle all_module_statics.
14388         (ipa_reference_write_optimization_summary): Likewise; use
14389         varpool/cgraph encoders to get boundaries.
14390         (ipa_reference_read_optimization_summary): Read in all_module_statics;
14391         use it when possible.
14392
14393 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14394
14395         PR target/44218
14396         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
14397         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
14398
14399         * doc/extend.texi (powerpc builtins): Document vec_recip,
14400         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
14401
14402         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
14403         (rs6000_emit_swrsqrt): Ditto.
14404         (rs6000_emit_swdivsf): Delete.
14405         (rs6000_emit_swdivdf): Ditto.
14406         (rs6000_emit_swrsqrtsf): Ditto.
14407
14408         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
14409         describe the reciprocal estimate support for each type.
14410         (recip_options): Map -mrecip=<opt> into option bits.
14411         (gen_2arg_fn_t): New typedef for binary rtx gen function.
14412         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
14413         reciprocal estimate instructions.
14414         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
14415         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
14416         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
14417         cost information if -mdebug=cost or -mdebug=reg.
14418         (rs6000_override_options): Set -mrecip-precision for power6, and
14419         power7 machines.  If -mvsx or -mdfp, enable various options that
14420         came in previous instruction set ISAs, unless the option was
14421         explicitly disabled by the command line option.  Parse
14422         -mrecip=<opt> options.
14423         (rs6000_builtin_vectorized_function): Add support for vectorizing
14424         the reciprocal estimate builtins and expansions.
14425         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
14426         (bdesc_2arg): Add reciprocal estimate builtins.
14427         (bdesc_1arg): Add reciprocal square root estimate builtins.
14428         (rs6000_expand_builtin): Rewrite to use a switch statement,
14429         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
14430         (rs6000_init_builtins): Create declarations for reciprocal
14431         estimate builtins.
14432         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
14433         sized, prefer traditional floating point registers, if integer
14434         vector types, prefer altivec registers.  Don't actually look at
14435         the memory address any more.
14436         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
14437         builtins.
14438         (rs6000_load_constant_and_splat): New helper function to load up
14439         the constant for reciprocal estimate instructions.
14440         (rs6000_emit_madd): New helper function for generating
14441         multiply/add type instructions, based on the current switches.
14442         (rs6000_emit_msub): Ditto.
14443         (rs6000_emit_mnsub): Ditto.
14444         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
14445         replace a divide with a reciprocal estimate and fixup, adding
14446         support for machines with high precision and vectors.
14447         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
14448         low precision machines.
14449         (rs6000_emit_swdiv): New common function to be called to replace a
14450         division with reciprocal estimate and fixup.
14451         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
14452         for double and vector types.  Add support for high precision machines.
14453
14454         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
14455         the reciprocal estimate instructions can be generated.
14456         (TARGET_FRE): Ditto.
14457         (TARGET_FRSQRTES): Ditto.
14458         (TARGET_FRSQRTE): Ditto.
14459         (RS6000_RECIP_*): New macros for reciprocal estimate support.
14460
14461         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
14462         square root estimate on vectors.
14463         (re<mode>2): New insn for reciprocal division estimate on vectors.
14464
14465         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
14466         New builtin.
14467         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
14468         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
14469         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
14470         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
14471         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
14472         (RS6000_BUILTIN_RSQRT): Ditto.
14473         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
14474         floating point builtin.
14475
14476         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14477         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
14478         __RECIP_PRECISION__ based on the command line switches.
14479         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
14480
14481         * config/rs6000/rs6000.opt (-mrecip): Document add support for
14482         replacing division instructions with reciprocal estimate and fixup.
14483         (-mrecip=<opt>): New option.
14484         (-mrecip-precision): Ditto.
14485
14486         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
14487         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
14488         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
14489         precision scalar.
14490
14491         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
14492         (UNSPEC_VREFP): Ditto.
14493         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
14494         conterparts with regard to support of -mno-fused-madd and -ffast-math.
14495         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
14496         reciprocal estimate instructions to be generated.
14497         (altivec_vrefp): Ditto.
14498
14499         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
14500         estimate support.
14501         (rreg): New mode attribute for reciprocal estimate support.
14502         (recip<mode>3): New insn for division using reciprocal estimate
14503         and fixup builtins.
14504         (divide define_split): New define_split to convert floating point
14505         division to use reciprocal estimate if the user used the
14506         appropriate options and the split is run when we can add new
14507         pseudo registers for the fixup.
14508         (rsqrt<mode>2): New insn for reciprocal square root support.
14509         (recipsf3): Move into recip<mode>3.
14510         (recipdf3): Ditto.
14511         (fres): Use TARGET_FRES.
14512         (rsqrtsf2): Move into rsqrt<mode>2.
14513         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
14514         (copysignsf3): Add support for VSX.
14515         (fred): Use TARGET_FRE.
14516         (fred_fpr): Ditto.
14517         (rsqrtdf_internal1): New function for frsqrte instruciton.
14518
14519         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
14520         (vec_rsqrt): Ditto.
14521
14522 2010-06-03  Richard Guenther  <rguenther@suse.de>
14523
14524         PR middle-end/44291
14525         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
14526         (set_user_assembler_libfunc): Likewise.
14527
14528 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14529
14530         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
14531         defaults.h.
14532         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
14533         to defaults.h
14534         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
14535         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
14536         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
14537         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
14538         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
14539         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
14540         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
14541         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
14542         * defaults.h: Updated for above mentioned changes.
14543
14544 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
14545
14546         * c-common.c: Remove header include of tm_p.h.
14547         * Makefile.in (c-common.o): Remove TM_P_H dependency.
14548
14549 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
14550
14551         * tree.h (struct tree_decl_map): New type.
14552         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
14553         (tree_decl_map_hash): New prototype.
14554         (debug_expr_for_decl, value_expr_for_decl): Change into
14555         tree_decl_map hashtab from tree_map.
14556         (init_ttree): Adjust initialization.
14557         (tree_decl_map_hash): New function.
14558         (decl_debug_expr_lookup, decl_debug_expr_insert,
14559         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
14560
14561 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14562
14563         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
14564         linker emulations.
14565         * configure: Regenerate.
14566         * config.in: Regenerate.
14567
14568         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
14569         (X86_64_EMULATION): Define.
14570         (TARGET_LD_EMULATION): Use them.
14571
14572         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
14573         (SPARC64_EMULATION): Define.
14574         (LINK_ARCH_SPEC): Use them.
14575
14576 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14577
14578         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
14579         smallest_mode_for_size for computing the precision types of new
14580         graphite IVs.  Do not call lang_hooks.types.type_for_size.
14581
14582 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14583
14584         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
14585         information.
14586         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
14587
14588 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14589
14590         PR middle-end/44363
14591         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
14592         return false instead.
14593
14594 2010-06-02  Jan Hubicka  <jh@suse.cz>
14595
14596         PR middle-end/44295
14597         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
14598         create new cgraph node to check callee.
14599
14600 2010-06-02  Richard Guenther  <rguenther@suse.de>
14601
14602         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
14603
14604 2010-06-02  Richard Guenther  <rguenther@suse.de>
14605
14606         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
14607         (lto_wrapper_cleanup): ... this.  Do not exit.
14608         (fatal): Adjust.  Exit here.
14609         (fatal_perror): Likewise.
14610         (fatal_signal): New function.
14611         (main): Set up signal handlers to cleanup temporary files.
14612         * Makefile.in (lto-wrapper.o): Adjust dependencies.
14613
14614 2010-06-02  Richard Guenther  <rguenther@suse.de>
14615
14616         PR tree-optimization/44377
14617         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
14618
14619 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14620
14621         * config/s390/2097.md (z10_fhex): Remove insn reservation.
14622         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
14623         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
14624         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
14625         instruction.
14626         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
14627
14628 2010-06-02  Jan Hubicka  <jh@suse.cz>
14629
14630         * bitmap.c (bitmap_descriptor): Add search_iter.
14631         (bitmap_find_bit): Increment it.
14632         (print_statistics): Print it.
14633
14634 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
14635
14636         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
14637         instead of gimple_build_call_vec.  Delete unnecessary local variable.
14638
14639 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14640
14641         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
14642         change from yesterday.
14643
14644 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14645
14646         * c-ada-spec.c: Clean up redundant includes.
14647
14648 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
14649
14650         * gimplify.c: Do not include except.h and optabs.h.
14651         (gimplify_body): Do not initialize RTL profiling.
14652         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
14653         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
14654         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
14655         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
14656         langhooks.h.
14657
14658         * tree-pretty-print.h: Include pretty-print.h.
14659         * gimple-pretty-print.h: Include pretty-print.h.
14660
14661         * tree-pretty-print.c: Do not include diagnostic.h.
14662         * tree-vrp.c: Likewise.
14663         * tree-tailcall.c: Likewise
14664         * tree-scalar-evolution.c: Likewise
14665         * tree-ssa-dse.c: Likewise
14666         * tree-chrec.c: Likewise
14667         * tree-ssa-sccvn.c: Likewise
14668         * tree-ssa-copyrename.c: Likewise
14669         * tree-nomudflap.c: Likewise
14670         * tree-call-cdce.c: Likewise
14671         * tree-stdarg.c: Likewise
14672         * tree-ssa-math-opts.c: Likewise
14673         * tree-nrv.c: Likewise
14674         * tree-ssa-sink.c: Likewise
14675         * tree-browser.c: Likewise
14676         * tree-ssa-loop-ivcanon.c: Likewise
14677         * tree-ssa-loop.c: Likewise
14678         * tree-parloops.c: Likewise
14679         * tree-ssa-address.c: Likewise
14680         * tree-ssa-ifcombine.c: Likewise
14681         * tree-if-conv.c: Likewise
14682         * tree-data-ref.c: Likewise
14683         * tree-affine.c: Likewise
14684         * tree-ssa-phiopt.c: Likewise
14685         * tree-ssa-coalesce.c: Likewise
14686         * tree-ssa-pre.c: Likewise
14687         * tree-ssa-live.c: Likewise
14688         * tree-predcom.c: Likewise
14689         * tree-ssa-forwprop.c: Likewise
14690         * tree-ssa-dce.c: Likewise
14691         * tree-ssa-ter.c: Likewise
14692         * tree-ssa-loop-prefetch.c: Likewise
14693         * tree-optimize.c: Likewise
14694         * tree-ssa-phiprop.c: Likewise
14695         * tree-object-size.c: Likewise
14696         * tree-outof-ssa.c: Likewise
14697         * tree-ssa-structalias.c: Likewise
14698         * tree-switch-conversion.c: Likewise
14699         * tree-ssa-reassoc.c: Likewise
14700         * tree-ssa-operands.c: Likewise
14701         * tree-vectorizer.c: Likewise
14702         * tree-vect-data-refs.c: Likewise
14703         * tree-vect-generic.c: Likewise
14704         * tree-vect-stmts.c: Likewise
14705         * tree-vect-patterns.c: Likewise
14706         * tree-vect-slp.c: Likewise
14707         * tree-vect-loop.c: Likewise
14708         * tree-ssa-loop-ivopts.c: Likewise
14709         * tree-ssa-loop-im.c: Likewise
14710         * tree-ssa-loop-niter.c: Likewise
14711         * tree-ssa-loop-unswitch.c: Likewise
14712         * tree-ssa-loop-manip.c: Likewise
14713         * tree-ssa-loop-ch.c: Likewise
14714         * tree-dump.c: Likewise
14715         * tree-complex.c: Likewise
14716
14717         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
14718         * tree-ssa-uninit.c: Likewise
14719         * tree-ssa-threadupdate.c: Likewise
14720         * tree-ssa-uncprop.c: Likewise
14721         * tree-ssa-ccp.c: Likewise
14722         * tree-ssa-dom.c: Likewise
14723         * tree-ssa-propagate.c: Likewise
14724         * tree-ssa-alias.c: Likewise
14725         * tree-dfa.c: Likewise
14726         * tree-cfgcleanup.c: Likewise
14727         * tree-sra.c: Likewise
14728         * tree-ssa-copy.c: Likewise
14729         * tree-ssa.c: Likewise
14730         * tree-profile.c: Likewise
14731         * tree-cfg.c: Likewise
14732         * tree-ssa-threadedge.c: Likewise
14733         * tree-vect-loop-manip.c: Likewise
14734
14735         * tree-inline.c: Do not include diagnostic.h and expr.h.
14736         Include rtl.h.
14737         (copy_decl_for_dup_finish): Do not use NULL_RTX.
14738
14739         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
14740         * tree-loop-distribution.c: Likewise.
14741
14742 2010-06-01  Jan Hubicka  <jh@suse.cz>
14743
14744         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
14745
14746 2010-06-01  Jan Hubicka  <jh@suse.cz>
14747
14748         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
14749         remove return value.
14750         (split_bbs_on_noreturn_calls) .... here.
14751         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
14752         * tree-flow.h (fixup_noreturn_call): New.
14753
14754 2010-06-01  Jan Hubicka  <jh@suse.cz>
14755
14756         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
14757
14758 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
14759
14760         * tree.h (build_nt_call_list): Delete.
14761         * tree.c (build_nt_call_list): Delete.
14762
14763 2010-06-01  Jan Hubicka  <jh@suse.cz>
14764
14765         * fwprop.c: Make emit-rtl.h include last.
14766         * rtlanal.c: Include emit-rtl.h.
14767         * genautomata.c: Output emit-rtl include into insn-automata.c
14768         * df-scan.c: Include emit-rtl.h.
14769         * haifa-sched.c: Indlude emit-rtl.h.
14770         * mode-switching.c: Indlude emit-rtl.h.
14771         * graph.c: Indlude emit-rtl.h.
14772         * sel-sched.c: Include emit-rtl.h.
14773         * sel-sched-ir.c: Include emit-rtl.h.
14774         * ira-build.c: Include emit-rtl.h.
14775         * emit-rtl.c (first_insn, last_insn): Remove defines.
14776         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
14777         Move to emit-rtl.h.
14778         (set_new_first_and_last_insn, get_last_insn_anywhere,
14779         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
14780         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
14781         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
14782         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
14783         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
14784         Use accessor functions.
14785         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
14786          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
14787         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
14788         mem_expr_equal_p): Move here from rtl.h.
14789         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
14790         Move here from emit-rtl.c; make inline.
14791         * cfglayout.h: Include emit-rtl.h.
14792         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
14793          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
14794         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
14795         mem_expr_equal_p, get_insns, set_first-insn,
14796         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
14797         * reg-stack.c: Include emit-rtl.h.
14798         * dce.c: Likewise.
14799
14800 2010-06-01  Jan Hubicka  <jh@suse.cz>
14801
14802         * cgraph.h (tree_function_versioning): Update prototype.
14803         (cgraph_function_versioning): Update prototype.
14804         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
14805         bitmap.
14806         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
14807         (cgraph_materialize_clone, save_inline_function_body): Update use of
14808         tree_function_versioning.
14809         * tree-inline.c (copy_bb): Look for previous copied block to link
14810         after; fix debug output.
14811         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
14812         (copy_body): Likewise.
14813         (expand_call_inline): Update use of copy_body.
14814         (tree_function_versioning): Update use of copy body; accept
14815         blocks_to_copy and new_entry.
14816
14817 2010-06-01  Jan Hubicka  <jh@suse.cz>
14818
14819         * gegenrtl.c: Remove unnecesary prototypes.
14820         (gendecl): Remove.
14821         (gendef): Produce static inline.
14822         (gencode): Remove.
14823         (main): Do not decode parameters; generate header only.
14824         * Makefile.in (genrtl.c): Remove.
14825
14826 2010-06-01  Jan Hubicka  <jh@suse.cz>
14827
14828         * tree-switch-conversion.c (build_one_array): Make it readonly.
14829
14830 2010-06-01  Richard Guenther  <rguenther@suse.de>
14831
14832         * optabs.c (init_optabs): Guard all accesses to reinit.
14833         * ipa-pure-const.c (propagate): Fix another typo.
14834         * opts.c (common_handle_option): Split assignment to bool.
14835         * c-opts.c (c_common_handle_option): Likewise.
14836
14837 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
14838             Matthew Gingell  <gingell@adacore.com>
14839
14840         * doc/invoke.texi: Mention -fdump-ada-spec.
14841         * tree-dump.c (dump_files): Add ada-spec.
14842         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
14843         * tree-pass.h (tree_dump_index): Add TDI_ada.
14844         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
14845         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
14846         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
14847         * c-decl.c: Include c-ada-spec.h.
14848         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
14849         functions.
14850         (c_write_global_declarations): Add handling of -fdump-ada-spec.
14851         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
14852         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
14853         * c-ada-spec.h, c-ada-spec.c: New files.
14854
14855 2010-06-01  Richard Guenther  <rguenther@suse.de>
14856
14857         PR lto/43853
14858         * ipa-pure-const.c (get_function_state): Hand back varying state
14859         if we do not have one.
14860         (has_function_state): New function.
14861         (duplicate_node_data): Adjust.
14862         (remove_node_data): Likewise.
14863         (pure_const_write_summary): Likewise.
14864         (propagate): Likewise.  Fix typo.
14865
14866 2010-06-01  Jan Hubicka  <jh@suse.cz>
14867
14868         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
14869         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
14870         (execute_all_ipa_transforms): Do not play with the states.
14871
14872 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14873
14874         * config/arm/t-linux-androideabi: New.
14875         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
14876
14877 2010-06-01  Jan Hubicka  <jh@suse.cz>
14878
14879         * tree-inline.c (estimate_num_insns): For stdarg functions look
14880         into call statement to count cost of argument passing.
14881
14882 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
14883
14884         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
14885         argument for fprintf.
14886         (ix86_output_addr_diff_elt): Likewise.
14887         (x86_function_profiler): Likewise.
14888         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
14889         (LPREFIX): Likewise.
14890         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
14891
14892 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
14893
14894         PR target/44338
14895         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
14896         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
14897         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
14898         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
14899         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
14900         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
14901         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
14902         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
14903         TARGET_FUSED_MADD.
14904
14905 2010-05-31  Jan Hubicka  <jh@suse.cz>
14906
14907         * tree.h (tree_range_check_failed): Declare noreturn.
14908
14909 2010-05-31  Jan Hubicka  <jh@suse.cz>
14910
14911         * gimple.c (gimple_call_builtin_p): New function.
14912         * gimple.h (gimple_call_builtin_p): Declare.
14913         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
14914         to exit.
14915         (execute_warn_function_return): BUILT_IN_RETURN is return.
14916         (split_critical_edges): Return edges are not critical.
14917         (is_ctrl_altering_stmt): Builtin_in_return is altering.
14918         (gimple_verify_flow_info): Handle built_in_return.
14919         (execute_warn_function_return): Handle built_in_return.
14920         * ipa-pure-const.c (check_call): Ignore builtin_return.
14921
14922 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
14923
14924         PR middle-end/44337
14925         * expr.c (expand_assignment): Don't store anything for out-of-bounds
14926         array accesses with non-MEM.
14927
14928         PR tree-optimization/44182
14929         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
14930         newly needs to end a bb is followed by debug stmts, instead return
14931         true from the function at the end.
14932         (maybe_move_debug_stmts_to_successors): New function.
14933         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
14934
14935 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
14936
14937         PR target/44161
14938         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
14939
14940 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
14941
14942         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
14943         for nested functions in non-optimized compilation.
14944
14945 2010-05-31  Richard Guenther  <rguenther@suse.de>
14946
14947         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
14948
14949 2010-05-30  Jan Hubicka  <jh@suse.cz>
14950
14951         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
14952
14953 2010-05-30  Richard Guenther  <rguenther@suse.de>
14954
14955         PR lto/42975
14956         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
14957         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
14958         no longer needed.
14959
14960 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
14961
14962         * config/darwin.c (output_objc_section_asm_op): Add comment.
14963         (name_needs_quotes): Add '_' to list of valid comment chars.
14964         (machopic_output_function_base_name): Remove unneeded quotes.
14965         (darwin_encode_section_info): Adjust asm whitespace.
14966         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
14967         (ASM_OUTPUT_LOCAL): Ditto.
14968         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
14969         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
14970         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
14971
14972 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
14973
14974         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
14975         RS6000_OUTPUT_BASENAME unconditionally.
14976         (rs6000_output_function_epilogue): Likewise.
14977
14978 2010-05-30  Jan Hubicka  <jh@suse.cz>
14979
14980         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
14981         nodes.
14982
14983 2010-05-30  Richard Guenther  <rguenther@suse.de>
14984
14985         * tree-cfg.c (verify_gimple_assign_single): Implement
14986         verification for COND_EXPR rhs.
14987
14988 2010-05-30  Jan Hubicka  <jh@suse.cz>
14989
14990         * cgraph.h (cgraph_dump_file): Declare.
14991         * cgraphunit.c (cgraph_dump_file): Export.
14992         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
14993
14994 2010-05-30  Jan Hubicka  <jh@suse.cz>
14995
14996         * dwarf2out.c (reference_to_unused,
14997         premark_types_used_by_global_vars_helper): Avoid creation of new
14998         varpool nodes.
14999
15000 2010-05-30  Jan Hubicka  <jh@suse.cz>
15001
15002         * cgraph.h (cgraph_node_cannot_return,
15003         cgraph_edge_cannot_lead_to_return): New functions.
15004         * cgraph.c (cgraph_node_cannot_return,
15005         cgraph_edge_cannot_lead_to_return): Use them.
15006         * ipa-pure-const.c (pure_const_names): New static var.
15007         (check_call): Handle calls not leading to return.
15008         (pure_const_read_summary): Dump info read.
15009         (propagate): Dump info about propagation process; ignore side effects
15010         of functions not leading to exit; fix handling of pure functions.
15011
15012 2010-05-30  Jan Hubicka  <jh@suse.cz>
15013
15014         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
15015         for tail call epilogues.
15016
15017 2010-05-30  Jan Hubicka  <jh@suse.cz>
15018
15019         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
15020         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
15021         dump files.
15022
15023 2010-05-29  Jan Hubicka  <jh@suse.cz>
15024
15025         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
15026         node; remove references in node we no longer keep in cgrpah but need
15027         body of.
15028
15029 2010-05-29  Jan Hubicka  <jh@suse.cz>
15030
15031         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
15032
15033 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15034
15035         PR target/44165
15036         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
15037
15038 2010-05-29  Jan Hubicka  <jh@suse.cz>
15039
15040         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
15041         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
15042         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
15043         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
15044         debug_names_replaced_by, debug_update_ssa): Likewise.
15045         * sbitmap.c (debug_sbitmap): Likewise.
15046         * genrecog.c (debug_decision, debug_decision_list): Likewise.
15047         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
15048         debug_tree_chain): Likewise.
15049         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
15050         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
15051         * optabs.c (debug_optab_libfuncs): Likewise.
15052         (verify_loop_closed_ssa): Likewise.
15053         * value-prof.c (verify_histograms): Likewise.
15054         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
15055         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
15056         * cfghooks.c (verify_flow_info): Likewise.
15057         * fold-const.c (debug_fold_checksum): Likewise.
15058         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
15059         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
15060         Likewise.
15061         * omega.c (debug_omega_problem): Likewise.
15062         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
15063         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
15064         * dominance.c (verify_dominators, debug_dominance_info,
15065         debug_dominance_tree): Likewise.
15066         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
15067         * df_regno_debug, df_ref_debug,
15068         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
15069         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
15070         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
15071         * sel-sched.c (debug_state): Likewise.
15072         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
15073         Likewise.
15074         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
15075         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
15076         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
15077         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
15078         Likewise.
15079         * c-pretty-print.c (debug_c_tree): Likewise.
15080         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
15081         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
15082         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
15083         * ebitmap.c (debug_ebitmap): Likewise.
15084         * function.c (debug_find_var_in_block_tree): Likewise.
15085         * print-rtl.c (debug_rtx): Likewise.
15086         (debug_rtx_count): Likewise.
15087         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
15088         * stor-layout.c (debug_rli): Likewise.
15089         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
15090         * tree-data-ref.c (debug_data_references,
15091         debug_data_dependence_relations, debug_data_reference,
15092         debug_data_dependence_relation, debug_rdg_vertex,
15093         debug_rdg_component, debug_rdg): Likewise.
15094         * tree-affine.c (debug_aff): Likewise.
15095         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
15096         Likewise.
15097         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
15098         * emit-rtl.c (verify_rtl_sharing): Likewise.
15099         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
15100         debug_value_expressions): Likewise.
15101         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
15102         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
15103         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
15104         * cfglayout.c (verify_insn_chain): Likewise.
15105         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
15106         debug_clast_stmt, debug_generated_program): Likewise.
15107         * ggc-page.c (debug_print_page_list): Likewise.
15108         * tree-ssa-ter.c (debug_ter): Likewise.
15109         * graphite-dependences.c (debug_pddr): Likewise.
15110         * sched-deps.c (debug_ds): Likewise.
15111         * tree-ssa.c (verify_ssa): Likewise.
15112         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
15113         debug_scattering_functions, debug_iteration_domains, debug_pdr,
15114         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
15115         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
15116         * tree-inline.c (debug_find_tree): Likewise.
15117         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
15118         debug_ppl_powerset_matrix): Likewise.
15119         * var-tracking.c (debug_dv): Likewise.
15120         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
15121         * cfgloop.c (verify_loop_structure): Likewise.
15122         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
15123         * c-common.c (verify_sequence_points): Likewise.
15124         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
15125         debug_candidates, debug_rgn_dependencies): Likewise.
15126         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
15127         * debug_constraint_graph, debug_solution_for_var,
15128         debug_sa_points_to_info): Likewise.
15129         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
15130         Likewie.
15131         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
15132         debug_loops, debug_loop, debug_loop_num): Likewise.
15133         * passes.c (debug_pass): Likewise.
15134         (dump_properties): Likewise; add cfglayout property.
15135         (debug_properties): Likewise.
15136         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
15137         * varpool.c (debug_varpool): Likewise.
15138         * regcprop.c (debug_value_data): Likewise.
15139         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
15140         debug_immediate_uses_for): Likewise.
15141
15142 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
15143
15144         PR bootstrap/44315
15145         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
15146         Filter out insn-flags.h.
15147
15148 2010-05-29  Jan Hubicka  <jh@suse.cz>
15149
15150         * cgraph.h (struct varpool_node_set_def,
15151         struct cgraph_node_set_def): Remove unused AUX pointer.
15152         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
15153         VEC_empty macro.
15154
15155 2010-05-29  Jan Hubicka  <jh@suse.cz>
15156
15157         PR middle-end/44324
15158         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
15159
15160 2010-05-29  Richard Guenther  <rguenther@suse.de>
15161
15162         * lto-streamer.c (cached_bp): New global variable.
15163         (bitpack_create): Return the cached bitpack, if available.
15164         (bitpack_delete): Clear and cache the bitpack, if appropriate.
15165         (bp_pack_value): Remove redundant asserts.
15166
15167 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
15168
15169         PR middle-end/44306
15170         * tree-if-conv.c (is_true_predicate): New.
15171         (is_predicated): Use is_true_predicate.
15172         (add_to_predicate_list): Same.  Do not use unshare_expr.
15173         (add_to_dst_predicate_list): Same.
15174
15175 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
15176
15177         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
15178         field on edges.
15179         (predicate_bbs): Same.
15180         (clean_predicate_lists): Same.
15181         (find_phi_replacement_condition): Do not AND the predicate from
15182         edge->aux.
15183
15184 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
15185
15186         PR bootstrap/44315
15187         * Makefile.in (build/gencondmd.o): Add a missing `\'.
15188
15189 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15190
15191         PR target/44261
15192         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
15193         (negdf2): Adjust expander pattern and use negdf2_slow.
15194         (negsf2): Likewise.
15195
15196 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
15197
15198         * basic-block.h (struct control_flow_graph): Move last_label_uid field
15199         up.
15200         * df.h (struct df_base_ref): Move regno field up.
15201         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
15202         * expr.h (struct separate_ops): Move location field up.
15203         * optabs.h (struct optab_d): Move libcall_basename field down.
15204         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
15205         * config/i386/i386.h (struct machine_function): Convert call_abi field
15206         into a bitfield.  Move cfa field to the end of the structure.
15207
15208 2010-05-29  Jan Hubicka  <jh@suse.cz>
15209
15210         * varpool.c (varpool_get_node): Fix lookup.
15211
15212 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15213
15214         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
15215         RTL specific prototypes with #ifdef RTX_CODE.
15216         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
15217         * config/spu/t-spu-elf: Fix dependencies.
15218
15219         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
15220
15221 2010-05-29  Mike Stump  <mikestump@comcast.net>
15222
15223         PR bootstrap/44315
15224         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
15225         TM_H when building to avoid dependency loops.
15226
15227 2010-05-29  Jan Hubicka  <jh@suse.cz>
15228
15229         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
15230         refs and body; not the whole node for masters of materialized clones.
15231
15232 2010-05-29  Mike Stump  <mikestump@comcast.net>
15233
15234         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
15235
15236 2010-05-29  Jan Hubicka  <jh@suse.cz>
15237
15238         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
15239         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
15240         use of clone_function_name.
15241         * cgraph.h (cgraph_create_virtual_clone,
15242         cgraph_function_versioning): update prototypes.
15243         (clone_function_name): Declare.
15244         * ipa-cp.c (ipcp_insert_stage): Update call of
15245         cgraph_create_virtual_clone.
15246         * omp-low.c (create_omp_child_function_name): Use
15247         cgraph_create_virtual_clone.
15248         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
15249         (cgraph_function_versioning): Take SUFFIX argument; produce new name
15250         and make decl local.
15251
15252 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15253
15254         * vec.h: Include statistics.h
15255         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
15256         with VEC_H.
15257
15258 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15259
15260         * c-lex.c: Do not include c-tree.h.
15261         * c-pretty-print.c: Likewise.
15262         * c-opts.c: Likewise.
15263         * c-gimplify.c: Likewise.
15264         * c-common.c: Likewise.
15265         * c-dump.c: Likewise.  Include c-common.h.
15266
15267 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15268
15269         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
15270         before including diagnostic-core.h.
15271         (c_cpp_error): New prototype moved from c-tree.h.
15272         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
15273         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
15274         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
15275         (c_cpp_error): Prototype moved to c-common.h.
15276         * Makefile.in: Update dependency for C_COMMON_H.
15277
15278 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
15279
15280         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
15281         * c-common.c (c_register_addr_space): Remove here.
15282         * c-decl.c (c_register_addr_space): Re-add here.
15283
15284 2010-05-28  Mike Stump  <mikestump@comcast.net>
15285
15286         * config/darwin-c.c: Remove c-tree.h include.
15287
15288 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15289
15290         * gcc.c: Include diagnostic.h.
15291         (error_count): Remove.  All users changed to use errorcount.
15292         (programname): Remove.  All users changed to use progname.
15293         (fancy_abort, internal_error, fatal_error, error, warning, inform,
15294         fnotice): Remove.
15295         (execute): Don't include "Internal error" and bug reporting
15296         information in argument of internal_error call.
15297         (process_command): Don't increment error_count after calling
15298         perror_with_name.
15299         (input_filename): Rename to gcc_input_filename.  All users
15300         changed.
15301         (main): Call diagnostic_initialize.  Register delete_temp_files
15302         with atexit.  Use seen_error to test for errors.
15303         * gcc.h: Include diagnostic-core.h.
15304         (fatal_error, error, warning): Remove.
15305         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
15306         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
15307         (gcc.o): Update dependencies.
15308
15309 2010-05-28  Jeff Law  <law@redhat.com>
15310
15311         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
15312         functions.
15313         * ira.h (ira_bad_reload_regno): Declare
15314         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
15315
15316         * ira-color.c (update_curr_costs): Free updated hard reg costs.
15317         (ira_reassign_conflict_allocnos): Remove bogus asserts.
15318         (allocno_reload_assign): Likewise.
15319
15320 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
15321
15322         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
15323         build1_stat.
15324
15325 2010-05-28  Richard Guenther  <rguenther@suse.de>
15326
15327         PR lto/44312
15328         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
15329         Stream fixed-point constants mode.
15330         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
15331         and TYPE_PRECISION.
15332         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
15333         Stream fixed-point constants mode.
15334         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
15335         and TYPE_PRECISION.
15336
15337 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
15338
15339         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
15340         only place it was called from.
15341         (number_of_latch_executions): Do not return chrec_dont_know when the
15342         may_be_zero is a runtime condition: instead, return a COND_EXPR
15343         including the may_be_zero condition.
15344         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
15345         of nb_iterations.
15346         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
15347         COND_EXPRs.
15348
15349 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
15350
15351         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
15352         generate COND_EXPRs for degenerate_phi_result.
15353
15354 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
15355
15356         PR middle-end/44293
15357         * tree-if-conv.c (if_convertible_loop_p): Check the
15358         if-convertibility of phi nodes in non predicated BBs.
15359
15360 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15361
15362         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
15363
15364 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15365
15366         PR driver/15303
15367         * gcc.c (inform, warning, inform): New functions.
15368         (fatal_ice): Rename to internal_error; change cmsgid parameter to
15369         gmsgid.  All callers changed.
15370         (notice): Rename to fnotice; add parameter fp.  All callers changed.
15371         (fatal_error): Rename to fatal_signal.  All users changed.
15372         (fatal): Rename to fatal_error; change cmsgid parameter to
15373         gmsgid.  All callers changed.
15374         (process_command): Use warning instead of error for warnings.
15375         (end_going_arg): Don't use _() around argument of error.
15376         (do_spec_1): Use inform for message from %n specs.  Use warning
15377         instead of error for warnings.
15378         (main): Use inform for comparison messages.  Use warning for
15379         message about unused linker input.
15380         (error): Increment error_count.  Print "error: ".
15381         * gcc.h (fatal): Change to fatal_error.
15382         (warning): Declare.
15383         * config/darwin-driver.c (darwin_default_min_version): Use warning
15384         instead of fprintf for warnings.
15385         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
15386
15387 2010-05-28  Julian Brown  <julian@codesourcery.com>
15388
15389         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
15390         (*thumb2_addsi3_compare0_scratch): New.
15391         * config/arm/constraints.md (Pv): New.
15392         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
15393         for ARM mode only.
15394         (*addsi3_compare0_scratch): Likewise.
15395
15396 2010-05-28  Jan Hubicka  <jh@suse.cz>
15397
15398         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
15399         check.
15400         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
15401         only on local statics.
15402
15403 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
15404
15405         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
15406
15407 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
15408
15409         PR bootstrap/44314
15410         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
15411         (OPTION_GLIBC): Define.
15412
15413 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
15414
15415         PR debug/41048
15416         * dwarf2out.c (double_int_type_size_in_bits): New function.
15417         (round_up_to_align): Change first argument and return value to
15418         double_int.
15419         (field_byte_offset): Work internally on double_ints.
15420
15421         PR target/43636
15422         * builtins.c (expand_movstr): Use a temporary pseudo instead
15423         of target even when target is not NULL and not const0_rtx, but
15424         fails movstr predicate.
15425         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
15426
15427 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15428
15429         * final.c (rest_of_clean_state): Use %m in errors instead of
15430         strerror (errno).
15431         * gengtype.c (read_input_list, close_output_files): Use xstrerror
15432         instead of strerror.
15433         * toplev.c (process_options): Use %m in errors instead of strerror
15434         (errno).
15435         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
15436         (errno).
15437
15438 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
15439
15440         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
15441         (ix86_canonical_va_list_type): Make static.  Add declaration.
15442         (ix86_enum_va_list): Make static.  Reindent.
15443         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
15444         (ix86_canonical_va_list_type): Ditto.
15445         (ix86_enum_va_list): Ditto.
15446
15447 2010-05-28  Richard Guenther  <rguenther@suse.de>
15448
15449         * lto-wrapper.c (run_gcc): With -save-temps generate a
15450         user-visible ltrans filename.  Fixup ltrans unit numbering.
15451
15452 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
15453
15454         * c-common.c (c_common_nodes_and_builtins): Replace use
15455         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
15456         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
15457         to ix86_enum_va_list.
15458         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
15459         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
15460         (TARGET_ENUM_VA_LIST_P): Add hook description.
15461         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
15462         * target.h (gcc_target): Add enum_va_list hook.
15463
15464         PR bootstrap/44299
15465         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
15466         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
15467         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
15468
15469 2010-05-28  Alan Modra  <amodra@gmail.com>
15470
15471         PR target/44266
15472         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15473         emit_library_call machinery to set up __tls_get_addr calls.
15474
15475 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15476
15477         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
15478
15479 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
15480
15481         Revert fix for PR c++/44188
15482         * c-common.c (is_typedef_decl): Revert the moving of  this
15483         definition ...
15484         * tree.c (is_typedef_decl): ... here.
15485         (typdef_variant_p): Revert the moving of this  definition
15486         here from cp/tree.c.
15487         * c-common.h (is_typedef_decl): Revert the moving of this
15488         declaration ...
15489         * tree.h (is_typedef_decl): ... here.
15490         (typedef_variant_p): Revert the moving of this  declaration here
15491         from cp/cp-tree.h
15492         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
15493         (gen_tagged_type_die): Revert the splitting out of ...
15494         (gen_type_die_with_usage): ... this function. Revert the anonymous
15495         tagged type handling.
15496         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
15497         typedefs naming anonymous tagged types.
15498
15499 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
15500
15501         * config/rs6000/rs6000-modes.def (PSImode): Delete.
15502
15503 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
15504
15505         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
15506         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
15507         throughout.
15508         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
15509         "xer" to "ca".
15510         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
15511         XER_REGS to CA_REGS throughout.
15512         * config/rs6000/rs6000.h: Same.
15513         (ADDITIONAL_REGISTER_NAMES): Add "xer".
15514         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
15515         that mode_iterator "P" is the size for arithmetic carries as well.
15516         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
15517
15518 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
15519
15520         PR bootstrap/44255
15521         * combine.c (struct rtx_subst_pair): Define unconditionally.
15522         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
15523         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
15524         Call make_compound_operation on pair->to.
15525         (propagate_for_debug): Don't call make_compound_operation here.
15526         Always use simplify_replace_fn_rtx.
15527
15528 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
15529
15530         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
15531         * config/xtensa/xtensa.c (override_options): Check
15532           TARGET_FORCE_NO_PIC and set flag_pic.
15533         * config/xtensa/xtensa.opt: Document -mforce-no-pic
15534
15535 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
15536
15537         PR bootstrap/44299
15538         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
15539         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
15540
15541 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
15542
15543         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
15544         toplev.h.
15545         * diagnostic.c: Don't include toplev.h.
15546         (progname): Define.  Moved from toplev.c.
15547         (seen_error): New function.
15548         * diagnostic.h: Include diagnostic-core.h.
15549         (diagnostic_t, emit_diagnostic): Don't declare here.
15550         * toplev.c (progname): Move to toplev.c.
15551         (emit_debug_global_declarations, compile_file, finalize,
15552         do_compile, toplev_main): Use seen_error.
15553         * toplev.h: Include diagnostic-core.h.
15554         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
15555         internal_error, warning, warning_at, error, error_n, error_at,
15556         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
15557         verbatim, fnotice, progname): Move to diagnostic-core.h.
15558         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
15559         (expand_builtin_expect): Use seen_error.
15560         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
15561         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
15562         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
15563         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
15564         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
15565         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
15566         errorcount for errors.
15567         * c-opts.c (c_common_finish): Use seen_error.
15568         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
15569         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
15570         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
15571         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
15572         (get_coverage_counts): Use seen_error.
15573         * dwarf2out.c (dwarf2out_finish): Use seen_error.
15574         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
15575         gimplify_body): Use seen_error.
15576         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
15577         * ipa-pure-const.c (gate_pure_const): Use seen_error.
15578         * ipa-reference.c (gate_reference): Use seen_error.
15579         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
15580         * lambda-code.c: Include diagnostic-core.h instead of
15581         diagnostic.h.
15582         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
15583         * lto-compress.c: Include diagnostic-core.h instead of
15584         diagnostic.h.
15585         * lto-section-in.c: Include diagnostic-core.h instead of
15586         diagnostic.h.
15587         * lto-streamer-out.c: Include diagnostic-core.h instead of
15588         diagnostic.h.
15589         * lto-streamer.c: Include diagnostic-core.h instead of
15590         diagnostic.h.
15591         (gate_lto_out): Use seen_error.
15592         * matrix-reorg.c: Include diagnostic-core.h instead of
15593         diagnostic.h.
15594         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
15595         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
15596         (gate_expand_omp, lower_omp_1): Use seen_error.
15597         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
15598         (rest_of_decl_compilation, rest_of_type_compilation,
15599         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
15600         * tree-cfg.c (label_to_block_fn): Use seen_error.
15601         * tree-inline.c (optimize_inline_calls): Use seen_error.
15602         * tree-mudflap.c (mudflap_finish_file): Use
15603         seen_error.
15604         * tree-optimize.c (gate_all_optimizations,
15605         gate_all_early_local_passes, gate_all_early_optimizations): Use
15606         seen_error.
15607         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
15608         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
15609         (varpool_remove_unreferenced_decls,
15610         varpool_assemble_pending_decls): Use seen_error.
15611         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
15612         (TOPLEV_H, DIAGNOSTIC_H): Update.
15613         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
15614         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
15615         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
15616         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
15617         coverage.o, lambda-code.o): Update dependencies.
15618
15619 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
15620
15621         PR c++/44188
15622         * c-common.c (is_typedef_decl): Move this definition ...
15623         * tree.c (is_typedef_decl): ... here.
15624         (typdef_variant_p): Move definition here from cp/tree.c.
15625         * c-common.h (is_typedef_decl): Move this declaration ...
15626         * tree.h (is_typedef_decl): ... here.
15627         (typedef_variant_p): Move declaration here from cp/cp-tree.h
15628         * dwarf2out.c (is_naming_typedef_decl): New function.
15629         (gen_tagged_type_die): Split out of ...
15630         (gen_type_die_with_usage): ... this function. When an anonymous
15631         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
15632         is emitted for the typedef.
15633         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
15634         anonymous tagged types.
15635
15636 2010-05-27  Jason Merrill  <jason@redhat.com>
15637
15638         * print-tree.c (debug_vec_tree): New fn.
15639         (print_vec_tree): New fn.
15640         * tree.h: Declare them.
15641         * gdbinit.in (pvt): New command.
15642
15643         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
15644
15645         * gdbinit.in (pdd): New command.
15646
15647 2010-05-27  Jan Hubicka  <jh@suse.cz>
15648
15649         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
15650         (update_caller_keys): Return early if there are no callers;
15651         only update fibheap when decresing the key.
15652         (update_callee_keys): Avoid recursion.
15653         (decide_inlining_of_small_functions): When badness does not match;
15654         re-insert into fibheap.
15655
15656 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
15657
15658         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
15659         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
15660         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
15661         (ALL_HOST_OBJS): Now a union of the above two.
15662         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
15663         all files in ALL_HOST_FRONTEND_OBJS.
15664         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
15665
15666         * c-common.c: Pretend to be a backend file by undefining
15667         IN_GCC_FRONTEND (still need rtl.h here).
15668
15669 2010-05-27  Jan Hubicka  <jh@suse.cz>
15670
15671         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
15672         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
15673
15674 2010-05-27  Jan Hubicka  <jh@suse.cz>
15675
15676         * sched-ebb.c: Rename struct deps to struct deps_desc.
15677         * ddg.c: Likewise.
15678         * sel-sched-ir.c: Likewise.
15679         * sched-deps.c: Likewise.
15680         * sched-int.h: Likewise.
15681         * sched-rgn.c: Likewise.
15682
15683 2010-05-27  Jon Beniston  <jon@beniston.com>
15684
15685         PR 43726
15686         * config/lm32/lm32.h: Remove definition of
15687         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
15688
15689 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15690
15691         PR lto/44230
15692         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
15693
15694 2010-05-27  Richard Guenther  <rguenther@suse.de>
15695
15696         PR tree-optimization/44284
15697         * tree-vect-stmts.c (vectorizable_assignment): Handle
15698         sign-changing conversions as simple copy.
15699
15700 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15701
15702         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
15703         Bionic C library.
15704         (__gthread_active_p): Check for pthread_create if compiling against
15705         Bionic C library.
15706
15707 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15708
15709         Support compilation for Android platform.  Reimplement -mandroid.
15710
15711         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
15712         (*android*): Set ANDROID_DEFAULT.
15713         (arm*-*-linux*): Include linux-android.h.
15714         (arm*-*-eabi*): Don't include previous -mandroid implementation.
15715         * config/arm/eabi.h: Remove, move Android-specific parts ...
15716         * config/linux-android.h: ... here.  New file.
15717         * config/arm/eabi.opt: Rename to ...
15718         * config/linux-android.opt: ... this.
15719         (mandroid): Allow -mno-android option.  Initialize based on
15720         ANDROID_DEFAULT.
15721         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
15722         Move logic to corresponding LINUX_TARGET_* macros.
15723         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
15724         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
15725         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
15726         Android definitions.
15727         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
15728         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
15729         Document.
15730
15731 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15732
15733         Add support for Bionic C library
15734
15735         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
15736         macro.
15737         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
15738         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
15739
15740         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
15741         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
15742         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
15743         to support multiple C libraries.  Handle Bionic.
15744         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
15745         (BIONIC_DYNAMIC_LINKER64): Define.
15746         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
15747         Update.
15748         (TARGET_HAS_SINCOS): Enable for Bionic.
15749
15750         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
15751         the last option specified on command line take effect.
15752         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
15753         (mbionic): New.
15754         (mglibc, muclibc): Update.
15755
15756         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
15757         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
15758         DEFAULT_LIBC.
15759
15760         * doc/invoke.texi (-mglibc, -muclibc): Update.
15761         (-mbionic): Document.
15762
15763 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15764
15765         * c-common.h (c_register_addr_space): Add prototype.
15766         (ADDR_SPACE_KEYWORD): Remove.
15767         * c-common.c (c_register_addr_space): New function.
15768         (c_addr_space_name): Reimplement.
15769         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
15770
15771         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
15772         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
15773
15774         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
15775         Remove TARGET_ADDR_SPACE_KEYWORDS.
15776
15777 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
15778
15779         * input.c: New file.
15780         * input.h (main_input_filename): Move declaration to toplev.h.
15781         * toplev.c (input_location, line_table): Move to input.c
15782         * toplev.h (main_input_filename): Move declaration from input.h.
15783         * tree.c (expand_location): Move to input.c.
15784         * Makefile.in (OBJS-common): Add input.o.
15785         (input.o): Add dependencies.
15786
15787 2010-05-27  Richard Guenther  <rguenther@suse.de>
15788
15789         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
15790         for non-existant files.
15791         (fork_execute): Mark args_name file as deleted.
15792
15793 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
15794
15795         PR bootstrp/44287
15796         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
15797         (narrow_signed_type): Likewise.
15798
15799 2010-05-26  Jan Hubicka  <jh@suse.cz>
15800
15801         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
15802         edge only when checking is enabled; check using former_clone_of;
15803         check inline clones too.
15804         (cgraph_materialize_clone): Record former_clone_of pointer.
15805         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
15806         combining redirections; dump args_to_skip bitmap
15807         (cgraph_materialize_all_clones): Do no redirection here.
15808         * ipa-inline.c (inline_transform): Do redirection here.
15809         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
15810         cheking only).
15811
15812 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15813
15814         * config/avr/avr-c.c: Do not include regs.h.
15815         Include cpplib.h for cpp_define and tree.h for c-common.h.
15816         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
15817         * config/avr/t-avr: Fix dependencies for avr-c.o.
15818
15819 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15820
15821         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
15822         string instead of SYMBOL_REF rtx.
15823         * rtl.h (set_stack_check_libfunc): Move prototype from here...
15824         * libfuncs.h: ...to here.  Adjust for explow.c change.
15825
15826 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
15827
15828         * pretty-print.c: Don't include ggc.h.
15829         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
15830         (identifier_to_locale): Use them for allocation.
15831         * pretty-print.h (identifier_to_locale_alloc,
15832         identifier_to_locale_free): Declare.
15833         * toplev.c (alloc_for_identifier_to_locale): New.
15834         (general_init): Set identifier_to_locale_alloc and
15835         identifier_to_locale_free.
15836         * Makefile.in (pretty-print.o): Update dependencies.
15837
15838 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15839
15840         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
15841         pointer types if they have different alignment or mode.
15842
15843 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
15844
15845         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15846         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15847         * config/sparc/sparc-protos.h (function_value): Remove declaration.
15848         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
15849         sparc_function_value_regno_p): New functions.
15850         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15851         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15852         (function_value): Rename to...
15853         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
15854         argument to 'outgoing'.
15855         (function_arg_record_value, function_arg_union_value,
15856         function_arg_vector_value): Update comment.
15857
15858 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15859
15860         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
15861         (fde_needed_for_eh_p): New predicate.
15862         (output_call_frame_info): Use it throughout to decide whether FDEs
15863         are needed for EH purpose.
15864         (dwarf2out_begin_prologue): Reorder assignments.
15865
15866 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15867
15868         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
15869         special case loop->header.
15870         (is_predicated): New.
15871         (if_convertible_loop_p): Call it.
15872
15873 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15874
15875         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
15876         iterator in parameter.  Do not generate code during the analysis.
15877         (tree_if_convert_cond_stmt): Removed.
15878         (tree_if_convert_stmt): Removed.
15879         (predicate_bbs): New.
15880         (if_convertible_loop_p): Call predicate_bbs.
15881         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
15882         now contains all the analysis part.
15883
15884 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15885
15886         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
15887         statements in the analysis part.
15888         (tree_if_convert_stmt): Update comment.
15889         (remove_conditions_and_labels): New.
15890         (combine_blocks): Call remove_conditions_and_labels.
15891         (tree_if_conversion): Update comment.
15892
15893 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15894
15895         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
15896         than 2 predecessors or more than 2 successors.
15897
15898 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15899
15900         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
15901         of loops in which the data dependence analysis fails.
15902
15903 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15904
15905         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
15906         CDI_POST_DOMINATORS.
15907         (tree_if_conversion): Same.
15908
15909 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15910
15911         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
15912
15913 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15914
15915         * tree-if-conv.c: Update copyright years.  Fix comments.
15916         Fix indentation.
15917
15918 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
15919
15920         * builtin-types.def (BT_INT128): New primitive type.
15921         (BT_UINT128): Likewise.
15922         * c-common.c (c_common_r): Add __int128 keyword.
15923         (c_common_type_for_size): Handle __int128.
15924         (c_common_type_for_mode): Likewise.
15925         (c_common_signed_or_unsigned_type): Likewise.
15926         (c_common_nodes_and_builtins): Add builtin type
15927         if target supports 128-bit integer scalar.
15928         * c-common.h (enum rid): Add RID_INT128.
15929         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
15930         if target supports 128-bit integer scalar.
15931         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
15932         (finish_declspecs): Likewise.
15933         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
15934         (c_token_starts_declspecs): Likewise.
15935         (c_parser_declspecs): Likewise.
15936         (c_parser_attributes): Likewise.
15937         (c_parser_objc_selector): Likewise.
15938         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
15939         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
15940         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
15941         * tree.c (make_or_reuse_type): Likewise.
15942         (make_unsigned_type): Likewise.
15943         (build_common_tree_nodes_2): Likewise.
15944         * tree.h (enum integer_type_kind): Add itk_int128 and
15945         itk_unsigned_int128.
15946         (int128_integer_type_node): New define.
15947         (int128_unsigned_type_node): New define.
15948         * doc/extend.texi: Add documentation about __int128 type.
15949
15950 2010-05-26  Richard Guenther  <rguenther@suse.de>
15951
15952         * tree-ssa-sccvn.c (copy_nary): Adjust.
15953         (copy_phis): Rename to ...
15954         (copy_phi): ... this.  Adjust.
15955         (copy_references): Rename to ...
15956         (copy_reference): ... this.  Adjust.
15957         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
15958         result into the valid table.
15959
15960 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15961
15962         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
15963         insn-config.h, insn-codes.h, recog.h, and optabs.h.
15964
15965 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15966
15967         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
15968
15969 2010-05-26  Richard Guenther  <rguenther@suse.de>
15970
15971         * opts.c (common_handle_option): Handle OPT_Ofast.
15972
15973 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
15974
15975         * diagnostic.c: Don't include opts.h.
15976         (permissive_error_option): Define.
15977         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
15978         for classify_diagnostic.  Don't use memset for
15979         classify_diagnostic.  Initialize new and recently added fields.
15980         (diagnostic_classify_diagnostic): Use context->n_opts instead of
15981         N_OPTS.
15982         (diagnostic_report_diagnostic): Pass context parameter to
15983         diagnostic_report_warnings_p.  Use option_enabled and option_name
15984         hooks from context.
15985         (emit_diagnostic): Use permissive_error_option.
15986         (permerror): Likewise.
15987         * diagnostic.h: Don't include options.h.
15988         (struct diagnostic_context): Add n_opts, opt_permissive,
15989         inhibit_warnings, warn_system_headers, option_enabled and
15990         option_name fields.  Change classify_diagnostic to a pointer.
15991         * opts-diagnostic.h: New file.
15992         * opts.c: Include opts-diagnostic.h.
15993         (common_handle_option): Set global_dc fields for -Wfatal-errors,
15994         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
15995         (option_name): New function.
15996         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
15997         (c_common_handle_option): Set global_dc->permissive for
15998         -fpermissive.
15999         * c-common.c (c_cpp_error): Save and restore
16000         global_dc->warn_system_headers, not variable warn_system_headers.
16001         * toplev.c: Include opts-diagnostic.h.
16002         (general_init): Update call to diagnostic_initialize.  Set
16003         global_dc->show_column, global_dc->option_enabled and
16004         global_dc->option_name.
16005         (process_options): Don't set global_dc fields here.
16006         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
16007         (diagnostic.o, opts.o, toplev.o): Update dependencies.
16008
16009 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16010
16011         * config/picochip/picochip.md (movsi): Split a movsi from a
16012         const after reload.
16013
16014 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16015
16016         * ggc-zone.c: Update copyright year.
16017         (poison_region): Mark memory for Valgrind as undefined before
16018         memset () call and inaccessible afterwards.
16019         (ggc_pch_total_size): Change type of i to int.
16020
16021 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16022
16023         * ggc-common.c (ggc_free_overhead): Allow empty slot.
16024
16025 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16026
16027         * ggc-common.c: Update copyright year.
16028         (ggc_rlimit_bound): Remove prototype.  Compile only if
16029         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
16030         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
16031         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
16032         (ggc_min_heapsize_heuristic): Likewise.
16033
16034 2010-05-26  Richard Guenther  <rguenther@suse.de>
16035
16036         PR rtl-optimization/44164
16037         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
16038         no-common access-path disambiguation.
16039         (indirect_ref_may_alias_decl_p): Adjust.
16040         (indirect_refs_may_alias_p): Likewise.
16041         (refs_may_alias_p_1): Likewise.
16042
16043 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
16044
16045         * c-typeck.c: Do not include expr.h.
16046
16047 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
16048
16049         * rtl.h (decl_default_tls_model): Move prototype from here...
16050         * output.h: ...to here.
16051         * c-decl.c: Do not include rtl.h.
16052         * c-pragma.c: Likewise.
16053         * c-parser.c: Likewise.
16054         * c-gimplify.c: Likewise.  And also not hard-reg-set.
16055         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
16056         FIXME note for it.  Add a FIXME note for expr.h.
16057         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
16058         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
16059         defined.
16060
16061 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
16062
16063         PR target/44199
16064         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
16065         or total_size is larger than red zone size for non-V4 ABI, emit a
16066         stack_tie resp. frame_tie insn before stack pointer restore.
16067         * config/rs6000/rs6000.md (frame_tie): New insn.
16068
16069 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
16070
16071         * function.h (struct function): Add can_throw_non_call_exceptions bit.
16072         * lto-streamer-in.c (input_function): Stream it in.
16073         * lto-streamer-out.c (output_function): Stream it out.
16074         * function.c (allocate_struct_function): Set it.
16075         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
16076         for flag_non_call_exceptions.
16077         * cfgbuild.c (control_flow_insn_p): Likewise.
16078         (make_edges): Likewise.
16079         * cfgexpand.c (expand_stack_alignment): Likewise.
16080         * combine.c (distribute_notes): Likewise.
16081         * cse.c (cse_extended_basic_block): Likewise.
16082         * except.c (insn_could_throw_p): Likewise.
16083         * gcse.c (simple_mem): Likewise.
16084         * ipa-pure-const.c (check_call): Likewise.
16085         (check_stmt ): Likewise.
16086         * lower-subreg.c (lower-subreg.c): Likewise.
16087         * optabs.c (emit_libcall_block): Likewise.
16088         (prepare_cmp_insn): Likewise.
16089         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
16090         * postreload.c (rest_of_handle_postreload): Likewise.
16091         * reload1.c (reload_as_needed): Likewise.
16092         (emit_input_reload_insns): Likewise.
16093         (emit_output_reload_insns): Likewise.
16094         (fixup_abnormal_edges): Likewise.
16095         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
16096         * store-motion.c (find_moveable_store): Likewise.
16097         * tree-eh.c (stmt_could_throw_p): Likewise.
16098         (tree_could_throw_p): Likewise.
16099         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16100         * config/arm/arm.c (arm_expand_prologue): Likewise.
16101         (thumb1_expand_prologue): Likewise.
16102         * config/rx/rx.md (cbranchsf4): Likewise.
16103         (cmpsf): Likewise.
16104         * config/s390/s390.c (s390_emit_prologue): Likewise.
16105         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
16106         (inline_forbidden_into_p): New predicate.
16107         (expand_call_inline): Use it to forbid inlining.
16108         (tree_can_inline_p): Likewise.
16109
16110 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
16111
16112         * config/i386/i386-c.c: Do not include rtl.h.
16113         * config/i386/t-i386: Update dependencies.
16114
16115 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
16116
16117         * attribs.c: Do not include rtl.h.
16118         * Makefile.in: Update dependencies.
16119
16120 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
16121
16122         * double-int.h (double_int_and): New.
16123         * combine.c (try_combine): Clean up, use double_int_* and
16124         immed_double_int_const functions.
16125
16126 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16127
16128         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
16129         stderr to /dev/null instead of grep -q.
16130         * configure: Regenerate.
16131
16132 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
16133
16134         * Makefile.in (EXCEPT_H): Fix typo.
16135
16136 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
16137
16138         * ira-build.c (update_conflict_hard_reg_costs): New.
16139         (ira_build): Call update_conflict_hard_reg_costs.
16140
16141 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
16142
16143         PR debug/41371
16144         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
16145         ENABLE_CHECKING.
16146         (intersect_loc_chains): Walk the s2var's loc_chain together
16147         with s1node chain as long as the locations are equal, don't
16148         call find_loc_in_1pdv in that case.
16149
16150         PR debug/42801
16151         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
16152         (copy_bind_expr): ... instead of here.
16153         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
16154         if the block hasn't been remapped.
16155         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
16156         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
16157
16158 2010-05-25  Richard Guenther  <rguenther@suse.de>
16159
16160         PR middle-end/44069
16161         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
16162         out-of-bounds array accesses.
16163
16164 2010-05-25  Richard Guenther  <rguenther@suse.de>
16165
16166         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
16167         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
16168         (run_gcc): Re-organize to make cleanup easier.
16169
16170 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16171
16172         * config/s390/s390.c (optimization_options): Fix and move the
16173         flag_prefetch_loop_arrays override ...
16174         (override_options): ... here.
16175
16176 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
16177
16178         * diagnostic.c: Don't include plugin.h.
16179         (diagnostic_report_diagnostic): Don't handle plugins specially
16180         here.  Pass context to internal_error callback.
16181         * diagnostic.h (struct diagnostic_context): Add context parameter
16182         to internal_error callback.
16183         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
16184         * plugin.h (struct diagnostic_context): Declare.
16185         (warn_if_plugins, plugins_internal_error_function): Declare.
16186         * toplev.c (general_init): Set global_dc->internal_error.
16187         * Makefile.in (diagnostic.o): Update dependencies.
16188
16189 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
16190
16191         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
16192         * config/rs6000/t-darwin64: New.
16193         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
16194         build crt2.
16195
16196 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
16197
16198         PR 44203
16199         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
16200         match the original (and intended) behaviour before r159557.  This
16201         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
16202         in two ways.
16203
16204 2010-05-25  Richard Guenther  <rguenther@suse.de>
16205
16206         * doc/invoke.texi: Document -Ofast.
16207         * target.h (struct gcc_target): Add handle_ofast.
16208         * target-def.h (TARGET_HANDLE_OFAST): Add.
16209         (TARGET_INITIALIZER): Adjust.
16210         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
16211         * common.opt (Ofast): Add.
16212
16213 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
16214
16215         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
16216         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
16217
16218 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
16219
16220         PR target/43610
16221         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
16222         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
16223         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
16224         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
16225
16226 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
16227
16228         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
16229         DW_OP_minus with negated offset instead of DW_OP_plus.
16230         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
16231
16232 2010-05-25  Wei Guozhi  <carrot@google.com>
16233
16234         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
16235         tst instruction and a new alternative.
16236         * config/arm/constraints.md (Pu): New constraint.
16237
16238 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
16239
16240         * function.c (assign_stack_local_1): Initialize variable
16241         to avoid warning when bootstrapping at -O3.
16242
16243 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
16244
16245         * configure.ac (all_lang_makefiles): Remove everything related to it.
16246         * configure: Regenerate.
16247         * Makefile.in: Fix reference to ada Make-lang.in.
16248         Remove support for LANG_MAKEFILES.
16249
16250 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
16251             Sandra Loosemore  <sandra@codesourcery.com>
16252
16253         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
16254         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
16255         description.  Add arm_neon_fp16_ok.
16256         (Add Options): Add arm_neon and arm_neon_fp16.
16257
16258 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
16259
16260         * diagnostic.c: Don't include flags.h.
16261         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
16262         context parameters.  Check flags in the context passed as a parameter.
16263         (diagnostic_build_prefix): Add context parameter.  Check
16264         show_column flag in context.
16265         (diagnostic_action_after_output): Check fatal_errors flag in context.
16266         (diagnostic_report_current_module): Check show_column flag in context.
16267         (default_diagnostic_starter): Update call to
16268         diagnostic_build_prefix.
16269         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
16270         (emit_diagnostic): Pass context to permissive_error_kind.
16271         (permerror): Pass context to permissive_error_kind.
16272         * diagnostic.h (struct diagnostic_context): Add show_column,
16273         pedantic_errors, permissive and fatal_errors fields.
16274         (diagnostic_build_prefix): Update prototype.
16275         * langhooks.c
16276         * toplev.c (process_options): Set flags in global_dc from
16277         flag_show_column, flag_pedantic_errors, flag_permissive,
16278         flag_fatal_errors.
16279         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
16280         to diagnostic_build_prefix.
16281         * Makefile.in (diagnostic.o): Update dependencies.
16282
16283 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16284
16285         * config/i386/ia32intrin.h (__crc32q): Define only if
16286         __SSE4_2__ is defined.
16287
16288 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
16289
16290         PR target/44132
16291         PR middle-end/43602
16292         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
16293         DECL_VISIBILITY_SPECIFIED.
16294         (emutls_decl): Set DECL_PRESERVE_P and copy
16295         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
16296         (emutls_finalize_control_var): New callback.
16297         (emutls_finish): Finalize emutls control variables.
16298         * toplev.c (compile_file): Move the call to emutls_finish ()
16299         before varpool_assemble_pending_decls ().
16300
16301 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
16302
16303         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
16304         added to the preprocessor condition.
16305
16306 2010-05-24  Paul Brook  <paul@codesourcery.com>
16307
16308         * gengtype-lex.l: Add HARD_REG_SET.
16309         * expr.c (expand_expr_real_1): Record writes to hard registers.
16310         * function.c (rtl_data): Add asm_clobbers.
16311         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
16312         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
16313         Use crtl->asm_clobbers.
16314
16315 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16316
16317         * doc/makefile.texi (Makefile): Mention stages 'profile'
16318         and 'feedback' for profiledbootstrap.
16319
16320 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16321
16322         PR target/44245
16323         * config/i386/i386.c (def_builtin): Properly check
16324         OPTION_MASK_ISA_64BIT.
16325
16326 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
16327
16328         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
16329         typedefs with different but compatible types.  Allow duplicate
16330         typedefs with the same type except for pedantic non-C1X, but give
16331         warning for variably modified types.
16332         * c-typeck.c (tagged_types_tu_compatible_p,
16333         function_types_compatible_p, type_lists_compatible_p,
16334         comptypes_internal): Add parameter different_types_p; set
16335         *different_types_p for different but compatible types.  All
16336         callers changed.
16337         (comptypes_check_different_types): New.
16338         * c-tree.h (comptypes_check_different_types): Declare.
16339
16340 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
16341
16342         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
16343         * jump.c: Include basic-block.h.
16344         * profile.c: Likewise.
16345         * tree-profile.c: Likewise.
16346         * coverage.c: Likewise.
16347         * basic-block.h (optimize_function_for_size_p): Move to function.h.
16348         (optimize_function_for_speed_p): Likewise.
16349         * function.h (optimize_function_for_size_p,
16350         optimize_function_for_speed_p): Moved here from basic-block.h.
16351         * Makefile.in: Update dependencies.
16352
16353 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16354
16355         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
16356         before calling make; allow override through $MAKE.
16357         * doc/invoke.texi (Optimize Options): Document override.
16358
16359 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
16360
16361         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
16362         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16363         (rs6000_mode_dependent_address_ptr): Make static.
16364         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16365         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
16366         Remove.
16367
16368 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
16369
16370         PR target/43869
16371         * config/i386/i386.c: Make sure that the correct regparm is passed.
16372
16373 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
16374
16375         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
16376         * sbitmap.c: ...to here to internalize sbitmap element access.
16377         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
16378         Explain why basic-block.h is included.
16379         * function.h: Include tm.h for CUMULATIVE_ARGS.
16380         * Makefile.in: Update dependencies.
16381
16382 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
16383
16384         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
16385         New core types.
16386         * sbitmap.h (struct sbitmap_def): Do not typedef here.
16387         * sbitmap.c: Include sbitmap.h.
16388         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
16389         hard-reg-set.h.  Split everything related to regsets out from here...
16390         * regset.h: ...to here.  New file.
16391         * df.h: Include regset.h and sbitmap.h.
16392         * tree-flow.h: Likewise.
16393         * cfgloop.h: Likewise.
16394         * except.h: Do not include sbitmap.h.  Include hashtab.h.
16395         * cgraph.h: Include vec.h and function.h.
16396         * reload.h (struct insn_chain): Change types of live_throughout
16397         and dead_or_set from regset_head to bitmap_head.
16398         (compute_use_by_pseudos): Be defined also if regset.h is not included.
16399         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
16400         spilled_regs from regset_head to bitmap_head to avoid dependency
16401         in regset.h.
16402         * sel-sched-ir.h: Include regset.h.
16403         * reload.c: Include df.h before reload.h.
16404         * caller-save.c: Likewise.
16405         * reload1.c: Likewise.
16406         * ira.c: Likewise.
16407         (mark_elimination): Update type of r to bitmap, consistent with
16408         DF_LR_IN.
16409         * dominance.c: Include bitmap.h.
16410         * modulo-sched.c: Include df.h.
16411         * cfganal.c: Include bitmap.h and sbitmap.h.
16412         * cfgbuild.c: Include sbitmap.h.
16413         * lcm.c: Include sbitmap.h.
16414         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
16415         * domwalk.c: Include sbitmap.h, exclude ggc.h.
16416         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
16417         * cselib.c: Include bitmap.h.
16418         * tree-optimize.c: Include regset.h.
16419         * stmt.c: Include bitmap.h.
16420         * Makefile.in: Update dependencies.
16421
16422 2010-05-22  Jan Hubicka  <jh@suse.cz>
16423
16424         * cgraph.h (struct varpool_node): Add same_comdat_group.
16425         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
16426         pointer.
16427         (output_varpool): Update call of lto_output_varpool_node.
16428         (input_varpool): Read same_comdat_group pointer.
16429         (input_varpool_1): Fixup same_comdat_group pointer.
16430         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
16431         group is needed, all are.
16432         * varpool.c (varpool_remove_node): Remove node from same comdat group
16433         linklist too.
16434         (varpool_analyze_pending_decls): Walk same comdat groups.
16435
16436 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
16437
16438         * rtl.h (union rtunion_def): Remove rt_bit member.
16439         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
16440         * print-rtl (print_rtx): Do not print the member.
16441         * gengtype.c (adjust_field_rtx_def): Do not handle it.
16442         * gengenrtl.c (type_from_format): Likewise.
16443         (accessor_from_format): Likewise.
16444
16445 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
16446
16447         * dbgcnt.c: Include toplev.h instead of errors.h.
16448         * ira-emit.c: Don't include errors.h.
16449         * ira.c: Include toplev.h instead of errors.h.
16450         * lto-compress.c: Include toplev.h instead of errors.h.
16451         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
16452         ira.o, dbgcnt.o): Update dependencies.
16453
16454 2010-05-22  Richard Guenther  <rguenther@suse.de>
16455
16456         * gimple.c (gimple_types_compatible_p): Check type qualifications
16457         before merging pointer to complete and pointer to incomplete type.
16458         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
16459         we use our own resolution algorithm.  The gold linker plugin
16460         doesn't do the job we want it to do here.
16461
16462 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
16463
16464         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16465         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16466         (sparc_mode_dependent_address_p): New function.
16467
16468 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16469
16470         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
16471
16472         * timevar.c: Do not include any core headers.
16473         (timevar_print): De-i18n-ize.
16474         (print_time): Likewise.
16475         * timevar.h (timevar_push, timevar_pop): Make inline functions.
16476
16477 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
16478
16479         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
16480         langhooks-def.h.
16481         (diagnostic_initialize): Initialize x_data not last_function.
16482         (diagnostic_report_current_function): Move to tree-diagnostic.c.
16483         (default_diagnostic_starter): Call
16484         diagnostic_report_current_module not
16485         diagnostic_report_current_function.
16486         (diagnostic_report_diagnostic): Initialize x_data not
16487         abstract_origin.
16488         (verbatim): Likewise.
16489         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
16490         x_data.
16491         (struct diagnostic_context): Change last_function to x_data.
16492         (diagnostic_auxiliary_data): Replace with
16493         diagnostic_context_auxiliary_data and
16494         diagnostic_info_auxiliary_data.
16495         (diagnostic_last_function_changed, diagnostic_set_last_function,
16496         diagnostic_report_current_function): Move to tree-diagnostic.h.
16497         (print_declaration, dump_generic_node, print_generic_stmt,
16498         print_generic_stmt_indented, print_generic_expr,
16499         print_generic_decl, debug_c_tree, dump_omp_clauses,
16500         print_call_name, debug_generic_expr, debug_generic_stmt,
16501         debug_tree_chain, default_tree_printer): Move to
16502         tree-pretty-print.h.
16503         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
16504         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
16505         gimple-pretty-print.h.
16506         * pretty-print.c: Don't include tree.h
16507         (pp_base_format): Don't handle %K here.
16508         (pp_base_tree_identifier): Move to tree-pretty-print.c.
16509         * pretty-print.h (text_info): Change abstract_origin to x_data.
16510         (pp_tree_identifier, pp_unsupported_tree,
16511         pp_base_tree_identifier): Move to tree-pretty-print.h.
16512         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
16513         tree-pretty-print.h: New files.
16514         * tree-pretty-print.c: Include tree-pretty-print.h.
16515         (percent_K_format): New.  Moved from pretty-print.c.
16516         (pp_base_tree_identifier): Move from pretty-print.c.
16517         * c-objc-common.c: Include tree-pretty-print.h.
16518         (c_tree_printer): Handle %K here.
16519         * langhooks.c: Include tree-diagnostic.h.
16520         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
16521         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
16522         (default_tree_printer): Handle %K using percent_K_format.
16523         (general_init): Use default_tree_diagnostic_starter.
16524         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
16525         (free_lang_data): Use default_tree_diagnostic_starter.
16526         * c-pretty-print.c: Include tree-pretty-print.h.
16527         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16528         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16529         * dwarf2out.c: Include tree-pretty-print.h.
16530         * except.c: Include tree-pretty-print.h.
16531         * gimple-pretty-print.c: Include tree-pretty-print.h and
16532         gimple-pretty-print.h.
16533         * gimplify.c: Include tree-pretty-print.h.
16534         * graphite-poly.c: Include tree-pretty-print.h and
16535         gimple-pretty-print.h.
16536         * ipa-cp.c: Include tree-pretty-print.h.
16537         * ipa-inline.c: Include gimple-pretty-print.h.
16538         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16539         * ipa-pure-const.c: Include gimple-pretty-print.h.
16540         * ipa-struct-reorg.c: Include tree-pretty-print.h and
16541         gimple-pretty-print.h.
16542         * ipa-type-escape.c: Include tree-pretty-print.h.
16543         * print-rtl.c: Include tree-pretty-print.h.
16544         * print-tree.c: Include gimple-pretty-print.h.
16545         * sese.c: Include tree-pretty-print.h.
16546         * tree-affine.c: Include tree-pretty-print.h.
16547         * tree-browser.c: Include tree-pretty-print.h.
16548         * tree-call-cdce.c: Include gimple-pretty-print.h.
16549         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16550         * tree-chrec.c: Include tree-pretty-print.h.
16551         * tree-data-ref.c: Include tree-pretty-print.h and
16552         gimple-pretty-print.h.
16553         * tree-dfa.c: Include tree-pretty-print.h.
16554         * tree-if-conv.c: Include tree-pretty-print.h and
16555         gimple-pretty-print.h.
16556         * tree-inline.c: Include tree-pretty-print.h.
16557         * tree-into-ssa.c: Include tree-pretty-print.h and
16558         gimple-pretty-print.h.
16559         * tree-nrv.c: Include tree-pretty-print.h.
16560         * tree-object-size.c: Include tree-pretty-print.h and
16561         gimple-pretty-print.h.
16562         * tree-outof-ssa.c: Include tree-pretty-print.h and
16563         gimple-pretty-print.h.
16564         * tree-parloops.c: Include tree-pretty-print.h and
16565         gimple-pretty-print.h.
16566         * tree-predcom.c: Include tree-pretty-print.h and
16567         gimple-pretty-print.h.
16568         * tree-scalar-evolution.c: Include tree-pretty-print.h and
16569         gimple-pretty-print.h.
16570         * tree-sra.c: Include tree-pretty-print.h.
16571         * tree-ssa-address.c: Include tree-pretty-print.h.
16572         * tree-ssa-alias.c: Include tree-pretty-print.h.
16573         * tree-ssa-ccp.c: Include tree-pretty-print.h and
16574         gimple-pretty-print.h.
16575         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
16576         * tree-ssa-copy.c: Include tree-pretty-print.h and
16577         gimple-pretty-print.h.
16578         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
16579         * tree-ssa-dce.c: Include tree-pretty-print.h and
16580         gimple-pretty-print.h.
16581         * tree-ssa-dom.c: Include tree-pretty-print.h and
16582         gimple-pretty-print.h.
16583         * tree-ssa-dse.c: Include gimple-pretty-print.h.
16584         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
16585         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
16586         * tree-ssa-live.c: Include tree-pretty-print.h and
16587         gimple-pretty-print.h.
16588         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
16589         gimple-pretty-print.h.
16590         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
16591         gimple-pretty-print.h.
16592         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
16593         gimple-pretty-print.h.
16594         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
16595         gimple-pretty-print.h.
16596         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
16597         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
16598         * tree-ssa-operands.c: Include tree-pretty-print.h and
16599         gimple-pretty-print.h.
16600         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
16601         gimple-pretty-print.h.
16602         * tree-ssa-pre.c: Include tree-pretty-print.h and
16603         gimple-pretty-print.h.
16604         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
16605         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
16606         gimple-pretty-print.h.
16607         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
16608         gimple-pretty-print.h.
16609         * tree-ssa-sink.c: Include gimple-pretty-print.h.
16610         * tree-ssa-ter.c: Include tree-pretty-print.h and
16611         gimple-pretty-print.h.
16612         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
16613         * tree-ssa.c: Include tree-pretty-print.h and
16614         gimple-pretty-print.h.
16615         * tree-stdarg.c: Include gimple-pretty-print.h.
16616         * tree-switch-conversion.c: Include gimple-pretty-print.h.
16617         * tree-tailcall.c: Include tree-pretty-print.h and
16618         gimple-pretty-print.h.
16619         * tree-vect-data-refs.c: Include tree-pretty-print.h and
16620         gimple-pretty-print.h.
16621         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
16622         gimple-pretty-print.h.
16623         * tree-vect-loop.c: Include tree-pretty-print.h and
16624         gimple-pretty-print.h.
16625         * tree-vect-patterns.c: Include gimple-pretty-print.h.
16626         * tree-vect-slp.c: Include tree-pretty-print.h and
16627         gimple-pretty-print.h.
16628         * tree-vect-stmts.c: Include tree-pretty-print.h and
16629         gimple-pretty-print.h.
16630         * tree-vectorizer.c: Include tree-pretty-print.h.
16631         * tree-vrp.c: Include tree-pretty-print.h and
16632         gimple-pretty-print.h.
16633         * value-prof.c: Include tree-pretty-print.h and
16634         gimple-pretty-print.h.
16635         * var-tracking.c: Include tree-pretty-print.h.
16636         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
16637         (tree-diagnostic.o): New dependencies.
16638         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
16639         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
16640         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
16641         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
16642         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
16643         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
16644         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
16645         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
16646         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
16647         tree-ssa-address.o, tree-ssa-loop-niter.o,
16648         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
16649         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
16650         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
16651         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
16652         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
16653         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
16654         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
16655         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
16656         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
16657         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
16658         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
16659         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
16660         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
16661         tree-switch-conversion.o, var-tracking.o, value-prof.o,
16662         cfgexpand.o, pretty-print.o): Update dependencies.
16663
16664 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
16665
16666         * tree-ssa-structalias.c: Remove tm_p.h from include.
16667
16668 2010-05-21  Jeff Law  <law@redhat.com>
16669
16670         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
16671
16672 2010-05-21  Jason Merrill  <jason@redhat.com>
16673
16674         * tree-eh.c (cleanup_is_dead_in): New.
16675         (lower_try_finally): Don't generate a dead cleanup region.
16676         (lower_cleanup): Likewise.
16677
16678 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
16679
16680         PR debug/44223
16681         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
16682         unchain each use from the cyclic next_regno_use chain first.
16683
16684 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16685
16686         * real: Do not include gmp.h, mpfr.h, and mpc.h.
16687         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
16688         (real_value_negate, real_value_abs): New prototypes.
16689         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
16690         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
16691         new include file for interface between MPFR and REAL_VALUE_TYPE.
16692         * real.c: Include realmpfr.h.
16693         (real_arithmetic2): Remove legacy function.
16694         (real_value_negate): New.
16695         (real_value_abs): New.
16696         (mfpr_from_real, real_from_mpfr): Move from here...
16697         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
16698         * builtins.c: Include realmpfr.h.
16699         * fold-const.c: Include realmpfr.h.
16700         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
16701         (fold_negate_const): Likewise.
16702         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
16703         * toplev.c: Include realmpfr.h.
16704         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
16705         and real_value_negate.
16706         * fixed-value.c (check_real_for_fixed_mode): Likewise.
16707         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
16708         (vfp3_const_double_index): Likewise.
16709         (arm_print_operand): Likewise.
16710         * Makefile.in: Update dependencies.
16711
16712 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16713
16714         * config/s390/s390.c (override_options): Increase the default
16715         of max-completely-peel-times.
16716
16717 2010-05-21  Julian Brown  <julian@codesourcery.com>
16718             Mark Mitchell  <mark@codesourcery.com>
16719
16720         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
16721         sibling calls for Thumb-1.
16722         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
16723         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
16724         Thumb-2.
16725         (*call_insn, *call_value_insn): Don't use for Thumb-2.
16726         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
16727         for Thumb-2.
16728         (return): New expander.
16729         (*arm_return): New name for ARM return insn.
16730         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
16731
16732 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
16733
16734         * config.gcc (sparc64-*-rtems*): New target.
16735
16736 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
16737
16738         * tree.c (build_function_decl_skip_args): Fix grammar.
16739         (build_function_type_list_1): Fix typos, adjust formatting.
16740
16741 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16742
16743         * tree.h: Include real.h and fixed-value.h as basic datatypes.
16744         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
16745         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
16746         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
16747         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
16748         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
16749         tree-pretty-print.c, tree-loop-distribution.c,
16750         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
16751         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
16752         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
16753         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
16754         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
16755         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
16756         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
16757         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
16758         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
16759         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
16760         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
16761         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
16762         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
16763         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
16764         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
16765         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
16766         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
16767         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
16768         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
16769         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
16770         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
16771         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
16772         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
16773         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
16774         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
16775         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
16776         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
16777         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
16778         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
16779         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
16780         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
16781         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
16782         config/score/score7.c, config/score/score.c, config/arm/arm.c,
16783         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
16784         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
16785         config/bfin/bfin.c: Clean up redundant includes.
16786         * Makefile.in: Update accordingly.
16787
16788 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
16789
16790         PR middle-end/44204
16791         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
16792         statement has no arguments.
16793
16794 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
16795
16796         PR/44139
16797         * varasm.c (emutls_decl): Merge attributes to new decl.
16798
16799 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16800
16801         PR middle-end/44101
16802         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
16803         around the uniquized constructor if its type requires a conversion.
16804
16805 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
16806
16807         PR debug/44205
16808         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
16809         at -O0 goto_locus of any of the incoming edges differs from
16810         goto_locus of outgoing edge, or gimple_location of any of the
16811         labels differs.
16812
16813 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
16814
16815         * ira.c (ira_non_ordered_class_hard_regs): Define.
16816         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
16817         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
16818         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
16819         cost of unaligned hard regs when allocating multi-reg pseudos.
16820
16821 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
16822
16823         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
16824         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
16825         for TARGET_NO_FLOAT.
16826         * config/mips/mips.c (mips_file_start): Expand conditional expression
16827         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
16828         (mips_override_options): Move -mno-float override -msoft-float and
16829         -mhard-float.
16830         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
16831         Condition(TARGET_SUPPORTS_NO_FLOAT).
16832         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
16833         __mips_no_float here.
16834         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
16835         (TARGET_SUPPORTS_NO_FLOAT): Define.
16836         * config/mips/sdemtk.opt: Delete.
16837
16838 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
16839
16840         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
16841
16842 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
16843
16844         PR target/43733
16845         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
16846         * configure: Regenerate.
16847         * config.in: Regenerate.
16848         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
16849         instead of sahf only for 64bit targets.
16850
16851 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
16852
16853         PR debug/44178
16854         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
16855         setup_ref_regs for DEBUG_INSNs.
16856
16857 2010-05-20  Jan Hubicka  <jh@suse.cz>
16858
16859         PR middle-end/44197
16860         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
16861
16862 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
16863
16864         PR bootstrap/43870
16865         * df-scan.c (df_ref_compare): Stabilize sort.
16866
16867 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
16868
16869         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
16870         argument.  Don't use DW_OP_piece if offset is non-zero,
16871         put offset into second DW_OP_bit_piece argument.
16872         (dw_sra_loc_expr): Adjust callers.  For memory expressions
16873         compute offset.
16874
16875 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
16876
16877         PR target/44202
16878         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
16879         settings for 16-bit-constant "addo" alternative.
16880
16881 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
16882
16883         * config/mips/mips-dsp.md (add<DSPV:mode>3,
16884         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
16885
16886         PR target/43764
16887         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
16888         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
16889         Use it.
16890
16891 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
16892
16893         * diagnostic.c (FLOAT, FFS): Don't undefine.
16894         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
16895         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
16896         include ordering.
16897
16898 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
16899
16900         * combine.c (propagate_for_debug): Call make_compound_operation
16901         on the source value.
16902         (try_combine): When implementing a split chosen by find_split_point,
16903         either copy i2src or set it to null.  Assert that i2src is not null
16904         before substituting into CALL_INSN_FUNCTION_USAGE.
16905
16906 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
16907
16908         * double-int.h (double_int_ior): New function.
16909         * tree.h (build_int_cst_wide_type): Remove.
16910         * tree.c (build_int_cst_wide_type): Remove.
16911         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
16912         of build_int_cst_wide_type.
16913         * stor-layout.c (set_sizetype): (Ditto.).
16914         * dojump.c (do_jump): Use build_int_cstu instead of
16915         build_int_cst_wide_type.
16916
16917 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16918
16919         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
16920         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
16921         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
16922         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
16923         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
16924         propagate the 'data' argument to copy_tree_r.
16925         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
16926         Propagate 'data' argument to walk_tree.
16927         (copy_if_shared): New function.
16928         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
16929         (unmark_visited): New function.
16930         (unshare_body): Call copy_if_shared instead of doing it manually.
16931         (unvisit_body): Call unmark_visited instead of doing it manually.
16932
16933 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
16934
16935         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
16936         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
16937         * hooks.c: Likewise.
16938         * target-def.h (TARGET_FOLD_BUILTIN): Define to
16939         hook_tree_tree_int_treep_bool_null.
16940         * target.h (struct gcc_target): Update signature of fold_builtin
16941         field.
16942         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
16943         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
16944         instead of the call expression.
16945         (fold_builtin_call_array): Pass n and argarray directly.
16946         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
16947         consing a list.
16948         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
16949         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
16950         `i' and use it in place of `arity'.
16951         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
16952         Dereference `args' directly.
16953         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
16954
16955 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16956
16957         * doc/sourcebuild.texi (Effective-Target Keywords): Document
16958         3dnow, sse3, sse2.
16959         (Directives): Document optional dg-require-effective-target
16960         selector.
16961
16962 2010-05-19  Richard Guenther  <rguenther@suse.de>
16963
16964         PR lto/44196
16965         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
16966
16967 2010-05-19  Richard Guenther  <rguenther@suse.de>
16968
16969         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
16970         * common.opt (fwhopr=): New.
16971         * opts.c (common_handle_option): Handle OPT_fwhopr.
16972         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
16973         * collect2.c (main): Match -fwhopr*.
16974         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
16975         Execute ltrans stage in parallel when jobs is bigger than 1.
16976
16977 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16978
16979         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16980         pentiumpro on Solaris 8/x86 with Sun as.
16981         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
16982         hidden alias bug.
16983         (gcc_cv_as_ix86_quad): Check for .quad directive.
16984         * configure: Regenerate.
16985         * config.in: Regenerate.
16986         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
16987
16988 2010-05-19  Martin Jambor  <mjambor@suse.cz>
16989
16990         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
16991         also for indirect edges.  Actual printing moved...
16992         (ipa_print_node_jump_functions_for_edge): ...here.
16993         (ipa_compute_jump_functions): Renamed to
16994         ipa_compute_jump_functions_for_edge and made static.
16995         (ipa_compute_jump_functions): New function.
16996         (make_edge_direct_to_target): Check if the number of arguments on
16997         the newly direct edge is the same as the number of parametrs of
16998         the callee.
16999         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
17000         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
17001         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
17002         analysis functions unconditionally, call the new
17003         ipa_analyze_params_uses on the node instead of every edge.
17004
17005 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
17006
17007         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
17008         to tree.
17009         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
17010         also checks for a constant int vs.  non-constant but
17011         loop-invariant steps.
17012         (find_or_create_group): Change the sort algorithm to only consider
17013         steps that are constant ints.
17014         (idx_analyze_ref): Adopt code to handle a tree instead of a
17015         HOST_WIDE_INT for step.
17016         (gather_memory_references_ref): Handle tree instead of int and be
17017         prepared to see a NULL_TREE.
17018         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
17019         prefetches if the step cannot be calculated at compile time.
17020         (issue_prefetch_ref): Issue prefetches for non-constant but
17021         loop-invariant steps.
17022
17023 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
17024
17025         Revert:
17026         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
17027
17028         * tree.h (build_call_list): Remove.
17029         * tree.c (build_call_list): Remove.
17030
17031 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
17032
17033         * tree.h (build_call_list): Remove.
17034         * tree.c (build_call_list): Remove.
17035
17036 2010-05-18  Jan Hubicka  <jh@suse.cz>
17037
17038         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
17039
17040 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
17041
17042         PR rtl-optimization/43332
17043         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
17044
17045 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
17046
17047         * tree.h (build_int_cstu): Implement as static inline.
17048         * tree.c (build_int_cstu): Remove function.
17049         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
17050         sign extended.
17051
17052 2010-05-18  Richard Guenther  <rguenther@suse.de>
17053
17054         PR lto/44143
17055         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
17056         (debug): Initialize from -save-temps.
17057         (collect_execute): Print command-line when verbose.
17058         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
17059         for ltrans invocation.  Produce -dumpbase flag again.
17060         (process_args): Remove.
17061         (main): Simplify.
17062         * collect2.c (maybe_run_lto_and_relink): Only pass object
17063         files to lto-wrapper.
17064         * gcc.c (LINK_COMMAND_SPEC): Likewise.
17065
17066 2010-05-18  Jan Hubicka  <jh@suse.cz>
17067
17068         * opts.c (decode_options): Do not disable whopr at ipa_cp.
17069         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
17070
17071 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
17072
17073         PR lto/44184
17074         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
17075         in a GIMPLE_ASM.
17076         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
17077         in a GIMPLE_ASM.
17078
17079 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
17080
17081         PR debug/41371
17082         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
17083         rtx_equal_p inline.
17084
17085 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
17086
17087         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
17088         lto-macho as lto_binary_reader.
17089
17090         * darwin.c (darwin_asm_named_section): Do not add assembler comment
17091         after .section directive; just print it before the directive instead.
17092
17093 2010-05-17  Jan Hubicka  <jh@suse.cz>
17094
17095         * cgraph.c (cgraph_create_virtual_clone): Only check
17096         versionable_function_p when not in wpa and checking is enabled.
17097         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
17098         there are no more functions to materialize.
17099
17100 2010-05-17  Jan Hubicka  <jh@suse.cz>
17101
17102         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
17103         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
17104         New functions.
17105         (output_cgraph): Call output_cgraph_opt_summary.
17106         (input_cgrpah): Call input_cgraph_opt_summary.
17107         (output_cgraph_opt_summary_p, output_node_opt_summary,
17108         input_node_opt_summary, input_cgraph_opt_section): New functions.
17109         * lto-section-in.c (lto_section_name): Add cgraphopt.
17110         * tree-inline.c (tree_function_versioning): Handle parm_num.
17111         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
17112         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
17113
17114 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
17115
17116         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
17117         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
17118         the insn to prefetch ratio heuristic to loops with known trip count.
17119
17120 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
17121
17122         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
17123         (schedule_prefetches): Do not generate a prefetch if the unroll factor
17124         is far from what is required by the prefetch.
17125
17126 2010-05-17  Jan Hubicka  <jh@suse.cz>
17127
17128         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
17129         (ipcp_estimate_growth): Likewise.
17130         (ipcp_const_param_count): Likewise.
17131         (ipcp_insert_stage): Likewise.
17132         * ipa-prop.c (visit_load_for_mod_analysis): New function.
17133         (visit_store_addr_for_mod_analysis): Set used flag.
17134         (ipa_detect_param_modifications): Set used flag for SSE params;
17135         update use of walk_stmt_load_store_addr_ops.
17136         (ipa_print_node_params): Print used flag.
17137         (ipa_write_node_info): Stream used flag.
17138         (ipa_read_node_info): Likewise.
17139         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
17140         (ipa_is_param_used): New function.
17141         (lto_ipa_fixup_call_notes): Remove unused declaration.
17142
17143 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17144
17145         PR target/44074
17146         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
17147         * configure: Regenerate.
17148         * config.in: Regenerate.
17149         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
17150         !HAVE_AS_IX86_REP_LOCK_PREFIX.
17151         Don't emit whitespace.
17152         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
17153         (*rep_movsi): Likewise.
17154         (*rep_movsi_rex64): Likewise.
17155         (*rep_movqi): Likewise.
17156         (*rep_movqi_rex64): Likewise.
17157         (*rep_stosdi_rex64): Likewise.
17158         (*rep_stossi): Likewise.
17159         (*rep_stossi_rex64): Likewise.
17160         (*rep_stosqi): Likewise.
17161         (*rep_stosqi_rex64): Likewise.
17162         (*cmpstrnqi_nz_1): Use {%;} after repz.
17163         (*cmpstrnqi_nz_rex_1): Likewise.
17164         (*cmpstrnqi_1): Likewise.
17165         (*cmpstrnqi_rex_1): Likewise.
17166         (*strlenqi_1): Use {%;} after repnz.
17167         (*strlenqi_rex_1): Likewise.
17168         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
17169         (*sync_compare_and_swap<mode>): Likewise.
17170         (sync_double_compare_and_swap<mode>): Likewise.
17171         (*sync_double_compare_and_swapdi_pic): Likewise.
17172         (sync_old_add<mode>): Likewise.
17173         (sync_add<mode>): Likewise.
17174         (sync_sub<mode>): Likewise.
17175         (sync_<code><mode>): Likewise.
17176
17177 2010-05-17  Martin Jambor  <mjambor@suse.cz>
17178
17179         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
17180         otr_token and polymorphic.
17181         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
17182         (cgraph_clone_edge): Copy the above fields.
17183         * tree.c (get_binfo_at_offset): New function.
17184         * tree.h (get_binfo_at_offset): Declare.
17185         * ipa-prop.h (enum jump_func_type): Added known_type jump function
17186         type, reordered items, updated comments.
17187         (union jump_func_value): Added base_type field, reordered fields.
17188         (enum ipa_lattice_type): Moved down in the file.
17189         (struct ipa_param_descriptor): New field polymorphic.
17190         (ipa_is_param_polymorphic): New function.
17191         * ipa-prop.c: Include gimple.h and gimple-fold.h.
17192         (ipa_print_node_jump_functions): Print known type jump functions.
17193         (compute_complex_pass_through): Renamed to...
17194         (compute_complex_assign_jump_func): this.
17195         (compute_complex_ancestor_jump_func): New function.
17196         (compute_known_type_jump_func): Likewise.
17197         (compute_scalar_jump_functions): Create known type and complex ancestor
17198         jump functions.
17199         (ipa_note_param_call): New parameter polymorphic, set the corresponding
17200         flag in the call note accordingly.
17201         (ipa_analyze_call_uses): Renamed to...
17202         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
17203         variable var only in the block where it is used.
17204         (ipa_analyze_virtual_call_uses): New function.
17205         (ipa_analyze_call_uses): Likewise.
17206         (combine_known_type_and_ancestor_jfs): Likewise.
17207         (update_jump_functions_after_inlining): Implemented handling of a
17208         number of new jump function types combination.
17209         (print_edge_addition_message): Removed.
17210         (make_edge_direct_to_target): New function.
17211         (try_make_edge_direct_simple_call): Likewise.
17212         (try_make_edge_direct_virtual_call): Likewise.
17213         (update_call_notes_after_inlining): Renamed to...
17214         (update_indirect_edges_after_inlining): this.  Moved edge creation for
17215         indirect calls to try_make_edge_direct_simple_call, also calls
17216         try_make_edge_direct_virtual_call for virtual calls.
17217         (ipa_print_node_params): Changed the header message.
17218         (ipa_write_jump_function): Stream also known type jump functions.
17219         (ipa_read_jump_function): Likewise.
17220         (ipa_write_indirect_edge_info): Stream new fields in
17221         cgraph_indirect_call_info.
17222         (ipa_read_indirect_edge_info): Likewise.
17223         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
17224         GIMPLE_FOLD_H.
17225
17226 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17227
17228         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
17229
17230 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
17231
17232         * tree.h (CALL_EXPR_ARGS): Delete.
17233         (call_expr_arglist): Delete.
17234         * tree.c (call_expr_arglist): Delete.
17235         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
17236         targetm.fold_builtin.
17237         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
17238         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
17239         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
17240         arglist parameter.  Use CALL_EXPR_ARG.
17241         (picochip_expand_builtin_3op): Likewise.
17242         (picochip_expand_builtin_2opvoid): Likewise.
17243         (picochip_expand_array_get): Likewise.
17244         (picochip_expand_array_put): Likewise.
17245         (picochip_expand_array_testport): Likewise.
17246         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
17247         rather than arglist.
17248         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
17249         CALL_EXPR_ARGS.
17250         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
17251         than TREE_VALUE and TREE_CHAIN.
17252         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17253         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
17254         the arglist.
17255
17256 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
17257
17258         PR bootstrap/42347
17259         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
17260         to have no fallthru edge.
17261
17262         PR middle-end/44102
17263         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
17264         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
17265         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
17266         add BARRIER after previous bb if needed.
17267
17268 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
17269
17270         * tree.c (build_function_type_list_1): Remove bogus assert condition.
17271
17272 2010-05-17  Alan Modra  <amodra@gmail.com>
17273
17274         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
17275         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
17276         with copy_reg rtx param.
17277         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
17278         Correct cases where code for ABI_V4 did not initialise the reg
17279         used to access frame.  Also leave frame_reg_rtx as sp for large
17280         frames that save no regs.
17281
17282 2010-05-17  Martin Jambor  <mjambor@suse.cz>
17283
17284         PR middle-end/44133
17285         * tree-sra.c (create_access_replacement): New parameter rename, mark
17286         the replaement for renaming only when it is true.
17287         (get_access_replacement): Pass true in the rename parameter of
17288         create_access_replacement.
17289         (get_unrenamed_access_replacement): New function.
17290         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
17291         replacement declaration from it.
17292
17293 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
17294
17295         * function.c (try_fit_stack_local, add_frame_space): New static
17296         functions.
17297         (assign_stack_local_1): Use them.  Look for opportunities to use
17298         space previously wasted on alignment.
17299         * function.h (struct frame_space): New.
17300         (struct rtl_data): Add FRAME_SPACE_LIST member.
17301         * reload1.c (something_was_spilled): New static variable.
17302         (alter_reg): Set it.
17303         (reload): Test it in addition to testing if the frame size changed.
17304
17305 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
17306
17307         * config/s390/s390.c: Define sane prefetch settings and activate
17308         flag_prefetch_loop_arrays on -O3.
17309         * config/s390/s390.h: Declare that read can use write prefetch.
17310
17311 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
17312
17313         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
17314         build.
17315
17316 2010-05-16  Jan Hubicka  <jh@suse.cz>
17317
17318         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
17319         function body; do not check stdarg field of struct function.
17320
17321 2010-05-16  Jan Hubicka  <jh@suse.cz>
17322
17323         * cgraph.c (dump_cgraph_node): Dump versionable flag.
17324         * cgraph.h (cgraph_local_info): Add versionable flag.
17325         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
17326         (ipcp_versionable_function_p): Use it.
17327         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17328         versionable flag.
17329
17330 2010-05-16  Jan Hubicka  <jh@suse.cz>
17331
17332         * cgraph.c (cgraph_clone_node): Take decl argument and insert
17333         clone into hash when it is different from orig.
17334         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
17335         * cgraph.h (cgraph_clone_node): Update prototype.
17336         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
17337         (lto_cgraph_encoder_delete): Delete body map.
17338         (lto_cgraph_encoder_size): Move to header.
17339         (lto_cgraph_encoder_encode_body_p,
17340         lto_set_cgraph_encoder_encode_body): New.
17341         (lto_output_node): Do not take written_decls argument; output clone_of
17342         pointer.
17343         (add_node_to): Add include_body_argument; call
17344         lto_set_cgraph_encoder_encode_body on master of the clone.
17345         (add_references): Update use of add_node_to.
17346         (compute_ltrans_boundary): Likewise.
17347         (output_cgraph): Do not create written_decls bitmap.
17348         (input_node): Take nodes argument; stream in clone_of correctly.
17349         (input_cgraph_1): Update use of input_node.
17350         * lto-streamer-out.c (lto_output): Use encoder info to decide
17351         what bodies to output.
17352         * ipa-inline.c (cgraph_clone_inlined_nodes,
17353         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
17354         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
17355         (lto_cgraph_encoder_size): Define here.
17356         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
17357         Declare.
17358
17359 2010-05-16  Richard Guenther  <rguenther@suse.de>
17360
17361         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
17362         -fipa-type-escape.
17363         * ipa-type-escape.c (gate_type_escape_vars): Run when
17364         -fipa-struct-reorg runs.
17365         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
17366         * common.opt (fipa-type-escape): Remove.
17367
17368 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
17369
17370         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
17371         (decode_options): Likewise.
17372         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
17373
17374 2010-05-16  Jan Hubicka  <jh@suse.cz>
17375
17376         * ipa.c (function_and_variable_visibility): Also bring local all
17377         aliases.
17378
17379 2010-05-16  Richard Guenther  <rguenther@suse.de>
17380
17381         * alias.c (nonoverlapping_memrefs_p): Remove use of
17382         IPA type-escape information.
17383
17384 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
17385
17386         * c-common.c (c_common_reswords): Add _Static_assert for C.
17387         * c-parser.c (c_token_starts_declaration,
17388         c_parser_next_token_starts_declaration,
17389         c_parser_static_assert_declaration_no_semi,
17390         c_parser_static_assert_declaration): New.
17391         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
17392         Handle static assertions if static_assert_ok.
17393         (c_parser_external_declaration, c_parser_declaration_or_fndef,
17394         c_parser_compound_statement_nostart, c_parser_label,
17395         c_parser_for_statement, c_parser_objc_methodprotolist,
17396         c_parser_omp_for_loop): All callers of
17397         c_parser_declaration_or_fndef changed.
17398         (c_parser_struct_declaration): Handle static assertions.
17399         (c_parser_compound_statement_nostart): Use
17400         c_parser_next_token_starts_declaration and
17401         c_token_starts_declaration to detect start of declarations.
17402         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
17403         Likewise.
17404
17405 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
17406
17407         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17408         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17409         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17410         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17411         (mmix_function_outgoing_value): Rename to...
17412         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
17413         (mmix_function_value_regno_p): Make static.
17414         (mmix_libcall_value): New function.
17415         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
17416         mmix_function_value_regno_p): Remove declaration.
17417
17418 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
17419
17420         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
17421         BUILT_IN_ALLOCA if stack checking is enabled.
17422
17423 2010-05-16  Richard Guenther  <rguenther@suse.de>
17424
17425         * var-tracking.c (vars_copy_1): Inline ...
17426         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
17427         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
17428         (variable_merge_over_cur): Adjust.  Merge asserts.
17429         (variable_merge_over_src): Likewise.
17430         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
17431         (variable_post_merge_new_vals): Merge asserts.
17432         (variable_post_merge_perm_vals): Likewise.
17433         (find_mem_expr_in_1pdv): Likewise.
17434         (dataflow_set_different_value): Remove.
17435         (onepart_variable_different_p): Merge asserts.
17436         (variable_different_p): Likewise.
17437         (dataflow_set_different_1): Inline ...
17438         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
17439         (emit_notes_for_differences_1): Merge asserts.
17440
17441 2010-05-16  Richard Guenther  <rguenther@suse.de>
17442
17443         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
17444         * optabs.c (libfunc_decl_hash): Likewise.
17445         * varasm.c (emutls_decl): Likewise.
17446
17447 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
17448
17449         * c-decl.c: Don't include gimple.h.
17450         (merge_decls): Do not copy gimple_body.
17451
17452 2010-05-15  Jason Merrill  <jason@redhat.com>
17453
17454         * c.opt: Add -fnothrow-opt.
17455
17456 2010-05-15  Jan Hubicka  <jh@suse.cz>
17457
17458         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
17459         analyzed.
17460         * passes.c (ipa_write_summaries): Write all analyzed nodes.
17461
17462 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
17463
17464         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
17465         * Makefile.in: Add it.
17466         Fix all other Makefile dependencies for changes below.
17467         * tree.h: Include it instead of defining VEC primitives here.
17468         * gimple.h: Likewise.
17469         * rtl.h: Likewise.
17470         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
17471         * except.h: Include vecir.h, break dependence on tree.h.
17472
17473         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
17474         Move from here...
17475         * tree-iterator.c: ...to here.
17476         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
17477
17478         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
17479         tm_p.h.
17480         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
17481         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
17482         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
17483         tree-mudflap.h, and target.h.
17484         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
17485         predict.h, tree-inline.h, gimple.h, and langhooks.h.
17486         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
17487         Add FIXME for why gimple.h is still included (should be unnecessary
17488         since GCC 4.5 gimplification unit-at-a-time).
17489         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
17490         * c-pragma.c: Add FIXME for why function.h needs to be included just
17491         for cfun, at front-end level.
17492         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
17493         Do not include ggc.h, but include vecprim.h for VEC(char).
17494         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
17495         Explain why target.h is included.
17496         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
17497         Explain why gimple.h is included.
17498         * c-ppoutput.c: Do not include tm.h.
17499         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
17500         * c-parses.c: Explain why rtl.h is included, and that this (and only
17501         this) is also why tm.h must be included.
17502         Do not include except.h.
17503         * c-lang.c: Do not include ggc.h.
17504
17505 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
17506
17507         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
17508
17509 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
17510
17511         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
17512         unions by default if those structs and unions have no tags.  Do
17513         not condition anonymous struct and unions handling on flag_iso.
17514         Allow anonymous structs and unions for C1X.
17515         (finish_struct): Do not diagnose lack of named fields when
17516         anonymous structs and unions present for C1X.  Accept flexible
17517         array members in structure with anonymous structs or unions but no
17518         directly named fields.
17519         * doc/extend.texi (Unnamed Fields): Update.
17520
17521 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
17522
17523         * gimple.h (compare_field_offset): Rename into...
17524         (gimple_compare_field_offset): ...this.
17525         * gimple.c (compare_field_offset): Rename into...
17526         (gimple_compare_field_offset): ...this.  Compare the full access if
17527         the offset is self-referential.
17528         (gimple_types_compatible_p): Adjust for above renaming.
17529         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
17530         DECL_NONADDRESSABLE_P flag of fields before merging them.
17531
17532 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
17533
17534         * tree.h (ctor_to_list): Delete.
17535         * tree.c (ctor_to_list): Delete.
17536
17537 2010-05-15  Jan Hubicka  <jh@suse.cz>
17538
17539         * ipa-reference.c: Include toplev.h
17540         (is_proper_for_analysis): Only add to all_module_statics
17541         if it is allocated.
17542         (write_node_summary_p, stream_out_bitmap,
17543         ipa_reference_write_optimization_summary,
17544         ipa_reference_read_optimization_summary): New.
17545         (struct ipa_opt_pass_d pass_ipa_reference): Add
17546         optimization summary streaming.
17547         * lto-cgraph.c (referenced_from_this_partition_p,
17548         reachable_from_this_partition_p): New functions.
17549         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
17550         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
17551         * opts.c (decode_options): Enable ipa_reference.
17552         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
17553         * lto-streamer.h (referenced_from_this_partition_p,
17554         reachable_from_this_partition_p): Declare.
17555
17556 2010-05-15  Richard Guenther  <rguenther@suse.de>
17557
17558         PR tree-optimization/44038
17559         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
17560         taking the address of a V_C_E of a constant.
17561
17562 2010-05-14  Jan Hubicka  <jh@suse.cz>
17563
17564         * tree.h (memory_identifier_string): Remove.
17565         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
17566         (ipa_reference_global_vars_info_d): Remove statics_not_read and
17567         statics_not_written.
17568         (ipa_reference_optimization_summary_d): New structure.
17569         (ipa_reference_optimization_summary_t): New type and vector.
17570         (ipa_reference_vars_info_d): Embedd structures instead of using
17571         pointers.
17572         (reference_vars_to_consider): Remove out of GGC space.
17573         (module_statics_escape): Remove.
17574         (global_info_obstack): Rename to ...
17575         (optimization_summary_obstack): ... this one.
17576         (initialization_status_t): Remove.
17577         (memory_identifier_string): Remove.
17578         (get_reference_vars_info): Fix indenting.
17579         (set_reference_vars_info): Likewise.
17580         (get_reference_optimization_summary): New.
17581         (set_reference_optimization_summary): New.
17582         (get_global_reference_vars_info): Remove.
17583         (ipa_reference_get_read_global): Remove.
17584         (ipa_reference_get_written_global): Remove.
17585         (ipa_reference_get_not_read_global): Update.
17586         (ipa_reference_get_not_written_global): Update.
17587         (is_proper_for_analysis): Outlaw addressable.
17588         (propagate_bits): Update for new datastructures.
17589         (analyze_variable): Remove.
17590         (init_function_info): Update for new datastructures.
17591         (clean_function_local_data): Remove.
17592         (clean_function): Remove.
17593         (copy_global_bitmap): Use optimizations_summary_obstack.
17594         (duplicate_node_data): Duplicate optimization summary only.
17595         (remove_node_data): Remove optimization summary only.
17596         (generate_summary): Do not analyze variables; do not compute
17597         module_statics_escape; do not prune solutions by it.
17598         (read_write_all_from_decl): Fix typos in comments.
17599         (propagate): Doscover readonly and nonaddressable first;
17600         update for new datastructures; share global bitmaps.
17601         * ipa-reference.h (ipa_reference_get_read_global,
17602         ipa_reference_get_written_global): Remove.
17603         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
17604         * Makefile.in: Remove ipa-refereference from GT files.
17605
17606 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
17607
17608         PR debug/44112
17609         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
17610         for all SYMBOL_REF_DECLs.
17611
17612 2010-05-14  Jan Hubicka  <jh@suse.cz>
17613
17614         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
17615         (varpool_all_refs_explicit_p): New inline function.
17616         * ipa-reference.c: Update comment.
17617         (module_statics_written): Remove.
17618         (get_static_decl): Remove.
17619         (ipa_init): Do not initialize module_statics_written.
17620         (analyze_function): Likewise.
17621         (generate_summary): Likewise; do not compute module_statics_readonly
17622         and do not update variable flags.
17623         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
17624         * ipa.c: Inlucde flags.h
17625         (cgraph_local_node_p): New.
17626         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
17627         promote functions to local.
17628         (ipa_discover_readonly_nonaddressable_vars): New function.
17629         (function_and_variable_visibility): Use cgraph_local_node_p.
17630         * varpool.c (varpool_finalize_decl): Set force_output for
17631         DECL_PRESERVE_P vars.
17632
17633 2010-05-14  Jan Hubicka  <jh@suse.cz>
17634
17635         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
17636
17637 2010-05-14  Richard Guenther  <rguenther@suse.de>
17638
17639         PR tree-optimization/44119
17640         * tree-ssa-pre.c (eliminate): Properly mark replacement of
17641         a PHI node necessary.
17642
17643 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17644
17645         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
17646
17647 2010-05-14  Jason Merrill  <jason@redhat.com>
17648
17649         PR c++/44127
17650         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
17651         (gimple_call_set_nothrow): New.
17652         * gimple.c (gimple_build_call_from_tree): Call it.
17653         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
17654
17655         PR c++/44127
17656         * gimplify.c (gimplify_seq_add_stmt): No longer static.
17657         * gimple.h: Declare it.
17658         * gimple.c (gimple_build_eh_filter): No ops.
17659
17660 2010-05-14  Jan Hubicka  <jh@suse.cz>
17661
17662         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
17663         nodes already in queue.
17664         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
17665         re-enqueueing node.
17666
17667 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
17668
17669         PR debug/44136
17670         * cfgexpand.c (expand_debug_expr): If non-memory op0
17671         has BLKmode, return NULL.
17672
17673 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
17674
17675         * config.gcc: Add support for --with-cpu option for bdver1.
17676         * config/i386/i386.h (TARGET_BDVER1): New macro.
17677         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
17678         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
17679         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
17680         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
17681         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
17682         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
17683         (processor_type): Add PROCESSOR_BDVER1.
17684         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
17685         processor_type in config/i386/i386.h.
17686         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
17687         movaps <reg, reg> instead of movapd <reg, reg> when replacing
17688         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
17689         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
17690         to emit packed xor instead of packed double/packed integer
17691         xor for SSE and AVX when moving a zero value.
17692         * config/i386/sse.md: Add check for
17693         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
17694         movapd/movdqa for SSE and AVX.
17695         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
17696         single logical operations i.e and, or and xor instead of packed double
17697         logical operations for SSE and AVX.
17698         * config/i386/i386-c.c (ix86_target_macros_internal):
17699         Add PROCESSOR_BDVER1.
17700         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
17701         (has_fma4, has_xop): New.
17702         * config/i386/i386.c (bdver1_cost): New variable.
17703         (m_BDVER1): New macro.
17704         (m_AMD_MULTIPLE): Add m_BDVER1.
17705         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
17706         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
17707         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
17708         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
17709         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
17710         x86_tune_sse_partial_reg_dependency,
17711         x86_tune_sse_unaligned_load_optimal,
17712         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
17713         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
17714         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
17715         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
17716         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
17717         Enable/disable for bdver1.
17718         (processor_target_table): Add bdver1_cost.
17719         (cpu_names): Add bdver1.
17720         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
17721          processor_alias_table.
17722         (ix86_expand_vector_move_misalign): Change.
17723         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
17724         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
17725         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
17726         of movupd/movdqu for SSE and AVX.
17727         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
17728         (ix86_tune_adjust_cost): Add code for bdver1.
17729         (standard_sse_constant_opcode): Add check for
17730         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
17731         of packed double xor for SSE and AVX.
17732
17733 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
17734
17735         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
17736         result to unsigned.
17737
17738 2010-05-14  Tristan Gingold  <gingold@adacore.com>
17739
17740         * toplev.c (default_debug_hooks): Remove this variable.
17741         (process_options): Remove assignments to default_debug_hooks.
17742
17743 2010-05-14  Martin Jambor  <mjambor@suse.cz>
17744
17745         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
17746         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
17747         * langhooks.h (struct lang_hooks_for_decls): Removed field
17748         fold_obj_type_ref.
17749         * tree.c (free_lang_data): Remove assignment to
17750         lang_hooks.fold_obj_type_ref.
17751         * tree.def (OBJ_TYPE_REF): Update comment.
17752
17753 2010-05-14  Richard Guenther  <rguenther@suse.de>
17754
17755         PR tree-optimization/44124
17756         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
17757
17758 2010-05-14  Alan Modra  <amodra@gmail.com>
17759
17760         PR target/44075
17761         * config/rs6000/rs6000.c (struct machine_function): Reorder
17762         fields for better packing.  Add lr_save_state.
17763         (rs6000_ra_ever_killed): Return lr_save_state if set.
17764         (rs6000_emit_eh_reg_restore): Set lr_save_state.
17765
17766 2010-05-13  Jan Hubicka  <jh@suse.cz>
17767
17768         * varpool.c (decide_is_variable_needed): Drop code checking
17769         TREE_SYMBOL_REFERENCED.
17770
17771 2010-05-13  Jan Hubicka  <jh@suse.cz>
17772
17773         * final.c (output_addr_const): Do not call mark_decl_referenced.
17774         * cgraphunit.c (process_function_and_variable_attributes): Use
17775         mark_needed_node dirrectly.
17776         (assemble_thunk): Do not call mark_decl_referenced.
17777
17778 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
17779
17780         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
17781
17782 2010-05-13  Jeff Law  <law@redhat.com>
17783
17784         * ira-conflicts.c (print_allocno_conflicts): New function broken out
17785         from...
17786         (print_conflicts): Call print_allocno_conflicts.
17787
17788 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
17789
17790         PR debug/44104
17791         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
17792         if it is NULL.
17793
17794 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
17795
17796         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
17797         t-mingw-w64 or t-mingw-w32 for multilib configuration.
17798         * config/i386/t-mingw-w32: New.
17799         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
17800
17801 2010-05-13  Martin Jambor  <mjambor@suse.cz>
17802
17803         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
17804         gimple-fold.c).
17805         * gimple-fold.c (get_base_binfo_for_type): New function.
17806         (gimple_get_relevant_ref_binfo): Likewise.
17807         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17808         (gimple_fold_obj_type_ref): Likewise.
17809         (fold_gimple_call): Simplify condition for folding virtual calls
17810         and call gimple_fold_obj_type_ref.
17811         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
17812         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17813
17814 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
17815
17816         * config/rs6000/rs6000-protos.h
17817         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
17818         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
17819         (rs6000_debug_mode_dependent_address)
17820         (rs6000_mode_dependent_address_ptr): Likewise.
17821
17822 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
17823
17824         PR debug/43983
17825         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
17826         by SRA.
17827         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
17828         * tree-sra.c (create_access_replacement): Call unshare_expr before
17829         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
17830         * dwarf2out.c: Include tree-flow.h.
17831         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
17832         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
17833         Handle DW_OP_bit_piece.
17834         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
17835         construct_piece_list, adjust_piece_list): New functions.
17836         (add_var_loc_to_decl): Handle SRA optimized variables.
17837         Adjust for var_loc_note to loc field renaming.
17838         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
17839         in VAR_LOCATION note.
17840         (new_loc_descr_op_bit_piece): New function.
17841         (dw_sra_loc_expr): New function.
17842         (dw_loc_list): Use it.  Don't handle the last range after the
17843         loop, handle it inside of the loop.  Adjust for var_loc_note
17844         to loc field renaming.
17845         (add_location_or_const_value_attribute): Only special case
17846         single entry loc lists if loc is NOTE_P.  Adjust for
17847         var_loc_note to loc field renaming.
17848         (dwarf2out_var_location): Don't set newloc->var_loc_note
17849         and newloc->next here.
17850
17851 2010-05-12  Jan Hubicka  <jh@suse.cz>
17852
17853         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
17854         flag.
17855         * cgraph.h (cgraph_only_called_directly_p,
17856         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
17857         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
17858         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
17859         (assemble
17860         * ipa.c (cgraph_remove_unreachable_nodes): Use
17861         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
17862         flags.
17863         * tree-inline.c (copy_bb): Check address_taken flag.
17864         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
17865         externally_visible flag.
17866
17867 2010-05-12  Jason Merrill  <jason@redhat.com>
17868
17869         PR bootstrap/44048
17870         PR target/44099
17871         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
17872         * sdbout.c (plain_type_1): Likewise.
17873         * dwarf2out.c (is_base_type): Likewise.
17874         (gen_type_die_with_usage): Likewise.  Generate
17875         DW_TAG_unspecified_type for any LANG_TYPE.
17876
17877 2010-05-12  Jan Hubicka  <jh@suse.cz>
17878
17879         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
17880         indrect edges too.
17881         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
17882         (cgraph_clone_edge): Update.
17883         (cgraph_node_remove_callees): Remove indirect calls too.
17884         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
17885         (cgraph_create_indirect_edge): Update prototype.
17886         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
17887         is_proper_for_analysis.
17888         (add_new_function, visited_nodes, function_insertion_hook_holder,
17889         get_local_reference_vars_info, mark_address_taken, mark_address,
17890         mark_load, mark_store, check_asm_memory_clobber, check_call,
17891         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
17892         (ipa_init): Do not initialize visited_nodes;
17893         function_insertion_hook_holder.
17894         (analyze_variable): Rewrite.
17895         (analyze_function): Rewrite.
17896         (copy_local_bitmap): Remove.
17897         (duplicate_node_dat): Do not duplicate local info.
17898         (generate_summary): Simplify to only walk cgraph.
17899         (write_node_summary_p, ipa_reference_write_summary,
17900         ipa_reference_read_summary): Remove.
17901         (propagate): Do not remove function insertion;
17902         generate summary.
17903         (pass_ipa_reference): NULLify summary handling fields.
17904         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
17905         (input_edge): Input ecf_flags.
17906         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
17907         (update_indirect_edges_after_inlining): Ignore edges with unknown
17908         param.
17909
17910 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
17911
17912         * implicit-zee.c: New file.
17913         * tree-pass.h (pass_implicit_zee): Declare.
17914         * passes.c (init_optimization_passes): Add zee pass.
17915         * common.opt (fzee): New flag.
17916         * timevar.def (TV_ZEE): Define.
17917         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
17918         and beyond.
17919         * Makefile.in (implicit-zee.o): Add new build file.
17920
17921 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17922             Nathan Froyd  <froydnj@codesourcery.com>
17923
17924         * c-common.c (sync_resolve_params): Remove write-only variable.
17925
17926 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
17927
17928         * target.h (struct gcc_target): Add mode_dependent_address_p field.
17929         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
17930         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
17931         * targhooks.c (default_mode_dependent_address_p): New function.
17932         * targhooks.h (default_mode_dependent_address_p): Declare function.
17933         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
17934         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
17935         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
17936         target hook. Change return type to bool.
17937         * recog.h (mode_dependent_address_p): Change return type to bool.
17938
17939 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17940             Nathan Froyd  <froydnj@codesourcery.com>
17941
17942         * tree-mudflap.c (build_function_type_0, build_function_type_1,
17943         build_function_type_2, build_function_type_3): Remove.
17944         (mudflap_init): Use build_function_type_list.
17945
17946 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17947             Nathan Froyd  <froydnj@codesourcery.com>
17948
17949         * coverage.c (build_fn_info_value): Call build_constructor instead of
17950         build_constructor_from_list.
17951         (build_ctr_info_value): Likewise.
17952         (build_gcov_info): Likewise.
17953
17954 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
17955
17956         * tree.c (build_constructor): Compute TREE_CONSTANT for the
17957         resultant constructor.
17958         (build_constructor_single): Don't set TREE_CONSTANT.
17959         (build_constructor_from_list): Don't compute TREE_CONSTANT.
17960
17961 2010-05-12  Jan Hubicka  <jh@suse.cz>
17962
17963         * cgraph.h (struct varpool_node): Add aux.
17964         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
17965         * varpool.c (varpool_remove_node): Do not remove initializer.
17966         (varpool_reset_queue): Export.
17967         (varpool_finalize_decl): Volatile vars are forced to be output.
17968         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
17969         replaced decl.
17970         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
17971         process_references, varpool_can_remove_if_no_refs): New functions.
17972         (cgraph_remove_unreachable_nodes): Handle variables too.
17973
17974 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17975
17976         PR target/44088
17977         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
17978
17979 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
17980
17981         PR middle-end/44085
17982         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
17983         change value of ORT_TASK.
17984         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
17985         (omp_notice_threadprivate_variable): New function.
17986         (omp_notice_variable): Call it for threadprivate variables.
17987         If enclosing ctx is a task, print enclosing task rather than
17988         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
17989         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
17990         if task has untied clause.
17991
17992         PR debug/42278
17993         * dwarf2out.c (base_type_die): Don't add name attribute here.
17994         (modified_type_die): Instead of sizetype use
17995         its underlying original type.  If a DW_TAG_base_type doesn't
17996         have name added, add __unknown__.
17997         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
17998         always call force_type_die instead.
17999
18000 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
18001
18002         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
18003         for __stack_chk_guard.
18004
18005 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
18006
18007         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
18008         don't call start_source_file debug hook here...
18009         (finish_options): ... but here, after outputting predefined and
18010         command line defines and undefs.
18011
18012         PR middle-end/44071
18013         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
18014         no fallthru edge.
18015         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
18016         optimizing away empty bb with no successors, move over its
18017         footer chain to fallthru predecessor.
18018         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
18019         (rtl_split_edge): For asm goto call patch_jump_insn even if
18020         splitting fallthru edge.
18021
18022         PR c++/44059
18023         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
18024         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
18025         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
18026         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
18027         on DW.ref.* decls.
18028
18029         PR c++/44062
18030         * c-parser.c (c_parser_expression): Mark LHS of a comma
18031         expression as read if it is a decl, handled component or
18032         COMPOUND_EXPR with that on the RHS.
18033         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
18034         if it is a decl or handled component.
18035
18036 2010-05-11  Jan Hubicka  <jh@suse.cz>
18037
18038         * lto-symtab.c (lto_symtab_free): New function.
18039         * lto-streamer.h (lto_symtab_free): Declare.
18040
18041 2010-05-11  Jan Hubicka  <jh@suse.cz>
18042
18043         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
18044         that if function is needed it is reachable.
18045         (lto_output_node): See if it the function is reachable or referenced.
18046         (output_cgraph): Update call of lto_output_node.
18047         * lto-streamer.h (reachable_from_other_partition_p): Declare.
18048
18049 2010-05-11  Jan Hubicka  <jh@suse.cz>
18050
18051         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
18052         Mark as used.
18053
18054 2010-05-11  Jan Hubicka  <jh@suse.cz>
18055
18056         PR tree-optimize/44063
18057         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
18058         queue.
18059         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
18060         limits.
18061         (estimate_function_body_sizes): Compute sizes even when disregarding.
18062
18063 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
18064
18065         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
18066
18067 2010-05-11  Jan Hubicka  <jh@suse.cz>
18068
18069         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
18070         into every boundary.
18071
18072 2010-05-11  Jan Hubicka  <jh@suse.cz>
18073
18074         * matrix-reorg.c (matrix_reorg): Rebuild edges.
18075
18076 2010-05-11  Jan Hubicka  <jh@suse.cz>
18077
18078         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
18079         lto_streamer_cache_delete): Put nodes into heap.
18080         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
18081         heap.
18082
18083 2010-05-11  Jan Hubicka  <jh@suse.cz>
18084
18085         * cgraphbuild.c (cgraph_rebuild_references): New.
18086         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
18087         out extern inlines.
18088         * cgraph.h (cgraph_rebuild_references): Declare.
18089         * tree-inline.c (tree_function_versioning): Use it.
18090         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
18091
18092 2010-05-11  Jan Hubicka  <jh@suse.cz>
18093
18094         * cgraph.c: Include ipa-utils.h
18095         (cgraph_create_virtual_clone): Update references.
18096         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
18097
18098 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
18099
18100         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
18101         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
18102         cache size.
18103
18104 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
18105
18106         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
18107
18108 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
18109
18110         * gcc.c (execute): For -### don't quote arguments that
18111         contain just alphanumerics and _/-. characters.
18112         * doc/invoke.texi: Document that change for -###.
18113
18114         PR debug/44023
18115         * df-problems.c (struct dead_debug): Add to_rescan field.
18116         (dead_debug_init): Clear to_rescan field.
18117         (dead_debug_finish): Rescan all debug insns in to_rescan
18118         bitmap and free the bitmap.
18119         (dead_debug_insert_before): Instead of rescanning debug insns
18120         immediately queue their rescanning until dead_debug_finish.
18121         (df_note_bb_compute): After dead_debug_add do continue instead
18122         of break.
18123
18124 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
18125
18126         PR debug/44028
18127         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
18128         clear also INSN_REG_USE_LIST.
18129
18130 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18131
18132         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
18133
18134 2010-05-10  Jan Hubicka  <jh@suse.cz>
18135
18136         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
18137         commited change.
18138
18139 2010-05-10  Jan Hubicka  <jh@suse.cz>
18140
18141         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
18142         Allocate encoders.
18143         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
18144         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
18145         (lto_streamer_cache_create): Init alloc pool.
18146         (lto_streamer_cache_delete): Free alloc pool.
18147         * lto-streamer.h: Include alloc pool.
18148         (lto_streamer_cache_d): Use alloc pool.
18149         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
18150
18151 2010-05-10  Jan Hubicka  <jh@suse.cz>
18152
18153         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
18154         * cgraphbuild.c: Include except.h
18155         (record_type_list, record_eh_tables): New function.
18156         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
18157
18158 2010-05-10  Jan Hubicka  <jh@suse.cz>
18159
18160         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
18161         __frame_dummy_init_array_entry, force_to_data): Attribute as used
18162         rather than unused.
18163
18164 2010-05-10  Michael Matz  <matz@suse.de>
18165
18166         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
18167         (can_reassociate_p): Use FLOAT_TYPE_P.
18168         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
18169         (vect_force_simple_reduction): ... this.
18170         * tree-parloops.c (gather_scalar_reductions): Use
18171         vect_force_simple_reduction.
18172         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
18173         vect_is_simple_reduction, add modify argument, if true rewrite
18174         "a-b" into "a+(-b)".
18175         (vect_is_simple_reduction, vect_force_simple_reduction): New
18176         functions.
18177         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
18178
18179 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18180             Vladimir Makarov  <vmakarov@redhat.com>
18181
18182         PR rtl-optimization/44012
18183         * ira-build.c (remove_unnecessary_allocnos): Nullify
18184         regno_allocno_map of the removed allocno.
18185
18186 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18187
18188         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
18189         to /dev/null.
18190         * configure: Regenerate.
18191
18192 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18193
18194         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
18195         unused.
18196         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
18197         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
18198         support in Sun ld.
18199         * configure: Regenerate.
18200
18201 2010-05-10  Richard Guenther  <rguenther@suse.de>
18202
18203         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
18204         marked if the entry identifier is marked.
18205
18206 2010-05-10  Richard Guenther  <rguenther@suse.de>
18207
18208         * c-common.c (struct c_common_attributes): Add fnspec attribute.
18209         (handle_fnspec_attribute): New function.
18210         * gimple.h (gimple_call_return_flags): Declare.
18211         (gimple_call_arg_flags): Likewise.
18212         * gimple.c (gimple_call_arg_flags): New function.
18213         (gimple_call_return_flags): Likewise.
18214         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
18215         New argument flags.
18216         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
18217         return value flags.
18218         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
18219         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
18220         main work to ...
18221         (make_heapvar_for): ... this new function.
18222         (handle_rhs_call): Handle fnspec attribute argument specifiers.
18223         (handle_lhs_call): Likewise.
18224         (find_func_aliases): Adjust.
18225
18226 2010-05-10  Richard Guenther  <rguenther@suse.de>
18227
18228         PR tree-optimization/44050
18229         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
18230
18231 2010-05-10  Wei Guozhi  <carrot@google.com>
18232
18233         PR target/42879
18234         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
18235
18236 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
18237
18238         PR c/10676
18239         * c-typeck.c (lookup_field): Take a type directly.  Update
18240         recursive calls.
18241         (build_component_ref): Update call to lookup_field.
18242         (set_init_label): Use lookup_field to find initialized field.
18243         Handle returned list of fields like a sequence of designators.
18244
18245 2010-05-09  Richard Guenther  <rguenther@suse.de>
18246
18247         PR middle-end/44024
18248         * fold-const.c (tree_single_nonzero_warnv_p): Properly
18249         handle &FUNCTION_DECL.
18250
18251 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
18252
18253         PR c/4784
18254         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
18255         structures and unions recursively.
18256         (detect_field_duplicates): Move duplicate detection with a hash to
18257         detect_field_duplicates_hash.  Always use a hash if anonymous
18258         structures or unions are present.
18259         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
18260         give errors.
18261
18262 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18263
18264         PR target/44046
18265         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
18266         detect Atom, Core 2 and Core i7.
18267
18268 2010-05-09  Richard Guenther  <rguenther@suse.de>
18269
18270         * gcc.c (store_arg): Handle temporary file deletion for
18271         joined arguments.
18272
18273 2010-05-09  Richard Guenther  <rguenther@suse.de>
18274
18275         PR middle-end/44043
18276         * ipa-inline.c (estimate_function_body_sizes): Return after
18277         disregarding inline limits.
18278
18279 2010-05-09  Richard Guenther  <rguenther@suse.de>
18280
18281         * gcc.c (store_arg): Revert last change.
18282
18283 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
18284
18285         PR middle-end/28685
18286         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
18287         (optimize_ops_list): Call it.
18288
18289 2010-05-08  Richard Guenther  <rguenther@suse.de>
18290
18291         PR tree-optimization/44030
18292         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
18293         NECESSARY flag if we propagate from a inserted expression.
18294
18295 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18296
18297         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
18298         domain types as equal if they are both PLACEHOLDER_EXPRs.
18299
18300 2010-05-08  Richard Guenther  <rguenther@suse.de>
18301
18302         * lto-wrapper.c (run_gcc): Remove linker output from
18303         command line for LTRANS invocation.
18304
18305 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
18306
18307         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18308         lto-macho as lto_binary_reader.
18309         * target.h (struct gcc_target): New hooks lto_start and lto_end.
18310         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
18311         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
18312         in lto_start and lto_end calls.
18313         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
18314         magic numbers.
18315         (scan_prog_file): Update is_elf_or_coff call.
18316         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
18317
18318         * collect2.c (main): Fix enum comparison.
18319
18320         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
18321         Add prototypes.
18322         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
18323         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
18324         and TARGET_ASM_LTO_END.
18325         * darwin.c: Include obstack.h and lto-streamer.h.
18326         (lto_section_names_offset, lto_section_names_obstack,
18327         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
18328         global variables.
18329         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
18330         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
18331         to a temporary file.
18332         (darwin_asm_lto_end): New function.  Restore asm_out_file.
18333         (darwin_asm_named_section): For LTO sections, replace the name with
18334         the offset of the section name in a string table, and build this
18335         table.
18336         (darwin_file_start): Initialize global vars for LTO support.
18337         (darwin_file_end): If output to asm_out_file was redirected, append it
18338         to the proper asm_out_file here.  Add the section names section.
18339
18340 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
18341
18342         * c-pragma.c (pending_weak_d, pending_weak): New.
18343         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
18344         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
18345         handle_pragma_weak): Update the uses of pending_weaks.
18346
18347 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18348
18349         PR documentation/44016
18350         * doc/standards.texi (Standards): Link to unversioned
18351         cxx0x_status.html page.
18352
18353 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
18354
18355         PR target/43708
18356         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
18357         in addition to TREE_USED, to avoid "set but unused" warnings.
18358
18359 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
18360
18361         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
18362         (is_loop_prefetching_profitable): Do not insert prefetches
18363         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
18364         times the prefetch ahead distance.
18365
18366 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
18367
18368         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
18369         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
18370         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
18371         the unroll_factor.
18372
18373 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
18374
18375         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
18376         a diagnostic info when the insn-to-mem ratio is too small.
18377
18378 2010-05-07  Richard Guenther  <rguenther@suse.de>
18379
18380         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
18381         the linker plugin.
18382         (store_arg): Queue temp_filename for deletion instead of
18383         the whole argument.
18384
18385 2010-05-07  Richard Guenther  <rguenther@suse.de>
18386
18387         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
18388         (run_gcc): Handle LTRANS phase invocation.
18389         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
18390
18391 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
18392
18393         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
18394         this is also meaningful on PARM_DECLs and RESULT_DECLs.
18395
18396 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18397
18398         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
18399
18400 2010-05-07  Richard Guenther  <rguenther@suse.de>
18401
18402         PR tree-optimization/44020
18403         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
18404         code when PRE is not yet initialized.
18405
18406 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18407
18408         * config/mips/dbxmdebug.h: Remove.
18409         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
18410
18411 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
18412
18413         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
18414         with null pointer and also warn about ordered comparison of zero with
18415         pointer if -Wextra.
18416
18417 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
18418
18419         * graphite-blocking.c
18420         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
18421         * graphite-clast-to-gimple.c
18422         (clast_to_gcc_expression): Same.
18423         (precision_for_value): Same.
18424         (precision_for_interval): Same.
18425         (gcc_type_for_interval): Same.
18426         (graphite_create_new_guard): Same.
18427         (compute_bounds_for_level): Same.
18428         (graphite_create_new_loop_guard): Same.
18429         * graphite-interchange.c
18430         (build_linearized_memory_access): Same.
18431         (pdr_stride_in_loop): Same.
18432         (memory_strides_in_loop_1): Same.
18433         (memory_strides_in_loop): Same.
18434         (extend_scattering): Same.
18435         (psct_scattering_dim_for_loop_depth): Same.
18436         (pbb_number_of_iterations): Same.
18437         * graphite-poly.h
18438         (debug_iteration_domains): Same.
18439         * graphite-ppl.c
18440         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
18441         (ppl_set_inhomogeneous_gmp): Same.
18442         (ppl_strip_loop): Same.
18443         (ppl_lexico_compare_linear_expressions): Same.
18444         (ppl_read_polyhedron_matrix): Same.
18445         (ppl_max_for_le_pointset): Same.
18446         * graphite-ppl.h
18447         (ppl_read_polyhedron_matrix): Same.
18448         (tree_int_to_gmp): Same.
18449         (gmp_cst_to_tree): Same.
18450         (ppl_set_inhomogeneous): Same.
18451         (ppl_set_inhomogeneous_tree): Same.
18452         (ppl_set_coef): Same.
18453         (ppl_set_coef_tree): Same.
18454         * graphite-sese-to-poly.c
18455         (build_pbb_scattering_polyhedrons): Same.
18456         (build_scop_scattering): Same.
18457         (scan_tree_for_params_right_scev): Same.
18458         (scan_tree_for_params): Same.
18459         (find_params_in_bb): Same.
18460         (find_scop_parameters): Same.
18461         (add_upper_bounds_from_estimated_nit): Same.
18462         (build_loop_iteration_domains): Same.
18463         (add_condition_to_domain): Same.
18464         (pdr_add_memory_accesses): Same.
18465
18466 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
18467
18468         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
18469         CLooG's value_* macros to their respective mpz_* counterparts.
18470         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
18471         (graphite_create_new_loop_guard): Same.
18472         * graphite-interchange.c (build_linearized_memory_access): Same.
18473         (pdr_stride_in_loop): Same.
18474         (memory_strides_in_loop_1): Same.
18475         (1st_interchange_profitable_p): Same.
18476         * graphite-poly.c (extend_scattering): Same.
18477         (psct_scattering_dim_for_loop_depth): Same.
18478         (pbb_number_of_iterations): Same.
18479         (pbb_number_of_iterations_at_time): Same.
18480         * graphite-poly.h (new_1st_loop): Same.
18481         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
18482         (oppose_constraint): Same.
18483         (insert_constraint_into_matrix): Same.
18484         (ppl_set_inhomogeneous_gmp): Same.
18485         (ppl_set_coef_gmp): Same.
18486         (ppl_strip_loop): Same.
18487         (ppl_lexico_compare_linear_expressions): Same.
18488         (ppl_max_for_le_pointset): Same.
18489         (ppl_min_for_le_pointset): Same.
18490         (ppl_build_realtion): Same.
18491         * graphite-ppl.h (gmp_cst_to_tree): Same.
18492         (ppl_set_inhomogeneous): Same.
18493         (ppl_set_inhomogeneous_tree): Same.
18494         (ppl_set_coef): Same.
18495         (ppl_set_coef_tree): Same.
18496         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
18497         (build_scop_scattering): Same.
18498         (add_value_to_dim): Same.
18499         (scan_tree_for_params_right_scev): Same.
18500         (scan_tree_for_params_int): Same.
18501         (scan_tree_for_params): Same.
18502         (find_params_in_bb): Same.
18503         (find_scop_parameters): Same.
18504         (add_upper_bounds_from_estimated_nit): Same.
18505         (build_loop_iteration_domains): Same.
18506         (create_linear_expr_from_tree): Same.
18507         (add_condition_to_domain): Same.
18508         (pdr_add_memory_accesses): Same.
18509
18510 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
18511             Jason Merrill  <jason@redhat.com>
18512
18513         * c-common.c (c_common_reswords): Add nullptr.
18514         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
18515         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
18516         (gen_type_die_with_usage): Likewise.
18517         * dbxout.c (dbxout_type): Likewise.
18518         * sdbout.c (plain_type_1): Likewise.
18519
18520 2010-05-06  Jason Merrill  <jason@redhat.com>
18521
18522         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
18523         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
18524         ret appropriately.
18525         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
18526
18527         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
18528         stripping WITH_SIZE_EXPR.
18529         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
18530         change.
18531
18532 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18533
18534         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
18535         list of obsolete configurations.
18536         Disabled check for obsolete configurations.
18537         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
18538         Removed support for previous versions.
18539         * config/mips/iris.h: Removed.
18540         * config/mips/iris5.h: Removed.
18541         * config/mips/iris6.h: Merged old iris.h contents.
18542         (TARGET_IRIX): Removed.
18543         (DRIVER_SELF_SPECS): Removed mabi=32.
18544         (IDENT_ASM_OP): Removed undef.
18545         (STARTFILE_SPEC): Removed mabi=32.
18546         (ENDFILE_SPEC): Likewise.
18547         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
18548         (MACHINE_TYPE): Update for IRIX 6.5.
18549         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
18550         TARGET_IRIX by TARGET_IRIX6.
18551         (mips_file_start): Likewise.
18552         (mips_output_external): Remove IRIX 5/6 O32 support.
18553         (mips_output_function_prologue): Likewise.
18554         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
18555         TARGET_IRIX6.
18556         (TARGET_CPU_CPP_BUILTINS): Likewise.
18557         (TARGET_IRIX): Removed.
18558         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
18559         (MULTILIB_DIRNAMES): Removed 32.
18560         (MULTILIB_OSDIRNAMES): Removed ../lib.
18561         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
18562         (Specific, mips-sgi-irix5): Document removal.
18563         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
18564         Remove references to older IRIX 6 releases and the O32 ABI.
18565
18566 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
18567
18568         PR bootstrap/43994
18569         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
18570         instead of DF_REF_REAL_REG.
18571
18572 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18573
18574         PR target/43888
18575         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
18576         handling to still return true for x64 targets.
18577
18578 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
18579
18580         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
18581
18582 2010-05-06  Jan Hubicka  <jh@suse.cz>
18583
18584         PR tree-optimization/43791
18585         * ipa-inline.c (update_caller_keys): Remove bogus
18586         disregard_inline_limits check.
18587
18588 2010-05-06  Michael Matz  <matz@suse.de>
18589
18590         PR tree-optimization/43984
18591         * tree-ssa-pre.c (inserted_phi_names): Remove.
18592         (inserted_exprs): Change to bitmap.
18593         (create_expression_by_pieces): Set bits, don't append to vector.
18594         (insert_into_preds_of_block): Don't handle inserted_phi_names.
18595         (eliminate): Don't look at inserted_phi_names, remove deleted
18596         insns from inserted_exprs.
18597         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
18598         (init_pre, fini_pre): Allocate and free bitmaps.
18599         (execute_pre): Insert insns on edges before elimination.
18600
18601 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
18602
18603         * tree.c (initializer_zerop): Handle STRING_CST.
18604
18605 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18606
18607         PR 40989
18608         * doc/invoke.texi (Wimplicit): Document as C only.
18609         * opts.c (common_handle_option): Add argument kind.
18610         (handle_option): Rename as read_cmdline_option. Factor out code to...
18611         (handle_option): ... here. New.
18612         (handle_options): Rename as read_cmdline_options.
18613         (decode_options): Update call.
18614         (set_option): Use option index instead of option pointer. Classify
18615         diagnostics correctly.
18616         (enable_warning_as_error): Call handle_option.
18617         * opts.h (set_option): Update declaration.
18618         (handle_option): Declare.
18619         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
18620         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
18621         * c-opts.c (set_Wimplicit): Delete.
18622         (c_family_lang_mask): New static constant.
18623         (c_common_handle_option): Add argument kind. Use handle_option
18624         instead of set_Wimplicit.
18625         (c_common_post_options): warn_implicit and warn_implicit_int
18626         are disabled by default.
18627         * c-common.c (warn_implicit): Do not define here.
18628         * c-common.h (warn_implicit): Do not declare here.
18629         (c_common_handle_option): Update declaration.
18630         * lto-opts.c (lto_reissue_options): Update call to set_option.
18631
18632 2010-05-06  Richard Guenther  <rguenther@suse.de>
18633
18634         PR tree-optimization/43571
18635         * domwalk.c (walk_dominator_tree): Walk the dominator
18636         sons in more optimal order.
18637
18638 2010-05-06  Richard Guenther  <rguenther@suse.de>
18639
18640         PR tree-optimization/43934
18641         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
18642         (stmt_cost): Likewise.
18643         (extract_true_false_args_from_phi): New helper.
18644         (determine_max_movement): For PHI nodes verify we can hoist them
18645         and compute their cost.
18646         (determine_invariantness_stmt): Handle PHI nodes.
18647         (move_computations_stmt): Likewise.  Hoist PHI nodes in
18648         if-converted form using COND_EXPRs.
18649         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
18650         (tree_ssa_lim): Likewise.
18651         * tree-flow.h (tree_ssa_lim): Adjust prototype.
18652         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
18653
18654 2010-05-06  Richard Guenther  <rguenther@suse.de>
18655
18656         PR tree-optimization/43987
18657         * tree-ssa-structalias.c (could_have_pointers): For possibly
18658         address-taken variables force pointers to be recorded.
18659         (create_variable_info_for_1): Likewise.
18660         (push_fields_onto_fieldstack): Pass in wheter all fields
18661         must have pointers.
18662         (find_func_aliases): Query types instead of vars whether
18663         they contain pointers where appropriate.
18664
18665 2010-05-06  Jan Hubicka  <jh@suse.cz>
18666
18667         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
18668         (record_reference, mark_address, mark_load, mark_store): Record
18669         references.
18670         (record_references_in_initializer): Update call of record_references.
18671         (rebuild_cgraph_edges): Remove all references before rebuiding.
18672         * cgraph.c (cgraph_create_node): Clear ref list.
18673         (cgraph_remove_node): Remove references.
18674         (dump_cgraph_node): Dump references.
18675         (cgraph_clone_node): Clone references.
18676         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
18677         (struct cgraph_node, varpool_node): Add ref_lst.
18678         * ipa-ref.c: New file.
18679         * ipa-ref.h: New file.
18680         * ipa-ref-inline.h: New file.
18681         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
18682         (referenced_from_other_partition_p): New function.
18683         (lto_output_varpool_node): Take set arugment; call
18684         referenced_from_other_partition.
18685         (lto_output_ref): New.
18686         (add_references): New.
18687         (output_refs): New.
18688         (output_cgraph): Compute boundary based on references; output refs.
18689         (output_varpool): Accept cgraph_node_set argument.
18690         (input_ref): New.
18691         (input_refs): New.
18692         (input_cgraph): Call input_refs.
18693         * lto-section-in.c (lto_section_name): Add refs.
18694         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
18695         (ipa-ref.o): New file.
18696         * varpool.c (varpool_node): Clear ipa ref list.
18697         (varpool_remove_node): Remove references.
18698         (dump_varpool_node): Dump references.
18699         (varpool_assemble_decl): Only compile finalized ones.
18700         (varpool_extra_name_alias): Initialize ref list.
18701         * lto-streamer.c (lto-get_section_name): Add .refs section.
18702         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
18703         (referenced_from_other_partition_p): Declared.
18704
18705 2010-05-06  Ira Rosen  <irar@il.ibm.com>
18706
18707         PR tree-optimization/43901
18708         * tree-vect-stmts.c (vectorizable_call): Assert that vector
18709         type is not NULL if it's transformation phase, and return
18710         FALSE if it's analysis.
18711         (vectorizable_conversion, vectorizable_operation,
18712         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
18713
18714 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
18715
18716         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
18717         Delete.
18718         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
18719         New define.
18720         * config/mips/mips-protos.h
18721         (mips_small_register_classes_for_mode_p): Delete prototype.
18722
18723 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
18724
18725         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
18726         * config/arm/arm.c (multiple_operation_profitable_p,
18727         compute_offset_order): New static functions.
18728         (load_multiple_sequence, store_multiple_sequence): Use them.
18729         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
18730         memory offsets, not register numbers.
18731         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
18732
18733 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
18734
18735         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
18736         (get_pending_sizes, put_pending_size, put_pending_sizes):
18737         Update the uses of pending_sizes.
18738         * c-decl.c (store_parm_decls): Likewise.
18739         * c-tree.h (struct c_arg_info): Likewise.
18740         * tree.h: Update the prototype for get_pending_sizes and
18741         put_pending_sizes.
18742
18743 2010-05-05  Jason Merrill  <jason@redhat.com>
18744
18745         PR debug/43370
18746         * c-common.c (handle_aligned_attribute): Respect
18747         ATTR_FLAG_TYPE_IN_PLACE.
18748
18749         PR testsuite/43758
18750         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
18751         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18752         (TARGET_INITIALIZER): Use it.
18753         * c-common.c (attribute_takes_identifier_p): Call it.
18754         * c-common.h: Update prototype.
18755         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
18756         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18757
18758 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
18759
18760         PR debug/43950
18761         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
18762         DW_ID_down_case for Fortran compilation units.
18763
18764 2010-05-05  Jan Hubicka  <jh@suse.cz>
18765
18766         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
18767         handle aliases.
18768
18769 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18770
18771         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
18772         a variable-sized RESULT_DECL.
18773
18774 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
18775
18776         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
18777
18778 2010-05-05  Jason Merrill  <jason@redhat.com>
18779
18780         PR c++/43787
18781         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
18782         returns GS_OK.
18783         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
18784
18785 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
18786             Jakub Jelinek  <jakub@redhat.com>
18787
18788         PR debug/43478
18789         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
18790         (dead_debug_init, dead_debug_finish): New functions.
18791         (dead_debug_add, dead_debug_insert_before): Likewise.
18792         (df_note_bb_compute): Initialize a dead_debug object, add dead
18793         debug uses to it, insert debug bind insns before death insns,
18794         reset debug insns that refer to pending uses at the end.
18795         * rtl.h (make_debug_expr_from_rtl): New prototype.
18796         * varasm.c (make_debug_expr_from_rtl): New function.
18797
18798 2010-05-05  Jan Hubicka  <jh@suse.cz>
18799
18800         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
18801         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
18802         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
18803         lto_varpool_encoder_deref, lto_varpool_encoder_size,
18804         lto_varpool_encoder_encode_initializer_p,
18805         lto_set_varpool_encoder_encode_initializer): New functions.
18806         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
18807         call output_varpool.
18808         (input_varpool_node): Do not always set analyzed.
18809         (input_cgraph_1): Return vector of cgraph nodes.
18810         (input_varpool_1): Return vector of varpools.
18811         (input_cgraph): Free the vectors.
18812         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18813         output only initializers needed.
18814         (lto_output): Only call output_cgraph.
18815         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
18816         * lto-section-out.c (lto_new_out_decl_state): Initialize
18817         state->varpool_node_encoder.
18818         * lto-streamer.h (lto_varpool_encoder_d): New.
18819         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
18820         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
18821         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
18822         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
18823         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
18824         Declare.
18825         (output_varpool, input_varpool): Remove declarations.
18826
18827 2010-05-05  Jan Hubicka  <jh@suse.cz>
18828
18829         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
18830         with body can prevail.
18831
18832 2010-05-05  Jan Hubicka  <jh@suse.cz>
18833
18834         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
18835         size.
18836
18837 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18838
18839         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
18840
18841         * gengtype.h (erro_at_line): Constify pos argument.
18842
18843         * gengtype.c: Include hashtab.h.
18844         (enum gc_used): Document GC_MAYBE_POINTED_TO.
18845         (error_at_line): Constify pos argument.
18846         (do_typedef): Initialize p->opt field.
18847         (get_file_gtfilename): Fix comment typo.
18848         (struct walk_type_data): Constify line field.
18849         (get_output_file_for_structure): New function.
18850         (write_local_func_for_structure): Constify orig_s argument.
18851         Use get_output_file_for_structure.
18852         (write_func_for_structure): Use get_output_file_for_structure.
18853         (INDENT): New define.
18854         (dump_pair, dump_type, dump_type_list, dump_typekind)
18855         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
18856         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
18857         functions.
18858         (seen_types): New variable.
18859         (main): New variable do_dump.  Process "-d" command line option.
18860         Call dump_everything if dump requested.
18861
18862 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
18863
18864         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
18865         in a temporary instead of invoking the macro multiple times.
18866         (track_expr_p): Likewise.
18867
18868 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
18869
18870         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
18871         per new semantics.
18872         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
18873         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
18874         conditions for printing notes.
18875         * common.opt (-Wcoverage-mismatch): Allow negative, default to
18876         true, update documentation.
18877         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
18878
18879 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
18880
18881         PR c/43981
18882         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
18883         on dimen.
18884
18885 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18886
18887         PR target/43799
18888         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
18889         (*sse_prologue_save_insn1): Likewise.
18890         (SSE prologue save splitter): Likewise.
18891
18892 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18893
18894         * tree.c (free_lang_data_in_one_sizepos): New inline function.
18895         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
18896         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
18897         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
18898         all decls.  Call it on DECL_FIELD_OFFSET of fields.
18899         (find_decls_types_r): Follow DECL_VALUE_EXPR.
18900         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
18901
18902 2010-05-04  Martin Jambor  <mjambor@suse.cz>
18903
18904         * tree-sra.c (build_access_from_expr_1): The first parameter type
18905         changed to simple tree.
18906         (build_access_from_expr): Likewise, gsi parameter was eliminated.
18907         (scan_assign_result): Renamed to assignment_mod_result, enum elements
18908         renamed as well.
18909         (build_accesses_from_assign): Removed all parameters except for a
18910         simple gimple statement.  Now returns a simple bool.
18911         (scan_function): All non-analysis parts moved to separate functions
18912         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
18913         parameters and updated both callers.
18914         (sra_modify_expr): Removed parameter data.
18915         (sra_modify_function_body): New function.
18916         (perform_intra_sra): Call sra_modify_function_body to modify the
18917         function body.
18918         (replace_removed_params_ssa_names): Parameter data changed into
18919         adjustments vector.
18920         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
18921         changed the parameter dont_convert to convert with the opposite
18922         meaning.
18923         (sra_ipa_modify_assign): Parameter data changed into adjustments
18924         vector, return value changed to bool.
18925         (ipa_sra_modify_function_body): New function.
18926         (sra_ipa_reset_debug_stmts): Updated a comment.
18927         (modify_function): Use ipa_sra_modify_function_body to modify function
18928         body.
18929
18930 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18931
18932         PR middle-end/43671
18933         * alias.c (true_dependence): Handle the same VALUE in x and mem.
18934         (canon_true_dependence): Likewise.
18935         (write_dependence_p): Likewise.
18936
18937 2010-05-04  Jan Hubicka  <jh@suse.cz>
18938
18939         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
18940         * cgraphbuild.c: Include ipa-utils.h
18941         (record_reference_ctx): New struct.
18942         (record_reference): Simplify to work on initializers; not statements.
18943         (mark_address, mark_load, mark_store): New.
18944         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
18945         walk PHI nodes too.
18946         (record_references_in_initializer): Update use of record_reference.
18947         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
18948         walk PHI nodes too.
18949
18950 2010-05-04  Jan Hubicka  <jh@suse.cz>
18951
18952         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
18953         node will be removed anyway.
18954         (lto_varpool_replace_node): Allow also unanalyzed nodes;
18955         relink aliases of node into prevailing node.
18956         * varpool.c (varpool_remove_node): Remove aliases properly;
18957         when removing node, remove all its aliases too; remove DECL_INITIAL
18958         of removed node; ggc_free the varpool node.
18959
18960 2010-05-04  Richard Guenther  <rguenther@suse.de>
18961
18962         PR tree-optimization/43879
18963         * tree-ssa-structalias.c (alias_get_name): Use
18964         DECL_ASSEMBLER_NAME if available.
18965         (create_function_info_for): Return the varinfo node.
18966         (ipa_pta_execute): Associate same-body aliases and extra names
18967         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
18968
18969 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
18970
18971         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
18972
18973 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
18974
18975         PR bootstrap/43964
18976         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
18977         only if HONOR_REG_ALLOC_ORDER is not defined.
18978
18979 2010-05-04  Richard Guenther  <rguenther@suse.de>
18980
18981         PR tree-optimization/43949
18982         * tree-vrp.c (extract_range_from_binary_expr): Only handle
18983         TRUNC_MOD_EXPR.
18984
18985 2010-04-26  Jason Merrill  <jason@redhat.com>
18986
18987         * c.opt (-fstrict-enums): New.
18988         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
18989
18990 2010-05-03  David Ung  <davidu@mips.com>
18991             James E. Wilson  <wilson@codesourcery.com>
18992
18993         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
18994         emit the trap instruction before the divide for TUNE_74K.
18995
18996 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
18997
18998         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
18999         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
19000         based on the above, for new target hook.
19001
19002         * hooks.c (hook_bool_mode_true): New generic hook.
19003         * hooks.h (hook_bool_mode_true): Add prototype.
19004
19005         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
19006         target hook.
19007         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
19008         target hook, set to hook_bool_mode_false.
19009         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
19010         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
19011         with targetm.small_register_classes_for_mode_p.
19012         (find_reusable_reload): Likewise.
19013         (combine_reloads): Likewise.
19014         * reload1.c (reload_as_needed): Likewise.
19015         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
19016         * ifcvt.c (noce_process_if_block, check_cond_move_block,
19017         dead_or_predicable): Likewise.
19018         * regmove.c (optimize_reg_copy_1): Likewise.
19019         * calls.c (prepare_call_address): Likewise.
19020         (precompute_register_parameters): Likewise.
19021
19022         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
19023         hook definition.
19024         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
19025         implementation of the hook that considers all register classes
19026         small except for SH64.
19027         (sh_override_options): Use the new hook.
19028         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
19029         Add prototype.
19030
19031         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
19032         hook definition.
19033         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
19034         implementation of the hook that considers all register classes
19035         small for THUMB1.
19036         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
19037         Add prototype.
19038
19039         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
19040         hook definition.
19041         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
19042         implementation of the hook that considers all register classes
19043         small for MIPS16.
19044         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
19045         Add prototype.
19046
19047         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
19048         hook definition.
19049         * config/m32c/m32c.h: Likewise.
19050         * config/pdp11/pdp11.h: Likewise.
19051         * config/avr/avr.h: Likewise.
19052         * config/xtensa/xtensa.h: Likewise.
19053         * config/m68hc11/m68hc11.h: Likewise.
19054         * config/mn10300/mn10300.h: Likewise.
19055         * config/mcore/mcore.h: Likewise.
19056         * config/h8300/h8300.h: Likewise.
19057         * config/bfin/bfin.h: Likewise.
19058
19059         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
19060         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
19061
19062 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
19063
19064         * double-int.h (tree_to_double_int): Remove macro.
19065         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
19066         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
19067         (tree_to_double_int): New function.
19068         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
19069         Move ...
19070         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
19071
19072 2010-05-03  Richard Guenther  <rguenther@suse.de>
19073
19074         PR tree-optimization/43971
19075         * tree-ssa-structalias.c (get_constraint_for_1): Fix
19076         constraints in the !flag_delete_null_pointer_checks case.
19077
19078 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
19079
19080         PR debug/43972
19081         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
19082         result mode matches original rtl mode.
19083
19084 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
19085
19086         PR target/43888
19087         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
19088
19089 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
19090
19091         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
19092         when processing flag options.
19093
19094 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
19095
19096         * gcov-iov.c (main): Change format string placeholder
19097         from %#08x to 0x%08x.
19098         * genchecksum.c (dosum): Change format string placeholder
19099         from %#02x to 0x%02x.
19100
19101 2010-05-02  Richard Guenther  <rguenther@suse.de>
19102
19103         PR tree-optimization/43879
19104         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
19105
19106 2010-05-02  Bruno Haible  <bruno@clisp.org>
19107
19108         * doc/extend.texi (Function Attributes): Fix a typo.
19109
19110 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
19111
19112         Revert:
19113         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
19114         placeholder from 0x%x to %#x.
19115         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
19116         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
19117         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
19118         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
19119         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
19120         * config/i386/i386.c (ix86_target_string): Ditto.
19121         * config/i386/i386.c (output_pic_addr_const): Ditto.
19122         (print_operand): Ditto.
19123
19124 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
19125
19126         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
19127         placeholder from 0x%x to %#x.
19128         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
19129         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
19130         (ASM_OUTPUT_DEBUG_DATA): Ditto.
19131         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
19132         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
19133         * optc-gen.awk: Ditto.
19134         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
19135         (HOST_WIDE_INT_PRINT_HEX): Ditto.
19136         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
19137         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
19138
19139 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
19140
19141         * target.h (struct calls): Add function_value_regno_p field.
19142         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
19143         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
19144         * targhooks.c (default_function_value_regno_p): New function.
19145         * targhooks.h (default_function_value_regno_p): Declare function.
19146         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
19147         * builtins.c. (apply_result_size): (Ditto.).
19148         * combine.c. (likely_spilled_retval_p): (Ditto.).
19149         * mode-switching.c. Include 'target.h'.
19150         (create_pre_exit): Use function_value_regno_p hook.
19151         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
19152         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
19153         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
19154
19155         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
19156         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
19157         (ix86_function_value_regno_p): Declare as static, change argument
19158         type to const unsigned int.
19159         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
19160
19161 2010-05-01  Richard Guenther  <rguenther@suse.de>
19162
19163         PR tree-optimization/43949
19164         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
19165         types.
19166         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
19167
19168 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
19169
19170         * rtl.h (CONST_DOUBLE_P): Define.
19171         (rtx_to_double_int): Declare.
19172         * emit-rtl.c (rtx_to_double_int): New function.
19173         * dwarf2out.c (insert_double): New function.
19174         (loc_descriptor, add_const_value_attribute): Clean up, use
19175         rtx_to_double_int and insert_double functions.
19176
19177 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
19178
19179         * doc/extend.texi (Inline): Add missing return keyword to examples.
19180         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
19181         "command-line".
19182
19183 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
19184
19185         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
19186         the variable part of the offset as well.  Use highest_pow2_factor for
19187         all alignment checks.
19188
19189 2010-04-30  Richard Guenther  <rguenther@suse.de>
19190
19191         PR tree-optimization/43879
19192         * tree-ssa-structalias.c (type_could_have_pointers): Functions
19193         can have pointers.
19194
19195 2010-04-30  Jan Hubicka  <jh@suse.cz>
19196
19197         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
19198         varpool.
19199         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
19200
19201 2010-04-30  Jan Hubicka  <jh@suse.cz>
19202
19203         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
19204         New.
19205         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
19206         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
19207         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
19208         cgraph_node_set_needs_ltrans_p): Remove.
19209
19210 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
19211
19212         * sdbout.c: Include vec.h, do not include varray.h.
19213         (deferred_global_decls, sdbout_global_decl,
19214         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
19215         * toplev.c: Do not include varray.h.
19216         (dump_memory_report): Do not dump VARRAY statistics.
19217         * gengtype.c (open_base_file): Ignore varray.h.
19218         * Makefile.in: Update for abovementioned changes.
19219         Remove all traces of varray.c and varray.h.
19220         * varray.c: Remove file.
19221         * varray.h: Remove file.
19222
19223 2010-04-30  Jan Hubicka  <jh@suse.cz>
19224
19225         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
19226         references.
19227
19228 2010-04-30  Jan Hubicka  <jh@suse.cz>
19229
19230         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
19231         needed.
19232
19233 2010-04-30  Richard Guenther  <rguenther@suse.de>
19234
19235         * tree-ssa-structalias.c (get_constraint_for_1): Generate
19236         constraints for CONSTRUCTOR.
19237
19238 2010-04-30  Richard Guenther  <rguenther@suse.de>
19239
19240         PR lto/43946
19241         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
19242         first after all lowering passes.
19243
19244 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
19245
19246         * toplev.c: Include varray.h for statistics dumping.
19247         * tree.h: Do not declare varray_head_tag.
19248         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
19249         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
19250         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
19251         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
19252         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
19253         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
19254         c-common.c, c-common.h, reg-stack.c, basic-block.h,
19255         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
19256         include varray.h.
19257         * Makefile.in: Update for abovementioned changes.
19258
19259 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
19260
19261         PR debug/43942
19262         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
19263
19264 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
19265
19266         * config/picochip/picochip.c (picochip_legitimize_address): Define.
19267         Use this function to do machine-specific conversion.
19268         (picochip_legitimize_reload_address): Likewise.
19269         (picochip_legitimate_address_p): Check valid base register only if
19270         strict.
19271         (picochip_check_conditional_copy): Check for modw only if opnd is
19272         register.
19273         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
19274         to call the function in c.
19275         * config/picochip/picochip-protos.h
19276         (picochip_legitimize_reload_address): Define.
19277         * config/picochip/picochip.md (supported_compare1): Define.
19278
19279 2010-04-30  Jan Hubicka  <jh@suse.cz>
19280
19281         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
19282         (cgraph_global_info): Remove inlined.
19283         (LTO_cgraph_tag_names): Remove.
19284         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
19285         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
19286         simplify cgraph tags and document.
19287         (lto_output_node): Use only LTO_cgraph_unavail_node and
19288         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
19289         for_functions_valid, global info, process and output flags.
19290         (input_overwrite_node): Initialize estimated stack size and
19291         estimated growth.  Do not read flags we no longer store.
19292         (input_node): Likewise do not read info no longer stored.
19293         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
19294         flag.
19295
19296 2010-04-30  Richard Guenther  <rguenther@suse.de>
19297
19298         PR tree-optimization/43879
19299         * tree-ssa-structalias.c (get_constraint_for_1): Properly
19300         handle non-zero initializers.
19301
19302 2010-04-30  Richard Guenther  <rguenther@suse.de>
19303
19304         * builtins.c (fold_builtin_1): Delete free (0).
19305
19306 2010-04-29  Jan Hubicka  <jh@suse.cz>
19307
19308         * gengtype.c (open_base_files): Add lto-streamer.h
19309         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
19310         (pass_ipa_cp): GGC collect.
19311         * toplev. (compile_file): Do not output symbols.
19312         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
19313         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
19314         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
19315         * lto-section-in.c: Include ggc.h
19316         (lto_new_in_decl_state): Alloc in GGC.
19317         (lto_delete_in_decl_state): Likewise.
19318         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
19319         Collect.
19320
19321 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
19322
19323         PR target/42895
19324         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
19325         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
19326         (HONOR_REG_ALLOC_ORDER): Describe new macro.
19327         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
19328         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
19329         account only if HONOR_REG_ALLOC_ORDER is not defined.
19330         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
19331         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
19332
19333 2010-04-29  Jon Grant  <04@jguk.org>
19334
19335         * collect2.c (vflag): Change type from int to bool.
19336         (debug): Likewise.
19337         (helpflag): New global bool.
19338         (main): Set vflag and debug with boolean, not integer truth values.
19339         Accept new "--help" option and output usage text if found.
19340         * collect2.h (vflag): Update prototype.
19341         (debug): Likewise.
19342
19343 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
19344
19345         PR bootstrap/43936
19346         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
19347
19348 2010-04-29  Richard Guenther  <rguenther@suse.de>
19349
19350         PR bootstrap/43935
19351         * plugin.h (invoke_plugin_callbacks): Annotate arguments
19352         with ATTRIBUTE_UNUSED.
19353
19354 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
19355
19356         PR target/43921
19357         * config/i386/i386.c (get_some_local_dynamic_name): Replace
19358         INSN_P with NONDEBUG_INSN_P.
19359         (distance_non_agu_define): Likewise.
19360         (distance_agu_use): Likewise.
19361
19362 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
19363
19364         From Dominique d'Humieres  <dominiq@lps.ens.fr>
19365         PR bootstrap/43858
19366         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
19367         test_set.
19368
19369 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
19370
19371         * plugin.h (invoke_plugin_callbacks): New inline function.
19372         * plugin.c (flag_plugin_added): New global flag.
19373         (add_new_plugin): Initialize above flag.
19374         (invoke_plugin_callbacks): Rename to ...
19375         (invoke_plugin_callbacks_full): ... this.
19376
19377 2010-04-28  Jan Hubicka  <jh@suse.cz>
19378
19379         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
19380         (lto_varpool_replace_node): New.
19381         (lto_symtab_resolve_symbols): Resolve varpool nodes.
19382         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
19383         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
19384         * cgraph.h (varpool_node_ptr): New type.
19385         (varpool_node_ptr): New vector.
19386         (varpool_node_set_def): New structure.
19387         (varpool_node_set): New type.
19388         (varpool_node_set): New vector.
19389         (varpool_node_set_element_def): New structure.
19390         (varpool_node_set_element, const_varpool_node_set_element): New types.
19391         (varpool_node_set_iterator): New type.
19392         (varpool_node): Add prev pointers, add used_from_other_partition,
19393         in_other_partition.
19394         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
19395         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
19396         varpool_get_node, varpool_remove_node): Declare.
19397         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
19398         varpool_node_set_size): New inlines.
19399         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
19400         * tree-pass.h (varpool_node_set_def): Forward declare.
19401         (ipa_opt_pass_d): Summary writting takes vnode sets too.
19402         (ipa_write_optimization_summaries): Update prototype.
19403         * ipa-cp.c (ipcp_write_summary): Update.
19404         * ipa-reference.c (ipa_reference_write_summary): Update.
19405         * lto-cgraph.c (lto_output_varpool_node): New static function.
19406         (output_varpool): New function.
19407         (input_varpool_node): New static function.
19408         (input_varpool_1): New function.
19409         (input_cgraph): Input varpool.
19410         * ipa-pure-const.c (pure_const_write_summary): Update.
19411         * lto-streamer-out.c (lto_output): Update, output varpool too.
19412         (write_global_stream): Kill WPA hack.
19413         (produce_asm_for_decls): Update.
19414         (output_alias_pair_p): Handle variables.
19415         (output_unreferenced_globals): Output only needed partition of varpool.
19416         * ipa-inline.c (inline_write_summary): Update.
19417         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
19418         cgraph.
19419         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
19420         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
19421         varpool_node_set_new, varpool_node_set_add,
19422         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
19423         debug_varpool_node_set): New functions.
19424         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
19425         (execute_one_pass): Process new decls too.
19426         (ipa_write_summaries_2): Pass around vsets.
19427         (ipa_write_summaries_1): Likewise.
19428         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
19429         to add.
19430         (ipa_write_optimization_summaries_1): Pass around vsets.
19431         (ipa_write_optimization_summaries): Likewise.
19432         * varpool.c (varpool_get_node): New.
19433         (varpool_node): Update doubly linked lists.
19434         (varpool_remove_node): New.
19435         (dump_varpool_node): More dumping.
19436         (varpool_enqueue_needed_node): Update doubly linked lists.
19437         (decide_is_variable_needed): Kill ltrans hack.
19438         (varpool_finalize_decl): Kill lto hack.
19439         (varpool_assemble_decl): Skip decls in other partitions.
19440         (varpool_assemble_pending_decls): Update doubly linkes lists.
19441         (varpool_empty_needed_queue): Likewise.
19442         (varpool_extra_name_alias): Likewise.
19443         * lto-streamer.c (lto_get_section_name): Add vars section.
19444         * lto-streamer.h (lto_section_type): Update.
19445         (output_varpool, input_varpool): Declare.
19446
19447 2010-04-28  Mike Stump  <mikestump@comcast.net>
19448
19449         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
19450
19451 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19452
19453         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
19454         record or union type with RECORD_OR_UNION_TYPE_P predicate.
19455         (lto_input_ts_type_tree_pointers): Likewise.
19456         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
19457         (lto_output_ts_type_tree_pointers): Likewise.
19458
19459 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19460
19461         Uniquization of constants at the Tree level
19462         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
19463         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
19464         bit to the end.
19465         (tree_output_constant_def): Declare.
19466         * gimplify.c (gimplify_init_constructor): When using block copy, first
19467         uniquize the constant constructor on the RHS.
19468         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
19469         DECL_IN_CONSTANT_POOL flag.
19470         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
19471         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
19472         constant pool.
19473         (assemble_variable): Deal with symbols belonging to the tree constant
19474         pool.
19475         (get_constant_section): Add ALIGN parameter and simplify.
19476         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
19477         (assemble_constant_contents): Use the expression of the VAR_DECL.
19478         (output_constant_def_contents): Use the alignment of the VAR_DECL.
19479         (tree_output_constant_def): New global function.
19480         (mark_constant): Use the expression of the VAR_DECL.
19481         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
19482         its expression.
19483         (output_object_block): Likewise and assemble the expression.
19484
19485 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19486
19487         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
19488         hash_tree, eq_tree): New tree hash table.
19489         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
19490         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
19491         lto_orig_address_remove): Reimplement.
19492
19493 2010-04-28  Xinliang David Li  <davidxl@google.com>
19494
19495         PR c/42643
19496         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
19497         (compute_uninit_opnds_pos): New function.
19498         (is_non_loop_exit_postdominating): New function.
19499         (compute_control_dep_chain): New function.
19500         (find_pdom): New function.
19501         (convert_control_dep_chain_into_preds): New function.
19502         (find_predicates): New function.
19503         (find_control_equiv_block): New function.
19504         (collect_phi_def_edges): New function.
19505         (find_def_preds): New function.
19506         (find_dom): New function.
19507         (dump_predicates): New function.
19508         (get_cmp_code): New function.
19509         (is_value_included_in): New function.
19510         (find_matching_predicate_in_rest_chains): New function.
19511         (use_pred_not_overlap_with_undef_path_pred): New function.
19512         (is_use_properly_guarded): New function.
19513         (normalize_cond_1): New function.
19514         (is_and_or_or): New function.
19515         (normalize_cond): New function.
19516         (is_gcond_subset_of): New function.
19517         (is_subset_of_any): New function.
19518         (is_or_set_subset_of): New function.
19519         (is_and_set_subset_of): New function.
19520         (is_norm_cond_subset_of): New function.
19521         (is_pred_expr_subset_of): New function.
19522         (is_pred_chain_subset_of): New function.
19523         (is_included_in): New function.
19524         (is_superset_of): New function.
19525         (find_uninit_use): New function.
19526         (warn_uninitialized_phi): New function.
19527         (compute_possibly_undefined_names): New function.
19528         (ssa_undefined_value_p): New function.
19529         (execute_late_warn_uninitialized): New function.
19530         * tree-ssa.c (ssa_undefined_value_p): Removed.
19531         (warn_uninit): Changed to extern.
19532         (warn_uninitialized_phi): Removed.
19533         (warn_uninitialized_vars): Changed to extern.
19534         (execute_late_warn_uninitialized): Removed
19535         * tree-flow.h: Add new prototypes.
19536         * timevar.def: Add new time variable.
19537         * Makefile.in: Add new build file.
19538
19539 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
19540
19541         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
19542         type if available.
19543
19544 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19545
19546         PR target/22224
19547         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
19548
19549 2010-04-28  Martin Jambor  <mjambor@suse.cz>
19550
19551         * cgraph.h (struct cgraph_node): New field indirect_calls.
19552         (struct cgraph_indirect_call_info): New type.
19553         (struct cgraph_edge): Removed field indirect_call. New fields
19554         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
19555         (cgraph_create_indirect_edge): Declare.
19556         (cgraph_make_edge_direct): Likewise.
19557         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
19558         * ipa-prop.h (struct ipa_param_call_note): Removed.
19559         (struct ipa_node_params): Removed field param_calls.
19560         (ipa_create_all_structures_for_iinln): Declare.
19561         * cgraph.c: Described indirect edges and uids in initial comment.
19562         (cgraph_add_edge_to_call_site_hash): New function.
19563         (cgraph_edge): Search also among the indirect edges, use
19564         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
19565         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
19566         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
19567         site hash.
19568         (initialize_inline_failed): Assign a reason to indirect edges.
19569         (cgraph_create_edge_1): New function.
19570         (cgraph_create_edge): Moved some functionality to
19571         cgraph_create_edge_1.
19572         (cgraph_create_indirect_edge): New function.
19573         (cgraph_edge_remove_callee): Add an assert checking for
19574         non-indirectness.
19575         (cgraph_edge_remove_caller): Special-case indirect edges.
19576         (cgraph_remove_edge): Likewise.
19577         (cgraph_set_edge_callee): New function.
19578         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
19579         (cgraph_make_edge_direct): New function.
19580         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
19581         the declaration of the call statement matches.
19582         (cgraph_node_remove_callees): Special-case indirect edges.
19583         (cgraph_clone_edge): Likewise.
19584         (cgraph_clone_node): Clone also the indirect edges.
19585         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
19586         indirect_call, dump count of indirect_calls edges.
19587         * ipa-prop.c (iinlining_processed_edges): New variable.
19588         (ipa_note_param_call): Create indirect edges instead of
19589         creating notes.  New parameter node.
19590         (ipa_analyze_call_uses): New parameter node, pass it on to
19591         ipa_note_param_call.
19592         (ipa_analyze_stmt_uses): Likewise.
19593         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
19594         (print_edge_addition_message): Work on edges rather than on notes.
19595         (update_call_notes_after_inlining): Likewise, renamed to
19596         update_indirect_edges_after_inlining.
19597         (ipa_create_all_structures_for_iinln): New function.
19598         (ipa_free_node_params_substructures): Do not free notes.
19599         (ipa_edge_duplication_hook): Propagate bits within
19600         iinlining_processed_edges bitmap.
19601         (ipa_node_duplication_hook): Do not duplicate notes.
19602         (free_all_ipa_structures_after_ipa_cp): Renamed to
19603         ipa_free_all_structures_after_ipa_cp.
19604         (free_all_ipa_structures_after_iinln): Renamed to
19605         ipa_free_all_structures_after_iinln.
19606         (ipa_write_param_call_note): Removed.
19607         (ipa_read_param_call_note): Removed.
19608         (ipa_write_indirect_edge_info): New function.
19609         (ipa_read_indirect_edge_info): Likewise.
19610         (ipa_write_node_info): Do not stream notes, do stream information
19611         in indirect edges.
19612         (ipa_read_node_info): Likewise.
19613         (lto_ipa_fixup_call_notes): Removed.
19614         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
19615         * ipa-inline.c (pass_ipa_inline): Likewise.
19616         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
19617         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
19618         * tree-inline.c (copy_bb): Removed an unnecessary double check for
19619         is_gimple_call.
19620         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
19621         edges.
19622         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
19623         (output_cgraph): Stream also indirect edges.
19624         (lto_output_edge): Added capability to stream indirect edges.
19625         (input_edge): Likewise.
19626         (input_cgraph_1): Likewise.
19627         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
19628         of indirect edges.
19629
19630 2010-04-28  Richard Guenther  <rguenther@suse.de>
19631
19632         PR tree-optimization/43879
19633         PR tree-optimization/43909
19634         * tree-ssa-structalias.c (struct variable_info): Add
19635         only_restrict_pointers flag.
19636         (new_var_info): Initialize it.  Increment stats.total_vars here.
19637         (create_function_info_for): Do not increment stats.total_vars here.
19638         (get_function_part_constraint): Fix build with C++.
19639         (insert_into_field_list): Remove.
19640         (push_fields_onto_fieldstack): Properly merge fields.
19641         (create_variable_info_for): Split and simplify.
19642         (create_variable_info_for_1): New piece.
19643         (intra_create_variable_infos): Properly make restrict constraints
19644         from parameters.
19645
19646 2010-04-28  Richard Guenther  <rguenther@suse.de>
19647
19648         PR c++/43880
19649         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
19650
19651 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19652             Jan Hubicka  <hubicka@ucw.cz>
19653
19654         * doc/invoke.texi (-Wsuggest-attribute=const,
19655         -Wsuggest-attribute=pure): Document.
19656         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
19657         (function_always_visible_to_compiler_p,
19658         suggest_attribute, warn_function_pure, warn_function_const):
19659         New functions.
19660         (check_call): Improve debug info.
19661         (analyze_function): Do not check availability.
19662         (add_new_function): Check availability.
19663         (propagate): Output warnings.
19664         (skip_function_for_local_pure_const): New function.
19665         (local_pure_const): Use it; output warnings.
19666         * common.opt (Wsuggest-attribute=const,
19667         Wsuggest-attribute=pure): New.
19668
19669 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
19670
19671         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
19672         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
19673         or DW_CFA_def_cfa_offset{,_sf}.
19674
19675 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19676
19677         * tree.h: Fix truncated long macros.
19678
19679 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
19680
19681         * collect2.c (TARGET_64BIT): Redefine to target's default.
19682         * tlink.c: Likewise.
19683         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
19684         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
19685         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
19686         for underscoring __USER_LABEL_PREFIX__.
19687         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
19688         (SUB_LINK_ENTRY32): New.
19689         (SUB_LINK_ENTRY64): New.
19690         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
19691         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
19692         (SUB_LINK_ENTRY64): New.
19693         (SUB_LINK_ENTRY): New.
19694         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
19695         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
19696         x64 target is choosen.
19697         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
19698         * configure: Regenerated.
19699         * configure.ac (leading-mingw64-underscores): Option added.
19700
19701 2010-04-27  Jan Hubicka  <jh@suse.cz>
19702
19703         * doc/invoke.texi (-fipa-profile): Document.
19704         * opts.c (decode_options): Enable ipa-profile at -O1.
19705         * timevar.def (TV_IPA_PROFILE): Define.
19706         * common.opt (fipa-profile): Add.
19707         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
19708         flag for clones.
19709         (cgraph_propagate_frequency): Handle only local ones.
19710         * tree-pass.h (pass_ipa_profile): Declare.
19711         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
19712         (pass_ipa_profile): Use TV_IPA_PROFILE.
19713         * ipa.c (ipa_profile): New function.
19714         (gate_ipa_profile): Likewise.
19715         (pass_ipa_profile): New global variable.
19716         * passes.c (pass_ipa_profile): New.
19717
19718 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
19719
19720         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
19721
19722 2010-04-27  Martin Jambor  <mjambor@suse.cz>
19723
19724         PR middle-end/43812
19725         * ipa.c (dissolve_same_comdat_group_list): New function.
19726         (function_and_variable_visibility): Call
19727         dissolve_same_comdat_group_list when comdat group contains external or
19728         newly local nodes.
19729         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
19730         lists are circular and that they contain only DECL_ONE_ONLY nodes.
19731
19732 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19733
19734         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
19735         (const_hash_1) <VECTOR_CST>: New case.
19736         (compare_constant) <VECTOR_CST>: Likewise.
19737         <ADDR_EXPR>: Deal with LABEL_REFs.
19738         (copy_constant) <VECTOR_CST>: New case.
19739
19740 2010-04-27  Jan Hubicka  <jh@suse.cz>
19741
19742         * cgraph.c (cgraph_propagate_frequency): New function.
19743         * cgraph.h (cgraph_propagate_frequency): Declare.
19744         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
19745         cgraph_propagate_frequency.
19746
19747 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
19748
19749         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
19750
19751 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
19752
19753         PR target/40657
19754         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
19755         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
19756         here to determine which regs to push and how much stack to reserve.
19757
19758 2010-04-27  Jie Zhang  <jie@codesourcery.com>
19759
19760         * doc/gimple.texi (gimple_statement_with_ops): Remove
19761         addresses_taken field.
19762         (gimple_statement_with_memory_ops): Likewise.
19763
19764 2010-04-27  Jan Hubicka  <jh@suse.cz>
19765
19766         * tree-inline.c (eni_inlining_weights): Remove.
19767         (estimate_num_insns): Special case more builtins.
19768
19769 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
19770
19771         PR c/32207
19772         * c-typeck.c (build_binary_op): Move forward check for comparison
19773         pointer with null pointer constant and adjust the diagnostic message.
19774
19775 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
19776
19777         PR lto/42776
19778         * configure.ac (gcc_cv_as_section_has_align): Set if installed
19779         binutils supports extended .section directive needed by LTO, or
19780         warn if older binutils found.
19781         (LTO_BINARY_READER): New AC_SUBST'd variable.
19782         (LTO_USE_LIBELF): Likewise.
19783         * config.gcc (lto_binary_reader): New target-specific configure
19784         variable.
19785         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
19786         (LTO_USE_LIBELF): Likewise.
19787         * configure: Regenerate.
19788
19789         * collect2.c (is_elf): Rename from this ...
19790         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
19791          object files in addition to ELF-formatted ones.
19792         (scan_prog_file): Caller updated.  Also allow for LTO info marker
19793         symbol to be prefixed or not by an extra underscore.
19794
19795         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
19796         * config/i386/winnt.c: Also #include lto-streamer.h
19797         (i386_pe_asm_named_section): Specify 1-byte section alignment for
19798         LTO named sections.
19799         (i386_pe_asm_output_aligned_decl_common): Add comment.
19800         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
19801
19802 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
19803
19804         PR target/43889
19805         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
19806         Add missing earlyclobber for second alternative.
19807
19808 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
19809
19810         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
19811         bits for artificial defs at the top of the block.
19812         * fwprop.c (single_def_use_enter_block): Don't call it.
19813
19814 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
19815
19816         PR 43715
19817         * configure.ac: Use "$gcc_cv_nm -g" on darwin
19818         instead of "$gcc_cv_objdump -T".
19819         Use "-undefined dynamic_lookup" on darwin.
19820         * configure: Regenerate.
19821
19822 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
19823
19824         PR c/43893
19825         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
19826
19827 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
19828
19829         * c-parser.c (struct c_token): Move location field up.
19830         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
19831         (struct c_declspecs): Convert typespec_word, storage_class, and
19832         default_int_p into bitfields.
19833         (struct c_declarator): Move loc field up.
19834
19835 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
19836
19837         * cfgloop.h (struct loop): Move can_be_parallel field up.
19838         * ipa-prop.h (struct ip_node_params): Move bitfields up.
19839         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
19840         down.
19841         (struct iv_cand): Convert pos field into a bitfield.
19842         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
19843         field up.
19844         (struct _stmt_vec_info): Shuffle fields for better packing.
19845
19846 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
19847
19848         * varasm.c (IN_NAMED_SECTION): Remove guard.
19849         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
19850         (IN_NAMED_SECTION_P): ...this.
19851         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
19852         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
19853
19854 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
19855
19856         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
19857         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
19858         of shadowing it.  Fix comments.
19859
19860 2010-04-26  Jan Hubicka  <jh@suse.cz>
19861
19862         * cgraph.c (cgraph_create_node): Set node frequency to normal.
19863         (cgraph_clone_node): Copy function frequency.
19864         * cgraph.h (node_frequency): New enum
19865         (struct cgraph_node): Add.
19866         * final.c (rest_of_clean_state): Update.
19867         * lto-cgraph.c (lto_output_node): Output node frequency.
19868         (input_overwrite_node): Input node frequency.
19869         * tre-ssa-loop-ivopts (computation_cost): Update.
19870         * lto-streamer-out.c (output_function): Do not output function
19871         frequency.
19872         * predict.c (maybe_hot_frequency_p): Update and handle functions
19873         executed once.
19874         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
19875         attribute lookup.
19876         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
19877         (compute_function_frequency): Set noreturn functions to be executed
19878         once.
19879         (choose_function_section): Update.
19880         * lto-streamer-in.c (input_function): Do not input function frequency.
19881         * function.c (allocate_struct_function): Do not initialize function
19882         frequency.
19883         * function.h (function_frequency): Remove.
19884         (struct function): Remove function frequency.
19885         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
19886         (try_update): Update.
19887         * tree-inline.c (initialize_cfun): Do not update function frequency.
19888         * passes.c (pass_init_dump_file): Update.
19889         * i386.c (ix86_compute_frame_layout): Update.
19890         (ix86_pad_returns): Update.
19891
19892 2010-04-26  Jie Zhang  <jie@codesourcery.com>
19893
19894         PR tree-optimization/43833
19895         * tree-vrp.c (range_int_cst_p): New.
19896         (range_int_cst_singleton_p): New.
19897         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
19898         when both operands are constants.  Use range_int_cst_p in
19899         BIT_IOR_EXPR case.
19900
19901 2010-04-26  Jan Hubicka  <jh@suse.cz>
19902
19903         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
19904
19905 2010-04-26  Richard Guenther  <rguenther@suse.de>
19906
19907         PR lto/43080
19908         * gimple.c (gimple_decl_printable_name): Deal gracefully
19909         with a NULL DECL_NAME.
19910
19911 2010-04-26  Richard Guenther  <rguenther@suse.de>
19912
19913         PR lto/42425
19914         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
19915         if emitting debug information and it is either a function
19916         or a namespace decl.
19917
19918 2010-04-26  Ira Rosen  <irar@il.ibm.com>
19919
19920         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
19921         determine if the statement is vectorizable, and a macro to access it.
19922         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19923         Skip statements that can't be vectorized. If the analysis fails,
19924         mark the statement as unvectorizable if vectorizing basic block.
19925         (vect_compute_data_refs_alignment): Likewise.
19926         (vect_verify_datarefs_alignment): Skip statements marked as
19927         unvectorizable. Add print.
19928         (vect_analyze_group_access): Skip statements that can't be
19929         vectorized. If the analysis fails, mark the statement as
19930         unvectorizable if vectorizing basic block.
19931         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
19932         * tree-vect-stmts.c (vectorizable_store): Fix the number of
19933         generated stmts for SLP.
19934         (new_stmt_vec_info): Initialize the new field.
19935         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
19936         statements marked as unvectorizable.
19937
19938 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
19939
19940         * c-common.c (flag_isoc1x): New.
19941         (flag_isoc99): Update comment.
19942         * c-common.h (flag_isoc1x): New.
19943         (flag_isoc99): Update comment.
19944         * c-cppbuiltin.c (builtin_define_float_constants): Also define
19945         __<type>_DECIMAL_DIG__.
19946         * c-opts.c (set_std_c1x): New.
19947         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
19948         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
19949         * c.opt (-std=c1x, -std=gnu1x): New options.
19950         * doc/cpp.texi: Mention -std=c1x.
19951         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
19952         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
19953         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
19954         * doc/standards.texi: Mention C1X.
19955         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
19956         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
19957         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
19958         Define for C1X.
19959
19960 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
19961
19962         * config/i386/gmon-sol2.c (_mcleanup): Change format string
19963         placeholder from 0x%x to %#x.
19964         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
19965         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
19966         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
19967         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
19968         * config/i386/i386.c (ix86_target_string): Ditto.
19969         (output_pic_addr_const): Ditto.
19970         (print_operand): Ditto.
19971
19972 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
19973
19974         * combine.c (find_split_point): Add third argument.  Use it
19975         to find nested multiply-accumulate instructions.  Adjust calls.
19976         (try_combine): Adjust call to find_split_point.
19977
19978 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
19979
19980         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
19981
19982 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
19983
19984         PR tree-optimization/41442
19985         * fold-const.c (merge_truthop_with_opposite_arm): New function.
19986         (fold_binary_loc): Call it.
19987
19988 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19989
19990         * toplev.c (general_init): Set default for fdiagnostics-show-option.
19991         * opts.c (common_handle_option): Allow disabling it.
19992         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
19993
19994 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
19995
19996         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
19997         between modes if both types are integral.
19998
19999 2010-04-23  Richard Guenther  <rguenther@suse.de>
20000
20001         PR tree-optimization/43572
20002         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
20003
20004 2010-04-23  Richard Guenther  <rguenther@suse.de>
20005
20006         PR lto/43455
20007         * tree-inline.c (tree_can_inline_p): Also check compatibility
20008         of return types.
20009
20010 2010-04-23  Martin Jambor  <mjambor@suse.cz>
20011
20012         PR tree-optimization/43846
20013         * tree-sra.c (struct access): New flag grp_assignment_read.
20014         (build_accesses_from_assign): Set grp_assignment_read.
20015         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
20016         (enum mark_read_status): New type.
20017         (analyze_access_subtree): Propagate grp_assignment_read, create
20018         accesses also if both direct_read and root->grp_assignment_read.
20019
20020 2010-04-23  Martin Jambor  <mjambor@suse.cz>
20021
20022         PR middle-end/43835
20023         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
20024         function does not have type attributes.
20025
20026 2010-04-23  Richard Guenther  <rguenther@suse.de>
20027
20028         PR lto/42653
20029         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
20030         of FUNCTION_DECLs.
20031
20032 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20033
20034         * sese.h (create_if_region_on_edge): Remove.
20035
20036         * sese.c (create_if_region_on_edge): Make static.
20037
20038         * tree-inline.c: Do not include ggc.h.
20039
20040         * expr.c: Do not include ggc.h.
20041
20042         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
20043         dependencies.
20044
20045 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
20046
20047         PR target/43744
20048         * config/sh/sh.c (find_barrier): Don't emit a constant pool
20049         in the middle of insns for casesi_worker_2.
20050
20051 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
20052
20053         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
20054
20055 2010-04-22  Ira Rosen  <irar@il.ibm.com>
20056
20057         PR tree-optimization/43842
20058         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
20059         loop unrolling in update of exit phis. Fix comment.
20060         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
20061         least two reduction statements in the loop before starting SLP
20062         analysis.
20063
20064 2010-04-22  Nick Clifton  <nickc@redhat.com>
20065
20066         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
20067
20068 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
20069
20070         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
20071         to simplify a + ~a.
20072
20073 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20074
20075         * tree-parloops.c (loop_parallel_p): New argument
20076         parloop_obstack.  Pass it down.
20077         (parallelize_loops): New variable parloop_obstack.  Initialize it,
20078         pass it down, free it.
20079
20080         * tree-loop-linear.c (linear_transform_loops): Pass down
20081         lambda_obstack.
20082
20083         * tree-data-ref.h (lambda_compute_access_matrices): New argument
20084         of type struct obstack *.
20085
20086         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
20087         scratch_obstack.  Initialize it, pass down, free it.
20088
20089         * lambda.h (lambda_loop_new): Remove.
20090         (lambda_matrix_new, lambda_matrix_inverse)
20091         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
20092         argument of type struct obstack *.
20093
20094         * lambda-trans.c (lambda_trans_matrix_new): New argument
20095         lambda_obstack.  Pass it down, use obstack allocation for ret.
20096         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
20097         it down.
20098
20099         * lambda-mat.c (lambda_matrix_get_column)
20100         (lambda_matrix_project_to_null): Remove.
20101         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
20102         allocation for mat.
20103         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
20104         lambda_obstack.
20105
20106         * lambda-code.c (lambda_loop_new): New function.
20107         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
20108         (lambda_compute_auxillary_space, lambda_compute_target_space)
20109         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
20110         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
20111         (build_access_matrix): New argument lambda_obstack.  Use obstack
20112         allocation for am.
20113         (lambda_compute_step_signs, lambda_compute_access_matrices): New
20114         argument lambda_obstack.  Pass it down.
20115
20116 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
20117
20118         * optabs.h (expand_widening_mult): Declare.
20119
20120 2010-04-22  Richard Guenther  <rguenther@suse.de>
20121
20122         PR tree-optimization/43845
20123         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
20124         lookup the CALL_EXPR function and arguments.
20125
20126 2010-04-22  Nick Clifton  <nickc@redhat.com>
20127
20128         * config/stormy16/stormy16.c
20129         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
20130         * config/stormy16/stormy16.h: Tidy up formatting.
20131         (DONT_USE_BUILTIN_SETJMP): Remove definition.
20132         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
20133         (ineqbranchsi): Delete pattern.
20134         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
20135         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
20136         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
20137         stormy16-lib2-ucmpsi2.c.
20138
20139 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
20140
20141         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
20142         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
20143         extra set merge_set_noclobber, and use it to relax the final test
20144         slightly.
20145         * df.h (df_simulate_find_noclobber_defs): Declare.
20146         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
20147         conditional defs.
20148         (df_simulate_find_noclobber_defs): New function.
20149
20150 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
20151
20152         * config/i386/i386.md: Use {} around multi-line preparation statements.
20153
20154 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20155
20156         * c-tree.h (push_init_level, pop_init_level, set_init_index)
20157         (process_init_element): New argument of type struct obstack *.
20158
20159         * c-typeck.c (push_init_level, pop_init_level, set_designator)
20160         (set_init_index, set_init_label, set_nonincremental_init)
20161         (set_nonincremental_init_from_string, find_init_member)
20162         (output_init_element, output_pending_init_elements)
20163         (process_init_element): New argument braced_init_obstack.  Pass it
20164         down.
20165         (push_range_stack, add_pending_init): New argument
20166         braced_init_obstack.  Use obstack allocation.
20167
20168         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
20169         braced_init_obstack.  Pass it down.
20170         (c_parser_braced_init): New variables ret, braced_init_obstack.
20171         Initialize obstack, pass it down and finally free it.
20172
20173 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
20174
20175         PR middle-end/29274
20176         * tree-pass.h (pass_optimize_widening_mul): Declare.
20177         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
20178         gate_optimize_widening_mul): New static functions.
20179         (pass_optimize_widening_mul): New.
20180         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
20181         <case MULT_EXPR>: Remove support for widening multiplies.
20182         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
20183         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
20184         simplify_gen_unary rather than directly building extensions.
20185         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
20186         WIDEN_MULT_EXPR.
20187         * expmed.c (expand_widening_mult): New function.
20188         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
20189
20190 2010-04-21  Jan Hubicka  <jh@suse.cz>
20191
20192         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
20193         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
20194         * lto-wpa-fixup.c: Remove.
20195         * Makefile.in (lto-wpa-fixup.o): Remove.
20196         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
20197         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
20198         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
20199
20200 2010-04-21  Jan Hubicka  <jh@suse.cz>
20201
20202         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
20203         add write_optimization_summary, read_optimization_summary.
20204         (ipa_write_summaries_of_cgraph_node_set): Remove.
20205         (ipa_write_optimization_summaries): Declare.
20206         (ipa_read_optimization_summaries): Declare.
20207         * ipa-cp.c (pass_ipa_cp): Update.
20208         * ipa-reference.c (pass_ipa_reference): Update.
20209         * ipa-pure-const.c (pass_ipa_pure_const): Update.
20210         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
20211         Update.
20212         * ipa-inline.c (pass_ipa_inline): Update.
20213         * ipa.c (pass_ipa_whole_program): Update.
20214         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
20215         * passes.c (ipa_write_summaries_1): Do not test wpa.
20216         (ipa_write_optimization_summaries_1): New.
20217         (ipa_write_optimization_summaries): New.
20218         (ipa_read_summaries): Do not test ltrans.
20219         (ipa_read_optimization_summaries_1): New.
20220         (ipa_read_optimization_summaries): New.
20221
20222 2010-04-21  Jan Hubicka  <jh@suse.cz>
20223
20224         * lto-cgraph.c (lto_output_node): Do not output comdat groups
20225         for boundary nodes.
20226         (output_cgraph): Do not arrange comdat groups for boundary nodes.
20227
20228 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
20229
20230         PR debug/40040
20231         * dwarf2out.c (add_name_and_src_coords_attributes): Add
20232         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
20233
20234 2010-04-21  Jan Hubicka  <jh@suse.cz>
20235
20236         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
20237
20238 2010-04-21  Jan Hubicka  <jh@suse.cz>
20239
20240         * varpool.c (decide_is_variable_needed): Variable is always needed
20241         during ltrans.
20242
20243 2010-04-21  Jan Hubicka  <jh@suse.cz>
20244
20245         * opts.c (decode_options): Enable pure-const pass for whopr.
20246
20247 2010-04-21  Jan Hubicka  <jh@suse.cz>
20248
20249         * cgraph.c (dump_cgraph_node): Dump also assembler name.
20250         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
20251         at WPA dumping.
20252         (cgraph_decide_inlining): Do not expect callee to be removed in all
20253         cases.
20254
20255 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
20256
20257         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
20258
20259 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
20260
20261         * config/i386/i386.md (x86_shrd): Add athlon_decode and
20262         amdfam10_decode attributes.
20263
20264 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
20265
20266         PR middle-end/43570
20267         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
20268         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
20269         (lower_copyprivate_clauses): Use private var in outer
20270         context instead of original var.  Make sure the types
20271         are correct for VLAs.
20272
20273 2010-04-21  Richard Guenther  <rguenther@suse.de>
20274
20275         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
20276         to non-pointer objects.
20277
20278 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
20279
20280         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
20281         last chain entry if it starts with the still current label.
20282         (add_location_or_const_value_attribute): Check that
20283         loc_list->first->next is NULL instead of comparing ->first with ->last.
20284         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
20285         to add_var_loc_to_decl.
20286
20287         * dwarf2out.c (output_call_frame_info): For dw_cie_version
20288         >= 4 add also address size and segment size fields into CIE header.
20289
20290         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
20291         long as address size is the same as sizeof (void *) and
20292         segment size is 0.
20293         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
20294         address size or segment size is unexpected, return DW_EH_PE_omit.
20295         (classify_object_over_fdes): If get_cie_encoding returned
20296         DW_EH_PE_omit, return -1.
20297         (init_object): If classify_object_over_fdes returned -1,
20298         pretend there were no FDEs at all.
20299
20300 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
20301
20302         * config/i386/i386.md (bswap<mode>2): Macroize expander from
20303         bswap{si,di}2 using SWI48 mode iterator.
20304         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
20305         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
20306         set modrm attribute of bswap insn to 0 and remove length attribute.
20307         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
20308         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
20309         set mode attribute to <MODE> and remove length attribute.
20310
20311 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
20312
20313         PR rtl-optimization/43520
20314         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
20315         zero available registers.
20316
20317 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20318
20319         * builtins.c (fold_builtin_cproj): Fold more cases.
20320
20321 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20322
20323         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
20324         (fold_builtin_1): Fold builtin cproj.
20325         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
20326         Use ATTR_CONST_NOTHROW_LIST.
20327
20328 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
20329
20330         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
20331         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
20332         ffsi2_no_cmove for !TARGET_CMOVE.
20333         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
20334         (ffssi2): Remove expander.
20335         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
20336         mode iterator.
20337         (ctz<mode>2): Ditto from ctz{si,di}2.
20338         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
20339         mode iterator.
20340         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
20341         mode iterator.
20342
20343 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
20344
20345         * dwarf2out.c (AT_linkage_name): Define.
20346         (clone_as_declaration): Handle DW_AT_linkage_name.
20347         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
20348         of DW_AT_MIPS_linkage_name.
20349         (move_linkage_attr): Likewise.
20350         (dwarf2out_finish): Likewise.
20351
20352 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
20353
20354         PR middle-end/41952
20355         * fold-const.c (fold_comparison): New folding rule.
20356
20357 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
20358
20359         * double-int.h (double_int_setbit): Declare.
20360         * double-int.c (double_int_setbit): New function.
20361         * rtl.h (immed_double_int_const): Declare.
20362         * emit-rtl.c (immed_double_int_const): New function.
20363         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
20364         and immed_double_int_const functions.
20365         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
20366         expand_copysign_bit): (Ditto.).
20367         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
20368         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
20369         * dojump.c (prefer_and_bit_test): (Ditto.).
20370         * expr.c (convert_modes, reduce_to_bit_field_precision,
20371         const_vector_from_tree): (Ditto.).
20372         * expmed.c (mask_rtx, lshift_value): (Ditto.).
20373
20374 2010-04-20  Jan Hubicka  <jh@suse.cz>
20375
20376         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
20377         (dump_cgraph_node): Dump new flags.
20378         * cgraph.h (struct cgraph_node): Add flags
20379         reachable_from_other_partition and in_other_partition.
20380         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
20381         other partition can not be removed.
20382         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
20383         the other partition must be output; silence sanity checking on
20384         leaking functions bodies from other paritition.
20385         * lto-cgraph.c (reachable_from_other_partition_p): New function.
20386         (lto_output_node): Output new flags; do not sanity check that inline
20387         clones are output; drop lto_forced_extern_inline_p code; do not mock
20388         visibility flags at partition boundaries.
20389         (add_node_to): New function.
20390         (output_cgraph): Use it to sort functions so masters appear before
20391         clones.
20392         (input_overwrite_node): Input new flags.
20393         * passes.c (ipa_write_summaries): Do not call
20394         lto_new_extern_inline_states.
20395         * lto-section-out.c (forced_extern_inline,
20396         lto_new_extern_inline_states lto_delete_extern_inline_states,
20397         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
20398         * lto-streamer.h (lto_new_extern_inline_states,
20399         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
20400         lto_forced_extern_inline_p): Kill.
20401
20402 2010-04-20  Richard Guenther  <rguenther@suse.de>
20403
20404         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
20405         from vars that can have pointers.
20406         (process_constraint): Dump useless constraints.
20407
20408 2010-04-20  Richard Guenther  <rguenther@suse.de>
20409
20410         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
20411         (dump_sa_points_to_info): Remove asserts.
20412         (init_base_vars): nothing_id isn't an escape point nor does it
20413         have pointers.
20414
20415 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
20416
20417         * tree.h (TYPE_REF_IS_RVALUE): Define.
20418         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
20419         should_move_die_to_comdat, prune_unused_types_walk): Handle
20420         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
20421         (modified_type_die, gen_reference_type_die): Emit
20422         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
20423         if TYPE_REF_IS_RVALUE and -gdwarf-4.
20424
20425 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20426
20427         PR target/43635
20428         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
20429         calls for -fpic -m31 if they have been sibcall optimized.
20430
20431 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
20432
20433         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
20434         ar.lc fixed and call-used.
20435
20436         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
20437
20438 2010-04-19  Jan Hubicka  <jh@suse.cz>
20439
20440         * opts.c (decode_options): Disable whpr incompatible passes.
20441         * lto/lto.c (lto_1_to_1_map): Skip clones.
20442         (read_cgraph_and_symbols): Do not mark everything as needed.
20443         (do_whole_program_analysis): Do map only after optimizing;
20444         set proper cgraph_state; use passmanager.
20445
20446 2010-04-19  DJ Delorie  <dj@redhat.com>
20447
20448         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
20449         POINTER_PLUS_EXPR and fix them.
20450
20451 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
20452
20453         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
20454         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
20455         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
20456         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
20457         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
20458         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
20459         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
20460         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
20461         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
20462         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
20463         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
20464
20465 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20466
20467         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
20468         (check_cond_move_block): Likewise.
20469         (cond_move_process_if_block): Likewise.
20470         (noce_find_if_block): Improve formatting.
20471         (find_if_header): Pass 0 to memset and tweak conditions.
20472         (cond_exec_find_if_block): Fix long lines and tweak conditions.
20473
20474 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
20475
20476         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
20477         for -gdwarf-4.
20478
20479         PR middle-end/43337
20480         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
20481         with non-local decl doesn't need chain.
20482
20483 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
20484
20485         * ira-color.c (allocno_reload_assign): Avoid accumulating
20486         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
20487
20488 2010-04-19  Martin Jambor  <mjambor@suse.cz>
20489
20490         * gimple.h (create_tmp_reg): Declare.
20491         * gimplify.c (create_tmp_reg): New function.
20492         (gimplify_return_expr): Use create_tmp_reg.
20493         (gimplify_omp_atomic): Likewise.
20494         (gimple_regimplify_operands): Likewise.
20495         * tree-dfa.c (make_rename_temp): Likewise.
20496         * tree-predcom.c (predcom_tmp_var): Likewise.
20497         (reassociate_to_the_same_stmt): Likewise.
20498         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
20499         (get_replaced_param_substitute): Likewise.
20500         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
20501         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
20502         * tree-ssa-pre.c (get_representative_for): Likewise.
20503         (create_expression_by_pieces): Likewise.
20504         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
20505         (create_tailcall_accumulator): Likewise.
20506
20507 2010-04-19  Martin Jambor  <mjambor@suse.cz>
20508
20509         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
20510         new_stmt.
20511         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
20512
20513 2010-04-19  Richard Guenther  <rguenther@suse.de>
20514
20515         PR tree-optimization/43796
20516         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
20517         from SCEV in the lattice.
20518         (vrp_visit_phi_node): Dump change.
20519
20520 2010-04-19  Richard Guenther  <rguenther@suse.de>
20521
20522         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
20523         * configure: Re-generated.
20524
20525 2010-04-19  Richard Guenther  <rguenther@suse.de>
20526
20527         PR tree-optimization/43783
20528         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
20529         constant ARRAY_REF operands two and three if possible.
20530
20531 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
20532
20533         PR target/43766
20534         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
20535
20536 2010-04-19  Jie Zhang  <jie@codesourcery.com>
20537
20538         PR target/43662
20539         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
20540
20541 2010-04-19  Ira Rosen  <irar@il.ibm.com>
20542
20543         PR tree-optimization/37027
20544         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
20545         and macro to access it.
20546         (vectorizable_reduction): Add argument.
20547         (vect_get_slp_defs): Likewise.
20548         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
20549         statements for possible use in SLP.
20550         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
20551         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
20552         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
20553         add new argument.
20554         (vectorizable_reduction): Likewise.
20555         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
20556         vect_get_slp_defs.
20557         (vectorizable_type_demotion, vectorizable_type_promotion,
20558         vectorizable_store): Likewise.
20559         (vect_analyze_stmt): Update call to vectorizable_reduction.
20560         (vect_transform_stmt): Likewise.
20561         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
20562         (vect_build_slp_tree): Fix indentation. Check that there are no loads
20563         from different interleaving chains in same node.
20564         (vect_slp_rearrange_stmts): New function.
20565         (vect_supported_load_permutation_p): Allow load permutations for
20566         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
20567         inside SLP nodes if necessary.
20568         (vect_analyze_slp_instance): Handle reductions.
20569         (vect_analyze_slp): Try to build SLP instances originating from groups
20570         of reductions.
20571         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
20572         (vect_get_constant_vectors): Create initial vectors for reductions
20573         according to reduction code. Add new argument.
20574         (vect_get_slp_defs): Add new argument, pass it to
20575         vect_get_constant_vectors.
20576         (vect_schedule_slp_instance): Remove SLP tree root statements.
20577
20578 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
20579
20580         * tree.h (ENUM_IS_SCOPED): Define.
20581         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
20582         for ENUM_IS_SCOPED enums.
20583
20584 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20585
20586         * fold-const.c (fold_comparison): Use ssizetype.
20587         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
20588         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
20589         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
20590         * tree-object-size.c (compute_object_sizes): Use size_type_node.
20591
20592         * tree.h (initialize_sizetypes): Remove parameter.
20593         (build_common_tree_nodes): Remove second parameter.
20594         * stor-layout.c (initialize_sizetypes): Remove parameter.
20595         Always create an unsigned type.
20596         (set_sizetype): Assert that the passed type is unsigned and simplify.
20597         * tree.c (build_common_tree_nodes): Remove second parameter.
20598         Adjust call to initialize_sizetypes.
20599         * c-decl.c (c_init_decl_processing): Remove second argument in call to
20600         build_common_tree_nodes.
20601
20602 2010-04-18  Matthias Klose  <doko@ubuntu.com>
20603
20604         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
20605
20606 2010-04-18  Ira Rosen  <irar@il.ibm.com>
20607
20608         PR tree-optimization/43771
20609         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
20610         load permutation doesn't have gaps.
20611
20612 2010-04-18  Jan Hubicka  <jh@suse.cz>
20613
20614         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
20615         (sse_prologue_save_insn expander): Use new pattern.
20616         (sse_prologue_save_insn1): New pattern and splitter.
20617         (sse_prologue_save_insn): Update to deal also with 64bit aligned
20618         blocks.
20619         * i386.c (setup_incoming_varargs_64): Do not compute jump
20620         destination here.
20621         (ix86_gimplify_va_arg): Update alignment needed.
20622         (ix86_local_alignment): Do not align all local arrays to 128bit.
20623
20624 2010-04-17  Jan Hubicka  <jh@suse.cz>
20625
20626         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
20627
20628 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20629
20630         * arm.md (negdi2): Remove redundant code to force values into a
20631         register.
20632
20633 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20634
20635         * arm/bpabi.S: Add EABI alignment attributes to objects.
20636         * arm/bpabi-v6m.S: Likewise.
20637         * arm/crti.asm: Likewise.
20638         * arm/crtn.asm: Likewise.
20639         * arm/lib1funcs.asm: Likewise.
20640         * arm/libunwind.S: Likewise.
20641
20642 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20643
20644         * arm-protos.h (tune_params): New structure.
20645         * arm.c (current_tune): New variable.
20646         (arm_constant_limit): Delete.
20647         (struct processors): Add pointer to the tune parameters.
20648         (arm_slowmul_tune): New tuning option.
20649         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
20650         (all_cores): Adjust to pick up the tuning model.
20651         (arm_constant_limit): New function.
20652         (arm_override_options): Select the appropriate tuning model.  Delete
20653         initialization of arm_const_limit.
20654         (arm_split_constant): Use the new constant-limit model.
20655         (arm_rtx_costs): Pick up the current tuning model.
20656         * arm.md (is_strongarm, is_xscale): Delete.
20657         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
20658         for Xscale variant architectures.
20659         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
20660
20661 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20662
20663         * config/arm/arm.c (arm_gen_constant): Remove unused variable
20664         can_shift.
20665         (arm_rtx_costs_1): Remove unused variable extra_cost.
20666         (arm_unwind_emit_set): Use variable offset.
20667         (thumb1_output_casesi): Remove unused variable flags.
20668
20669 2010-04-16  Jeff Law  <law@redhat.com>
20670
20671         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
20672         needing assignment rather than doing a two-phase assignment.  Remove
20673         unused variable 'm'.
20674
20675 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20676
20677         PR bootstrap/43767
20678         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
20679
20680 2010-04-16  Doug Kwan  <dougkwan@google.com>
20681
20682         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
20683         (next_operand_entry_id): New static variable.
20684         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
20685         (add_to_ops_vec): Assigned unique ID to operand entry.
20686         (struct oecount_s): New field ID.
20687         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
20688         (undistribute_ops_list): Assign unique IDs to oecounts.
20689         (init_reassoc): reset next_operand_entry_id.
20690
20691 2010-04-16  Doug Kwan  <dougkwan@google.com>
20692
20693         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
20694         missing left parenthesis.
20695
20696 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
20697
20698         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
20699         *btdi_rex64 using SWI48 mode iterator.
20700         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
20701         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
20702         *jcc_btdi_mask_rex64.
20703
20704 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
20705
20706         * double-int.h (tree_to_double_int): Convert to macro.
20707         * double-int.c (tree_to_double_int): Remove.
20708
20709 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20710
20711         PR debug/43762
20712         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
20713         with want_address 2 and in case a single element list might be
20714         possible, call it again with want_address 0.
20715
20716 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20717
20718         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
20719         case 'W' print operands for HI mode.
20720         * config/h8300/h8300.h (Y0, Y2) : New constraints.
20721         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
20722         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
20723         * config/h8300/predicate.md (bit_register_indirect_operand): New.
20724
20725         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
20726
20727         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
20728         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
20729         #xx:3 and #xx:4 mode.
20730
20731         * config/h8300/h8300.md (inverted load with HImode dest): Add
20732         support for H8300SX.
20733
20734         * config/h8300/predicate.md (bit_operand): Allow immediate values that
20735         satisfy 'U' constraint.
20736
20737 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20738
20739         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
20740         * configure: Regenerate.
20741         * config.in: Regenerate.
20742         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
20743         works.
20744
20745 2010-04-16  Richard Guenther  <rguenther@suse.de>
20746
20747         * tree.h (struct tree_decl_minimal): Move pt_uid ...
20748         (struct tree_decl_common): ... here.
20749         (DECL_PT_UID): Adjust.
20750         (SET_DECL_PT_UID): Likewise.
20751         (DECL_PT_UID_SET_P): Likewise.
20752
20753 2010-04-16  Richard Guenther  <rguenther@suse.de>
20754
20755         PR tree-optimization/43572
20756         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
20757         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
20758         * tree-flow.h (is_call_clobbered): Remove.
20759         * tree-flow-inline.h (is_call_clobbered): Likewise.
20760         * tree-dfa.c (dump_variable): Do not dump call clobber state.
20761         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
20762         (execute_return_slot_opt): Adjust.
20763         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
20764         check for call clobbered vars here.
20765         (find_tail_calls): Move tailcall verification to the
20766         proper place.
20767
20768 2010-04-16  Diego Novillo  <dnovillo@google.com>
20769
20770         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
20771
20772 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20773
20774         PR target/40603
20775         * config/arm/arm.md (cbranchqi4): New pattern.
20776         * config/arm/predicates.md (const0_operand,
20777         cbranchqi4_comparison_operator): New predicates.
20778
20779 2010-04-16  Richard Guenther  <rguenther@suse.de>
20780
20781         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
20782         (dump_gimple_stmt): Likewise.
20783
20784 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20785
20786         * recog.h (struct recog_data): New field is_operator.
20787         (struct insn_operand_data): New field is_operator.
20788         * recog.c (extract_insn): Set recog_data.is_operator.
20789         * genoutput.c (output_operand_data): Emit code to set the
20790         is_operator field.
20791         * reload.c (find_reloads): Use it rather than testing for an
20792         empty constraint string.
20793
20794         PR target/41514
20795         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
20796         If the previous insn is a cbranchsi4_insn with the same arguments,
20797         omit the compare instruction.
20798
20799         * config/arm/arm.md (addsi3_cbranch): If destination is a high
20800         register, inputs must be low registers and we need a low register
20801         scratch.  Handle alternative 2 like alternative 3.
20802
20803 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20804
20805         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
20806         don't call get_addr on both.  If one expression is a VALUE and
20807         the other a REG, check VALUE's locs if the REG isn't among them.
20808
20809 2010-04-16  Christian Bruel  <christian.bruel@st.com>
20810
20811         * config/sh/sh.h (sh_frame_pointer_required): New function.
20812         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
20813         (flag_omit_frame_pointer) Set.
20814         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
20815         (rounded_frame_size): Adjust size with outgoing_args_size.
20816         (sh_set_return_address): Must return from stack pointer.
20817         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
20818         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
20819         (ACCUMULATE_OUTGOING_ARGS): Define.
20820         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
20821         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
20822
20823 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
20824
20825         PR target/43471
20826         * config/sh/sh.c (sh_legitimize_reload_address): Use
20827         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
20828         Remove a unneeded check for offset_base.
20829
20830 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20831
20832         * configure: Regenerated.
20833
20834 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20835
20836         * config/s390/s390.c (s390_call_save_register_used): Switch back
20837         to HARD_REGNO_NREGS.
20838
20839 2010-04-15  Richard Guenther  <rguenther@suse.de>
20840
20841         * alias.c (alias_set_subset_of): Handle alias-set zero
20842         child properly.
20843
20844 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
20845             Julian Brown  <julian@codesourcery.com>
20846
20847         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
20848         alternatives according to use of high and low regs.
20849         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
20850         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
20851         optimizing for size on Thumb-2.
20852
20853 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
20854
20855         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
20856
20857 2010-04-15  Richard Guenther  <rguenther@suse.de>
20858
20859         * tree-ssa-structalias.c (struct variable_info): Add
20860         is_fn_info flag.
20861         (new_var_info): Initialize it.
20862         (dump_constraints): Support printing last added constraints.
20863         (debug_constraints): Adjust.
20864         (dump_constraint_graph): Likewise.
20865         (make_heapvar_for): Check for NULL cfun.
20866         (get_function_part_constraint): New function.
20867         (get_fi_for_callee): Likewise.
20868         (find_func_aliases): Properly implement IPA PTA constraints.
20869         (process_ipa_clobber): New function.
20870         (find_func_clobbers): Likewise.
20871         (insert_into_field_list_sorted): Remove.
20872         (create_function_info_for): Properly allocate vars for IPA mode.
20873         Do not use insert_into_field_list_sorted.
20874         (create_variable_info_for): Properly generate constraints for
20875         global vars in IPA mode.
20876         (dump_solution_for_var): Always dump the solution.
20877         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
20878         (find_what_var_points_to): Adjust.
20879         (pt_solution_set): Change.
20880         (pt_solution_ior_into): New function.
20881         (pt_solution_empty_p): Export.
20882         (pt_solution_includes_global): Adjust.
20883         (pt_solution_includes_1): Likewise.
20884         (pt_solutions_intersect_1): Likewise.
20885         (dump_sa_points_to_info): Check some invariants.
20886         (solve_constraints): Move constraint dumping ...
20887         (compute_points_to_sets): ... here.
20888         (ipa_pta_execute): ... and here.
20889         (compute_may_aliases): Do not re-compute points-to info
20890         locally if IPA info is available.
20891         (ipa_escaped_pt): New global var.
20892         (ipa_pta_execute): Properly implement IPA PTA.
20893         * tree-into-ssa.c (dump_decl_set): Support dumping
20894         decls not in referenced-vars.
20895         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
20896         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
20897         (dump_points_to_solution): Likewise.
20898         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
20899         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
20900         (remap_gimple_stmt): Reset call clobber/use information if necessary.
20901         (copy_decl_to_var): Copy DECL_PT_UID.
20902         (copy_result_decl_to_var): Likewise.
20903         * tree.c (make_node_stat): Initialize DECL_PT_UID.
20904         (copy_node_stat): Copy it.
20905         * tree.h (DECL_PT_UID): New macro.
20906         (SET_DECL_PT_UID): Likewise.
20907         (DECL_PT_UID_SET_P): Likewise.
20908         (struct tree_decl_minimal): Add pt_uid member.
20909         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
20910         (pt_solution_empty_p): Declare.
20911         (pt_solution_set): Adjust.
20912         (ipa_escaped_pt): Declare.
20913         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
20914         * gimple-pretty-print.c (pp_points_to_solution): New function.
20915         (dump_gimple_call): Dump call clobber/use information.
20916         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
20917         * tree-pass.h (TDF_ALIAS): New dump option.
20918         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
20919         * doc/invoke.texi (-fipa-pta): Update documentation.
20920
20921 2010-04-15  Richard Guenther  <rguenther@suse.de>
20922
20923         * Makefile.in (OBJS-common): Add gimple-fold.o.
20924         (gimple-fold.o): New rule.
20925         * tree.h (maybe_fold_offset_to_reference,
20926         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
20927         prototypes ...
20928         * gimple.h: ... here.
20929         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
20930         may_propagate_address_into_dereference): Move prototypes ...
20931         * gimple.h: ... here.
20932         * tree-ssa-ccp.c (get_symbol_constant_value,
20933         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
20934         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
20935         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
20936         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
20937         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
20938         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
20939         gimplify_and_update_call_from_tree): Move ...
20940         * gimple-fold.c: ... here.  New file.
20941         (ccp_fold_builtin): Rename to ...
20942         (gimple_fold_builtin): ... this.
20943         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
20944
20945 2010-04-15  Richard Guenther  <rguenther@suse.de>
20946
20947         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
20948         fit_double_type, force_fit_type_double, add_double_with_sign,
20949         neg_double, mul_double_with_sign, lshift_double, rshift_double,
20950         lrotate_double, rrotate_double, div_and_round_double): Move ...
20951         * double-int.c: ... here.
20952         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
20953         add_double, neg_double, mul_double_with_sign, mul_double,
20954         lshift_double, rshift_double, lrotate_double, rrotate_double,
20955         div_and_round_double): Move prototypes ...
20956         * double-int.h: ... here.
20957
20958 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
20959
20960         PR target/43742
20961         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
20962         matching constraints to ensure inputs match the output.
20963
20964 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
20965
20966         PR target/43742
20967         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
20968         in an input-only operand.
20969
20970 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
20971
20972         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
20973         (double_int_not, double_int_lshift, double_int_rshift): Declare.
20974         (double_int_negative_p): Convert to static inline function.
20975         * double-int.c (double_int_lshift, double_int_lshift): New functions.
20976         (double_int_negative_p): Remove.
20977         * tree.h (lshift_double, rshift_double):
20978         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
20979         * fold-const.c (fold_convert_const_int_from_real,
20980         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
20981         (lshift_double): Change type of arith argument to bool.
20982         (rshift_double): Change type of arith argument to bool. Correct
20983         comment.
20984         * expmed.c (mask_rtx, lshift_value): (Ditto.).
20985
20986 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
20987
20988         PR target/21803
20989         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
20990         at the start and end of the then/else blocks, and omit them from the
20991         conversion.
20992         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
20993         argument; all callers changed.  Pass zero to old_insns_match_p instead.
20994         (flow_find_head_matching_sequence): New function.
20995         (old_insns_match_p): Check REG_EH_REGION notes for calls.
20996         * basic-block.h (flow_find_cross_jump,
20997         flow_find_head_matching_sequence): Declare functions.
20998
20999 2010-04-14  Jason Merrill  <jason@redhat.com>
21000
21001         PR c++/36625
21002         * c-common.c (attribute_takes_identifier_p): New fn.
21003         * c-common.h: Declare it.
21004
21005 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21006
21007         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
21008         splitter condition.
21009         (*udivmod<mode>4): Ditto.
21010
21011 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21012
21013         * config/i386/i386.md (maxmin_int): Rename code attribute from
21014         maxminiprefix and update all users.
21015         (maxmin_float): Ditto from maxminfprefix.
21016         (logic): Ditto from logicprefix.
21017         (absneg_mnemonic): Ditto from absnegprefix.
21018         * config/i386/mmx.md: Update all users of maxminiprefix,
21019         maxminfprefix and logicprefix for rename.
21020         * config/i386/sse.md: Ditto.
21021         * config/i386/sync.md (sync_<code><mode>): Update for
21022         logicprefix rename.
21023
21024 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21025
21026         PR 42966
21027         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
21028         warnings converted to errors.
21029
21030 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21031
21032         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
21033         used insn_type variable.
21034         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
21035         to avoid set-but-not-used warning.
21036
21037 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21038
21039         * df-core.c (df_ref_debug): Change format string placeholder
21040         from 0x%x to %#x.
21041         * dwarf2asm.c (dw2_asm_output_data_raw,
21042         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
21043         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
21044         * dwarf2out.c (output_cfi, output_cfi_directive,
21045         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
21046         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
21047         Ditto.
21048         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
21049         * print-rtl.c (print_rtx): Ditto.
21050
21051 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21052
21053         PR middle-end/42694
21054         * builtins.c (expand_builtin_pow_root): New function to expand pow
21055         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
21056         series of sqrt and cbrt calls under -ffast-math.
21057         (expand_builtin_pow): Call it.
21058
21059 2010-04-14  Michael Matz  <matz@suse.de>
21060
21061         PR tree-optimization/42963
21062         * tree-cfg.c (touched_switch_bbs): New static variable.
21063         (group_case_labels_stmt): New function broken out from ...
21064         (group_case_labels): ... here, use the above.
21065         (start_recording_case_labels): Allocate touched_switch_bbs.
21066         (end_recording_case_labels): Deallocate it, call
21067         group_case_labels_stmt.
21068         (gimple_redirect_edge_and_branch): Remember index of affected BB.
21069
21070 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21071
21072         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
21073         from insn template.
21074
21075 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
21076
21077         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
21078
21079 2010-04-13  Jan Hubicka  <jh@suse.cz>
21080
21081         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
21082         of optimized out static functions.
21083         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
21084         cost computation.  Also sanity check for overflows.
21085         (update_caller_keys): Update cgraph_edge_badness call; properly
21086         update fibheap and sanity check that it is up to date.
21087         (add_new_edges_to_heap): Update cgraph_edge_badness.
21088         (cgraph_decide_inlining_of_small_function): Likewise;
21089         add sanity checking that badness in heap is up to date;
21090         improve dumping of reason; Update badness of calls to the
21091         offline copy of function currently inlined; dump badness
21092         of functions not inlined because of unit growth limits.
21093
21094 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
21095
21096         PR middle-end/32628
21097         * c-common.c (pointer_int_sum): Disregard overflow that occured only
21098         because of sign-extension change when converting to sizetype here...
21099         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
21100
21101         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
21102         the folding to constants.  Remove redundant final conversion.
21103         (fold_binary) <associate>: Do not associate if the re-association of
21104         constants alone overflows.
21105         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
21106         to the end of the list.
21107         (multiple_of_p) <COND_EXPR>: New case.
21108
21109 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21110
21111         * opt-functions.awk (opt_sanitized_name): New.
21112         (opt_enum): New.
21113         * optc-gen.awk: Use it
21114         * opth-gen.awk: Use it.
21115
21116 2010-04-13  Martin Jambor  <mjambor@suse.cz>
21117
21118         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
21119         (sra_modify_assign): Delete stmts loading dead data even if racc has no
21120         children.  Call replace_uses_with_default_def_ssa_name to handle
21121         SSA_NAES on lhs.
21122
21123 2010-04-13  Michael Matz  <matz@suse.de>
21124
21125         PR middle-end/43730
21126         * builtins.c (expand_builtin_interclass_mathfn): Also create
21127         a register if the predicate doesn't match.
21128
21129 2010-04-13  Diego Novillo  <dnovillo@google.com>
21130
21131         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
21132         * c-pch.c: Include timevar.h.
21133         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
21134         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
21135         * ggc-common.c: Include timevar.h.
21136         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
21137         * timevar.def (TV_PCH_SAVE): Define.
21138         (TV_PCH_CPP_SAVE): Define.
21139         (TV_PCH_PTR_REALLOC): Define.
21140         (TV_PCH_PTR_SORT): Define.
21141         (TV_PCH_RESTORE): Define.
21142         (TV_PCH_CPP_RESTORE): Define.
21143
21144 2010-04-13  Michael Matz  <matz@suse.de>
21145
21146         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
21147         into MINUS_EXPRs.
21148         (can_reassociate_p): New function.
21149         (break_up_subtract_bb, reassociate_bb): Use it.
21150
21151 2010-04-13  Richard Guenther  <rguenther@suse.de>
21152
21153         PR bootstrap/43737
21154         * builtins.c (c_readstr): Fix assert.
21155
21156 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
21157
21158         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
21159         when generating cltd insn.
21160
21161         (*ashl<mode>3_1): Remove special handling for register operand 2.
21162         (*ashlsi3_1_zext): Ditto.
21163         (*ashlhi3_1): Ditto.
21164         (*ashlhi3_1_lea): Ditto.
21165         (*ashlqi3_1): Ditto.
21166         (*ashlqi3_1_lea): Ditto.
21167         (*<shiftrt_insn><mode>3_1): Ditto.
21168         (*<shiftrt_insn>si3_1_zext): Ditto.
21169         (*<shiftrt_insn>qi3_1_slp): Ditto.
21170         (*<rotate_insn><mode>3_1): Ditto.
21171         (*<rotate_insn>si3_1_zext): Ditto.
21172         (*<rotate_insn>qi3_1_slp): Ditto.
21173
21174 2010-04-13  Richard Guenther  <rguenther@suse.de>
21175
21176         * tree-ssa-structalias.c (callused_id): Remove.
21177         (call_stmt_vars): New.
21178         (get_call_vi): Likewise.
21179         (lookup_call_use_vi): Likewise.
21180         (lookup_call_clobber_vi): Likewise.
21181         (get_call_use_vi): Likewise.
21182         (get_call_clobber_vi): Likewise.
21183         (make_transitive_closure_constraints): Likewise.
21184         (handle_const_call): Adjust to do per-call call-used handling.
21185         (handle_pure_call): Likewise.
21186         (find_what_var_points_to): Remove general callused handling.
21187         (init_base_vars): Likewise.
21188         (init_alias_vars): Initialize call_stmt_vars.
21189         (compute_points_to_sets): Process call-used and call-clobbered
21190         vars for call statements.
21191         (delete_points_to_sets): Free call_stmt_vars.
21192
21193 2010-04-13  Richard Guenther  <rguenther@suse.de>
21194
21195         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21196         Only add RW dependence for dependence distance zero.
21197         Adjust maximal vectorization factor according to dependences.
21198         Move alignment handling ...
21199         (vect_find_same_alignment_drs): ... here.  New function.
21200         (vect_analyze_data_ref_dependences): Adjust.
21201         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
21202         (vect_analyze_data_refs): Adjust minimal vectorization factor
21203         according to data references.
21204         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
21205         dependences before determining the vectorization factor.
21206         Analyze alignment after determining the vectorization factor.
21207         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
21208         dependences before alignment.
21209         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
21210         Adjust prototype.
21211         (vect_analyze_data_refs): Likewise.
21212         (MAX_VECTORIZATION_FACTOR): New define.
21213
21214 2010-04-13  Duncan Sands  <baldrick@free.fr>
21215
21216         * except.h (lang_eh_type_covers): Remove.
21217         * except.c (lang_eh_type_covers): Likewise.
21218
21219 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21220             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21221
21222         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
21223         * config/s390/s390.c: Replace UNTIS_PER_WORD with
21224         UNITS_PER_LONG where it is ABI relevant.
21225         (s390_return_addr_rtx): Likewise.
21226         (s390_back_chain_rtx): Likewise.
21227         (s390_frame_area): Likewise.
21228         (s390_frame_info): Likewise.
21229         (s390_initial_elimination_offset): Likewise.
21230         (save_gprs): Likewise.
21231         (s390_emit_prologue): Likewise.
21232         (s390_emit_epilogue): Likewise.
21233         (s390_function_arg_advance): Likewise.
21234         (s390_function_arg): Likewise.
21235         (s390_va_start): Likewise.
21236         (s390_gimplify_va_arg): Likewise.
21237         (s390_function_profiler): Likewise.
21238         (s390_optimize_prologue): Likewise.
21239         (s390_rtx_costs): Likewise.
21240         (s390_secondary_reload): Likewise.
21241         (s390_promote_function_mode): Likewise.
21242         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
21243         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
21244         registers available.
21245         (s390_unwind_word_mode): New function.
21246         (s390_function_value): Split 64 bit values into register pair if
21247         used as return value.
21248         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
21249         function call parameters.  Handle parallels.
21250         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
21251         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
21252         (DWARF_CIE_DATA_ALIGNMENT): New macro.
21253         (s390_expand_setmem): Remove unused variable src_addr.
21254         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
21255         deal with 64 bit registers.
21256         * config/s390/s390.h: Define __zarch__ predefined macro.
21257         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
21258         (UNITS_PER_LONG): New macro.
21259         * libjava/include/s390-signal.h: Define extended ucontext
21260         structure containing the upper halfs of the 64 bit registers.
21261
21262 2010-04-13  Simon Baldwin  <simonb@google.com>
21263
21264         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
21265
21266 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
21267
21268         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
21269         rvalue on the RHS if the LHS is of a non-renamable type.
21270         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
21271
21272 2010-04-13  Matthias Klose  <doko@ubuntu.com>
21273
21274         * gcc.c (cc1_options): Handle -iplugindir before processing
21275         the cc1 spec. Only add -iplugindir once.
21276         (cpp_unique_options): Add -iplugindir option if -fplugin* options
21277         found.
21278         * common.opt (iplugindir): Remove `Separate' property, initialize.
21279         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
21280         option.
21281         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
21282         (distclean): Remove plugin dir.
21283         * doc/invoke.texi: Document -iplugindir.
21284
21285 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
21286
21287         * doc/plugins.texi (Loading Plugins): Document short
21288         -fplugin=foo option.
21289         (Plugin API): Mention default_plugin_dir_name function.
21290
21291         * gcc.c (find_file_spec_function): Add new declaration.
21292         (static_spec_func): Use it for "find-file".
21293         (find_file_spec_function): Add new function.
21294         (cc1_options): Add -iplugindir option if -fplugin* options found.
21295
21296         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
21297
21298         * plugin.c (add_new_plugin): Updated comment, and handle short
21299         plugin name.
21300         (default_plugin_dir_name): Added new function.
21301
21302         * common.opt (iplugindir): New option to set the plugin directory.
21303
21304 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
21305
21306         * config/i386/i386.md (any_rotate): New code iterator.
21307         (rotate_insn): New code attribute.
21308         (rotate): Ditto.
21309         (SWIM124): New mode iterator.
21310         (<rotate_insn>ti3): New expander.
21311         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
21312         any_rotate code iterator.
21313         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
21314         using any_rotate code iterator and SWIM124 mode iterator.
21315         (ix86_rotlti3): New insn_and_split pattern.
21316         (ix86_rotrti3): Ditto.
21317         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
21318         ix86_rotl{di,ti}3 patterns.
21319         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
21320         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
21321         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
21322         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
21323         code iterator and SWI mode iterator.
21324         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
21325         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
21326         code iterator.
21327         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
21328         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
21329         (bswap rotatert splitter): Add splitter.
21330         (bswap splitter): Macroize splitter using any_rotate code iterator.
21331         Add insn predicate to split only for TARGET_USE_XCHGB or when
21332         optimizing function for size.
21333
21334 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
21335
21336         * config/pa/pa.c (emit_move_sequence): Remove use of
21337         deleted variable flag_argument_noalias.
21338
21339 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21340
21341         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
21342         configurations.
21343         Add to unsupported targets list.
21344         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
21345         sparc*-sun-solaris2.[567]* from target lists.
21346         * configure: Regenerate.
21347         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
21348         removal.
21349         Remove Solaris 7 patch references.
21350         (Specific, sparc-sun-solaris2.7): Removed.
21351         (sparc-sun-solaris2*): Update Solaris 7 example.
21352         (sparc64-*-solaris2*): Likewise.
21353
21354 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21355
21356         * config.build (alpha*-dec-osf4*): Remove.
21357         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
21358         of obsolete configurations.
21359         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
21360         support.
21361         * config/alpha/t-osf4: Renamed to ...
21362         * config/alpha/t-osf5: ... this.
21363         * config/alpha/osf.h: Renamed to ...
21364         * config/alpha/osf5.h: ... this.
21365         Merged old osf5.h contents.
21366         Update comments.
21367         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
21368         (EXTRA_SPECS): Removed.
21369         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
21370         reflect removal of Tru64 UNIX V4.0/V5.0 support.
21371         Document that.
21372
21373 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21374
21375         * doc/contrib.texi (Contributors, Rainer Orth): Update.
21376
21377 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
21378
21379         PR/43702
21380         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
21381         __thiscall convention.
21382
21383 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
21384
21385         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
21386         orig_base.
21387         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
21388
21389 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
21390
21391         * function.c (assign_parms_initialize_all): Add unused attribute
21392         to fntype.
21393
21394 2010-04-12  Richard Guenther  <rguenther@suse.de>
21395
21396         * gsstruct.def (GSS_CALL): New.
21397         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
21398         * gimple.h: Include tree-ssa-alias.h.
21399         (struct gimple_statement_call): New.
21400         (union gimple_statement_struct_d): Add gimple_call member.
21401         (gimple_call_reset_alias_info): Declare.
21402         (gimple_call_use_set): New function.
21403         (gimple_call_clobber_set): Likewise.
21404         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
21405         * gimple.c (gimple_call_reset_alias_info): New function.
21406         (gimple_build_call_1): Call it.
21407         * lto-streamer-in.c (input_gimple_stmt): Likewise.
21408         * tree-inline.c (remap_gimple_stmt): Likewise.
21409         (expand_call_inline): Remove callused handling.
21410         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
21411         * tree-dfa.c (dump_variable): Likewise.
21412         * tree-parloops.c (parallelize_loops): Likewise.
21413         * tree-ssa.c (init_tree_ssa): Likewise.
21414         (delete_tree_ssa): Likewise.
21415         * tree-flow-inline.h (is_call_used): Remove.
21416         * tree-flow.h (struct gimple_df): Remove callused member.
21417         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
21418         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
21419         (ref_maybe_used_by_call_p_1): Simplify.
21420         (call_may_clobber_ref_p_1): Likewise.
21421         * tree-ssa-structalias.c (compute_points_to_sets): Set
21422         the call stmt used and clobbered sets.
21423         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
21424         (find_tail_calls): Verify the tail call.
21425
21426 2010-04-12  Richard Guenther  <rguenther@suse.de>
21427
21428         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
21429         single-iteration always-inline inlining.
21430         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
21431         (cgraph_decide_inlining): Do not handle always-inline specially.
21432         (try_inline): Remove always-inline cycle detection special case.
21433         Do not recurse on always-inlines.
21434         (cgraph_early_inlining): Do not iterate if not optimizing.
21435         (cgraph_gate_early_inlining): remove.
21436         (pass_early_inline): Run unconditionally.
21437         (gate_cgraph_decide_inlining): New function.
21438         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
21439         not inlining or optimizing.
21440         (cgraph_decide_inlining_of_small_functions): Also consider
21441         always-inline functions.
21442         (cgraph_default_inline_p): Return true for nodes which should
21443         disregard inline limits.
21444         (estimate_function_body_sizes): Assume zero size and time for
21445         nodes which are marked as disregarding inline limits.
21446         (cgraph_decide_recursive_inlining): Do not perform recursive
21447         inlining on always-inline nodes.
21448
21449 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
21450
21451         PR bootstrap/43699
21452         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
21453         for exprs satisfying handled_component_p.
21454
21455 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21456
21457         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
21458         non-constant aggregate elements.
21459
21460         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
21461         is a real initialization.
21462
21463 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
21464
21465         PR c/36774
21466         * c-decl.c (start_function): Move forward check for nested function.
21467
21468 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
21469
21470         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
21471         * config/sh/sh.c: Include reload.h.
21472         (sh_legitimize_reload_address): New.
21473         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
21474         sh_legitimize_reload_address.
21475
21476 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
21477
21478         * config/sh/sh.md (*movqi_pop): New insn pattern.
21479         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
21480
21481 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21482
21483         * config/i386/i386.md (any_shiftrt): New code iterator.
21484         (shiftrt_insn): New code attribute.
21485         (shiftrt): Ditto.
21486         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
21487         using any_shiftrt code iterator.
21488         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
21489         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
21490         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
21491         pattern from corresponding peephole2 patterns.
21492         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
21493         using any_shiftrt code iterator.
21494         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
21495         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
21496         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
21497         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
21498         *{ashr,lshr}<mode>3_cmp_zext.
21499         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
21500
21501 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21502
21503         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
21504         scratch register.
21505         (*lshr<mode>3_cconly): Ditto.
21506
21507 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21508
21509         * config/i386/i386.md (lshr<mode>3): Macroize expander from
21510         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
21511         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21512         pattern from *lshr{di,ti}3_1 and corresponding splitters using
21513         DWI mode iterator.
21514         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
21515         from corresponding peephole2 patterns.
21516         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
21517         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
21518         and *lshrdi3_1_rex64 using SWI mode iterator.
21519         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
21520         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
21521         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
21522         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
21523         and *lshrdi3_cmp_rex64 using SWI mode iterator.
21524         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
21525         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
21526         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
21527         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
21528         SWI mode iterator.
21529
21530 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
21531
21532         * config/i386/i386.md (ashr<mode>3): Macroize expander from
21533         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
21534         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21535         pattern from *ashr{di,ti}3_1 and corresponding splitters using
21536         DWI mode iterator.
21537         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
21538         from corresponding peephole2 patterns.
21539         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
21540         (ashrsi3_cvt): Rename from ashrsi3_31.
21541         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
21542         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
21543         and x86_64_shift_adj_3 using SWI48 mode iterator.
21544         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
21545         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
21546         and *ashrdi3_1_rex64 using SWI mode iterator.
21547         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
21548         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
21549         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
21550         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
21551         and *ashrdi3_cmp_rex64 using SWI mode iterator.
21552         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
21553         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
21554         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
21555         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
21556         SWI mode iterator.
21557         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
21558         * config/i386/i386.c (ix86_split_ashr): Update for renamed
21559         x86_shift<mode>_adj_3 expanders.
21560
21561 2010-04-10  Wei Guozhi  <carrot@google.com>
21562
21563         PR target/42601
21564         * config/arm/arm.c (arm_pic_static_addr): New function.
21565         (legitimize_pic_address): Call arm_pic_static_addr when it detects
21566         a static symbol.
21567         (arm_output_addr_const_extra): Output expression for new pattern.
21568         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
21569
21570 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
21571
21572         * ira-costs.c (record_reg_classes): Ignore alternatives that are
21573         not enabled.
21574
21575         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
21576         * web.c: Include "insn-config.h" and "recog.h".
21577         (union_match_dups): New function.
21578         (web_main): Call it.
21579         (union_defs): Don't try to recognize match_dups.
21580
21581         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
21582         if doing so would replace the entire pattern.
21583
21584 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
21585
21586         PR target/43707
21587         PR target/43709
21588         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
21589         and splitter pattern.  Change splitter operand 1 predicate to
21590         nonmemory_operand.
21591
21592 2010-04-09  Martin Jambor  <mjambor@suse.cz>
21593
21594         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
21595         lattices are addresses of CONST_DECLs with the same initial value.
21596         (ipcp_print_all_lattices): Print values of CONST_DECLs.
21597         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
21598
21599 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
21600             Bernd Schmidt  <bernds@codesourcery.com>
21601
21602         * loop-invariant.c (replace_uses): New static function.
21603         (move_invariant_reg): Use it to ensure we can replace the uses.
21604
21605 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
21606
21607         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
21608         function template.
21609         (picochip_override_options): Enable section anchors only above -O1.
21610         (picochip_reorg): Fixed a couple of build warnings.
21611
21612 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21613
21614         * configure.ac (plugin -rdynamic test): Log result.
21615         * configure: Regenerate.
21616         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
21617         (RDYNAMIC_SPEC): Define.
21618         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
21619
21620 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21621
21622         * configure.ac: Determine Sun ld version numbers.
21623         (comdat_group): Restrict GNU ld version checks to gld.
21624         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
21625         (enable_comdat): Support --enable-comdat.
21626         * configure: Regenerate.
21627         * doc/install.texi (Configuration): Document --enable-comdat.
21628
21629 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21630
21631         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
21632         * config/sol2-gld.h: ... here.
21633         * config.gcc (sparc*-*-solaris2*): Reflect this.
21634         (i[34567]86-*-solaris2*): Use it.
21635
21636 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
21637
21638         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
21639         setup_clocks_p.
21640         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
21641
21642 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21643
21644         PR 42965
21645         * diagnostic.c (diagnostic_initialize): Initialize
21646         some_warnings_are_errors.
21647         (diagnostic_finish): New.
21648         (diagnostic_action_after_output): Call it before exiting.
21649         (diagnostic_report_diagnostic): Do not print message here. Set
21650         some_warnings_are_errors.
21651         * diagnostic.h (diagnostic_context): Delete
21652         issue_warnings_are_errors_message. Add some_warnings_are_errors.
21653         (diagnostic_finish): Declare.
21654         * toplev.c (toplev_main): Call it before exit.
21655
21656 2010-04-09  Jason Merrill  <jason@redhat.com>
21657
21658         PR c++/42623
21659         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
21660         for incomplete type.
21661
21662         PR c++/41788
21663         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
21664         based on a warning flag.
21665
21666 2010-04-09  Richard Guenther  <rguenther@suse.de>
21667
21668         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
21669
21670 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
21671
21672         PR bootstrap/43684
21673         * varasm.c (default_assemble_visibility): Wrap vars that are
21674         set, but unused, by targets without GAS.
21675         * config/rs6000/rs6000.c (paired_emit_vector_compare):
21676         Remove set, but unused, vars.
21677         (rs6000_legitimize_tls_address): Likewise.
21678         (altivec_expand_dst_builtin): Likewise.
21679         * config/darwin.c (machopic_classify_symbol): Likewise.
21680         (machopic_indirection_name): Likewise.
21681
21682 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
21683
21684         * config/i386/i386.md (DWI): New mode iterator.
21685         (S): New mode attribute.
21686         (shift_operand): Ditto.
21687         (shift_immediate_operand): Ditto.
21688         (ashl_input_operand): Ditto.
21689         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
21690         using SDWIM mode iterator.
21691         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21692         pattern from *ashl{di,ti}3_1 and corresponding splitters using
21693         DWI mode iterator.
21694         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
21695         from corresponding peephole2 patterns.
21696         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
21697         and x86_64_shift_adj_1 using SWI48 mode iterator.
21698         (x86_shift<mode>_adj_2): Ditto.
21699         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
21700         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
21701         using SWI48 mode iterator.
21702         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
21703         *ashldi3_cmp_rex64 using SWI mode iterator.
21704         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
21705         *ashldi3_cconly_rex64 using SWI mode iterator.
21706         * config/i386/i386.c (ix86_split_ashl): Update for renamed
21707         x86_shift<mode>_adj_{1,2}.
21708         (ix86_split_ashr): Ditto.
21709         (ix86_split_lshr): Ditto.
21710
21711 2010-04-09  Richard Guenther  <rguenther@suse.de>
21712
21713         * target.h (builtin_conversion): Pass in input and output types.
21714         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
21715         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
21716         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
21717         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
21718
21719         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
21720         Handle AVX modes.
21721         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
21722
21723 2010-04-09  Richard Guenther  <rguenther@suse.de>
21724
21725         PR target/43152
21726         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
21727
21728 2010-04-09  Richard Guenther  <rguenther@suse.de>
21729
21730         * tree-vectorizer.h (struct _stmt_vec_info): Document
21731         that vectype is the type of the LHS.
21732         (supportable_widening_operation, supportable_narrowing_operation):
21733         Get both input and output vector types as arguments.
21734         (vect_is_simple_use_1): Declare.
21735         (get_same_sized_vectype): Likewise.
21736         * tree-vect-loop.c (vect_determine_vectorization_factor):
21737         Set STMT_VINFO_VECTYPE to the vector type of the def.
21738         (vectorizable_reduction): Adjust.
21739         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
21740         Adjust.  Specify the output vector type.
21741         (vect_pattern_recog_1): Adjust.
21742         * tree-vect-stmts.c (get_same_sized_vectype): New function.
21743         (vectorizable_call): Adjust.
21744         (vectorizable_conversion): Likewise.
21745         (vectorizable_operation): Likewise.
21746         (vectorizable_type_demotion): Likewise.
21747         (vectorizable_type_promotion): Likewise.
21748         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
21749         the def.
21750         (vect_is_simple_use_1): New function.
21751         (supportable_widening_operation): Get both input and output
21752         vector types.
21753         (supportable_narrowing_operation): Likewise.
21754         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
21755
21756 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
21757
21758         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
21759         __thiscall and _thiscall as predefined macros.
21760         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
21761         thiscall attribute handling.
21762         (ix86_comp_type_attributes): Likewise.
21763         (ix86_function_regparm): Likewise.
21764         (ix86_return_pops_args): Likewise.
21765         (init_cumulative_args): Likewise.
21766         (find_drap_reg): Likewise.
21767         (ix86_static_chain): Likewise.
21768         (x86_this_parameter): Likewise.
21769         (x86_output_mi_thunk): Likewise.
21770         (ix86_attribute_table): Add description for thiscall attribute.
21771         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
21772         * doc/extend.texi: Add documentation for thiscall.
21773
21774 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21775
21776         PR c++/28584
21777         * c.opt (Wint-to-pointer-cast): Available in C++.
21778         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
21779
21780 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
21781
21782         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
21783         * calls.c (expand_call): Pass the function type to aggregate_value_p.
21784         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
21785         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
21786         function type instead.  Reorder and simplify checks.
21787
21788         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
21789
21790 2010-04-08  Jing Yu  <jingyu@google.com>
21791             Zdenek Dvorak  <ook@ucw.cz>
21792
21793         PR tree-optimization/42720
21794         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
21795         loop unswitch conditions here from ...
21796         (tree_unswitch_single_loop): ... here.
21797
21798 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
21799
21800         * tree-if-conv.c: Fix comments and simplify logic.
21801
21802 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
21803
21804         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
21805         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
21806         (main_tree_if_conversion): Update call to tree_if_conversion.
21807
21808 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21809
21810         PR 42485
21811         * doc/invoke.texi (-b,-V): Delete.
21812         * doc/tm.texi: Do not mention -b.
21813         * gcc.c (display_help): Delete -b and -V.
21814         (process_command): Delete -b and -V.
21815         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
21816
21817 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
21818             Wolfgang Gellerich  <gellerich@de.ibm.com>
21819
21820         Implement target hook for loop unrolling
21821         * target.h (loop_unroll_adjust): Add a new target hook function.
21822         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
21823         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
21824         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
21825         (s390_loop_unroll_adjust): Implement the new target hook for s390.
21826         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
21827         target hook.
21828         (decide_unroll_stupid): Likewise.
21829
21830 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21831
21832         PR target/43643
21833         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
21834
21835 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21836
21837         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
21838         (Specific, *-*-solaris2*): Likewise.
21839         Don't prefer Sun as over GNU as.
21840
21841 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
21842
21843         * config/s390/s390.c (override_options): Adjust the z10 defaults
21844         for max-unroll-times, max-completely-peeled-insns
21845         and max-completely-peel-times.
21846
21847 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21848
21849         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
21850         instructions for z10.
21851         (s390_expand_setmem): Likewise.
21852         (s390_expand_cmpmem): Likewise.
21853
21854 2010-04-08  Richard Guenther  <rguenther@suse.de>
21855
21856         PR tree-optimization/43679
21857         * tree-ssa-pre.c (eliminate): Only propagate copies.
21858
21859 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
21860
21861         PR bootstrap/43681
21862         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
21863         set but not used variable warning.
21864
21865 2010-04-08  Wei Guozhi  <carrot@google.com>
21866
21867         PR target/41653
21868         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
21869         (arm_size_rtx_costs): Call the new function when optimized for size.
21870
21871 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
21872
21873         PR debug/43670
21874         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
21875         op0 is not a MEM, just return NULL instead of assertion
21876         failure.
21877         (discover_nonconstant_array_refs): Don't walk debug stmts.
21878
21879 2010-04-08  Doug Kwan  <dougkwan@google.com>
21880
21881         * configure.ac: Recognize gold and do not use its version number
21882         to test ld features.
21883         * configure: Regenerate.
21884
21885 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
21886
21887         PR middle-end/40815
21888         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
21889         (negate_value): Move code to push elements to broken_up_substracts ...
21890         (eliminate_plus_minus_pair): ... here.  Push operands that have no
21891         negative pair to plus_negates.
21892         (repropagate_negates, init_reassoc, fini_reassoc): Update.
21893
21894 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21895
21896         * doc/install.texi (Configuration): Move description of
21897         --enable-lto, --with-libelf*, --enable-gold from Java section to
21898         general section.
21899
21900         * doc/generic.texi (Working with declarations)
21901         (Function Properties, C and C++ Trees): Fix typos.
21902         * doc/sourcebuild.texi (Top Level): Likewise.
21903
21904 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
21905
21906         PR c/18624
21907         * tree.h (DECL_READ_P): Define.
21908         (struct tree_decl_common): Add decl_read_flag.
21909         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
21910         a set but not used warning.
21911         (merge_decls): Merge DECL_READ_P flag.
21912         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
21913         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
21914         * c-common.c (handle_used_attribute, handle_unused_attribute):
21915         Likewise.
21916         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
21917         New prototypes.
21918         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
21919         New functions.
21920         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
21921         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
21922         c_parser_binary_expression, c_parser_cast_expression,
21923         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
21924         Call default_function_array_read_conversion instead of
21925         default_function_array_conversion where needed.
21926         (c_parser_unary_expression, c_parser_conditional_expression,
21927         c_parser_postfix_expression_after_primary, c_parser_initelt):
21928         Likewise.  Call mark_exp_read where needed.
21929         (c_parser_statement_after_labels, c_parser_asm_operands,
21930         c_parser_typeof_specifier, c_parser_sizeof_expression,
21931         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
21932         where needed.
21933         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
21934         New.
21935         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
21936         (warn_unused_but_set_parameter): Default to warn_unused
21937         && extra_warnings.
21938         * doc/invoke.texi: Document -Wunused-but-set-variable and
21939         -Wunused-but-set-parameter.
21940
21941         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
21942         used count variable.
21943         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
21944         when operandN variables aren't used in the body of the expander
21945         or splitter.
21946         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
21947         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
21948         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
21949         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
21950         FOR_EACH_IMM_USE_ON_STMT): Likewise.
21951         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
21952         * tree.c (PROCESS_ARG): Likewise.
21953
21954 2010-04-07  Simon Baldwin  <simonb@google.com>
21955
21956         * diagnostic.h (diagnostic_override_option_index): New macro to
21957         set a diagnostic's option_index.
21958         * c-tree.h (c_cpp_error): Add warning reason argument.
21959         * opts.c (_warning_as_error_callback): New.
21960         (register_warning_as_error_callback): Store callback for
21961         warnings enabled via enable_warning_as_error.
21962         (enable_warning_as_error): Call callback, minor code tidy.
21963         * opts.h (register_warning_as_error_callback): Declare.
21964         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
21965         response to -Werror=.
21966         (c_common_init_options): Register warning_as_error_callback in opts.c.
21967         * common.opt: Add -Wno-cpp option.
21968         * c-common.c (struct reason_option_codes_t): Map cpp warning
21969         reason codes to gcc option indexes.
21970         * (c_option_controlling_cpp_error): New function, lookup the gcc
21971         option index for a cpp warning reason code.
21972         * (c_cpp_error): Add warning reason argument, call
21973         c_option_controlling_cpp_error for diagnostic_override_option_index.
21974         * doc/invoke.texi: Document -Wno-cpp.
21975
21976 2010-04-07  Richard Guenther  <rguenther@suse.de>
21977
21978         * ipa-reference.c (mark_load): Use get_base_address.
21979         (mark_store): Likewise.
21980
21981         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
21982         inserting GIMPLE_NOPs into the IL.
21983         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21984         Explicitly strip handled components and indirect references.
21985
21986         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
21987         folding address expressions.
21988         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
21989         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
21990         operand_equal_p to compare decls.
21991         (ptr_deref_may_alias_decl_p): Likewise.
21992         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
21993         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
21994         Handle reversed comparison ops.
21995         * tree-sra.c (asm_visit_addr): Use get_base_address.
21996         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
21997         * ipa-reference.c (mark_address): Use get_base_address.
21998
21999 2010-04-07  Richard Guenther  <rguenther@suse.de>
22000
22001         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
22002         Propagate constants everywhere.
22003
22004 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
22005
22006         PR debug/43516
22007         * tree.c (MAX_INT_CACHED_PREC): Define.
22008         (nonstandard_integer_type_cache): New array.
22009         (build_nonstandard_integer_type): Cache results for precision
22010         <= MAX_INT_CACHED_PREC.
22011
22012 2010-04-07  Richard Guenther  <rguenther@suse.de>
22013
22014         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
22015         -fargument-noalias-global, -fargument-noalias-anything): Remove.
22016         * common.opt: Likewise.
22017         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
22018         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
22019         (nonoverlapping_memrefs_p): Likewise.
22020         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
22021         * opts.c (common_handle_option): Handle OPT_fargument_alias,
22022         OPT_fargument_noalias, OPT_fargument_noalias_anything and
22023         OPT_fargument_noalias_global for backward compatibility.
22024
22025 2010-04-07  Richard Guenther  <rguenther@suse.de>
22026
22027         PR tree-optimization/43270
22028         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
22029         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
22030         * tree-ssa-pre.c (phi_translate_1): Adjust.
22031         (fully_constant_expression): Split out vn_reference handling to ...
22032         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
22033         Fold reads from constant strings.
22034         (vn_reference_lookup): Handle fully constant references.
22035         (vn_reference_lookup_pieces): Likewise.
22036         * Makefile.in (expmed.o-warn): Add -Wno-error.
22037
22038 2010-04-07  Martin Jambor  <mjambor@suse.cz>
22039
22040         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
22041
22042 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
22043
22044         PR driver/41594
22045         * gcc.c: Add -static-libstdc++ to list of recognized options.
22046
22047 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22048
22049         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
22050
22051 2010-04-07  Richard Guenther  <rguenther@suse.de>
22052
22053         PR middle-end/42617
22054         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
22055         bases build simple mem attributes to retain points-to information.
22056
22057 2010-04-07  Richard Guenther  <rguenther@suse.de>
22058
22059         PR middle-end/42617
22060         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
22061         preserve points-to related information.
22062
22063 2010-04-07  Richard Guenther  <rguenther@suse.de>
22064
22065         PR middle-end/42617
22066         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
22067         discard plain indirect references.
22068         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
22069         * tree.c (tree_nop_conversion): Likewise.
22070
22071 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
22072
22073         PR debug/43628
22074         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
22075
22076 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
22077
22078         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
22079         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
22080
22081 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
22082
22083         * tree-if-conv.c: Fix indentation and comments.
22084
22085 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
22086
22087         * tree-if-conv.c: Sort static functions in topological order.
22088
22089 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
22090
22091         * tree-if-conv.c: Fix indentation and comments.
22092
22093 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22094
22095         PR middle-end/43519
22096         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
22097         lang_hooks.types.type_for_size instead of
22098         build_nonstandard_integer_type.
22099         When converting an unsigned type to signed, double its precision.
22100         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
22101         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
22102         (graphite_create_new_loop_guard): When ub + 1 wraps around,
22103         use lb <= ub.
22104
22105 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22106
22107         PR middle-end/43519
22108         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
22109         POINTER_PLUS_EXPR for pointer types.
22110
22111 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22112
22113         PR middle-end/43519
22114         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
22115         * graphite-clast-to-gimple.c: Include langhooks.h.
22116         (max_signed_precision_type): New.
22117         (max_precision_type): Takes two types as arguments.
22118         (precision_for_value): New.
22119         (precision_for_interval): New.
22120         (gcc_type_for_interval): New.
22121         (gcc_type_for_value): New.
22122         (gcc_type_for_clast_term): New.
22123         (gcc_type_for_clast_red): New.
22124         (gcc_type_for_clast_bin): New.
22125         (gcc_type_for_clast_expr): Split up into several functions.
22126         (gcc_type_for_clast_eq): Rewritten.
22127         (compute_bounds_for_level): New.
22128         (compute_type_for_level_1): New.
22129         (compute_type_for_level): New.
22130         (gcc_type_for_cloog_iv): Removed.
22131         (gcc_type_for_iv_of_clast_loop): Rewritten.
22132         (graphite_create_new_loop): Compute the lower and upper bound types
22133         with gcc_type_for_clast_expr.
22134         (graphite_create_new_loop_guard): Same.
22135         (find_cloog_iv_in_expr): Removed.
22136         (compute_cloog_iv_types_1): Removed.
22137         (compute_cloog_iv_types): Removed.
22138         (gloog): Do not call compute_cloog_iv_types.
22139         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
22140         GBB_CLOOG_IV_TYPES.
22141         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
22142         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
22143         (GBB_CLOOG_IV_TYPES): Removed.
22144
22145 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22146
22147         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
22148         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
22149         (detect_commutative_reduction): Same.
22150
22151 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22152
22153         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
22154         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
22155         argument.
22156         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
22157         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
22158         (rewrite_commutative_reductions_out_of_ssa): Same.
22159         * passes.c (execute_function_todo): Call verify_ssa for every pass
22160         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
22161         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
22162         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
22163         with an extra argument.
22164         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
22165         verify_ssa only when the extra argument is true.
22166         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
22167         with an extra argument.
22168         (tree_transform_and_unroll_loop): Same.
22169
22170 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
22171
22172         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
22173         for all the passes of the LNO having LOOP_CLOSED_SSA.
22174         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
22175         * tree-loop-distribution.c (pass_loop_distribution): Same.
22176         * tree-pass.h (TODO_verify_loops): Removed.
22177         * tree-ssa-loop.c (pass_tree_loop_init): Same.
22178         (pass_lim): Same.
22179         (pass_tree_unswitch): Same.
22180         (pass_predcom): Same.
22181         (pass_vectorize): Same.
22182         (pass_linear_transform): Same.
22183         (pass_graphite_transforms): Same.
22184         (pass_iv_canon): Same.
22185         (pass_complete_unroll): Same.
22186         (pass_complete_unrolli): Same.
22187         (pass_parallelize_loops): Same.
22188         (pass_loop_prefetch): Same.
22189         (pass_iv_optimize): Same.
22190
22191 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
22192
22193         PR middle-end/32824
22194         * passes.c (init_optimization_passes): Move pass_lim before
22195         pass_copy_prop and pass_dce_loop.
22196
22197 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
22198
22199         PR target/43667
22200         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
22201         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
22202         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
22203         MULTI_* defines for 4 argument vpermil2p* builtins.
22204
22205 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
22206
22207         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
22208         * config/i386/i386.c (x86_maybe_negate_const_int): New.
22209         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
22210         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
22211         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
22212         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
22213         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
22214         Use x86_maybe_negate_const_int to output insn mnemonic.
22215         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
22216         check from instruction predicate.  Update comments.
22217         * config/i386/sync.md (sync_add<mode>): Use
22218         x86_maybe_negate_const_int to output insn mnemonic.
22219
22220 2010-04-06  Jan Hubicka  <jh@suse.cz>
22221
22222         PR tree-optimization/42906
22223         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
22224         IGNORE_SELF argument.  Set visited_control_parents for fully
22225         processed BBs.
22226         (find_obviously_necessary_stmts): Update call of
22227         mark_control_dependent_edges_necessary.
22228         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
22229
22230 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
22231
22232         * config/i386/i386.md: Remove comment about 'e' and 'E'
22233         operand modifier.
22234
22235 2010-04-06  Richard Guenther  <rguenther@suse.de>
22236
22237         PR tree-optimization/43627
22238         * tree-vrp.c (extract_range_from_unary_expr): Widenings
22239         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
22240         not varying.
22241
22242 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
22243
22244         * BASE-VER: Change to 4.6.0.
22245
22246         PR target/43638
22247         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
22248         handling.
22249
22250 2010-04-06  Richard Guenther  <rguenther@suse.de>
22251
22252         PR middle-end/43661
22253         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
22254
22255 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22256
22257         * doc/invoke.texi (Optimize Options): Document that LTO
22258         won't remove object access purely due to incompatible
22259         declarations.
22260
22261 2010-04-04  Matthias Klose  <doko@ubuntu.com>
22262
22263         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
22264         Initialize variable.
22265
22266 2010-04-03  Richard Guenther  <rguenther@suse.de>
22267
22268         PR middle-end/42509
22269         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
22270         require a non-NULL MEM_OFFSET.
22271
22272 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
22273
22274         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
22275         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
22276         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
22277         config/alpha/predicates.md, config/arm/arm.md,
22278         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
22279         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
22280         config/darwin9.h, config/darwin.c, config/darwin.h,
22281         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
22282         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
22283         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
22284         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
22285         config/mips/mips.md, config/mn10300/mn10300.c,
22286         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
22287         config/rs6000/aix.h, config/rs6000/dfp.md,
22288         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
22289         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
22290         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
22291         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
22292         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
22293         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
22294         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
22295         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
22296         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
22297         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
22298         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
22299         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
22300         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
22301         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
22302         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
22303         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
22304         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
22305         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
22306         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
22307         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
22308         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
22309         opt-functions.awk, opth-gen.awk, params.def, passes.c,
22310         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
22311         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
22312         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
22313         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
22314         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
22315         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
22316         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
22317         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
22318         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
22319         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
22320         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
22321         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
22322         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
22323         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
22324
22325 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22326
22327         PR other/43620
22328         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
22329         * aclocal.m4: Regenerate.
22330
22331 2010-04-02  Richard Guenther  <rguenther@suse.de>
22332
22333         PR tree-optimization/43629
22334         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
22335         if we have seen a constant value.
22336
22337 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
22338
22339         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
22340
22341 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
22342
22343         PR target/43469
22344         * arm.c (legitimize_tls_address): Adjust call to
22345         gen_tls_load_dot_plus_four.
22346         (arm_note_pic_base): New function.
22347         (arm_cannot_copy_insn_p): Use it.
22348         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
22349         constraint.
22350
22351 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22352
22353         PR bootstrap/43531
22354
22355         Revert:
22356         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22357
22358         * Makefile.in ($(out_object_file)): Depend on
22359         gt-$(basename $(notdir $(out_file))).h.
22360
22361 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
22362
22363         * config.gcc (lm32-*-rtems*): Add t-lm32.
22364
22365 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
22366
22367         * config.gcc: Add lm32-*-rtems*.
22368         * config/lm32/rtems.h: New file.
22369
22370 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
22371
22372         PR target/42609
22373         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
22374
22375 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
22376
22377         * dwarf2out.c (output_compilation_unit_header): For
22378         -gdwarf-4 use version 4 instead of version 3.
22379         (output_line_info): For version 4 and above emit additional
22380         maximum ops per insn header field.
22381         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
22382
22383         * dwarf2out.c (is_c_family, is_java): Remove.
22384         (lower_bound_default): New function.
22385         (add_bound_info, gen_descr_array_type_die): Use it.
22386
22387 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
22388
22389         PR debug/43325
22390         * dwarf2out.c (gen_variable_die): Allow debug info for variable
22391         re-declaration when it happens in a function.
22392
22393 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
22394
22395         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
22396         (cgraph_remove_function_insertion_hook): Same.
22397         (cgraph_call_function_insertion_hooks): Same.
22398
22399 2010-04-01  Richard Guenther  <rguenther@suse.de>
22400
22401         PR middle-end/43614
22402         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
22403         and TREE_THIS_VOLATILE.
22404         (copy_ref_info): Likewise.
22405         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
22406         * tree.c (build6_stat): Ignore side-effects of all but arg5
22407         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
22408         TARGET_MEM_REF.
22409
22410 2010-04-01  Richard Guenther  <rguenther@suse.de>
22411
22412         PR tree-optimization/43607
22413         * ipa-type-escape.c (check_call): Do not access non-existing
22414         arguments.
22415
22416 2010-04-01  Richard Guenther  <rguenther@suse.de>
22417
22418         PR middle-end/43602
22419         Revert
22420         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
22421                     Jack Howarth  <howarth@bromo.med.uc.edu>
22422
22423         * tree-profile.c (tree_init_ic_make_global_vars): Make static
22424         variables TLS.
22425
22426 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22427
22428         * doc/install.texi (Prerequisites): Document libelf usability on
22429         IRIX 5/6 and Solaris 2.
22430         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
22431         Update GNU as, GNU ld requirements.
22432         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
22433         Document Sun Studio compiler download.
22434         Update and simplify as, ld recommendations.
22435         (Specific, *-*-solaris2.7): Note obsoletion, removal.
22436
22437 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22438
22439         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
22440         with_tune_32 to pentium4.
22441
22442 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
22443
22444         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
22445
22446 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22447
22448         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
22449         obsoletion, removal.
22450         Update IDO URL.
22451         Document GNU as requirement.
22452         Update configure requirements.
22453         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
22454         Recomment IRIX 6.5.18+.
22455         Document IDF/IDL requirement.
22456         Document GNU as requirement.
22457         Document GNU ld bootstrap failure.
22458         Remove freeware.sgi.com reference.
22459
22460 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22461
22462         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
22463         UNIX V4.0, V5.0 obsoletion, removal.
22464         Remove --with-gc=simple reference.
22465         Update VM requirements during bootstrap.
22466         Remove -oldas bootstrap description.
22467         Update binutils reference.
22468         Remove comparison failure note.
22469
22470 2010-03-31  Richard Guenther  <rguenther@suse.de>
22471             Zdenek Dvorak  <ook@ucw.cz>
22472             Sebastian Pop  <sebastian.pop@amd.com>
22473
22474         PR middle-end/43464
22475         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
22476         with multiple arguments.
22477         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
22478
22479 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22480
22481         * graphite-dependences.c (print_pddr): Call print_pdr with an
22482         extra argument.
22483         * graphite-poly.c (debug_pdr): Add an extra argument for the
22484         verbosity level.
22485         (print_pdr): Same.
22486         (print_pbb_domain): Same.
22487         (print_pbb): Same.
22488         (print_scop_context): Same.
22489         (print_scop): Same.
22490         (print_cloog): Same.
22491         (debug_pbb_domain): Same.
22492         (debug_pbb): Same.
22493         (print_pdrs): Same.
22494         (debug_pdrs): Same.
22495         (debug_scop_context): Same.
22496         (debug_scop): Same.
22497         (debug_cloog): Same.
22498         (print_scop_params): Same.
22499         (debug_scop_params): Same.
22500         (print_iteration_domain): Same.
22501         (print_iteration_domains): Same.
22502         (debug_iteration_domain): Same.
22503         (debug_iteration_domains): Same.
22504         (print_scattering_function): Same.
22505         (print_scattering_functions): Same.
22506         (debug_scattering_function): Same.
22507         (debug_scattering_functions): Same.
22508         * graphite-poly.h (debug_pdr): Update declaration.
22509         (print_pdr): Same.
22510         (print_pbb_domain): Same.
22511         (print_pbb): Same.
22512         (print_scop_context): Same.
22513         (print_scop): Same.
22514         (print_cloog): Same.
22515         (debug_pbb_domain): Same.
22516         (debug_pbb): Same.
22517         (print_pdrs): Same.
22518         (debug_pdrs): Same.
22519         (debug_scop_context): Same.
22520         (debug_scop): Same.
22521         (debug_cloog): Same.
22522         (print_scop_params): Same.
22523         (debug_scop_params): Same.
22524         (print_iteration_domain): Same.
22525         (print_iteration_domains): Same.
22526         (debug_iteration_domain): Same.
22527         (debug_iteration_domains): Same.
22528         (print_scattering_function): Same.
22529         (print_scattering_functions): Same.
22530         (debug_scattering_function): Same.
22531         (debug_scattering_functions): Same.
22532
22533 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22534
22535         * graphite-poly.c (print_scattering_function_1): New.
22536         (print_scattering_function): Call it.
22537         (print_scop_params): Remove spaces at the end of lines.
22538         (print_cloog): New.
22539         (debug_cloog): New.
22540         * graphite-poly.h (print_cloog): Declared.
22541         (debug_cloog): Declared.
22542
22543 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22544
22545         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
22546         in loop->header.
22547         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
22548         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
22549         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
22550         to switch between adding the IV bump in loop->latch or in loop->header.
22551
22552 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22553
22554         * graphite-poly.c (print_scattering_function): Pretty print following
22555         the scoplib format.
22556         (print_pdr): Same.
22557         (print_pbb_domain): Same.
22558         (dump_gbb_cases): Same.
22559         (dump_gbb_conditions): Same.
22560         (print_pdrs): Same.
22561         (print_pbb): Same.
22562         (print_scop_params): Same.
22563         (print_scop_context): Same.
22564         (print_scop): Same.
22565         (print_pbb_body): New.
22566         (lst_indent_to): New.
22567         (print_lst): Start new lines with a #.
22568         * graphite-poly.h (pbb_bb): New.
22569         (pbb_index): Use pbb_bb.
22570         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
22571         disjuncts.
22572         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
22573
22574 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
22575
22576         * dwarf2out.c (size_of_die): For -gdwarf-4 use
22577         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
22578         and 0 instead of 1 for dw_val_class_flag.
22579         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
22580         dw_val_class_range_list, dw_val_class_loc_list,
22581         dw_val_class_lineptr and dw_val_class_macptr, use
22582         DW_FORM_flag_present for dw_val_class_flag and
22583         DW_FORM_exprloc for dw_val_class_loc.
22584         (output_die): For -gdwarf-4 print dw_val_class_loc
22585         size as uleb128 instead of 1 or 2 bytes and don't print
22586         anything for dw_val_class_flag.
22587
22588         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
22589         instead of cselib_lookup following by tweaking locs->setting_insn.
22590
22591         PR bootstrap/43596
22592         * cselib.c (cselib_process_insn): Clear cselib_current_insn
22593         even before returning from label, setjmp call or volatile asm
22594         handling.
22595
22596 2010-03-31  Richard Guenther  <rguenther@suse.de>
22597
22598         PR middle-end/43600
22599         * cgraphunit.c (cgraph_output_in_order): Do not allocate
22600         temporary data on stack.
22601
22602 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22603
22604         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
22605         (PUSHSECTION_ASM_OP): Remove.
22606         (POPSECTION_ASM_OP): Remove.
22607         (PUSHSECTION_FORMAT): Remove.
22608         * config/sol2.h (PUSHSECTION_FORMAT): Define.
22609         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
22610         * config/sol2.c (solaris_output_init_fini): Use it.
22611
22612 2010-03-31  Jie Zhang  <jie@codesourcery.com>
22613
22614         PR 43574
22615         * opt-functions.awk (var_type_struct): Use signed char type
22616         for simple variables.
22617
22618 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22619
22620         * config/sol2.c: Include output.h.
22621         (solaris_assemble_visibility): New function.
22622         * config/t-sol2 (sol2.o): Add output.h dependency.
22623         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
22624         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
22625         Redefine.
22626
22627 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
22628
22629         PR target/43580
22630         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
22631         V2SImode or XFmode on PRE_DEC.
22632
22633         PR debug/43557
22634         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
22635         BLKmode.
22636
22637 2010-03-31  Jie Zhang  <jie@codesourcery.com>
22638
22639         PR 43562
22640         * reload.h (caller_save_initialized_p): Declare.
22641         * toplev.c (backend_init_target): Don't call
22642         init_caller_save but set caller_save_initialized_p to false.
22643         * caller-save.c (caller_save_initialized_p): Define.
22644         (init_caller_save): Check caller_save_initialized_p.
22645         * ira.c (ira): Call init_caller_save if flag_caller_saves.
22646
22647 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22648
22649         PR target/39048
22650         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
22651         and soft-fp/t-softfp to tmake_file.
22652         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
22653         (LIBGCC2_TF_CEXT): Define.
22654         (TF_SIZE): Define.
22655
22656 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
22657
22658         PR debug/42977
22659         * cselib.c (n_useless_values): Document handling of debug locs.
22660         (n_useless_debug_values, n_debug_values): New variables.
22661         (new_elt_loc_list): Don't add to debug values, keep count.
22662         (promote_debug_loc): New.
22663         (cselib_reset_table): Zero new variables.
22664         (entry_and_rtx_equal_p): Promote debug locs.
22665         (discard_useless_locs): Increment n_useless_debug_values for
22666         debug values.
22667         (remove_useless_values): Adjust n_useless_values and n_debug_values
22668         with n_useless_debug_values.
22669         (add_mem_for_addr): Promote debug locs.
22670         (cselib_lookup_mem): Likewise.
22671         (cselib_lookup_addr): Renamed to...
22672         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
22673         (cselib_log_lookup): ... this.  Turn into...
22674         (cselib_lookup_addr): ... new wrapper.
22675         (cselib_lookup_from_insn): New.
22676         (cselib_invalidate_regno): Increment n_useless_debug_values for
22677         debug values.
22678         (cselib_invalidate_mem): Likewise.
22679         (cselib_process_insn): Take n_deleted and n_debug_values into
22680         account to guard remove_useless_value call.
22681         (cselib_finish): Zero n_useless_debug_values.
22682         * cselib.h (cselib_lookup_from_insn): Declare.
22683         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
22684         (sched_analyze_2): Likewise.
22685
22686 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
22687
22688         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
22689         functions.
22690         (adjust_mems): Replace narrowing SUBREG of expression containing
22691         just PLUS, MINUS, MULT and ASHIFT of registers and constants
22692         with operations in the narrower mode.
22693
22694         PR debug/43593
22695         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
22696         regs_invalidated_by_call instead all call_used_reg_set registers.
22697
22698 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
22699
22700         PR middle-end/43430
22701         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
22702         pointer comparisons with types_compatible_p.
22703         * tree-vect-stmts.c (vectorizable_call): Same.
22704         (vectorizable_condition): Same.
22705
22706 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22707
22708         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
22709         stack check if the mask would be zero.
22710
22711 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
22712             Jack Howarth  <howarth@bromo.med.uc.edu>
22713
22714         * tree-profile.c (tree_init_ic_make_global_vars): Make static
22715         variables TLS.
22716
22717 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
22718
22719         PR other/25232
22720         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
22721         and __unordtf2.
22722         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
22723         Include ___unordxf2 and ___unordtf2.
22724         * config/i386/libgcc-glibc.ver: Do not define inheritance from
22725         GCC_4.4.0 here.
22726
22727 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
22728
22729         * config/lm32/t-lm32: New file.
22730         * config.gcc: Use the above file when targetting lm32.
22731
22732 2010-03-28  Duncan Sands  <baldrick@free.fr>
22733
22734         * Makefile.in (PLUGIN_HEADERS): Add except.h.
22735
22736 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
22737
22738         PR middle-end/43431
22739         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
22740         Improve vectorization cost model diagnostic.
22741
22742 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
22743
22744         PR middle-end/43436
22745         * tree-vect-data-refs.c (vect_analyze_data_refs): When
22746         compute_data_dependences_for_loop returns false, early exit
22747         and output an extra diagnostic for the failed data reference
22748         analysis.
22749
22750 2010-03-29  Richard Guenther  <rguenther@suse.de>
22751
22752         PR tree-optimization/43560
22753         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
22754         (can_sm_ref_p): Treat stores to readonly locations as trapping.
22755
22756 2010-03-29  Jie Zhang  <jie@codesourcery.com>
22757
22758         PR 43564
22759         * toplev.c (process_options): Set optimization_default_node
22760         and optimization_current_node.
22761         * opts.c (decode_options): Don't set optimization_default_node
22762         and optimization_current_node.
22763
22764 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
22765
22766         * config/rtems.h: Abandon -qrtems_debug.
22767
22768 2010-03-28  Jan Hubicka  <jh@suse.cz>
22769
22770         PR tree-optimization/43505
22771         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
22772         map should not be copied.
22773
22774 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22775
22776         PR middle-end/41674
22777         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
22778         cdtors, set DECL_PRESERVE_P.
22779         * ipa.c (cgraph_externally_visible_p): Return true if declaration
22780         should be preseved.
22781
22782 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
22783
22784         PR tree-optimization/43528
22785         * stor-layout.c (place_field): Check that constant fits into
22786         unsigned HWI when skipping calculation of MS bitfield layout.
22787
22788 2010-03-27  Jan Hubicka  <jh@suse.cz>
22789
22790         PR middle-end/43391
22791         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
22792         notice_global_symbol work.
22793
22794 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
22795
22796         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
22797         instead of dwarf2out_decl.
22798         (struct var_loc_node): Remove section_label field.
22799         (dwarf2out_function_decl): New function.
22800         (dwarf2out_var_location): Don't set section_label field.
22801         (dwarf2out_begin_function): Don't empty decl_loc_table here.
22802
22803 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22804
22805         PR tree-optimization/43544
22806         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22807         First argument for builtin vectorized function hook is now a
22808         tree to be able to distinguish between machine specific and
22809         standard builtins.
22810         * targhooks.c (default_builtin_vectorized_function): Ditto.
22811         * targhooks.h (default_builtin_vectorized_function): Ditto.
22812         * target.h (struct gcc_target): Ditto.
22813         * tree-vect-stmts.c (vectorizable_function): Ditto.
22814         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
22815         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
22816         Ditto.
22817
22818 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
22819
22820         PR c/43381
22821         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
22822         nested binding iff it is a FUNCTION_DECL.
22823         (store_parm_decls_newstyle): Pass nested=true to bind for
22824         FUNCTION_DECLs amongst parameters.
22825
22826 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
22827
22828         * var-tracking.c (vt_expand_loc_callback): Don't run
22829         cselib_expand_value_rtx_cb in dummy mode if
22830         cselib_dummy_expand_value_rtx_cb returned false.
22831
22832         * var-tracking.c (emit_note_insn_var_location): For one part
22833         notes with offset 0, don't add EXPR_LIST around the location.
22834         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
22835         add_location_or_const_value_attribute): Adjust for that change.
22836
22837         PR debug/43540
22838         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
22839         into first operand and location into second.
22840         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
22841         dw_cfi_oprnd_loc for DW_CFA_expression.
22842         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
22843         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
22844         assume first argument is regnum and second argument is location.
22845
22846 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
22847
22848         PR target/42113
22849         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
22850         of scratch register to DImode.  Split to DImode comparison operator.
22851         Use SImode subreg of scratch register in the multiplication.
22852         (*cmp_sadd_sidi): Ditto.
22853         (*cmp_ssub_si): Ditto.
22854         (*cmp_ssub_sidi): Ditto.
22855
22856 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
22857
22858         PR target/43524
22859         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
22860         Remove invalid assert and wrong comment.
22861
22862 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
22863
22864         PR debug/43516
22865         * flags.h (final_insns_dump_p): New extern.
22866         * final.c (final_insns_dump_p): New variable.
22867         (rest_of_clean_state): Set it before -fdump-final-insns=
22868         dumping, clear afterwards.
22869         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
22870         MEM_ALIAS_SET on MEMs.
22871
22872 2010-03-26  David S. Miller  <davem@davemloft.net>
22873
22874         * configure.ac: Fix sparc GOTDATA_OP bug check.
22875         * configure: Rebuild.
22876
22877 2010-03-26  Alan Modra  <amodra@gmail.com>
22878
22879         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
22880
22881 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22882
22883         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
22884         TLS_SECTION_ASM_FLAG.
22885
22886 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
22887
22888         PR bootstrap/43511
22889         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
22890         Clear first_function_block_is_cold.
22891
22892         PR c/43385
22893         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
22894         argument if the argument is truth_value_p.
22895
22896 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22897
22898         * config/rs6000/constraints.md: Update copyright year for my changes.
22899
22900         PR target/43484
22901         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
22902         used in reg+reg addressing, swap registers.
22903
22904 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22905
22906         PR debug/43293
22907         * target.h (struct gcc_target): Add code_end hook.
22908         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
22909         if not yet defined.
22910         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
22911         * toplev.c (compile_file): Call targetm.asm_out.code_end
22912         hook before unwind info/debug info output.
22913         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
22914         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
22915         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
22916         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
22917         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
22918         * config/i386/i386.c (ix86_file_end): Renamed to...
22919         (ix86_code_end): ... this.  Make static.  Don't call
22920         file_end_indicate_exec_stack.  Emit unwind info using
22921         final_start_function/final_end_function.
22922         (darwin_x86_file_end): Remove.
22923         (TARGET_ASM_CODE_END): Define.
22924         * config/i386/i386.h (TARGET_ASM_FILE_END,
22925         NEED_INDICATE_EXEC_STACK): Don't define.
22926         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
22927         (TARGET_ASM_FILE_END): Define to darwin_file_end.
22928         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
22929         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
22930
22931         PR target/43498
22932         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
22933         at the beginning and final_end_function at the end.
22934         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
22935
22936 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22937
22938         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
22939         and Sun as TLS syntax.
22940         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
22941         * configure: Regenerate.
22942         * config.in: Regenerate.
22943         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
22944         (default_elf_asm_named_section): Use it.
22945         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
22946         (i386_output_dwarf_dtprel): Likewise.
22947         (output_addr_const_extra): Likewise.
22948         (output_pic_addr_const): Lowercase @GOTTPOFF.
22949         (output_addr_const_extra): Likewise.
22950         (output_pic_addr_const): Lowercase @GOTNTPOFF.
22951         (output_addr_const_extra): Likewise.
22952         (output_pic_addr_const): Lowercase @INDNTPOFF.
22953         (output_addr_const_extra): Likewise.
22954         (output_pic_addr_const): Lowercase @NTPOFF.
22955         (output_addr_const_extra): Likewise.
22956         (output_pic_addr_const): Lowercase @TPOFF.
22957         (output_addr_const_extra): Likewise.
22958         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
22959         (*tls_global_dynamic_64): Likewise.
22960         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
22961         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
22962
22963         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
22964         (ASM_OUTPUT_TLS_COMMON): Use it.
22965         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
22966
22967         PR target/38118
22968         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
22969         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22970         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
22971         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
22972         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22973         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
22974
22975 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22976
22977         * config/i386/i386.c (override_options): Don't accept
22978         -mtls-dialect=sun any longer.
22979         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
22980         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
22981         (*tls_local_dynamic_base_32_sun): Likewise.
22982         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22983
22984 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22985
22986         PR debug/43508
22987         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22988         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
22989
22990         PR debug/43479
22991         * ira.c (adjust_cleared_regs): New function.
22992         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
22993
22994         PR debug/19192
22995         PR debug/43479
22996         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
22997         from gimple_block.
22998         * expr.c (expand_expr_real): Restore previous
22999         curr_insn_source_location and curr_insn_block after
23000         expand_expr_real_1 call.
23001         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
23002         instead of expand_expr_real_1.
23003
23004 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
23005
23006         PR rtl-optimization/43413
23007         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
23008         hard regs too.
23009
23010 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
23011
23012         PR target/43348
23013         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
23014         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
23015
23016 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23017
23018         * config/i386/i386.c (ix86_target_string): Add -mfma.
23019         Fix a typo in comment.
23020
23021 2010-03-22  Mike Stump  <mikestump@comcast.net>
23022
23023         PR target/23071
23024         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
23025         Don't overly align based upon packed packed fields.
23026
23027 2010-03-22  Jason Merrill  <jason@redhat.com>
23028
23029         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
23030         Use () rather than [], and move before the element type.
23031
23032 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23033
23034         * doc/configfiles.texi (Configuration Files): Removed
23035         fixinc/Makefile*, intl/Makefile.*.
23036         * doc/makefile.texi: Fixed markup. Abstract from version
23037         control system used.
23038         (Makefile): Removed obsolete java/parse.y example.
23039         * doc/sourcebuild.texi: Likewise.
23040         (Top Level): Added config, gnattools, libdecnumber, libgcc,
23041         libgomp, libssp.  Removed fastjar.
23042         (Miscellaneous Docs): Clarify location.
23043         Added COPYING3, COPYING3.LIB.
23044         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
23045
23046 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23047
23048         PR target/38085
23049         * config/i386/i386.c (x86_function_profiler)
23050         [!NO_PROFILE_COUNTERS]: Fix typo.
23051         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
23052         instead of callq.
23053
23054 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
23055             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23056
23057         * doc/sourcebuild.texi (Test Directives): Split into six
23058         subsections, with most of the current text in new subsections
23059         Directives, Selectors, and Final Actions.
23060         (Directives): Split list of test directives into multiple
23061         subsubsections.
23062         (Selectors): Describe use and syntax of selectors.
23063         (Effective-Target Keywords): Describe all existing keywords.
23064         (Add Options): Describe features for dg-add-options.
23065         (Require Support): Describe variants of dg-require-support.
23066         (Final Actions): Describe commands to use in dg-final.
23067
23068 2010-03-22  Michael Matz  <matz@suse.de>
23069
23070         PR middle-end/43475
23071         * recog.c (validate_replace_rtx_group): Replace also in
23072         REG_EQUAL and REG_EQUIV notes.
23073
23074 2010-03-22  Richard Guenther  <rguenther@suse.de>
23075
23076         PR tree-optimization/43390
23077         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
23078         sure vector extracts are type correct.
23079
23080 2010-03-22  Richard Guenther  <rguenther@suse.de>
23081
23082         PR middle-end/40106
23083         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
23084         x * sqrt (x) even when optimizing for size if the target
23085         has native support for sqrt.
23086
23087 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
23088
23089         * varasm.c (make_decl_rtl_for_debug): Also clear
23090         flag_mudflap for the duration of make_decl_rtl call.
23091
23092         PR debug/43443
23093         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
23094         locs from preserved VALUEs.
23095
23096 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23097
23098         PR middle-end/42718
23099         * pa.md (movmemsi): Set align to one if zero.
23100         (movmemdi): Likewise.
23101
23102 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
23103
23104         PR target/42321
23105         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
23106         with their corresponding prologue pushes.
23107
23108 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
23109
23110         PR target/43156
23111         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
23112         at the begining or end.
23113         (spu_expand_epilogue): Likewise.
23114
23115 2010-03-20  Richard Guenther  <rguenther@suse.de>
23116
23117         PR rtl-optimization/43438
23118         * combine.c (make_extraction): Properly zero-/sign-extend an
23119         extraction of the low part of a CONST_INT.  Also handle
23120         CONST_DOUBLE.
23121
23122 2010-03-19  Mike Stump  <mikestump@comcast.net>
23123
23124         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
23125         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
23126         (override_options): Use SUBTARGET32_DEFAULT_CPU.
23127
23128 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
23129
23130         PR c/43211
23131         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
23132         an error.
23133
23134 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
23135
23136         PR rtl-optimization/42258
23137         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
23138         use that may match DEF.
23139
23140         PR target/40697
23141         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
23142         the cost of loading the constant rather than assuming
23143         COSTS_N_INSNS (1).
23144         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
23145         outer code is AND, do the same tests as the andsi3 expander and
23146         return COSTS_N_INSNS (1) if and is cheap.
23147
23148         * optabs.c (avoid_expensive_constant): Fix formatting.
23149
23150 2010-03-19  Michael Matz  <matz@suse.de>
23151
23152         PR c++/43116
23153         * attribs.c (decl_attributes): When rebuilding a function pointer
23154         type use the same qualifiers as the original pointer type.
23155
23156 2010-03-19  Martin Jambor  <mjambor@suse.cz>
23157
23158         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
23159         and is_gimple_ip_invariant_address.
23160
23161 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23162
23163         Revert
23164         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23165
23166         * config/arm/arm.c (arm_override_options): Turn off
23167         flag_dwarf2_cfi_asm for AAPCS variants.
23168
23169 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23170
23171         PR target/43399
23172         * config/arm/arm.c (emit_multi_reg_push): Update comments.
23173         Use PRE_MODIFY instead of PRE_DEC.
23174         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
23175         (vfp_emit_fstmd): Likewise.
23176
23177 2010-03-19  Michael Matz  <matz@suse.de>
23178
23179         PR target/43305
23180         * builtins.c (expand_builtin_interclass_mathfn,
23181         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
23182         if that fails.
23183
23184 2010-03-19  Richard Guenther  <rguenther@suse.de>
23185
23186         PR tree-optimization/43415
23187         * tree-ssa-pre.c (phi_translate): Split out worker to ...
23188         (phi_translate_1): ... this.
23189         (phi_translate): Move all caching here.  Cache all NARY
23190         and REFERENCE translations.
23191
23192 2010-03-19  David S. Miller  <davem@davemloft.net>
23193
23194         With help from Eric Botcazou.
23195         * config/sparc/sparc.c: Include dwarf2out.h.
23196         (emit_pic_helper): Delete.
23197         (pic_helper_symbol_name): Delete.
23198         (pic_helper_emitted_p): Delete.
23199         (pic_helper_needed): New.
23200         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
23201         (get_pc_thunk_name): New.
23202         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
23203         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
23204         Set pic_helper_needed to true.  Don't call emit_pic_helper.
23205         (sparc_expand_prologue): Update load_pic_register call.
23206         (sparc_output_mi_thunk): Likewise.
23207         (sparc_file_end): Emit a hidden comdat symbol for the PIC
23208         thunk if possible.  Output CFI information as needed.
23209
23210 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23211             Jack Howarth  <howarth@bromo.med.uc.edu>
23212
23213         PR target/36399
23214         * config/i386/i386.h: Fix ABI on darwin x86-32.
23215
23216 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
23217
23218         * tree.h: Declare make_decl_rtl_for_debug.
23219         * varasm.c (make_decl_rtl_for_debug): New.
23220         * dwarf2out.c (rtl_for_decl_location): Call it.
23221         * cfgexpand.c (expand_debug_expr): Call it.
23222
23223 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
23224
23225         PR bootstrap/43399
23226         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
23227         mem_mode.
23228
23229         PR bootstrap/43403
23230         * var-tracking.c (vt_init_cfa_base): Do nothing if
23231         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
23232
23233 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
23234
23235         PR debug/42873
23236         * var-tracking.c (canonicalize_vars_star): New.
23237         (dataflow_post_merge_adjust): Use it.
23238
23239 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
23240
23241         PR debug/43058
23242         * var-tracking.c (non_suitable_const): New function.
23243         (add_uses): For DEBUG_INSNs with constants, don't record any
23244         value, instead just the constant value itself.
23245         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
23246         is not VAR_LOC_UNKNOWN_P, set var to the constant.
23247         (emit_notes_in_bb): Likewise.
23248         (emit_note_insn_var_location): For onepart variables if
23249         cur_loc is a VOIDmode constant, use DECL_MODE.
23250
23251 2010-03-18  Martin Jambor  <mjambor@suse.cz>
23252
23253         PR middle-end/42450
23254         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
23255         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
23256         all non-clones.  Moved call redirection...
23257         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
23258         (cgraph_materialize_all_clones): Dispose of all
23259         combined_args_to_skip bitmaps.
23260         (verify_cgraph_node): Do not check for edges pointing to wrong
23261         nodes in inline clones.
23262         * tree-inline.c (copy_bb): Call
23263         cgraph_redirect_edge_call_stmt_to_callee.
23264         * ipa.c (cgraph_remove_unreachable_nodes): Call
23265         cgraph_node_remove_callees even when there are used clones.
23266
23267 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
23268
23269         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
23270
23271 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
23272
23273         PR target/43383
23274         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
23275         for 32bit.
23276
23277 2010-03-18  Michael Matz  <matz@suse.de>
23278
23279         PR middle-end/43419
23280         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
23281         into sqrt(x) if we need to preserve signed zeros.
23282
23283 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
23284             Eric Botcazou  <ebotcazou@adacore.com>
23285
23286         PR rtl-optimization/43360
23287         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
23288         note if we don't know its invariant status.
23289
23290 2010-03-18  Michael Matz  <matz@suse.de>
23291
23292         PR tree-optimization/43402
23293         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
23294         PHI chains of ssa names registered for update.
23295
23296 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
23297
23298         PR target/42427
23299         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
23300         non-offsettable and pre_modify update addressing.
23301         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
23302         and "2" alternatives "#".
23303         (*movdd_softfloat32): Make all alternatives "#";
23304         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
23305         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
23306         (*movdf_softfloat32): Make all alternatives "#";
23307         (movdi): Use the new DIFD mode iterator to create a common splitter
23308         for movdi, movdf and movdd patterns.
23309
23310 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
23311
23312         * common.opt (dumpdir): Remove redundant tab.
23313
23314 2010-03-17  Martin Jambor  <mjambor@suse.cz>
23315
23316         PR tree-optimization/43347
23317         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
23318         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
23319
23320 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
23321
23322         PR rtl-optimization/42216
23323         * regrename.c (create_new_chain): New function, broken out from...
23324         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
23325         appending a use to an empty chain.
23326         (build_def_use): Remove previous changes that convert OP_INOUT to
23327         OP_OUT operands; instead detect the case where an OP_INOUT operand
23328         uses a previously untracked register and create an empty chain for it.
23329
23330 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23331
23332         * doc/extend.texi (Function Attributes): Rewrite unfinished
23333         sentence in ms_abi documentation.
23334
23335 2010-03-17  Alan Modra  <amodra@gmail.com>
23336
23337         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
23338         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
23339         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
23340         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
23341
23342 2010-03-16  Richard Henderson  <rth@redhat.com>
23343
23344         PR middle-end/43365
23345         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
23346         (lower_try_finally): Save and restore eh_seq around the expansion
23347         of the try-finally.
23348
23349 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
23350
23351         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
23352         statements before splitting block.
23353
23354 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23355
23356         * doc/sourcebuild.texi (Testsuites): Fix markup.
23357         Use pathnames relative to gcc/testsuite.
23358         (Test Directives): Move description of how timeout is determined.
23359         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
23360         (C Tests): Correct gcc.misc-tests directory.
23361         Framework tests now live in gcc.test-framework.
23362
23363 2010-03-16  Richard Guenther  <rguenther@suse.de>
23364
23365         PR middle-end/43379
23366         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
23367         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
23368
23369 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
23370             Alexandre Oliva  <aoliva@redhat.com>
23371
23372         PR tree-optimization/42917
23373         * lambda-code.c (remove_iv): Skip debug statements.
23374         (lambda_loopnest_to_gcc_loopnest): Likewise.
23375         (not_interesting_stmt): Debug statements are not interesting.
23376
23377 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
23378
23379         PR debug/43051
23380         PR debug/43092
23381         * cselib.c (cselib_preserve_constants,
23382         cfa_base_preserved_val): New static variables.
23383         (preserve_only_constants): New function.
23384         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
23385         clear its REG_VALUES.  If cselib_preserve_constants, don't
23386         empty the whole hash table, but preserve there VALUEs with constants,
23387         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
23388         (cselib_preserve_cfa_base_value): New function.
23389         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
23390         (cselib_init): Change argument to int bitfield.  Set
23391         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
23392         is in it.
23393         (cselib_finish): Clear cselib_preserve_constants and
23394         cfa_base_preserved_val.
23395         * cselib.h (enum cselib_record_what): New enum.
23396         (cselib_init): Change argument to int.
23397         (cselib_preserve_cfa_base_value): New prototype.
23398         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
23399         * dse.c (dse_step1): Likewise.
23400         * cfgcleanup.c (thread_jump): Likewise.
23401         * sched-deps.c (sched_analyze): Likewise.
23402         * gcse.c (local_cprop_pass): Likewise.
23403         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
23404         If FN is non-NULL, call the callback always and whenever it returns
23405         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
23406         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
23407         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
23408         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
23409         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
23410         * var-tracking.c: Include recog.h.
23411         (bb_stack_adjust_offset): Remove.
23412         (vt_stack_adjustments): Don't call it, instead just gather the
23413         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
23414         (adjust_stack_reference): Remove.
23415         (compute_cfa_pointer): New function.
23416         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
23417         (struct adjust_mem_data): New type.
23418         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
23419         functions.
23420         (get_address_mode): New function.
23421         (replace_expr_with_values): Use it.
23422         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
23423         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
23424         (adjust_sets): Remove.
23425         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
23426         Use get_address_mode.
23427         (get_adjusted_src): Remove.
23428         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
23429         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
23430         (add_with_sets): Don't call adjust_sets.
23431         (fp_setter, vt_init_cfa_base): New functions.
23432         (vt_initialize): Change return type to bool.  Move most of pool etc.
23433         initialization to the beginning of the function from end.  Pass
23434         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
23435         If !frame_pointer_needed, call vt_stack_adjustment before mos
23436         vector is filled, call vt_init_cfa_base if argp/framep has been
23437         eliminated to sp.  If frame_pointer_needed and argp/framep has
23438         been eliminated to hard frame pointer, set
23439         hard_frame_pointer_adjustment and call vt_init_cfa_base after
23440         encountering fp setter in the prologue.  For MO_ADJUST, call
23441         log_op_type before pusing the op into mos vector, not afterwards.
23442         Call adjust_insn before cselib_process_insn/add_with_sets,
23443         call cancel_changes (0) afterwards.
23444         (variable_tracking_main_1): Adjust for vt_initialize calling
23445         vt_stack_adjustments and returning whether it succeeded or not.
23446
23447 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
23448
23449         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
23450         debug statements.
23451
23452 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
23453
23454         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
23455         has been set.
23456         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
23457         drap_reg has not been set.
23458
23459 2010-03-15  Michael Matz  <matz@suse.de>
23460
23461         PR middle-end/43300
23462         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
23463         use it to expand block copies.
23464         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
23465         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
23466         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
23467
23468 2010-03-15  Richard Guenther  <rguenther@suse.de>
23469
23470         PR tree-optimization/43367
23471         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
23472         elimination check.
23473
23474 2010-03-15  Richard Guenther  <rguenther@suse.de>
23475
23476         PR tree-optimization/43317
23477         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
23478
23479 2010-03-15  Martin Jambor  <mjambor@suse.cz>
23480
23481         PR tree-optimization/43141
23482         * tree-sra.c (create_abstract_origin): New function.
23483         (modify_function): Call create_abstract_origin.
23484
23485 2010-03-15  Chris Demetriou  <cgd@google.com>
23486
23487         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
23488         wasn't copied.
23489
23490 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23491
23492         PR middle-end/43354
23493         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
23494         call insert_out_of_ssa_copy for default definitions.
23495
23496 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23497
23498         * graphite-clast-to-gimple.c (my_long_long): Defined.
23499         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
23500         * graphite-sese-to-poly.c (my_long_long): Defined.
23501         (scop_ivs_can_be_represented): Use it.
23502
23503 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23504
23505         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
23506         graphite-max-bbs-per-function, and loop-block-tile-size.
23507         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
23508         with "maximum".
23509         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
23510
23511 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23512
23513         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
23514         forward declaration.
23515         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
23516         (add_upper_bounds_from_estimated_nit): New.
23517         (build_loop_iteration_domains): Use it.
23518
23519 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23520
23521         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
23522
23523 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23524
23525         PR middle-end/43306
23526         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
23527         should be an INTEGER_CST.  Also handle CASE_CONVERT.
23528
23529 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23530
23531         * graphite.c (graphite_initialize): To bound the number of bbs per
23532         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
23533         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
23534         * doc/invoke.texi: Document it.
23535
23536 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23537
23538         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
23539         * graphite-sese-to-poly.h (build_poly_scop): Same.
23540
23541 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23542
23543         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
23544         the number of parameters in the scop.  Use as an upper bound
23545         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
23546         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
23547         * doc/invoke.texi: Document it.
23548
23549 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
23550
23551         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
23552         * doc/c-tree.texi: Remove.
23553         * doc/generic.texi: Merge c-tree.texi here.
23554         * doc/gccint.texi (Trees): Remove menu entry.
23555         (c-tree.texi): Remove @include.
23556         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
23557         * doc/languages.texi (Reading RTL): Ditto.
23558
23559 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
23560
23561         PR target/42869
23562         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
23563
23564 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23565
23566         PR middle-end/42431
23567         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
23568         code added to work around reload clobbering CONST insns.
23569
23570 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
23571
23572         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
23573         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
23574         (cselib_preserve_only_values): Remove retain argument, don't
23575         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
23576         * cselib.h (cselib_preserve_only_values): Remove retain argument.
23577         * var-tracking.c (micro_operation): Move insn field before union.
23578         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
23579         (struct variable_tracking_info_def): Remove n_mos field, change
23580         mos into a vector of micro_operations.
23581         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
23582         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
23583         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
23584         changing into a vector.
23585         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
23586         come before all other uops generated by add_stores.
23587         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
23588         argument removal.
23589         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
23590         a vector.  Run just one pass over the bbs instead of separate counting
23591         and computation phase.
23592         (vt_finalize): Free VTI (bb)->mos vector instead of array.
23593
23594         PR debug/43329
23595         * tree-inline.c (remap_decls): Put old_var rather than origin_var
23596         into *nonlocalized_list vector.
23597         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
23598         even if origin is non-NULL.
23599         (gen_variable_die): Likewise.
23600         (process_scope_var): Don't change origin.
23601         (gen_decl_die): Likewise.
23602         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
23603         before adding new edges instead of after it, fix moving over
23604         debug stmts.
23605
23606 2010-03-11  David S. Miller  <davem@davemloft.net>
23607
23608         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
23609         of four.
23610         * configure: Rebuild.
23611
23612 2010-03-11  Martin Jambor  <mjambor@suse.cz>
23613
23614         PR tree-optimization/43257
23615         * tree.c (assign_assembler_name_if_neeeded): New function.
23616         (free_lang_data_in_cgraph): Assembler name assignment moved to the
23617         above new function.
23618         * tree.h (assign_assembler_name_if_neeeded): Declare.
23619         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
23620         the function if needed.
23621
23622 2010-03-11  Chris Demetriou  <cgd@google.com>
23623
23624         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
23625         include/stdint-gcc.h, and include/stdint.h world-readable.
23626
23627 2010-03-11  Richard Guenther  <rguenther@suse.de>
23628
23629         PR tree-optimization/43255
23630         * tree-vrp.c (process_assert_insertions_for): Do not insert
23631         asserts for trivial conditions.
23632
23633 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23634
23635         PR tree-optimization/43280
23636         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
23637         generation.  Move calculation of size out of the if branch.
23638         (find_bswap): Modify compare number generation.
23639
23640 2010-03-11  Richard Guenther  <rguenther@suse.de>
23641
23642         PR lto/43200
23643         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
23644         (input_gimple_stmt): Fixup handled component types during
23645         operand read.  Also fix up decls in ADDR_EXPRs.
23646
23647 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
23648
23649         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
23650         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
23651
23652 2010-03-10  Jan Hubicka  <jh@suse.cz>
23653
23654         PR c/43288
23655         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
23656         * varasm.c (get_variable_section): Don't do that here...
23657         (make_decl_rtl): ... and here.
23658         (do_assemble_alias): Produce decl RTL.
23659         (assemble_alias): Likewise.
23660
23661 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
23662
23663         PR debug/43290
23664         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
23665         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
23666         of fde->vdrap_reg.
23667         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
23668         (based_loc_descr): Only express drap or vdrap regno based expressions
23669         using DW_OP_fbreg when not optimizing.
23670         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
23671         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
23672         REG_CFA_SET_VDRAP note.
23673
23674 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
23675
23676         PR tree-optimization/43236
23677         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
23678         error in calculation of base address in reverse iteration case.
23679         (generate_builtin): Take number of latch executions if the statement
23680         is in the latch.
23681
23682 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
23683
23684         PR middle-end/42859
23685         * tree-eh.c: Include pointer-set.h.
23686         (lower_eh_dispatch): Filter out duplicate case labels and
23687         remove the unneeded edge when the label is unused.  Return
23688         true when some edges are removed.
23689         (execute_lower_eh_dispatch): When any lowering resulted in
23690         removing an edge, also delete unreachable blocks.
23691
23692 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
23693
23694         PR bootstrap/43287
23695         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23696         UNSPEC_MACHOPIC_OFFSET.
23697
23698 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
23699
23700         PR target/43294
23701         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
23702         (m68k_delegitimize_address): New function.
23703
23704 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
23705
23706         PR debug/43299
23707         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
23708
23709         PR debug/43299
23710         * var-tracking.c (adjust_sets): New function.
23711         (count_with_sets, add_with_sets): Use it.
23712         (get_adjusted_src): New inline function.
23713         (add_stores): Use it.
23714
23715         PR debug/43304
23716         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
23717         call cselib_dummy_expand_value_rtx_cb instead of
23718         cselib_expand_value_rtx_cb.
23719
23720         PR debug/43293
23721         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
23722         * config/i386/i386.c: Include debug.h and dwarf2out.h.
23723         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
23724         and .cfi_endproc around the pic thunks.
23725         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
23726         all queued unwind info register saves are saved before the call.
23727         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
23728         considered as sp-=4 for unwind info and the pop as sp+=4 which
23729         also clobbers dest, but doesn't actually restore it.
23730
23731         PR debug/43290
23732         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
23733         RTX_FRAME_RELATED_P.
23734
23735 2010-03-09  Jie Zhang  <jie@codesourcery.com>
23736
23737         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
23738         whitespaces in output template.
23739
23740 2010-03-09  Jie Zhang  <jie@codesourcery.com>
23741
23742         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
23743         out array boundary.
23744
23745 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
23746
23747         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
23748         builtins.exp in a separate job.
23749
23750 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23751
23752         * graphite-sese-to-poly.c (add_param_constraints): Use
23753         lower_bound_in_type and upper_bound_in_type.
23754
23755 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23756
23757         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
23758         instead of unsigned_type_node.
23759
23760 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23761             Reza Yazdani  <reza.yazdani@amd.com>
23762
23763         PR middle-end/43065
23764         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
23765         on pointer type parameters.
23766
23767 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
23768
23769         PR middle-end/42644
23770         PR middle-end/42130
23771         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
23772         handle conversions from pointer to integers.
23773         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
23774         induction variable, to be able to work with code generated by CLooG.
23775         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
23776         (build_poly_scop): Bail out if we cannot codegen a loop.
23777
23778 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
23779
23780         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
23781         code generation with gloog_error.
23782
23783 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23784
23785         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
23786         Call fold_convert on all the returned values.
23787         (expand_scalar_variables_expr): Pass to
23788         expand_scalar_variables_ssa_name the type of the resulting expression.
23789
23790 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23791
23792         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
23793         ppl_min_for_le_pointset.
23794         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
23795         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
23796
23797 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23798
23799         * graphite-dependences.c (map_into_dep_poly): Removed.
23800         (dependence_polyhedron_1): Use combine_context_id_scat.
23801
23802 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23803
23804         * graphite-poly.h (struct poly_scattering): Add layout documentation.
23805         (struct poly_bb): Same.
23806         (combine_context_id_scat): New.
23807
23808 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23809
23810         PR middle-end/42326
23811         * sese.c (name_defined_in_loop_p): Return false for default
23812         definitions.
23813
23814 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23815
23816         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
23817         and clean up the logic.
23818
23819 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23820
23821         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
23822         early return.
23823
23824 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
23825
23826         * var-tracking.c (remove_cselib_value_chains): Define only for
23827         ENABLE_CHECKING.
23828         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
23829         delete_slot_part, emit_notes_for_differences_1): Don't call
23830         remove_cselib_value_chains here.
23831         (set_slot_part, emit_notes_for_differences_2): Don't call
23832         add_cselib_value_chains here.
23833         (preserved_values): New vector.
23834         (preserve_value): New function.
23835         (add_uses, add_stores, vt_add_function_parameters): Use it
23836         instead of cselib_preserve_value.
23837         (changed_values_stack): New vector.
23838         (check_changed_vars_0): New function.
23839         (check_changed_vars_1, check_changed_vars_2): Use it.
23840         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
23841         changed_values_stack VALUEs.
23842         (vt_emit_notes): For all preserved_values call
23843         add_cselib_value_chains.  If ENABLE_CHECKING call
23844         remove_cselib_value_chains before verifying value_chains is empty.
23845         Initialize and free changed_values_stack.
23846         (vt_initialize): Initialize preserved_values.
23847         (vt_finalize): Free preserved_values.
23848
23849 2010-03-08  Richard Guenther  <rguenther@suse.de>
23850
23851         PR tree-optimization/43269
23852         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
23853         region detection.
23854
23855 2010-03-08  Martin Jambor  <mjambor@suse.cz>
23856
23857         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
23858         (ipa_is_param_called): Removed.
23859         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
23860         (ipa_print_node_params): Do not print the called flag.
23861         (ipa_write_node_info): Do not stream the called flag.
23862         (ipa_read_node_info): Likewise.
23863
23864 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
23865
23866         PR debug/43176
23867         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
23868         * cselib.c (struct expand_value_data): Add dummy field.
23869         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
23870         dummy to false.
23871         (cselib_dummy_expand_value_rtx_cb): New function.
23872         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
23873         any rtl.
23874         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
23875         * var-tracking.c: Include pointer-set.h.
23876         (variable): Change n_var_parts to char from int.  Add
23877         cur_loc_changed and in_changed_variables fields.
23878         (variable_canonicalize): Remove.
23879         (shared_var_p): New inline function.
23880         (unshare_variable): Maintain cur_loc_changed and
23881         in_changed_variables fields.  If var was in changed_variables,
23882         replace it there with new_var.  Just copy cur_loc instead of
23883         resetting it to something else.
23884         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
23885         (dataflow_set_union): Don't call variable_canonicalize.
23886         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
23887         of their DEBUG_EXPR_TREE_DECLs.
23888         (canonicalize_loc_order_check): Verify that cur_loc is NULL
23889         and in_changed_variables and cur_loc_changed is false.
23890         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
23891         and cur_loc_changed.  Don't update cur_loc here.
23892         (variable_merge_over_src): Don't call variable_canonicalize.
23893         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
23894         removing loc that is equal to cur_loc, clear cur_loc,
23895         set cur_loc_changed and ensure variable_was_changed is called.
23896         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
23897         compare pointers in cur_loc check, if it is equal to loc,
23898         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
23899         (variable_different_p): Remove compare_current_location argument,
23900         don't compare cur_loc.
23901         (dataflow_set_different_1): Adjust variable_different_p caller.
23902         (variable_was_changed): If dv had some var in changed_variables
23903         already, reset in_changed_variables flag for it and propagate
23904         cur_loc_changed over to the new variable.  On empty var
23905         always set cur_loc_changed.  Set in_changed_variables on whatever
23906         var is added to changed_variables.
23907         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
23908         Use shared_var_p.  When removing loc that is equal to cur_loc,
23909         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
23910         end, don't set it to something else, just call variable_was_changed.
23911         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
23912         loc being removed, clear cur_loc and set cur_loc_changed.
23913         Set cur_loc_changed if all locations have been removed.
23914         (struct expand_loc_callback_data): New type.
23915         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
23916         allocated.  Always create SUBREGs if simplify_subreg failed.
23917         Prefer to use cur_loc, when that fails and still in
23918         changed_variables (and seen first time) recompute it.  Set
23919         cur_loc_changed of variables which had to change cur_loc and
23920         compute elcd->cur_loc_changed if any of the subexpressions used
23921         had to change cur_loc.
23922         (vt_expand_loc): Adjust to pass arguments in
23923         expand_loc_callback_data structure.
23924         (vt_expand_loc_dummy): New function.
23925         (emitted_notes): New variable.
23926         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
23927         that weren't used for any other decl in current
23928         emit_notes_for_changes call call vt_expand_loc_dummy to update
23929         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
23930         first loc_chain location if NULL before.  Always use just
23931         cur_loc instead of first loc_chain location.  When cur_loc_changed
23932         is false, when not --enable-checking=rtl just don't emit any note.
23933         When rtl checking, compute the note and assert it is the same
23934         as previous note.  Clear cur_loc_changed and in_changed_variables
23935         at the end before removing from changed_variables.
23936         (check_changed_vars_3): New function.
23937         (emit_notes_for_changes): Traverse changed_vars to call
23938         check_changed_vars_3 on each changed var.
23939         (emit_notes_for_differences_1): Clear cur_loc_changed and
23940         in_changed_variables.  Recompute cur_loc of new_var.
23941         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
23942         (vt_emit_notes): Initialize and destroy emitted_notes.
23943
23944 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
23945
23946         PR rtl-optimization/42220
23947         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
23948         Use verify_reg_tracked to determine if we should use OP_OUT rather
23949         than OP_INOUT.
23950         (build_def_use): If we see an in-out operand for a register that we
23951         know nothing about, treat is an output if possible, fail the block if
23952         not.
23953
23954 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23955
23956         PR debug/42897
23957         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
23958         permanently.
23959
23960 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23961
23962         PR debug/42897
23963         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
23964         uses of relevant DEFs that are dead outside the loop too.
23965
23966 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23967
23968         * var-tracking.c (dataflow_set_merge): Swap src and src2.
23969         Reverted:
23970         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23971         PR debug/41371
23972         * var-tracking.c (values_to_unmark): New variable.
23973         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23974         values_to_unmark vector.  Moved body to...
23975         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23976         instead queue it into values_to_unmark vector.
23977         (vt_find_locations): Free values_to_unmark vector.
23978
23979 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
23980
23981         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
23982         (site.exp): Export them when plugins are enabled.
23983
23984 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
23985
23986         PR middle-end/42326
23987         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
23988         that contain scevs.
23989         (chrec_fold_multiply): Same.
23990
23991 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
23992
23993         PR c/43248
23994         * c-decl.c (build_compound_literal): Return early if init is
23995         an error_mark_node.
23996
23997 2010-03-04  Martin Jambor  <mjambor@suse.cz>
23998
23999         PR tree-optimization/43164
24000         PR tree-optimization/43191
24001         * tree-sra.c (type_consists_of_records_p): Reject records with
24002         zero-size bit-fields at the end.
24003
24004 2010-03-04  Mike Stump  <mikestump@comcast.net>
24005
24006         * Makefile.in (TAGS): Remove *.y.
24007
24008 2010-03-04  Richard Guenther  <rguenther@suse.de>
24009
24010         PR tree-optimization/40761
24011         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
24012         in reverse order.
24013         (my_rev_post_order_compute): New function.
24014         (init_pre): Call it.
24015
24016 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
24017
24018         PR middle-end/43209
24019         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
24020         decrease the cost of an IV candidate when the cost is infinite.
24021
24022 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24023
24024         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
24025         Use '3DNow!' for the extension of that name, ensure normal space
24026         after the string.
24027         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
24028
24029 2010-03-03  Jeff Law  <law@redhat.com>
24030
24031         * PR middle-end/32693
24032         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
24033         than gen_rtx_SUBREG.
24034         (extract_bit_field_1): Likewise.
24035
24036 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
24037
24038         * doc/sourcebuild.texi (Test directives): Document that arguments
24039         include-opts and exclude-opts are now optional for dg-skip-if,
24040         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
24041
24042 2010-03-03  Jason Merrill  <jason@redhat.com>
24043
24044         PR c++/12909
24045         * cgraph.h (varpool_node): Add extra_name field.
24046         * varpool.c (varpool_extra_name_alias): New.
24047         (varpool_assemble_decl): Emit extra name aliases.
24048         (varpool_mark_needed_node): Look past an extra name alias.
24049         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
24050         * lto-streamer-in.c (lto_input_tree): Read it.
24051         * lto-streamer-out.c (output_unreferenced_globals): Write it.
24052
24053 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
24054
24055         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
24056         (sparc*-*-solaris2*): ...this.
24057
24058 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
24059
24060         PR debug/43229
24061         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
24062         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
24063         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
24064         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
24065
24066         PR debug/43237
24067         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
24068         fallthrough to default handling, just with want_address 0 instead of 2.
24069         For single element lists, add_AT_loc directly, otherwise create an
24070         artificial variable DIE and stick location list to it.
24071
24072         PR debug/43177
24073         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
24074         (VAL_EXPR_HAS_REVERSE): Define.
24075         (reverse_op): New function.
24076         (add_stores): For reversible operations add an extra MO_VAL_USE.
24077
24078 2010-03-02  Jason Merrill  <jason@redhat.com>
24079
24080         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
24081
24082 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
24083
24084         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
24085         (sparc64-*-linux*): Likewise.
24086         (sparc64-*-solaris2*): Include assembler files before linker ones.
24087         (sparc-*-solaris2*): Simplify and reorder to match previous case.
24088         * config/sparc/gas.h: Delete.
24089         * config/sparc/sol2-64.h: Add copyright notice.
24090         * config/sparc/sol2-gas-bi.h: Likewise.
24091         * config/sparc/sol2-gld.h: Likewise.
24092         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
24093         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
24094         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
24095         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
24096         (sparc_elf_asm_named_section): Rename into...
24097         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
24098
24099 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
24100
24101         * config/alpha/alpha.c (override_options): Fix -mtune error message.
24102
24103 2010-03-02  Jeff Law  <law@redhat.com>
24104
24105         PR middle-end/42431
24106         * reload1.c (rtx_p, substitute_stack): Declare.
24107         (substitute): Record addresses of changed rtxs.
24108         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
24109         Restore the original rtx when complete.
24110         (reload): Free subsitute_stack when complete.
24111
24112 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
24113
24114         * doc/gccint.texi (menu): Add Testsuites as a chapter.
24115         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
24116         new chapter.
24117         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
24118         LTO Testing, gcov Testing, profopt Testing, compat Testing,
24119         Torture Tests): Change from subsection to section.
24120
24121 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
24122             Steven Bosscher  <steven@gcc.gnu.org>
24123
24124         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
24125         instead of bb.
24126
24127 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
24128
24129         PR middle-end/42640
24130         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
24131         the assignment from the new induction variable to the assignment
24132         of the value from the original loop PHI function.
24133
24134 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
24135             Daniel Jacobowitz  <dan@codesourcery.com>
24136
24137         * doc/sourcebuild.texi (Test directives): Clarify options to
24138         dg-skip-if.
24139
24140 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24141
24142         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
24143         Disable cfi directives unless GCC and gas agree on using read-only
24144         .eh_frame sections for 64-bit.
24145         * configure: Regenerate.
24146
24147 2010-03-01  Richard Guenther  <rguenther@suse.de>
24148
24149         PR tree-optimization/43220
24150         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
24151         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
24152
24153 2010-03-01  Richard Guenther  <rguenther@suse.de>
24154             Martin Jambor  <mjambor@suse.cz>
24155
24156         PR middle-end/41250
24157         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
24158         gimplified parameters.
24159
24160 2010-03-01  Christian Bruel  <christian.bruel@st.com>
24161
24162         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
24163
24164 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
24165
24166         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
24167
24168 2010-03-01  Richard Guenther  <rguenther@suse.de>
24169
24170         PR middle-end/43213
24171         * expr.c (expand_assignment): Use the alias-oracle to tell
24172         if the rhs aliases the result decl.
24173
24174 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24175
24176         PR pch/14940
24177         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
24178         to sol_gt_pch_get_address.
24179         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
24180         64-bit, SPARC and x86.
24181         (sol_gt_pch_get_address): New function.
24182
24183 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
24184
24185         * toplev.h (inform_n, error_n): Declare.
24186         * diagnostic.c (inform_n, error_n): New function.
24187
24188 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
24189
24190         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
24191         has no rtl yet when processing local_decls, queue it and recheck
24192         if deferred stack allocation hasn't assigned it rtl.
24193
24194 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
24195
24196         * config/sh/sh.c (unspec_bbr_uid): New.
24197         (gen_block_redirect): Use it instead of INSN_UID.
24198         (gen_far_branch): Likewise.
24199
24200 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
24201
24202         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
24203         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
24204
24205 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24206
24207         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
24208         (Warning Options): -Wno-conversion-null is valid for
24209         Objective-C++ as well.
24210         * doc/tm.texi (Named Address Spaces): Likewise.
24211         * doc/plugins.texi (Plugins): Replace TABs with spaces.
24212         * doc/tree-ssa.texi (Tree SSA): Likewise.
24213
24214 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24215
24216         PR bootstrap/43202
24217         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
24218         by default.  Don't set the default arch for
24219         i[34567]86-*-darwin*|x86_64-*-darwin*.
24220
24221 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24222
24223         PR bootstrap/43202
24224         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
24225         default.  Set the default 32bit/64bit archs with $with_arch
24226         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
24227
24228 2010-02-27  Richard Guenther  <rguenther@suse.de>
24229
24230         PR tree-optimization/43186
24231         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
24232         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
24233         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
24234         unroller iterations.
24235
24236 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24237
24238         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
24239         required and i[34567]86-*-* targets don't support 64bit ISA.
24240
24241 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
24242
24243         PR ada/43096
24244         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
24245         the same alias set.
24246
24247 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
24248
24249         * config.gcc: Set the default arch at least to Prescott for
24250         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
24251         if SSE math is enabled.
24252
24253 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24254
24255         * diagnostic.c (diagnostic_initialize): Update.
24256         (diagnostic_report_diagnostic): Test inhibit_notes_p for
24257         informative notes.
24258         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
24259         (diagnostic_inhibit_notes): New.
24260         * toplev.c (process_options): inhibit notes with -fcompare-debug.
24261
24262 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24263
24264         PR c/20631
24265         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
24266         * doc/standards.texi: Likewise.
24267         * doc/extend.texi: Likewise.
24268         * doc/trouble.texi: Likewise.
24269         * doc/cppopts.texi: Likewise.
24270         * doc/install.texi: Likewise.
24271         * c.opt (std=c90,std=gnu90): New options.
24272         * c-opts.c (c_common_handle_option): Handle them.
24273
24274 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24275
24276         PR c/24577
24277         * c-decl.c (undeclared_variable): Use an informative note.
24278
24279 2010-02-26  Richard Guenther  <rguenther@suse.de>
24280
24281         PR tree-optimization/43186
24282         * gimple.h (gimple_fold): Remove.
24283         * gimple.c (gimple_fold): Remove.  Inline into single user ...
24284         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
24285         Try harder for conditions.
24286
24287 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
24288
24289         PR debug/43190
24290         * function.c (used_types_insert): Don't skip through named pointer
24291         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
24292         and it is different from the main variant's type.
24293
24294 2010-02-26  Nick Clifton  <nickc@redhat.com>
24295
24296         * config/rx/rx.md (sminsi3): Remove bogus alternative.
24297
24298 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
24299
24300         * config.gcc: Support --with-fpmath=sse for x86.
24301
24302         * config/i386/ssemath.h: New.
24303
24304         * doc/install.texi (--with-fpmath=sse): Documented.
24305
24306 2010-02-26  Richard Guenther  <rguenther@suse.de>
24307
24308         PR tree-optimization/43188
24309         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
24310         vector types of over-aligned element type.
24311
24312 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
24313
24314         PR target/43175
24315         * config/i386/i386.c (expand_vec_perm_blend): Use correct
24316         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
24317
24318 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
24319
24320         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
24321
24322 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
24323
24324         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
24325         * var-tracking.c: Include diagnostic.h.
24326         (debug_dv): New function.
24327         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
24328
24329         PR debug/43160
24330         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
24331         (add_value_chain, add_value_chains, remove_value_chain,
24332         remove_value_chains): Handle DEBUG_EXPRs.
24333         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
24334
24335         PR debug/43161
24336         * regcprop.c (struct queued_debug_insn_change): New type.
24337         (struct value_data_entry): Add debug_insn_changes field.
24338         (struct value_data): Add n_debug_insn_changes field.
24339         (debug_insn_changes_pool): New variable.
24340         (free_debug_insn_changes, apply_debug_insn_changes,
24341         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
24342         (kill_value_one_regno): Call free_debug_insn_changes if needed.
24343         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
24344         fields.
24345         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
24346         changes for them.
24347         (copyprop_hardreg_forward_1): Don't call apply_change_group for
24348         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
24349         changes, call cprop_find_used_regs via note_stores.
24350         (copyprop_hardreg_forward): When copying vd from predecessor
24351         which has any queued DEBUG_INSN changes, make sure the pointers are
24352         cleared.  At the end call df_analyze and then if there are any
24353         DEBUG_INSN changes queued at the end of some basic block for still
24354         live registers, apply them.
24355         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
24356
24357 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
24358
24359         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
24360         (arm*-*-*): Ditto.
24361
24362 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
24363
24364         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
24365         targets.  Set the default with_cpu/with_arch from arch/cpu.
24366         Allow x86-64 and native for with_cpu/with_arch.
24367
24368 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
24369
24370         * ebitmap.c: Change calls to verify_popcount with calls to
24371         sbitmap_verify_popcount.
24372         (ebitmap_clear_bit): Fixed map->cacheindex test and
24373         map>cache update when bit clearing results in an empty
24374         element.
24375
24376 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
24377
24378         PR target/43154
24379         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
24380         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
24381         and support both V2DF and V2DI modes.
24382         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
24383         support both V2DF and V2DI modes.
24384         (general): Delete trailing whitespace from a few patterns.
24385
24386         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24387         V2DF/V2DI interleave high/low builtins.
24388
24389         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
24390         new VSX builtins.
24391
24392         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
24393         interleave high/low functions.
24394
24395 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
24396
24397         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
24398         #pragma extern_prefix.
24399
24400 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
24401
24402         PR debug/43166
24403         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
24404         BLKmode, assert op0 is a MEM and just adjust its mode.
24405
24406         PR debug/43165
24407         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
24408         if bitpos isn't multiple of mode's bitsize.
24409
24410 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24411
24412         * c.opt (-ftemplate-depth=): New.
24413         (-ftemplate-depth-): Deprecate.
24414         * optc-gen.awk: Handle -ftemplate-depth=.
24415         * opth-gen.awk: Likewise.
24416         * c-opts.c (c_common_handle_option): Likewise.
24417         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
24418
24419 2010-02-24  Jason Merrill  <jason@redhat.com>
24420
24421         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
24422
24423 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24424
24425         * cfg.c (alloc_aux_for_block): Remove inline.
24426         (alloc_aux_for_edge): Likewise.
24427
24428 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24429
24430         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
24431
24432 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24433
24434         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
24435         * config/i386/sol2-gas.h: New file.
24436         * config.gcc (i[34567]86-*-solaris2*): Use it.
24437
24438 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24439
24440         PR c/43128
24441         * c-typeck.c (ep_convert_and_check): New.
24442         (build_conditional_expr): Use it.
24443         (build_binary_op): Likewise.
24444
24445 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
24446
24447         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
24448
24449         PR debug/43150
24450         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
24451         bounds even for -O+.
24452         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
24453         expr needs to have DECL_NAME set.
24454
24455 2010-02-24  Nick Clifton  <nickc@redhat.com>
24456
24457         * config/mep/mep.c: Include gimple.h.
24458         (mep_function_uses_sp): Delete unused function.
24459         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
24460         parameters.  Use unsigned integers to count args.  Return a
24461         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
24462
24463 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
24464
24465         PR target/43107
24466         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
24467         greater or equal to nelt instead of 2 * nelt.
24468         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
24469         with nelt - 1.
24470
24471 2010-02-23  Jason Merrill  <jason@redhat.com>
24472
24473         PR debug/42800
24474         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
24475         in cfun->local_decls even if they have register types.
24476
24477         PR c++/42837
24478         * stor-layout.c (place_field): Don't warn about unnecessary
24479         DECL_PACKED if the type is packed.
24480
24481 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
24482
24483         PR target/43139
24484         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
24485         GOTOFF relocs, even when the base reg isn't pic pointer.
24486
24487 2010-02-23  Michael Matz  <matz@suse.de>
24488
24489         PR debug/43077
24490         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
24491         (expand_gimple_basic_block): Generate and use debug temps if there
24492         are debug uses left after the last real use of TERed ssa names.
24493         Unlink debug immediate uses when they are expanded.
24494
24495 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24496
24497         PR 43123
24498         * config/i386/i386.c (override_options): Reorganise to provide
24499         better error messages.
24500
24501 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24502
24503         PR middle-end/43083
24504         * graphite-scop-detection.c (create_single_exit_edge): Move
24505         the call to find_single_exit_edge to....
24506         (create_sese_edges): ...here.  Don't handle multiple edges
24507         exiting the function.
24508         (build_graphite_scops): Don't handle multiple edges
24509         exiting the function.
24510
24511 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24512
24513         PR middle-end/43097
24514         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
24515         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
24516
24517 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24518
24519         PR middle-end/43026
24520         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
24521
24522 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24523
24524         PR c++/43126
24525         * c-typeck.c (convert_arguments): Print declaration location.
24526         * c-common.c (validate_nargs): Rename as
24527         builtin_function_validate_nargs.
24528         (check_builtin_function_arguments): Update.
24529
24530 2010-02-22  Richard Guenther  <rguenther@suse.de>
24531
24532         PR lto/43045
24533         * tree-inline.c (declare_return_variable): Use the type of
24534         the call stmt lhs if available.
24535
24536 2010-02-22  Duncan Sands  <baldrick@free.fr>
24537
24538         * passes.c (register_pass): Always consider all pass lists when
24539         ref_pass_instance_number is zero.
24540
24541 2010-02-22  Richard Guenther  <rguenther@suse.de>
24542
24543         PR tree-optimization/42749
24544         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
24545         parameter.  Do arithmetic in the original type.
24546         (update_accumulator_with_ops): Likewise.
24547         (adjust_accumulator_values): Adjust.
24548
24549 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24550
24551         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
24552         (QI to BLKmode splitter): New splitter.
24553
24554 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
24555
24556         * config/i386/i386.c (initial_ix86_tune_features): Turn on
24557         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
24558
24559 2010-02-22  Richard Guenther  <rguenther@suse.de>
24560
24561         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
24562
24563 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
24564
24565         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
24566         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
24567         ($(T)crti.o, $(T)crtn.o): Remove rules.
24568
24569 2010-02-21  Tobias Burnus  <burnus@net-b.de>
24570
24571         PR fortran/35259
24572         * doc/invoke.texi (-fassociative-math): Document that this
24573         option is automatically enabled for Fortran.
24574
24575 2010-02-20  David S. Miller  <davem@davemloft.net>
24576
24577         * configure.ac: Test if linker and assembler properly support
24578         GOTDATA_OP relocations.
24579         * configure: Rebuild.
24580         * config.in: Likewise.
24581         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
24582         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
24583         (movsi_high_pic): Likewise.
24584         (movdi_lo_sum_pic): Likewise.
24585         (movdi_high_pic): Likewise.
24586         (movsi_pic_gotdata_op): New pattern.
24587         (movdi_pic_gotdata_op): Likewise.
24588         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
24589         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
24590
24591 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
24592
24593         PR target/43067
24594         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
24595         attribute to ssemul.
24596         (xop_mulv2div2di3_high): Ditto.
24597
24598 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24599
24600         PR c++/35669
24601         * c.opt (Wconversion-null): New option.
24602         * doc/invoke.texi (Wconversion-null): Document.
24603
24604 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24605
24606         * common.opt (Wlarger-than-): Add Undocumented.
24607
24608 2010-02-19  Mike Stump  <mikestump@comcast.net>
24609
24610         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
24611
24612 2010-02-19  Jason Merrill  <jason@redhat.com>
24613
24614         PR target/40332
24615         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
24616         * configure: Likewise.
24617
24618 2010-02-20  Alan Modra  <amodra@gmail.com>
24619
24620         PR middle-end/42344
24621         * cgraph.h (cgraph_make_decl_local): Declare.
24622         * cgraph.c (cgraph_make_decl_local): New function.
24623         (cgraph_make_node_local): Use it.
24624         * cgraphunit.c (cgraph_function_versioning): Likewise.
24625         * ipa.c (function_and_variable_visibility): Likewise.
24626
24627 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24628
24629         PR bootstrap/43121
24630         * except.c (sjlj_emit_function_enter): Don't call
24631         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
24632         directly.
24633         * rtl.h (add_reg_br_prob_note): Remove prototype.
24634
24635 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24636
24637         PR 41779
24638         * c-common.c (conversion_warning): Remove widening conversions
24639         before checking the conversion of integers to reals.
24640
24641 2010-02-19  Mike Stump  <mikestump@comcast.net>
24642
24643         PR middle-end/43125
24644         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
24645
24646         PR objc/43061
24647         * cgraphunit.c (process_function_and_variable_attributes): Check
24648         DECL_PRESERVE_P instead of looking up attribute "used".
24649         * ipa-pure-const.c (check_decl): Likewise.
24650         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
24651         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
24652         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
24653         instead of attribute "used".
24654         * config/sol2-c.c (solaris_pragma_init): Likewise.
24655         (solaris_pragma_fini): Likewise.
24656
24657 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24658
24659         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
24660         Use XCNEW instead of xcalloc.
24661         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
24662         XNEW instead of xmalloc.
24663         (get_fields): Use XNEWVEC instead of xmalloc.
24664
24665         PR debug/43084
24666         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
24667         populate vars array.
24668         (create_new_general_access): For debug stmts just reset value.
24669         (get_stmt_accesses): For accesses within debug stmts just record them
24670         using add_access_to_acc_sites instead of preventing the peeling or
24671         counting them as accesses.
24672
24673         PR middle-end/42233
24674         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
24675
24676 2010-02-19  Richard Guenther  <rguenther@suse.de>
24677
24678         PR tree-optimization/42916
24679         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
24680         instructions.
24681
24682 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
24683
24684         * configure.ac: Replace all uses of changequote in macro arguments
24685         with proper quoting.
24686
24687 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24688
24689         PR middle-end/42233
24690         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
24691
24692 2010-02-19  Richard Guenther  <rguenther@suse.de>
24693
24694         PR tree-optimization/42944
24695         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
24696         test for aliasing with errno.
24697
24698 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24699
24700         PR middle-end/42233
24701         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
24702         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
24703         * dojump.c: Include output.h.
24704         (inv): New inline function.
24705         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
24706         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
24707         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
24708         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
24709         argument, pass it down to other calls.
24710         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
24711         add REG_BR_PROB note to the conditional jump.
24712         * cfgexpand.c (add_reg_br_prob_note): Removed.
24713         (expand_gimple_cond): Don't call it, add the probability
24714         as last argument to jumpif_1/jumpifnot_1.
24715         * Makefile.in (dojump.o): Depend on output.h.
24716         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
24717         callers.
24718         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
24719         * stmt.c (do_jump_if_equal): Likewise.
24720         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
24721         * loop-unswitch.c (compare_and_jump_seq): Likewise.
24722         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
24723         Likewise.
24724         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
24725         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
24726         jumpifnot_1 callers.
24727         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
24728         callers.
24729         (store_expr): Adjust jumpifnot caller.
24730         (store_constructor): Adjust jumpif caller.
24731
24732         PR middle-end/42233
24733         * gimplify.c (gimple_boolify): For __builtin_expect call
24734         gimple_boolify also on its first argument.
24735
24736 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
24737
24738         * configure.ac (gnu-unique-object): Wrap regexps using [] in
24739         changequote block.
24740         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
24741         * configure: Regenerated.
24742
24743 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24744
24745         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
24746         lang_hooks.types_compatible_p instead of comptypes.
24747
24748 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24749
24750         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
24751         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
24752         if __prefer_thumb__ is defined.
24753
24754 2010-02-18  Martin Jambor  <mjambor@suse.cz>
24755
24756         PR tree-optimization/43066
24757         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
24758         array with zero-sized element type.
24759
24760 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
24761
24762         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
24763         rtx, allocate struct var_loc_node here and return it to the
24764         caller, and only if it is actually needed.
24765         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
24766         move it earlier and return immediately if it returns NULL.
24767
24768 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
24769
24770         * config/sparc/gas.h: New file.  Restore
24771         TARGET_ASM_NAMED_SECTION to its ELF default.
24772         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
24773         check !HAVE_GNU_AS.
24774         * config/sparc/sparc.c (sparc_elf_asm_named_section):
24775         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
24776         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
24777         after sparc/sysv4.h.
24778
24779 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
24780
24781         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
24782
24783 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
24784
24785         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
24786         patterns from predicated pattern.
24787
24788 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
24789
24790         PR target/43103
24791         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
24792         for insn mnemonic suffix.
24793
24794 2010-02-17  Richard Guenther  <rguenther@suse.de>
24795
24796         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
24797         to loop PHI nodes.
24798
24799 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
24800
24801         PR debug/42918
24802         * caller-save.c (save_call_clobbered_regs): If BB ends with
24803         a DEBUG_INSN, move any notes in between last real insn and the last
24804         DEBUG_INSN after the last DEBUG_INSN.
24805
24806 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
24807
24808         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
24809         Fix return type.  Fix argument type.  Explain meaning of return value.
24810
24811 2010-02-16  Richard Guenther  <rguenther@suse.de>
24812
24813         PR tree-optimization/41043
24814         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
24815         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
24816         statements ...
24817         (vrp_visit_phi_node): ... but only for loop PHI nodes.
24818
24819 2010-02-16  Ira Rosen  <irar@il.ibm.com>
24820
24821         PR tree-optimization/43074
24822         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
24823         * tree-vect-loop.c (vect_analyze_loop_operations): Add
24824         vectorizable cycles in hybrid SLP check.
24825         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
24826
24827 2010-02-16  Richard Guenther  <rguenther@suse.de>
24828
24829         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
24830         (true_dependence): If memrefs_conflict_p computes must-alias
24831         trust it.  Move TBAA check after offset-based disambiguation.
24832         (canon_true_dependence): Likewise.
24833
24834 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
24835
24836         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
24837         * doc/invoke.texi: Document it.
24838         * var-tracking.c: Include toplev.h and params.h.
24839         (vt_find_locations): Return bool indicating success.  Compute
24840         hash sizes unconditionally.  Check new parameter, report.
24841         (variable_tracking_main_1): Check vt_find_locations results and
24842         retry.  Renamed from...
24843         (variable_tracking_main): ... this.  New wrapper to preserve
24844         flag_var_tracking_assignments.
24845         * Makefile.in (var-tracking.o): Adjust dependencies.
24846
24847 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
24848             Jakub Jelinek  <jakub@redhat.com>
24849
24850         PR target/42854
24851         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
24852         if weak_import attribute is present.
24853         * config/darwin.c (machopic_select_section): Likewise.
24854
24855 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
24856
24857         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
24858         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
24859         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
24860         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
24861
24862         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
24863         types.
24864
24865         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24866         Fix argument types.
24867
24868         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
24869         Rewrite text to refer to the names.
24870
24871 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
24872
24873         * config/i386/i386-builtin-types.def
24874         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
24875         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
24876         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
24877         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
24878         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
24879         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
24880         IX86_BUILTIN_VPERMIL2PS256.
24881         (MULTI_ARG_4_DF2_DI_I): Defined.
24882         (MULTI_ARG_4_DF2_DI_I1): Defined.
24883         (MULTI_ARG_4_SF2_SI_I): Defined.
24884         (MULTI_ARG_4_SF2_SI_I1): Defined.
24885         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
24886         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
24887         __builtin_ia32_vpermil2ps256.
24888         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
24889         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
24890         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
24891         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
24892         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
24893         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
24894         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
24895         CODE_FOR_xop_vpermil2v8sf3.
24896         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
24897         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
24898         * config/i386/xopintrin.h (_mm_permute2_pd): New.
24899         (_mm256_permute2_pd): New.
24900         (_mm_permute2_ps): New.
24901         (_mm256_permute2_ps): New.
24902
24903 2010-02-15  Nick Clifton  <nickc@redhat.com>
24904
24905         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
24906         boolean parameters.  Use emit_jump_insn when emitting a pop
24907         instruction containing a return insn.
24908         (push): Use 'true' rather than '1' as second parameter to F.
24909         (h8300_expand_prologue): Likewise.
24910         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
24911         (h8300_expand_epilogue): Likewise.
24912
24913 2010-02-15  Richard Guenther  <rguenther@suse.de>
24914
24915         PR middle-end/43068
24916         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
24917         if that is zero.
24918
24919 2010-02-15  Nick Clifton  <nickc@redhat.com>
24920
24921         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
24922         delta.
24923
24924 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
24925
24926         * intl.c (fake_ngettext): New function.
24927         * intl.h (fake_ngettext): Declare.
24928         (ngettext): Define macro.
24929         * collect2.c (notice_translated): New function.
24930         (main): Use notice_translated and ngettext.
24931         * collect2.h (notice_translated): Declare.
24932
24933 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
24934
24935         * reorg.c (delete_computation): Comment fixes.
24936         * caller-save.c (setup_save_areas): Idem.
24937         * sel-sched-dump.c (dump_lv_set): Idem.
24938         * rtl.def: Idem.
24939
24940 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24941
24942         * config/s390/s390.c (s390_sched_init): New function.
24943         (TARGET_SCHED_INIT): Target hook defined.
24944
24945 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
24946             Jack Howarth  <howarth@bromo.med.uc.edu>
24947             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
24948
24949         PR target/42982
24950         Partial revert of unintended change in fix for PR41605.
24951         * config/darwin.h: Fix typo.
24952         * config/darwin9.h: Same.
24953
24954 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
24955
24956         * c-pch.c (pch_init): Clear v.
24957
24958 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24959
24960         PR middle-end/42930
24961         * graphite-scop-detection.c (graphite_can_represent_scev): Call
24962         graphite_can_represent_init for MULT_EXPR.
24963
24964 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24965
24966         PR middle-end/42914
24967         PR middle-end/42530
24968         * graphite-sese-to-poly.c (remove_phi): New.
24969         (translate_scalar_reduction_to_array): Call remove_phi.
24970
24971 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24972
24973         PR middle-end/42771
24974         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
24975         * graphite-clast-to-gimple.h (gloog): Update declaration.
24976         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
24977         * graphite-poly.h (struct poly_bb): Add missing comments.
24978         (struct scop): Add poly_scop_p field.
24979         (POLY_SCOP_P): New.
24980         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
24981         * graphite.c (graphite_transform_loops): Build the polyhedral
24982         representation for each scop before code generation.
24983         * sese.c (rename_variables_in_operand): Removed.
24984         (rename_variables_in_expr): Return the renamed expression.
24985         (rename_sese_parameters): New.
24986         * sese.h (rename_sese_parameters): Declared.
24987
24988 2010-02-11  Richard Guenther  <rguenther@suse.de>
24989
24990         PR tree-optimization/42998
24991         * tree-ssa-pre.c (create_expression_by_pieces): Treat
24992         POINTER_PLUS_EXPR properly.
24993
24994 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24995             Changpeng Fang  <changpeng.fang@amd.com>
24996
24997         PR middle-end/40886
24998         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
24999         the cost of an IV candidate when the IV is used in a test against zero.
25000
25001         * gcc.dg/tree-ssa/ivopts-3.c: New.
25002
25003 2010-02-11  Richard Guenther  <rguenther@suse.de>
25004
25005         PR lto/41664
25006         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
25007         pointer-vs-decl case by swapping refs.  Handle some cases
25008         of pointer-vs-decl disambiguations more conservatively.
25009         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
25010         to false after expanding.
25011
25012 2010-02-11  Richard Guenther  <rguenther@suse.de>
25013
25014         PR driver/43021
25015         * gcc.c (process_command): Handle LTO file@offset case more
25016         appropriately.
25017
25018 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
25019
25020         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
25021         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
25022         of DEBUG_INSNs.
25023         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
25024
25025         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
25026         if MEM's mode size isn't DWARF2_ADDR_SIZE.
25027         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
25028         Optimize eq/ne comparisons when both arguments are known to be
25029         zero-extended.
25030         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
25031         Don't mask operands unnecessarily if they are known to be already
25032         zero-extended.
25033
25034 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
25035
25036         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
25037         instead of loop.
25038
25039 2010-02-10  Richard Guenther  <rguenther@suse.de>
25040
25041         PR tree-optimization/43017
25042         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
25043         for wrapping signed arithmetic.
25044
25045 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
25046
25047         PR debug/43010
25048         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
25049         if no debug info should be emitted for it.
25050
25051 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
25052
25053         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
25054         note when flag_exceptions is set.
25055
25056 2010-02-10  Duncan Sands  <baldrick@free.fr>
25057
25058         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
25059
25060 2010-02-10  Richard Guenther  <rguenther@suse.de>
25061
25062         PR c/43007
25063         * tree.c (get_unwidened): Handle constants.
25064         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
25065
25066 2010-02-10  Martin Jambor  <mjambor@suse.cz>
25067
25068         PR lto/42985
25069         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
25070         check for variable argument counts independently.
25071
25072 2010-02-10  Christian Bruel  <christian.bruel@st.com>
25073
25074         PR target/42841
25075         * config/sh/sh.c (find_barrier): Increase length for non delayed
25076         conditional branches.
25077
25078 2010-02-10  Christian Bruel  <christian.bruel@st.com>
25079
25080         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
25081
25082 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
25083
25084         * builtins.c (set_builtin_user_assembler_name): Also handle
25085         ffs if int is smaller than word.
25086
25087 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
25088
25089         PR middle-end/42973
25090         * ira-conflicts.c (get_dup): Remove.
25091         (process_reg_shuffles): Add new parameter.  Use it as an
25092         additional guard for copy generation.
25093         (add_insn_allocno_copies): Rewrite.
25094
25095 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
25096
25097         * common.opt (fsched2-use-traces): Preserved for backward
25098         compatibility.
25099         * doc/invoke.texi: Remove the documentation about option
25100         -fsched2-use-traces.
25101         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
25102         flag_sched2_use_traces.
25103         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
25104         the backward compatibility flag section.
25105
25106 2010-02-09  Richard Guenther  <rguenther@suse.de>
25107
25108         PR tree-optimization/43008
25109         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
25110         make HEAP variables initialized from global memory if they
25111         are not known builtin functions.
25112         (find_func_aliases): Adjust.
25113
25114 2010-02-09  Richard Guenther  <rguenther@suse.de>
25115
25116         PR tree-optimization/43000
25117         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
25118         arithmetic manually.
25119
25120 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
25121
25122         PR tree-optimization/42931
25123         * tree-loop-linear.c (try_interchange_loops): Don't call
25124         double_int_mul if estimated_loop_iterations failed.
25125
25126 2010-02-08  Martin Jambor  <mjambor@suse.cz>
25127
25128         PR middle-end/42898
25129         * tree-sra.c (build_accesses_from_assign): Do not mark in
25130         should_scalarize_away_bitmap if stmt has volatile ops.
25131         (sra_modify_assign): Do not process assigns piecemeal if if stmt
25132         has volatile ops.
25133
25134 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
25135
25136         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
25137
25138 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
25139
25140         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
25141         before the pattern.
25142
25143 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
25144
25145         PR middle-end/42946
25146         * df-core.c (df_finish_pass): Change type of saved_flags to int.
25147
25148 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
25149
25150         PR middle-end/42988
25151         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
25152         to unknown_dependence.
25153         (graphite_legal_transform_dr): Handle the unknown_dependence.
25154         (graphite_carried_dependence_level_k): Same.
25155
25156 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
25157
25158         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
25159
25160 2010-02-07  Richard Guenther  <rguenther@suse.de>
25161
25162         PR middle-end/42991
25163         * expr.c (get_inner_reference): Always initialize *pbitsize.
25164
25165 2010-02-07  Richard Guenther  <rguenther@suse.de>
25166
25167         PR middle-end/42956
25168         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
25169         new ARRAY_REFs on variable size element or minimal index arrays.
25170         Complete.
25171         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
25172         gimple_fold_indirect_ref.
25173
25174 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
25175
25176         PR target/42957
25177         * arm.c (arm_override_options): Just return if the user has specified
25178         an invalid fpu name.
25179
25180 2010-02-03  Jason Merrill  <jason@redhat.com>
25181
25182         PR c++/42870
25183         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
25184         i386_pe_maybe_record_exported_symbol.
25185
25186 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
25187
25188         PR target/42924
25189         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
25190         (pa_delegitimize_address): New function.
25191
25192 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
25193
25194         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
25195         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
25196
25197 2010-02-05  Richard Guenther  <rguenther@suse.de>
25198
25199         PR lto/42762
25200         * lto-streamer-in.c (get_resolution): Deal with references
25201         to undefined functions.
25202
25203 2010-02-05  Richard Guenther  <rguenther@suse.de>
25204
25205         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
25206         (fold_const_aggregate_ref): Likewise.
25207         (ccp_fold_stmt): Substitute loads.
25208         (maybe_fold_reference): Verify types before substituting.
25209         Unshare properly.
25210         (fold_gimple_assign): Unshare properly.
25211         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
25212
25213 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
25214
25215         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
25216         for rs6000_gen_cell_microcode.
25217
25218 2010-02-04  Richard Guenther  <rguenther@suse.de>
25219
25220         PR rtl-optimization/42952
25221         * dse.c (const_or_frame_p): Remove MEM handling.
25222
25223 2010-02-04  Nick Clifton  <nickc@redhat.com>
25224
25225         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
25226         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
25227         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
25228         (mn10300_asm_output_mi_thunk): New function.
25229         (mn10300_can_output_mu_thunk): New function.
25230         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
25231         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
25232         (FUNCTION_ARG): Delete incorrect comment.
25233
25234 2010-02-03  Jason Merrill  <jason@redhat.com>
25235
25236         PR c++/40138
25237         * fold-const.c (operand_equal_p): Handle erroneous types.
25238
25239 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25240
25241         * config/h8300/h8300.md (can_delay): Fix attibute condition.
25242
25243 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
25244
25245         PR rtl-optimization/42941
25246         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
25247         of xmalloc.
25248
25249 2010-02-03  Jason Merrill  <jason@redhat.com>
25250
25251         PR c++/35652
25252         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
25253
25254 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
25255
25256         PR debug/42896
25257         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
25258         (cselib_reset_table): Renamed from...
25259         (cselib_reset_table_with_next_value): ... this.
25260         (cselib_get_next_uid): Renamed from...
25261         (cselib_get_next_unknown_value): ... this.
25262         * cselib.c (next_uid): Renamed from...
25263         (next_unknown_value): ... this.
25264         (cselib_clear_table): Adjust.
25265         (cselib_reset_table): Adjust.  Renamed from...
25266         (cselib_reset_table_with_next_value): ... this.
25267         (cselib_get_next_uid): Adjust.  Renamed from...
25268         (cselib_get_next_unknown_value): ... this.
25269         (get_value_hash): Use hash.
25270         (cselib_hash_rtx): Likewise.
25271         (new_cselib_val): Adjust.  Set and dump uid.
25272         (cselib_lookup_mem): Pass next_uid as hash.
25273         (cselib_subst_to_values): Likewise.
25274         (cselib_log_lookup): Dump uid.
25275         (cselib_lookup): Pass next_uid as hash.  Adjust.
25276         (cselib_process_insn): Adjust.
25277         (cselib_init): Initialize next_uid.
25278         (cselib_finish): Adjust.
25279         (dump_cselib_table): Likewise.
25280         * dse.c (canon_address): Dump value uid.
25281         * print-rtl.c (print_rtx): Print value uid.
25282         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
25283         (dvuid): New type.
25284         (dv_uid): New function, sort of renamed from...
25285         (dv_htab_hash): ... this, reimplemented in terms of it and...
25286         (dv_uid2hash): ... this.  New.
25287         (variable_htab_eq): Drop excess assertions.
25288         (tie_break_pointers): Removed.
25289         (canon_value_cmp): Compare uids.
25290         (variable_post_merge_New_vals): Print uids.
25291         (vt_add_function_parameters): Adjust.
25292         (vt_initialize): Reset table.  Adjust.
25293
25294 2010-02-03  Richard Guenther  <rguenther@suse.de>
25295
25296         PR tree-optimization/42944
25297         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
25298         (call_may_clobber_ref_p_1): Likewise.  Properly handle
25299         malloc and calloc clobbering errno.
25300
25301 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
25302
25303         * doc/invoke.texi: Fix name of sched1 dump.
25304
25305         * opts.c (decode_options): Set flag_tree_switch_conversion
25306         only conditionally on optimize >= 2.
25307
25308         * gcse.c: Assorted comment fixes in pass description.
25309
25310 2010-02-03  Anthony Green  <green@moxielogic.com>
25311
25312         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
25313         nop padding in order to maintain alignment of storage location of
25314         target function address.
25315         (moxie_trampoline_init): Store target function address at newly
25316         aligned location.
25317         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
25318         to 32.
25319         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
25320
25321 2010-02-03  Richard Guenther  <rguenther@suse.de>
25322
25323         PR middle-end/42927
25324         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
25325
25326 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25327
25328         * config.gcc: Reenable check for obsolete targets.
25329         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
25330         mips-sgi-irix6.[0-4]*.
25331
25332 2010-02-02  Nick Clifton  <nickc@redhat.com>
25333
25334         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
25335         constant size of 4 as being the same as 0.
25336         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
25337         can take values in the range 0..4.
25338
25339 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
25340
25341         PR java/41991
25342         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
25343         as _darwin10_Unwind_FindEnclosingFunction().
25344         * libgcc-libsystem.ver: New.
25345
25346 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
25347
25348         PR target/41399
25349         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
25350         implicitly set registers.
25351
25352 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
25353
25354         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
25355         (arm_override_options): Allow automatic selection of the thread
25356         pointer register if thumb2.
25357         (legitimize_pic_address): Improve code sequences for Thumb2.
25358         (arm_call_tls_get_addr): Likewise.
25359         (legitimize_tls_address): Likewise.
25360         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
25361         (pic_load_addr_32bit): ... this.  New named pattern.
25362         * thumb2.md (pic_load_addr_thumb2): Delete.
25363         (pic_load_dot_plus_four): Delete.
25364         (tls_load_dot_plus_four): New named pattern.
25365
25366 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25367
25368         PR libgomp/29986
25369         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
25370         Document fix for TLS bug.
25371
25372 2010-01-31  Richard Guenther  <rguenther@suse.de>
25373
25374         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
25375         conservatively correct.
25376
25377 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25378
25379         PR target/42850
25380         Revert:
25381         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25382
25383         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
25384
25385 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25386
25387         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
25388
25389 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
25390
25391         * config.gcc: Adjust order of makefile fragments for mingw targets.
25392
25393 2010-01-31  Richard Guenther  <rguenther@suse.de>
25394
25395         PR middle-end/42898
25396         * gimplify.c (gimplify_init_constructor): For volatile LHS
25397         initialize a temporary.
25398
25399 2010-01-31  Matthias Klose  <doko@ubuntu.com>
25400
25401         * configure.ac: Fix __stack_chk_fail check for cross builds configured
25402         --with-headers
25403         * configure: Regenerate.
25404
25405 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
25406
25407         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
25408         the same alias set and their sizes different constantness.
25409         (aliasing_component_refs_p): Revert 2009-10-24 change.
25410
25411 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25412
25413         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
25414         unused.
25415
25416 2010-01-29  Richard Guenther  <rguenther@suse.de>
25417
25418         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
25419         Assert we successfully updated the call.
25420
25421 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
25422
25423         PR rtl-optimization/42889
25424         * df.h (df_set_bb_dirty_nonlr): New prototype.
25425         * df-core.c (df_set_bb_dirty_nonlr): New function.
25426         * df-scan.c (df_insn_rescan): Call it instead of
25427         df_set_bb_dirty for DEBUG_INSNs.
25428
25429 2010-01-29  Richard Guenther  <rguenther@suse.de>
25430
25431         PR middle-end/37448
25432         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
25433         quadratic behavior in most cases.
25434
25435 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
25436
25437         PR target/42891
25438         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
25439         in the call to gen_x86_movsicc_0_m1.
25440
25441 2010-01-28  Richard Guenther  <rguenther@suse.de>
25442
25443         PR tree-optimization/42871
25444         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
25445
25446 2010-01-28  Richard Guenther  <rguenther@suse.de>
25447
25448         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
25449         into call arguments.
25450
25451 2010-01-28  Richard Guenther  <rguenther@suse.de>
25452
25453         PR middle-end/42883
25454         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
25455         the forwarder if the destination is an EH landing pad.
25456
25457 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
25458
25459         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
25460         block list passed to gimple_duplicate_sese_tail.
25461         (parallelize_loops): Avoid parallelization when the function
25462         has_nonlocal_label.
25463         Avoid parallelization when the preheader is IRREDUCIBLE.
25464         Try to optimize when estimated_loop_iterations_int is unresolved.
25465         Add the loop's location to the dump file.
25466         * tree-cfg.c (add_phi_args_after_redirect): Remove.
25467         (gimple_duplicate_sese_tail): Remove the check for the latch.
25468         Redirect nexits to the exit block.
25469         Remove handling of the incoming edges to the latch.
25470         Redirect the backedge from the copied latch to the exit bb.
25471
25472 2010-01-28  Michael Matz  <matz@suse.de>
25473
25474         PR target/42881
25475         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
25476         Wrap force_reg into a sequence, emit it before user.
25477
25478 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
25479
25480         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
25481         (arm_rev): New.
25482         (arm_legacy_rev): Likewise.
25483         (thumb_legacy_rev): Likewise.
25484
25485 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
25486
25487         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
25488         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
25489         on MEM's address failed, try avoid_constant_pool_reference and
25490         recurse if it returned something different.
25491         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
25492         address, try avoid_constant_pool_reference and recurse if it
25493         returned something different.
25494         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
25495         address and avoid_constant_pool_reference returned something
25496         different, don't set have_address.
25497
25498 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
25499
25500         PR debug/42861
25501         * var-tracking.c (val_store): Add modified argument, obey it.
25502         Adjust callers.
25503         (count_uses): Move down logging of main.
25504         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
25505         don't need resolution.
25506         (emit_notes_in_bb): Likewise.
25507
25508 2010-01-27  Richard Guenther  <rguenther@suse.de>
25509
25510         PR middle-end/42878
25511         * tree-inline.c (remap_decl): Delay remapping of SSA name
25512         default definitions until we need them.
25513
25514 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
25515
25516         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
25517         (rs6000_delegitimize_address): New function.
25518
25519         * config/s390/s390.c (s390_delegitimize_address): Call
25520         delegitimize_mem_from_attrs.
25521
25522         PR middle-end/42874
25523         * tree-inline.c (cannot_copy_type_1): Removed.
25524         (copy_forbidden): Don't forbid copying of functions containing
25525         records/unions with variable length fields.
25526
25527 2010-01-27  Christian Bruel  <christian.bruel@st.com>
25528
25529         Revert:
25530         PR target/42841
25531         * config/sh/sh.c (find_barrier): Increase length for non delayed
25532         conditional branches.
25533
25534 2010-01-27  Matthias Klose  <doko@ubuntu.com>
25535
25536         * configure.ac (gnu-unique-object): Fix ldd version check.
25537         * configure: Regenerate.
25538
25539 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25540
25541         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
25542         HAVE_GNU_AS value.
25543         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
25544         Test for HAVE_GNU_AS value.
25545
25546 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25547
25548         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
25549         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
25550         INT64_TYPE): Define.
25551         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
25552         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25553         INT_LEAST64_TYPE): Define.
25554         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
25555         UINT_LEAST64_TYPE): Define.
25556         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
25557         INT_FAST64_TYPE): Define.
25558         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25559         UINT_FAST64_TYPE): Define.
25560         (INTMAX_TYPE, UINTMAX_TYPE): Define.
25561         (INTPTR_TYPE, UINTPTR_TYPE): Define.
25562         (SIG_ATOMIC_TYPE): Define.
25563
25564 2010-01-26  Richard Guenther  <rguenther@suse.de>
25565
25566         * df-scan.c (df_scan_set_bb_info): Remove assert.
25567         (df_insn_rescan_debug_internal): Merge asserts.
25568         (df_install_ref): Likewise.
25569         (df_mark_reg): Use bitmap_set_range.
25570         (df_hard_reg_used_p): Remove assert.
25571         (df_hard_reg_used_count): Likewise.
25572
25573 2010-01-26  Richard Guenther  <rguenther@suse.de>
25574
25575         PR rtl-optimization/42685
25576         * web.c (web_main): Ignore DEBUG_INSNs.
25577
25578 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
25579
25580         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
25581
25582         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
25583         Fix types of fndecl and arglist parameters.
25584
25585 2010-01-26  Richard Guenther  <rguenther@suse.de>
25586
25587         PR middle-end/42806
25588         * tree-eh.c (unsplit_eh): Skip debug insns.
25589
25590 2010-01-26  Richard Guenther  <rguenther@suse.de>
25591
25592         PR tree-optimization/42250
25593         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
25594
25595 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
25596
25597         PR fortran/42866
25598         * omp-low.c (expand_omp_sections): Only use single_pred if
25599         l2_bb is single_pred_p.
25600
25601 2010-01-25  Christian Bruel  <christian.bruel@st.com>
25602
25603         PR target/42841
25604         * config/sh/sh.c (find_barrier): Increase length for non delayed
25605         conditional branches.
25606         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
25607
25608 2010-01-24  David S. Miller  <davem@davemloft.net>
25609
25610         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
25611         define if not using GAS.
25612         * config/sparc/sparc.c (sparc_elf_asm_named_section):
25613         Likewise.  Delete SECTION_MERGE code, which is only applicable
25614         when using GAS.
25615
25616 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
25617
25618         PR c++/42748
25619         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
25620         mangling of va_list in system headers.
25621
25622 2010-01-23  Toon Moene  <toon@moene.org>
25623
25624         * tree-predcom.c (combine_chains): Return NULL, not false.
25625
25626 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
25627
25628         * tree-loop-distribution.c (distribute_loop): Fix declaration and
25629         initialization of variable res to agree with return type.
25630
25631 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
25632
25633         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
25634         * tree-sra.c: Add include of expr.h.
25635
25636 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
25637
25638         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
25639         insert the debug stmt on the single non-EH edge from the stmt.
25640
25641 2010-01-22  Richard Henderson  <rth@redhat.com>
25642
25643         PR tree-opt/42833
25644         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
25645         the RHS until after generate_subtree_copies has insertted its
25646         code before the current statement.
25647
25648 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
25649
25650         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
25651
25652         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
25653
25654 2010-01-21  Martin Jambor  <mjambor@suse.cz>
25655
25656         PR tree-optimization/42585
25657         * tree-sra.c (struct access): New field grp_total_scalarization.
25658         (dump_access): Dump the new field.
25659         (should_scalarize_away_bitmap): New variable.
25660         (cannot_scalarize_away_bitmap): Likewise.
25661         (sra_initialize): Allocate new bitmaps.
25662         (sra_deinitialize): Free new bitmaps.
25663         (create_access_1): New function.
25664         (create_access): Parts moved to create_access_1.
25665         (type_consists_of_records_p): New function.
25666         (completely_scalarize_record): Likewise.
25667         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
25668         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
25669         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
25670         access.
25671         (analyze_all_variable_accesses): Completely scalarize small eligible
25672         records.
25673
25674 2010-01-21  Martin Jambor  <mjambor@suse.cz>
25675
25676         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
25677
25678 2010-01-21  Andrew Haley  <aph@redhat.com>
25679
25680         * gcc.c (process_command): Move lang_specific_driver before
25681         setting cc_libexec_prefix.
25682
25683 2010-01-21  Richard Guenther  <rguenther@suse.de>
25684
25685         PR middle-end/19988
25686         * fold-const.c (negate_expr_p): Pretend only negative
25687         real constants are easily negatable.
25688
25689 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
25690             Jason Merrill  <jason@redhat.com>
25691
25692         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
25693         (TYPE_TRANSPARENT_AGGR): this, for union and record.
25694         * calls.c (initialize argument_information): Handle it.
25695         * c-common.c (handle_transparent_union_attribute): Use new name.
25696         * c-decl.c (finish_struct): Ditto.
25697         * c-typeck.c (type_lists_compatible_p): Ditto.
25698         (convert_for_assignment): Use new name and also handle record.
25699         * function.c (aggregate_value_p): Handle it.
25700         (pass_by_reference): Ditto.
25701         (assign_parm_data_types): Ditto.
25702         * print-tree.c (print_node): Ditto.
25703         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
25704         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
25705         * tree.c (first_field): New fn.
25706
25707 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
25708
25709         PR target/42818
25710         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
25711         even when linking statically, for now.
25712
25713 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
25714
25715         PR debug/42715
25716         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
25717         without a cselib val.
25718         (count_uses): Accept MO_VAL_SET with no val on stores.
25719         (add_stores): Likewise.
25720
25721 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25722
25723         * var-tracking.c (check_value_val): Add a compile time assertion.
25724         (dv_is_decl_p): Simplify.
25725         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
25726         gcc_assert if ENABLE_CHECKING.
25727
25728 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
25729
25730         PR debug/42782
25731         * var-tracking.c: Include tree-flow.h.
25732         (mem_dies_at_call): New.
25733         (dataflow_set_preserve_mem_locs): Use it.
25734         (dataflow_set_remove_mem_locs): Likewise.
25735         (dump_var): Renamed from dump_variable.  Adjust all callers.
25736         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
25737         * Makefile.in (var-tracking.o): Adjust deps.
25738
25739 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
25740
25741         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
25742
25743 2010-01-20  Richard Guenther  <rguenther@suse.de>
25744
25745         PR tree-optimization/42717
25746         * tree-ssa-dce.c (get_live_post_dom): Remove.
25747         (forward_edge_to_pdom): Take an arbitrary edge to copy
25748         degenerate PHI args from.
25749         (remove_dead_stmt): Use the first post-dominator even if it
25750         does not contain live statements as redirection destination.
25751
25752 2010-01-20  Richard Guenther  <rguenther@suse.de>
25753
25754         * tree-inline.c (estimate_num_insns): Handle EH builtins.
25755
25756 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25757
25758         * sel-sched.c (create_speculation_check): Remove set but not used
25759         variable twin.
25760         (try_transformation_cache): Remove set but not used variable ds.
25761         (calculate_privileged_insns): Remove set but not used variables
25762         cur_insn and min_spec_insn.
25763         (find_best_expr): Remove set but not used variable avail_n.
25764         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
25765         variable e.
25766         * cgraphunit.c (assemble_thunk): Remove set but not used variable
25767         false_label.
25768         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
25769         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
25770         new_scop_exit_edge.
25771
25772 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
25773
25774         PR bootstrap/42786
25775         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
25776         cpu types.  Add support for *-sse3 cpu types.
25777         (x86_64-*-*): Ditto.
25778
25779 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25780
25781         PR middle-end/42803
25782         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
25783         argument, call initializer_constant_valid_p_1 instead of
25784         initializer_constant_valid_p, pass CACHE to it, return NULL
25785         immediately if first call returns NULL.
25786         (initializer_constant_valid_p_1): New function.
25787         (initializer_constant_valid_p): Use it.
25788
25789 2010-01-20  Thomas Quinot  <quinot@adacore.com>
25790
25791         * tree.def (PLACEHOLDER_EXPR): Fix comment.
25792
25793 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25794
25795         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
25796         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
25797         (loc_list_from_tree): Don't handle unsigned division.  Handle
25798         signed modulo using DW_OP_{over,over,div,mul,minus}.
25799         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
25800         modulo instead of signed.
25801
25802 2010-01-20  DJ Delorie  <dj@redhat.com>
25803
25804         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
25805         (Fpa): Pass it
25806         (h8300_emit_stack_adjustment): Propogate it.
25807         (push): Pass it.
25808         (h8300_expand_prologue): Likewise.
25809         (h8300_expand_epilogue): Likewise.
25810
25811 2010-01-19  Michael Matz  <matz@suse.de>
25812
25813         PR tree-optimization/41783
25814         * tree-data-ref.c (toplevel): Include flags.h.
25815         (dump_data_dependence_relation):  Also dump the inputs if the
25816         result will be unknown.
25817         (split_constant_offset_1): Look through some conversions.
25818         * tree-predcom.c (determine_roots_comp): Restart a new chain if
25819         the offset from last element is too large.
25820         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
25821         (reassociate_to_the_same_stmt): Handle vector registers.
25822         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
25823         (e.g. conversions).
25824         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
25825         wide_prolog_niters argument, emit widening instructions.
25826         (vect_do_peeling_for_alignment): Adjust caller, use widened
25827         variant of the iteration cound.
25828         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
25829
25830 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25831
25832         PR target/38697
25833         * config/arm/neon-testgen.m (emit_automatics): New parameter
25834         features. Adjust for Fixed_return_reg feature.
25835         (test_intrinsic): Call emit_automatics with new feature.
25836         * config/arm/neon.ml: Update copyright years.
25837         (features): New Fixed_return_reg feature.
25838         (ops): Update feature for Vget_low.
25839
25840 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
25841
25842         PR tree-optimization/42719
25843         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
25844         stmt uses.
25845
25846         PR debug/42728
25847         * fwprop.c (all_uses_available_at): Return false if def_set dest
25848         is a REG that is used in def_insn.
25849
25850 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
25851
25852         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
25853
25854         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
25855         Add argument names.
25856
25857         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
25858
25859         * target.h (struct gcc_target) <secondary_reload>: Change type
25860         of last argument to secondary_reload_info *.
25861
25862 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
25863
25864         PR target/42774
25865         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
25866         memory references with unaligned offsets.  Remove CQImode handling.
25867         (unaligned_memory_operand): Return 1 for memory references with
25868         unaligned offsets.  Remove CQImode handling.
25869
25870 2010-01-18  Richard Guenther  <rguenther@suse.de>
25871
25872         PR middle-end/39954
25873         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
25874         builtin calls.
25875
25876 2010-01-18  Richard Guenther  <rguenther@suse.de>
25877
25878         PR tree-optimization/42781
25879         * tree-ssa-structalias.c (find_what_var_points_to): Skip
25880         restrict processing only if the original variable was artificial.
25881
25882 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
25883
25884         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
25885         find number of popped argument bytes.
25886
25887         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
25888         Fix the text that describes the return value for invalid insns.
25889
25890         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
25891
25892         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
25893         Clarify what 'cost of the -dependence' is.  Fix quoting.
25894
25895         * toplev.c (default_get_pch_validity): Rename argument to "sz".
25896         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
25897
25898 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
25899
25900         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25901         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
25902
25903 2010-01-17  Richard Guenther  <rguenther@suse.de>
25904
25905         PR middle-end/42248
25906         * function.c (split_complex_args): Take a VEC to modify.
25907         (assign_parms_augmented_arg_list): Build a VEC instead of
25908         a chain of PARM_DECLs.
25909         (assign_parms_unsplit_complex): Take a VEC of arguments.
25910         Do not fixup unmodified parms.
25911         (assign_parms): Deal with the VEC.
25912         (gimplify_parameters): Likewise.
25913
25914 2010-01-17  Richard Guenther  <rguenther@suse.de>
25915
25916         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
25917         node existence check.
25918         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
25919         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
25920         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
25921         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
25922         (gimple_execute_on_growing_pred): Likewise.
25923
25924 2010-01-17  Richard Guenther  <rguenther@suse.de>
25925
25926         PR tree-optimization/42773
25927         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
25928         (compute_antic_aux): Likewise.
25929         (compute_partial_antic_aux): Likewise.
25930
25931 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
25932
25933         PR debug/42767
25934         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
25935         and US_TRUNCATE.
25936
25937 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
25938
25939         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
25940         appearance.
25941
25942         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
25943         Fix markup for strict argument.
25944
25945         (TARGET_SCHED_REORDER2): Fix argument types.
25946
25947         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
25948         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
25949
25950         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
25951         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
25952
25953         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
25954         Add argument name.
25955
25956         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
25957         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
25958         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
25959         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
25960         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
25961
25962         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
25963
25964         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
25965
25966         (TARGET_ASM_RELOC_RW_MASK): Add return type.
25967         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
25968
25969         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
25970
25971         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
25972         Use prototype.
25973
25974         (TARGET_ASM_NAMED_SECTION): Fix argument list.
25975
25976         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
25977         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
25978
25979         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
25980
25981         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
25982
25983         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
25984         referring to it.  Fix language.
25985
25986         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
25987
25988         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
25989
25990         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
25991
25992         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
25993
25994         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
25995         '@var{stream}.  Remove stray 'and'.
25996
25997         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
25998
25999         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
26000
26001         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
26002
26003         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
26004         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
26005
26006         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
26007         Fix description of return value.
26008         Rename argument "sz" to "len."
26009
26010         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
26011         Clarify meaning of 'true' return value.
26012
26013         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
26014
26015         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
26016         rep_mode versus mode_rep.
26017
26018         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
26019
26020         (TARGET_BUILTIN_DECL): Fix name.
26021
26022         (TARGET_COMMUTATIVE_P): Fix type of first argument.
26023
26024         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
26025
26026         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
26027
26028         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
26029
26030         (TARGET_RELAXED_ORDERING): Use @deftypevr.
26031
26032         (TARGET_GET_DRAP_RTX): Note that this is a hook.
26033         Clarify language.
26034
26035         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
26036         Rename argument tm_fn to md_fn.
26037
26038         (TARGET_OPTION_PRINT): Fix argument list.
26039
26040 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
26041
26042         PR target/42664
26043         * config/i386/i386.c (ix86_fixup_binary_operands):
26044         Revert FMA4 fixup of operands.
26045
26046 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26047
26048         PR gcc/42525
26049         * Makefile.in (write_entries_to_file, install-plugin):
26050         Use \012 instead of \n with tr.
26051
26052 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
26053
26054         * configure.ac (HAVE_AS_REF): New C macro.
26055         * configure: Regenerate.
26056         * config.in: Likewise.
26057         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
26058         if HAVE_AS_REF.
26059         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
26060         if HAVE_AS_REF.
26061
26062 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
26063
26064         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
26065
26066         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
26067
26068         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
26069
26070         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
26071
26072         (TARGET_IN_SMALL_DATA_P): Fix argument type.
26073
26074         (TARGET_BINDS_LOCAL_P): Fix argument type.
26075
26076         (TARGET_ASM_FILE_END): Use prototype.
26077
26078         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
26079
26080         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
26081
26082         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
26083
26084         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
26085
26086         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
26087         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
26088
26089         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
26090         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
26091
26092         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
26093         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
26094         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
26095         (TARGET_ADDR_SPACE_CONVERT): Likewise.
26096
26097         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
26098
26099         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
26100
26101         (TARGET_INIT_BUILTINS): Use prototype.
26102
26103         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
26104         Put 'const char *' in braces.  Fix parameter types.
26105         (TARGET_INVALID_CONVERSION): Fix parameter types.
26106         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
26107         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
26108
26109         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
26110         Fix argument type.
26111
26112         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
26113
26114         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
26115
26116 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
26117
26118         * doc/tm.texi (TARGET_HELP): Fix return type.
26119
26120         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
26121         in braces.  Fix argument types.
26122
26123         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
26124
26125         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
26126
26127         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
26128
26129         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
26130         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
26131
26132         (TARGET_MANGLE_TYPE): Fix argument types.
26133
26134         (TARGET_IRA_COVER_CLASSES): Use prototype.
26135
26136         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
26137
26138         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
26139
26140         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
26141
26142         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
26143
26144         (TARGET_CALLEE_COPIES): Fix argument types.
26145
26146         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
26147
26148         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
26149
26150         (TARGET_FUNCTION_VALUE): Fix argument types.
26151
26152         (TARGET_RETURN_IN_MSB): Fix argument type.
26153
26154         (TARGET_RETURN_IN_MEMORY): Fix argument types.
26155
26156         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
26157
26158         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
26159
26160         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
26161         agree with return type.
26162
26163         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
26164
26165 2010-01-15  Jing Yu  <jingyu@google.com>
26166
26167         PR rtl-optimization/42691
26168         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
26169         a pseudo to a constant and are merged, and adjust comments.
26170
26171 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26172
26173         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
26174
26175 2010-01-15  Richard Guenther  <rguenther@suse.de>
26176
26177         PR middle-end/42739
26178         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
26179         labels of computed or non-local gotos to the destination.
26180         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
26181         landing pad label is the first label.
26182
26183 2010-01-15  Richard Guenther  <rguenther@suse.de>
26184
26185         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
26186
26187 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26188
26189         PR target/42747
26190         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
26191         to allow generation of the xssqrtdp instruction on power7.
26192         (sqrtdf2_fpr): Ditto.
26193
26194 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
26195
26196         PR middle-end/42674
26197         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
26198         functions with noreturn attribute.
26199
26200         PR c++/42608
26201         * varasm.c (declare_weak): Add weak attribute to decl if it
26202         doesn't have one already.
26203         (assemble_external): Only add decls to weak_decls if they also
26204         have weak attribute.
26205
26206 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
26207
26208         * var-tracking.c (var_reg_delete): Don't delete the association
26209         between REGs and values or one-part variables if the register
26210         isn't clobbered.
26211
26212 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
26213
26214         PR debug/42657
26215         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
26216         because its first operand is a non-localized variable.
26217
26218 2010-01-14  Martin Jambor  <mjambor@suse.cz>
26219
26220         PR tree-optimization/42706
26221         * tree-sra.c (encountered_recursive_call): New variable.
26222         (encountered_unchangable_recursive_call): Likewise.
26223         (sra_initialize): Initialize both new variables.
26224         (callsite_has_enough_arguments_p): New function.
26225         (scan_function): Call decl and flags check only for IPA-SRA, check
26226         whether there is a recursive call and whether it has enough arguments.
26227         (all_callers_have_enough_arguments_p): New function.
26228         (convert_callers): Look for recursive calls only when
26229         encountered_recursive_call is set.
26230         (ipa_early_sra): Bail out either if
26231         !all_callers_have_enough_arguments_p or
26232         encountered_unchangable_recursive_call.
26233
26234 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26235
26236         * sel-sched.c: Add 2010 to copyright years.
26237         * sel-sched-ir.c: Likewise.
26238         * sel-sched-ir.h: Likewise.
26239
26240 2010-01-14  Martin Jambor  <mjambor@suse.cz>
26241
26242         PR tree-optimization/42714
26243         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
26244         constructors specially.
26245
26246 2010-01-14  Andi Kleen  <ak@linux.intel.com>
26247
26248         * config/i386/drivers-i386.c (detect_caches_intel):
26249         Add l2sizekb parameter and fill in.
26250         (host_detect_local_cpu): Add l2sizekb, fill in.
26251         Add Atom small cache heuristic.
26252
26253 2010-01-14  Andi Kleen  <ak@linux.intel.com>
26254
26255         * config/i386/drivers-i386.c (detect_caches_cpuid4):
26256         Add level3 parameter and fill in.
26257         (detect_caches_intel): Handle level3 cache.
26258
26259 2010-01-14  Andi Kleen  <ak@linux.intel.com>
26260
26261         * config/i386/drivers-i386.c (host_detect_local_cpu):
26262         Fix core duo detection.
26263
26264 2010-01-14  Andi Kleen  <ak@linux.intel.com>
26265
26266         * config/i386/drivers-i386.c (host_detect_local_cpu):
26267         Fix Atom detection.
26268
26269 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26270
26271         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
26272         (rs6000_variable_issue_1): this.  Use...
26273         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
26274
26275 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26276
26277         * sel-sched-ir.c (sel_restore_other_notes): Rename to
26278         sel_restore_notes.  Update all callers.  Call reemit_notes
26279         for all insns.
26280
26281 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26282
26283         PR rtl-optimization/42246
26284         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
26285         loops.
26286
26287 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26288
26289         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
26290         all successors is the same as number of successors in current region.
26291
26292 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26293
26294         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
26295         to rename is not separable.  Otherwise check that its LHS is not NULL.
26296
26297 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26298
26299         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
26300
26301 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26302
26303         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
26304         available registers when failed to discover LHS register class.
26305         Fix indentation.  Update comment.
26306
26307 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26308             Alexander Monakov  <amonakov@ispras.ru>
26309
26310         PR rtl-optimization/42389
26311         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
26312         to can_issue_more.
26313         (advance_state_on_fence): Likewise.
26314         (sel_target_adjust_priority): Print debug output only when
26315         sched_verbose >= 4, not 2.
26316         (get_expr_cost): Do not issue all unique insns on the next cycle.
26317         (fill_insns): Initialize can_issue_more from the value saved
26318         with the fence.
26319         * sel-sched-ir.c (flist_add): New parameter issue_more.
26320         Init FENCE_ISSUE_MORE with it.
26321         (merge_fences): Likewise.
26322         (init_fences): Update call to flist_add.
26323         (add_to_fences, add_clean_fence_to_fences)
26324         (add_dirty_fence_to_fences): Likewise.
26325         (move_fence_to_fences): Update call to merge_fences.
26326         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
26327         sched groups.
26328         * sel-sched-ir.h (struct _fence): New field issue_more.
26329         (FENCE_ISSUE_MORE): New accessor macro.
26330
26331 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26332
26333         PR rtl-optimization/42388
26334         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
26335         that have no predecessors nor successors.  Do not call move_bb_info
26336         for empty blocks outside of current region.
26337
26338 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26339
26340         PR rtl-optimization/42294
26341         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
26342         * sel-sched.c (move_exprs_to_boundary): Transitively add all
26343         originators' originators.
26344
26345 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
26346
26347         PR rtl-optimization/39453
26348         PR rtl-optimization/42246
26349         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
26350         for pipelining_p.
26351         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
26352
26353 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26354             Alexander Monakov  <amonakov@ispras.ru>
26355
26356         PR middle-end/42245
26357         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
26358         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
26359         argument.  Update all callers.
26360         (tidy_control_flow): ... and here.  Recompute topological order
26361         of basic blocks in region if necessary.
26362         (sel_redirect_edge_and_branch): Change return type.  Return true
26363         if topological order might have been invalidated.
26364         (purge_empty_blocks): Export and move from...
26365         * sel-sched.c (purge_empty_blocks): ... here.
26366         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
26367         (maybe_tidy_empty_bb): Delete prototype.
26368         (purge_empty_blocks): Declare.
26369
26370 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
26371
26372         PR rtl-optimization/42249
26373         * sel-sched.c (try_replace_dest_reg): When chosen register
26374         and original register is the same, do not bail out early, but
26375         still check all original insns for validity of replacing destination
26376         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
26377         in this case.
26378
26379 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
26380
26381         PR c/42721
26382         Port from no-undefined-overflow branch:
26383         2009-03-09  Richard Guenther  <rguenther@suse.de>
26384
26385         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
26386
26387 2010-01-14  Richard Guenther  <rguenther@suse.de>
26388
26389         PR lto/42665
26390         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
26391
26392 2010-01-14  Ira Rosen  <irar@il.ibm.com>
26393
26394         PR tree-optimization/42709
26395         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
26396         as scalar type in creation of constant vector operand.
26397
26398 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26399
26400         PR testsuite/42414
26401         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
26402         (check-parallel-%): Match `testsuite' directory component only
26403         at the end.
26404
26405 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
26406
26407         PR translation/39521
26408         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
26409         strings with _().
26410
26411 2010-01-13  Richard Guenther  <rguenther@suse.de>
26412
26413         PR tree-optimization/42730
26414         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
26415         offset zero.
26416
26417 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
26418
26419         PR target/pr42542
26420         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
26421         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
26422         them signed.
26423
26424 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
26425
26426         * config/bfin/libgcc-bfin.ver: Regenerate based on current
26427         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
26428         ___umulsi3_highpart.
26429
26430         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
26431         rather than schedule_insns if the pass is enabled.
26432
26433 2010-01-13  Martin Jambor  <mjambor@suse.cz>
26434
26435         PR tree-optimization/42704
26436         * tree-sra.c (sra_modify_assign): Do not delete assignments to
26437         SSA_NAMEs.
26438
26439 2010-01-13  Martin Jambor  <mjambor@suse.cz>
26440
26441         PR tree-optimization/42703
26442         * tree-sra.c (analyze_access_subtree): Check that we can build a
26443         reference to the original data within the aggregate.
26444
26445 2010-01-13  Richard Guenther  <rguenther@suse.de>
26446
26447         PR tree-optimization/42705
26448         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
26449
26450 2010-01-13  Richard Guenther  <rguenther@suse.de>
26451
26452         PR middle-end/42716
26453         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
26454
26455 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
26456
26457         PR debug/41371
26458         * var-tracking.c (values_to_unmark): New variable.
26459         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26460         values_to_unmark vector.  Moved body to...
26461         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
26462         instead queue it into values_to_unmark vector.
26463         (vt_find_locations): Free values_to_unmark vector.
26464
26465 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
26466
26467         * config/s390/s390.c (override_options): Set
26468         default of max-pending-list-length to 256
26469
26470 2010-01-13  Richard Guenther  <rguenther@suse.de>
26471
26472         PR lto/42678
26473         * tree-pass.h (PROP_gimple_lcx): New.
26474         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
26475         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
26476         before the final cleanup_eh.
26477         (dump_properties): Dump PROP_gimple_lcx.
26478         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
26479         (tree_lower_complex_O0): Remove.
26480         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
26481         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
26482         tree_lower_complex, schedule TODO_update_ssa.
26483         * lto-streamer-out.c (output_function): Stream the functions
26484         properties.
26485         * lto-streamer-in.c (input_function): Likewise.
26486         (lto_read_body): Do not override them here.
26487
26488 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
26489
26490         PR c/42708
26491         * c-typeck.c (build_c_cast): Fold value cast to union type before
26492         wrapping it in a CONSTRUCTOR.
26493
26494 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
26495
26496         PR rtl-optimization/42699
26497         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
26498         involved.
26499
26500 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26501
26502         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
26503         SUBTARGET_WARN_UNUSED_SPEC): Move ...
26504         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
26505         SUBTARGET_WARN_UNUSED_SPEC): ... here
26506         * config/mips/iris5.h (LIBGCC_SPEC): Define.
26507
26508 2010-01-12  Julian Brown  <julian@codesourcery.com>
26509
26510         * config/arm/neon-schedgen.ml (Utils): Don't try to
26511         open missing module.
26512         (find_with_result): New.
26513
26514 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
26515
26516         PR debug/42662
26517         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
26518         sharing when canonicalizing ({lt,ge}u (plus a b) b).
26519
26520         PR tree-optimization/42645
26521         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
26522         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
26523         decl_map, set processing_debug_stmt to -1 and return name without
26524         any remapping.
26525
26526 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
26527
26528         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
26529         binutils version, and reword target configuration description.
26530
26531 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
26532
26533         * config/avr/avr.h (LINKER_NAME): Remove.
26534
26535 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
26536
26537         PR target/42416
26538         * config/rs6000/rs6000.c (rs6000_override_options): On targets
26539         that support VSX, warn for -mno-altivec if vsx is not disabled,
26540         and disable vsx.
26541
26542 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
26543             Shujing Zhao  <pearly.zhao@oracle.com>
26544
26545         PR translation/42469
26546         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
26547         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
26548         character between option name and help text.
26549         * c.opt (imultilib): Likewise.
26550
26551 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
26552
26553         * lto-streamer-out.c (output_unreferenced_globals): Output static
26554         variables.
26555
26556 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
26557
26558         PR rtl-optimization/42621
26559         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
26560         optimizing for size.
26561         (duplicate_computed_gotos): Remove now-redundant check.
26562
26563 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
26564
26565         PR target/37454
26566         * configure.ac: Save and restore LDFLAGS and LIBS
26567         * configure: Regenerate.
26568
26569 2010-01-10  Richard Guenther  <rguenther@suse.de>
26570
26571         PR middle-end/42667
26572         * builtins.c (fold_builtin_strlen): Add type argument and
26573         convert the resulting length to it.
26574         (fold_builtin_1): Adjust.
26575
26576 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
26577
26578         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
26579         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
26580         1 insn.
26581         (num_insns_constant_wide): Adjust for that change.
26582
26583 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26584
26585         PR debug/42631
26586         * web.c (union_defs): Add used argument, to combine uses of
26587         uninitialized regs.
26588         (entry_register): Adjust type and tests of used argument.
26589         (web_main): Widen used for new use.  Pass it to union_defs.
26590         * df.h (union_defs): Adjust prototype.
26591
26592 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26593
26594         PR debug/42630
26595         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
26596         uses in new incoming argument.  Free body.
26597         (reset_debug_uses_in_loop): New.
26598         (analyze_insn_to_expand_var): Call the latter if the former found
26599         anything.  Fix whitespace.  Reject invalid dest overlaps before
26600         going through all insns in the loop.
26601
26602 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26603
26604         PR debug/42629
26605         * haifa-sched.c (dying_use_p): Debug insns don't count.
26606
26607 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26608
26609         PR middle-end/42363
26610         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
26611         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
26612         (verify_gimple_call): Reject LHS in noreturn calls.
26613
26614 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26615
26616         PR debug/42604
26617         PR debug/42395
26618         * tree-vect-loop-manip.c (adjust_info): New type.
26619         (adjust_vec): New pointer to vector.
26620         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
26621         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
26622         (slpeel_update_phis_for_duplicate_loop): Use them.
26623         (slpeel_update_phi_nodes_for_guard1): Likewise.
26624         (slpeel_update_phi_nodes_for_guard2): Likewise.
26625         (slpeel_tree_peel_loop_to_edge): Likewise.
26626         (vect_update_ivs_after_vectorizer): Likewise.
26627
26628 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26629
26630         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
26631         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
26632
26633 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26634
26635         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
26636         bogus uninitialized warning.
26637
26638 2010-01-09  Richard Guenther  <rguenther@suse.de>
26639
26640         PR middle-end/42512
26641         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
26642         the evolution is compatible with the initial condition.
26643
26644 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
26645
26646         * gcc.c (process_command): Update copyright notice dates.
26647         * gcov.c (print_version): Likewise.
26648         * gcov-dump.c (print_version): Likewise.
26649         * mips-tfile.c (main): Likewise.
26650         * mips-tdump.c (main): Likewise.
26651
26652 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
26653
26654         PR target/41885
26655         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
26656         (rotlhi3): Delete.
26657         (rotlhi3_8): Delete.
26658         (rotlsi3): Delete.
26659         (rotlsi3_8): Delete.
26660         (rotlsi3_16): Delete.
26661         (rotlsi3_24): Delete.
26662         (rotl<mode>3): New.
26663         (*rotw<mode>3): New.
26664         (*rotb<mode>3): New.
26665         * config/avr/avr.c (avr_rotate_bytes): New function.
26666         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
26667
26668 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
26669
26670         PR target/37454
26671         * configure.ac: Modify -rdynamic check.
26672         * configure: Regenerate.
26673
26674 2010-01-08  DJ Delorie  <dj@redhat.com>
26675
26676         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
26677         register popping order.
26678
26679 2010-01-08  Richard Guenther  <rguenther@suse.de>
26680
26681         PR lto/42528
26682         * c.opt (fsigned-char): Also let LTO handle this option.
26683         (funsigned-char): Likewise.
26684
26685 2010-01-07  Richard Guenther  <rguenther@suse.de>
26686
26687         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
26688         (gimple_op): Likewise.
26689         (gimple_op_ptr): Likewise.
26690         (gimple_assign_set_lhs): Remove gcc_assert.
26691         (gimple_assign_set_rhs1): Likewise.
26692         (gimple_assign_set_rhs2): Likewise.
26693         (gimple_call_set_lhs): Likewise.
26694         (gimple_call_set_fn): Likewise.
26695         (gimple_call_set_fndecl): Likewise.
26696         (gimple_call_fndecl): Likewise.
26697         (gimple_call_return_type): Likewise.
26698         (gimple_call_set_chain): Likewise.
26699         (gimple_call_num_args): Likewise.
26700         (gimple_call_set_arg): Likewise.
26701         (gimple_cond_set_code): Likewise.
26702         (gimple_cond_set_lhs): Likewise.
26703         (gimple_cond_set_rhs): Likewise.
26704         (gimple_cond_set_true_label): Likewise.
26705         (gimple_cond_set_false_label): Likewise.
26706         (gimple_label_set_label): Likewise.
26707         (gimple_goto_set_dest): Likewise.
26708         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
26709         (gimple_debug_bind_get_value): Likewise.
26710         (gimple_debug_bind_get_value_ptr): Likewise.
26711         (gimple_debug_bind_set_var): Likewise.
26712         (gimple_debug_bind_set_value): Likewise.
26713         (gimple_debug_bind_reset_value): Likewise.
26714         (gimple_debug_bind_has_value_p): Likewise.
26715         (gimple_return_retval_ptr): Remove gcc_assert.
26716         (gimple_return_retval): Likewise.
26717         (gimple_return_set_retval): Likewise.
26718         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
26719         (safe_referenced_var_iterator): Remove.
26720         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
26721         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
26722         (fill_referenced_var_vec): Remove.
26723         (first_readonly_imm_use): Remove redundant gcc_assert.
26724         (phi_arg_index_from_use): Combine gcc_asserts.
26725         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
26726         (first_imm_use_stmt): Remove redundant gcc_assert.
26727         * tree-cfg.c (verify_gimple_call): Verify function and chain
26728         operands.  Verify arguments.
26729         (verify_types_in_gimple_stmt): Verify condition code and labels.
26730
26731 2010-01-07  Richard Guenther  <rguenther@suse.de>
26732
26733         PR tree-optimization/42641
26734         * sese.c (rename_map_elt_info): Use the SSA name version, do
26735         not hash pointers.
26736
26737 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
26738
26739         PR tree-optimization/42625
26740         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
26741         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
26742
26743 2010-01-07  Duncan Sands  <baldrick@free.fr>
26744
26745         * Makefile.in (PLUGIN_HEADERS): Add version.h.
26746
26747 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
26748
26749         PR target/42511
26750         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
26751         note itself is not function_invariant_p.
26752
26753 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
26754
26755         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
26756         Do not add the DF_NOTE problem.
26757         * store-motion.c (execute_rtl_store_motion): Likewise.
26758
26759 2010-01-07  Martin Jambor  <mjambor@suse.cz>
26760
26761         PR tree-optimization/42157
26762         * tree-sra.c (compare_access_positions): Stabilize sort if both
26763         accesses have integer types, return zero immediately if they are the
26764         same.
26765
26766 2010-01-06  Richard Henderson  <rth@redhat.com>
26767
26768         PR middle-end/41883
26769         * haifa-sched.c (add_to_note_list): Merge into ...
26770         (concat_note_lists): ... here, and ...
26771         (unlink_other_notes, rm_other_notes): Merge into...
26772         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
26773         NOTE_INSN_EPILOGUE_BEG.
26774
26775 2010-01-06  Richard Guenther  <rguenther@suse.de>
26776
26777         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
26778         not inline regular functions into always-inline functions.
26779
26780 2010-01-06  Nick Clifton  <nickc@redhat.com>
26781
26782         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
26783         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
26784         used together.
26785         (OVERRIDE_OPTIONS): Delete.
26786         (OPTIMIZATION_OPTIONS): Define.
26787         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
26788         * config/rx/rx.c (rx_handle_option): Issue an error message if
26789         -mcpu=rx200 and -fpu are used together.
26790         (rx_set_optimization_options): New function.  Issue an error
26791         message if an optimization attribute attempts to reset the FPU/
26792         math optimization pairing.
26793         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
26794         * config/rx/rx.opt: Set the default to 32-bit doubles.
26795         * config/rx/t-rx: Add multilibs for -nofpu option.
26796         * doc/invoke.texi: Update documentation of RX options.
26797
26798 2010-01-06  Richard Guenther  <rguenther@suse.de>
26799
26800         * tree-ssa-pre.c (name_to_id): New global.
26801         (alloc_expression_id): Simplify SSA name handling.
26802         (lookup_expression_id): Likewise.
26803         (init_pre): Zero name_to_id.
26804         (fini_pre): Free it.
26805
26806 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
26807
26808         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
26809
26810 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
26811
26812         PR target/42542
26813         * config/i386/sse.md (smaxv2di3): New.
26814         (umaxv2di3): Likewise.
26815         (sminv2di3): Likewise.
26816         (uminv2di3): Likewise.
26817
26818 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
26819
26820         PR target/42564
26821         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
26822         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
26823         (legitimize_tls_address): Likewise.
26824         (sparc_tls_referenced_p): Likewise.
26825         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
26826         and adjust calls to legitimize_pic_address.
26827         (legitimate_constant_p) Use sparc_tls_referenced_p.
26828         (legitimate_pic_operand_p): Likewise.
26829         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
26830         (sparc_tls_symbol_ref_1): Delete.
26831         (sparc_tls_referenced_p): Make static, recognize specific patterns.
26832         (legitimize_tls_address): Make static, handle CONST patterns.
26833         (legitimize_pic_address): Make static, remove unused parameter and
26834         adjust recursive calls.
26835         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
26836         and adjust call to legitimize_pic_address.
26837         (sparc_output_mi_thunk): Likewise.
26838
26839 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
26840             H.J. Lu  <hongjiu.lu@intel.com>
26841
26842         PR target/42542
26843         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
26844         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
26845         operands to make them signed.
26846
26847         Revert:
26848         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26849
26850         PR target/42542
26851         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26852         GTU to GT for V4SI and V2DI.
26853
26854         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26855         (umin<mode>3): Removed.
26856         (uminv8hi3): New.
26857         (uminv4si3): Likewise.
26858
26859 2010-01-05  Martin Jambor  <mjambor@suse.cz>
26860
26861         PR tree-optimization/42462
26862         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
26863         current_function_decl to helper functions and macros.
26864
26865 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26866
26867         PR bootstrap/41771
26868         * flags.h: Don't include real.h.
26869         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
26870         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
26871         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
26872         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
26873         * dominance.c: Update copyright.
26874         * gimple.c (walk_gimple_op): Remove inline.
26875         * tree-ssa-reassoc.c: Include real.h.
26876         * Makefile.in (FLAGS_H): Remove $(REAL_H).
26877         (tree-ssa-reassoc.o): Depend on $(REAL_H).
26878
26879 2010-01-05  Nick Clifton  <nickc@redhat.com>
26880
26881         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
26882         register to push into the stack frame when the accumulator has to
26883         be saved during interrupts.
26884
26885 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
26886
26887         * doc/invoke.texi: Remove the documentation about option
26888         -Wunreachable-code.
26889         * common.opt (Wunreachable-code):  Preserved for backward
26890         compatibility.
26891         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
26892         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
26893         the backward compatibility flag section.
26894
26895 2010-01-05  Richard Guenther  <rguenther@suse.de>
26896
26897         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
26898
26899 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
26900
26901         PR other/42611
26902         * cfgexpand.c (expand_one_var): Diagnose too large variables.
26903
26904         PR tree-optimization/42508
26905         * tree-sra.c (convert_callers): Check for recursive call
26906         by comparing cgraph nodes instead of decls.
26907         (modify_function): Call ipa_modify_formal_parameters also
26908         on all same_body aliases.
26909
26910         * cgraphunit.c (cgraph_materialize_all_clones): Compare
26911         cgraph nodes when checking for same_body aliases.
26912
26913 2010-01-05  Richard Guenther  <rguenther@suse.de>
26914
26915         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
26916         allocation and lookup.
26917         (get_or_alloc_expr_for_constant): Likewise.
26918         (phi_translate): Sink allocation.
26919
26920 2010-01-04  Richard Guenther  <rguenther@suse.de>
26921
26922         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
26923         a new entry only if needed.
26924         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
26925         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
26926         hashtable lookup.
26927         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
26928         the result array.
26929         (phi_translate): Handle CONSTANTs early.
26930
26931 2010-01-04  Martin Jambor  <mjambor@suse.cz>
26932
26933         PR tree-optimization/42398
26934         * tree-sra.c (struct access): Removed flag grp_different_types.
26935         (dump_access): Do not dump the removed flag.
26936         (sort_and_splice_var_accesses): Do not set the removed flag.
26937         (sra_modify_expr): Check for type compatibility directly.
26938
26939 2010-01-04  Martin Jambor  <mjambor@suse.cz>
26940
26941         PR tree-optimization/42366
26942         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
26943         edges with variable number of parameters.
26944         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
26945         flag instead of asserting it.
26946         (ipa_read_node_info): Read uses_analysis_done flag.
26947
26948 2010-01-04  Richard Guenther  <rguenther@suse.de>
26949
26950         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
26951         iterative_hash_* as intended.
26952         (vn_reference_compute_hash): Likewise.  Simplify hashing
26953         SSA names.
26954         (vn_reference_lookup_2): Likewise.
26955         (vn_nary_op_compute_hash): Likewise.
26956         (vn_phi_compute_hash): Likewise.
26957         (expressions_equal_p): Remove strange code.
26958         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
26959         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
26960         (bitmap_insert_into_set_1): Take value-id as parameter.
26961         (add_to_value): Pass it.
26962         (bitmap_insert_into_set): Likewise.
26963         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
26964
26965 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
26966
26967         PR driver/42442
26968         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
26969         (do_self_spec): For switches with SWITCH_IGNORE set set also
26970         SWITCH_IGNORE_PERMANENTLY.
26971         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
26972         of SWITCH_IGNORE.
26973
26974 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
26975
26976         * lto-streamer-out.c (output_unreferenced_globals): Output the full
26977         tree of an unreferenced global var.
26978
26979 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26980
26981         PR target/42542
26982         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26983         GTU to GT for V4SI and V2DI.
26984
26985         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26986         (umin<mode>3): Removed.
26987         (uminv8hi3): New.
26988         (uminv4si3): Likewise.
26989
26990 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26991
26992         PR lto/42581
26993         * collect2.c (main): Turn on trace in collect2 if -v is passed
26994         to gcc with LTO.
26995
26996 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
26997
26998         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
26999         description of expression operand.
27000
27001 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
27002
27003         * configure.ac: Add install-html to target_list for Make-hooks.
27004         * configure: Regenerate.
27005         * fortran/Make-lang.in (F95_HTMLFILES): New.
27006         (fortran.html): Use it.
27007         (fortran.install-html): New.
27008         * Makefile.in (install-html): Add lang.install-html.
27009         * java/Make-lang.in (JAVA_HTMLFILES): New.
27010         (java.html): Use it.
27011         (java.install-html): New.
27012         * objc/Make-lang.in (objc.install-html): New.
27013         * objcp/Make-lang.in (obj-c++.install-html): New.
27014         * cp/Make-lang.in (c++.install-html): New.
27015         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
27016         * lto/Make-lang.in (lto.install-html): New.
27017
27018 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27019
27020         PR lto/42520
27021         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
27022
27023 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
27024
27025         PR rtl-optimization/41862
27026         * store-motion.c (store_killed_in_insn, compute_store_table,
27027         remove_reachable_equiv_notes, replace_store_insn,
27028         build_store_vectors): Ignore all DEBUG_INSNs.
27029
27030 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27031
27032         PR lto/41564
27033         * common.opt: Add dumpdir.
27034
27035         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
27036         isn't specified.
27037         (option_map): Add --dumpdir.
27038
27039         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
27040
27041         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
27042
27043         * opts.c (decode_options): Try dump_dir_name first if
27044         dump_base_name isn't an absolute path.
27045         (common_handle_option): Handle OPT_dumpdir.
27046
27047         * toplev.c (dump_dir_name): New.
27048         (print_switch_values): Also ignore -dumpdir.
27049
27050         * toplev.h (dump_dir_name): New.
27051
27052 2010-01-03  Richard Guenther  <rguenther@suse.de>
27053
27054         PR tree-optimization/42589
27055         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
27056         double-word expansion of bswap32.
27057
27058 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
27059
27060         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
27061         with BLOCK_FOR_INSN.
27062         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
27063         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
27064         noce_process_if_block): Likewise.
27065         * gcse.c (compute_local_properties, insert_expr_in_table,
27066         insert_set_in_table, canon_list_insert, find_avail_set,
27067         pre_insert_copy_insn): Likewise.
27068
27069         * basic-block.h (BLOCK_NUM): Move from here...
27070         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
27071
27072 2010-01-03  Richard Guenther  <rguenther@suse.de>
27073
27074         PR tree-optimization/42438
27075         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
27076         contains_may_not_return_call flag.
27077         (BB_MAY_NOTRETURN): New.
27078         (valid_in_sets): Trapping nary operations are not valid
27079         in blocks that may not return.
27080         (insert_into_preds_of_block): Remove check for trapping expressions.
27081         (compute_avail): Compute also BB_MAY_NOTRETURN.
27082
27083 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
27084
27085         * doc/invoke.texi: Add 2010 to copyright years.
27086
27087 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
27088
27089         * config/sparc/sparc.c: Fix formatting nits.
27090
27091 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
27092             Alexander Monakov  <amonakov@ispras.ru>
27093
27094         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
27095
27096 2010-01-02  Richard Guenther  <rguenther@suse.de>
27097
27098         PR middle-end/42577
27099         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
27100         (simplify_switch_using_ranges): Mark to be removed edges
27101         as non-executable.
27102
27103 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27104
27105         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27106
27107         * collect2.c (scan_libraries): Add missing argument in call to
27108         scan_prog_file.
27109
27110 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
27111
27112         PR target/42448
27113         * config/alpha/predicates.md (aligned_memory_operand): Return false
27114         for CQImode.
27115         (unaligned_memory_operand): Return true for CQImode.
27116         * config/alpha/alpha.c (get_aligned_mem): Assert that location
27117         doesn not cross aligned SImode word boundary.
27118
27119 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
27120
27121         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
27122         Remove.
27123         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
27124         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
27125
27126 2010-01-02  Richard Guenther  <rguenther@suse.de>
27127
27128         PR lto/41597
27129         * toplev.c (compile_file): Emit LTO marker properly.  Change
27130         it to __gnu_lto_v1.
27131         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
27132
27133 2010-01-01  Richard Guenther  <rguenther@suse.de>
27134
27135         PR debug/42455
27136         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
27137
27138 2010-01-01  Richard Guenther  <rguenther@suse.de>
27139
27140         PR c/42570
27141         * c-decl.c (grokdeclarator): For zero-size arrays force
27142         structural equality checks as layout_type does.
27143
27144 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
27145
27146         * builtins.c: Update copyright to 2010.
27147
27148 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
27149
27150         PR lto/42531
27151         * lto-streamer-out.c (produce_asm): Revert the last change.
27152         (copy_function): Likewise.
27153
27154         * lto-streamer.c (lto_get_section_name): Skip any leading
27155         asterisk in name.
27156
27157 2010-01-01  Richard Guenther  <rguenther@suse.de>
27158
27159         PR middle-end/42559
27160         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
27161         for LABEL_DECLs.
27162
27163 \f
27164 Copyright (C) 2010 Free Software Foundation, Inc.
27165
27166 Copying and distribution of this file, with or without modification,
27167 are permitted in any medium without royalty provided the copyright
27168 notice and this notice are preserved.